@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;800&display=swap');

:root {
  --color-primary: #1b3a4b;
  --color-secondary: #f4f1ea;
  --color-accent: #d48c70;
  --color-text: #1a1a1a;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --font-family: 'Raleway', sans-serif;
  --font-size-base: 18px;
  --line-height-base: 1.7;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: #e5e1d5;
  transform: translateY(-2px);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 58, 75, 0.9) 0%, rgba(27, 58, 75, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content h2 {
  margin-top: var(--space-xl);
}

.footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer a {
  color: #ffffff;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  font-size: 0.9rem;
  opacity: 0.7;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: var(--space-md);
  z-index: 2000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-consent.active {
  display: block;
  transform: translateY(0);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #ffffff;
  z-index: 1500;
  transition: var(--transition-base);
  padding: var(--space-2xl) var(--space-md);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
  display: none;
}

.overlay.active {
  display: block;
}

.author-box {
  background: var(--color-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: var(--space-md) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: var(--space-sm);
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  scrollbar-width: none;
}

.testimonial-card {
  min-width: 300px;
  flex: 0 0 45%;
  scroll-snap-align: center;
  background: #ffffff;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 85%;
  }
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.grid-asymmetric > div:nth-child(odd) {
  grid-column: span 7;
}

.grid-asymmetric > div:nth-child(even) {
  grid-column: span 5;
}

@media (max-width: 1024px) {
  .grid-asymmetric > div:nth-child(n) {
    grid-column: span 12;
  }
}

.text-contrast-aa {
  color: var(--color-primary);
}

.bg-texture {
  position: relative;
}

.bg-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23000000' fill-opacity='0.02' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
}

.input-group {
  margin-bottom: var(--space-md);
}

.input-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 75, 0.1);
}

.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  display: none;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}
