@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;700&display=swap');

@layer reset, tokens, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    min-height: 100vh;
    line-height: 1.6;
  }
  
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  input, button, textarea, select {
    font: inherit;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style: none;
  }
}

@layer tokens {
  :root {
    --color-primary: #1a4d7a;
    --color-primary-dark: #0f3351;
    --color-primary-light: #2868a3;
    --color-secondary: #e67e22;
    --color-secondary-dark: #d35400;
    --color-accent: #f39c12;
    --color-accent-light: #f8c471;
    
    --color-bg: #fafbfc;
    --color-bg-alt: #f4f6f8;
    --color-surface: #ffffff;
    --color-surface-raised: #ffffff;
    
    --color-text: #2c3e50;
    --color-text-light: #5d6d7e;
    --color-text-muted: #95a5a6;
    --color-border: #e1e8ed;
    
    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'DM Sans', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 
      0 1px 2px rgba(26, 77, 122, 0.04),
      0 2px 4px rgba(26, 77, 122, 0.04);
    --shadow-md: 
      0 2px 4px rgba(26, 77, 122, 0.04),
      0 4px 8px rgba(26, 77, 122, 0.06),
      0 8px 16px rgba(26, 77, 122, 0.08);
    --shadow-lg: 
      0 4px 8px rgba(26, 77, 122, 0.04),
      0 8px 16px rgba(26, 77, 122, 0.06),
      0 16px 32px rgba(26, 77, 122, 0.1);
    --shadow-xl: 
      0 8px 16px rgba(26, 77, 122, 0.06),
      0 16px 32px rgba(26, 77, 122, 0.08),
      0 24px 48px rgba(26, 77, 122, 0.12);
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
  }
}

@layer layout {
  body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
  }
  
  .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
  }
  
  .container-narrow {
    max-width: 960px;
  }
  
  .container-wide {
    max-width: 1440px;
  }
  
  main {
    flex: 1;
  }
  
  section {
    padding: var(--space-3xl) 0;
  }
  
  @media (max-width: 768px) {
    section {
      padding: var(--space-2xl) 0;
    }
  }
}

@layer components {
  
  /* Header & Navigation */
  .site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    gap: var(--space-lg);
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
  }
  
  .logo svg {
    width: 40px;
    height: 40px;
  }
  
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex: 1;
    justify-content: center;
  }
  
  .nav-left, .nav-right {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
  }
  
  .nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-base);
  }
  
  .nav-link:hover {
    color: var(--color-primary);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
  }
  
  .lang-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: color var(--transition-base);
    padding: 2px 6px;
  }
  
  .lang-btn:hover {
    color: var(--color-primary);
  }
  
  .lang-btn.active {
    color: var(--color-primary);
  }
  
  .lang-divider {
    color: var(--color-border);
  }
  
  .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: var(--space-xs);
  }
  
  @media (max-width: 968px) {
    .main-nav {
      position: fixed;
      top: 73px;
      left: 0;
      right: 0;
      background: var(--color-surface);
      flex-direction: column;
      padding: var(--space-lg);
      box-shadow: var(--shadow-lg);
      transform: translateY(-100%);
      opacity: 0;
      transition: transform var(--transition-slow), opacity var(--transition-slow);
      pointer-events: none;
      gap: var(--space-md);
    }
    
    .main-nav.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }
    
    .nav-left, .nav-right {
      flex-direction: column;
      gap: var(--space-md);
      width: 100%;
    }
    
    .mobile-menu-toggle {
      display: block;
    }
    
    .nav-link::after {
      display: none;
    }
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-3xl) 0;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: var(--color-primary-light);
    opacity: 0.1;
    border-radius: 50%;
    transform: rotate(-15deg);
  }
  
  .hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 120%;
    background: var(--color-secondary);
    opacity: 0.08;
    border-radius: 50%;
    transform: rotate(25deg);
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white;
  }
  
  .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    animation-fill-mode: backwards;
  }
  
  .hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    animation-fill-mode: backwards;
  }
  
  /* Bento Grid */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
  }
  
  .bento-cell {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
  }
  
  .bento-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
  }
  
  .bento-cell:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  
  .bento-cell:hover::before {
    transform: scaleX(1);
  }
  
  .bento-cell.large {
    grid-column: span 2;
  }
  
  .bento-cell.tall {
    grid-row: span 2;
  }
  
  .bento-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
  }
  
  .bento-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
  }
  
  .bento-text {
    color: var(--color-text-light);
    line-height: 1.7;
  }
  
  @media (max-width: 768px) {
    .bento-grid {
      grid-template-columns: 1fr;
      gap: var(--space-md);
    }
    
    .bento-cell.large,
    .bento-cell.tall {
      grid-column: span 1;
      grid-row: span 1;
    }
  }
  
  /* Zigzag Sections */
  .zigzag-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
  }
  
  .zigzag-section:nth-child(even) .zigzag-content {
    order: 2;
  }
  
  .zigzag-section:nth-child(even) .zigzag-visual {
    order: 1;
  }
  
  .zigzag-content {
    padding: var(--space-xl);
  }
  
  .zigzag-label {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .zigzag-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }
  
  .zigzag-text {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
  }
  
  .zigzag-list {
    list-style: none;
    margin-bottom: var(--space-lg);
  }
  
  .zigzag-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text-light);
  }
  
  .zigzag-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
  }
  
  .zigzag-visual {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
  }
  
  .zigzag-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @media (max-width: 968px) {
    .zigzag-section {
      grid-template-columns: 1fr;
      gap: var(--space-xl);
    }
    
    .zigzag-section:nth-child(even) .zigzag-content,
    .zigzag-section:nth-child(even) .zigzag-visual {
      order: initial;
    }
    
    .zigzag-content {
      padding: 0;
    }
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    justify-content: center;
  }
  
  .btn-primary {
    background: var(--color-secondary);
    color: white;
    box-shadow: 
      0 4px 8px rgba(230, 126, 34, 0.2),
      0 2px 4px rgba(230, 126, 34, 0.15);
  }
  
  .btn-primary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 
      0 8px 16px rgba(230, 126, 34, 0.25),
      0 4px 8px rgba(230, 126, 34, 0.2);
  }
  
  .btn-secondary {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
  }
  
  .btn-secondary:hover {
    background: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
  }
  
  /* Cards */
  .card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }
  
  .card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
  }
  
  .card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
  }
  
  .card-text {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
  }
  
  .card-meta {
    display: flex;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
  }
  
  /* CTA Split */
  .cta-split {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
  }
  
  .cta-split::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: var(--color-secondary);
    opacity: 0.1;
    border-radius: 50%;
    transform: rotate(25deg);
  }
  
  .cta-split-content {
    color: white;
    position: relative;
    z-index: 1;
  }
  
  .cta-split-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }
  
  .cta-split-text {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.7;
  }
  
  .cta-split-action {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
  }
  
  @media (max-width: 968px) {
    .cta-split {
      grid-template-columns: 1fr;
      padding: var(--space-2xl) var(--space-lg);
    }
  }
  
  /* Newsletter Strip */
  .newsletter-strip {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  
  .newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }
  
  .newsletter-text h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
  }
  
  .newsletter-text p {
    color: var(--color-text-light);
  }
  
  .newsletter-form {
    display: flex;
    gap: var(--space-sm);
    min-width: 400px;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-base);
  }
  
  .newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
  }
  
  @media (max-width: 968px) {
    .newsletter-content {
      flex-direction: column;
      text-align: center;
    }
    
    .newsletter-form {
      min-width: 100%;
      flex-direction: column;
    }
  }
  
  /* Forms */
  .form-group {
    margin-bottom: var(--space-lg);
  }
  
  .form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--color-text);
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--color-surface);
  }
  
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 122, 0.1);
  }
  
  .form-textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .form-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  .form-checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
  }
  
  .form-checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
  }
  
  .iti, #phone {
    width: 100%;
  }
  
  /* Contact Page Specific */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
  }
  
  .contact-info {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .contact-item-content h3 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
  }
  
  .contact-item-content p {
    color: var(--color-text-light);
    line-height: 1.6;
  }
  
  .contact-form {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .map-container {
    margin-top: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  @media (max-width: 968px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Team Grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }
  
  .team-member {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
  }
  
  .team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }
  
  .team-member-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
  
  .team-member-info {
    padding: var(--space-lg);
  }
  
  .team-member-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
  }
  
  .team-member-role {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: var(--space-md);
  }
  
  .team-member-bio {
    color: var(--color-text-light);
    line-height: 1.7;
  }
  
  /* Blog/News Grid */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }
  
  .news-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
  }
  
  .news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }
  
  .news-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
  
  .news-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .news-card-date {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
  }
  
  .news-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
  }
  
  .news-card-excerpt {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex: 1;
  }
  
  .news-card-link {
    color: var(--color-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-base);
  }
  
  .news-card-link:hover {
    gap: var(--space-sm);
  }
  
  /* Footer */
  .site-footer {
    background: var(--color-primary-dark);
    color: white;
    padding-top: var(--space-3xl);
  }
  
  .footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
  }
  
  .footer-cta {
    padding-right: var(--space-2xl);
  }
  
  .footer-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }
  
  .footer-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
  }
  
  .footer-email-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }
  
  .footer-email-form input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
  }
  
  .footer-email-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .footer-email-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-links h3 {
    font-weight: 600;
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base), padding-left var(--transition-base);
    display: inline-block;
  }
  
  .footer-links a:hover {
    color: var(--color-accent);
    padding-left: var(--space-xs);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.8;
  }
  
  .footer-legal {
    display: flex;
    gap: var(--space-lg);
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
  }
  
  .footer-legal a:hover {
    color: var(--color-accent);
  }
  
  @media (max-width: 968px) {
    .footer-main {
      grid-template-columns: 1fr;
      gap: var(--space-2xl);
    }
    
    .footer-cta {
      padding-right: 0;
    }
    
    .footer-email-form {
      flex-direction: column;
    }
    
    .footer-links {
      grid-template-columns: 1fr;
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: var(--space-md);
      text-align: center;
    }
    
    .footer-legal {
      flex-direction: column;
      gap: var(--space-sm);
    }
  }
  
  /* Cookie Consent */
  .cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
  }
  
  .cookie-consent.show {
    transform: translateY(0);
  }
  
  .cookie-consent-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }
  
  .cookie-consent-text {
    flex: 1;
  }
  
  .cookie-consent-text p {
    color: var(--color-text);
    margin-bottom: var(--space-xs);
  }
  
  .cookie-consent-text a {
    color: var(--color-primary);
    text-decoration: underline;
  }
  
  .cookie-consent-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
  }
  
  .cookie-consent-buttons .btn {
    white-space: nowrap;
  }
  
  @media (max-width: 968px) {
    .cookie-consent-content {
      flex-direction: column;
      text-align: center;
    }
    
    .cookie-consent-buttons {
      flex-direction: column;
      width: 100%;
    }
    
    .cookie-consent-buttons .btn {
      width: 100%;
    }
  }
  
  /* Cookie Settings Modal */
  .cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
  }
  
  .cookie-settings-modal.show {
    display: flex;
  }
  
  .cookie-settings-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }
  
  .cookie-settings-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
  }
  
  .cookie-category {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
  }
  
  .cookie-category:last-child {
    border-bottom: none;
  }
  
  .cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
  }
  
  .cookie-category h3 {
    color: var(--color-primary);
    font-size: 1.125rem;
  }
  
  .cookie-category p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-base);
  }
  
  .cookie-toggle.active {
    background: var(--color-secondary);
  }
  
  .cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
  }
  
  .cookie-toggle.active::after {
    transform: translateX(24px);
  }
  
  .cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .cookie-settings-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }
  
  .cookie-settings-actions .btn {
    flex: 1;
  }
  
  /* Legal Pages */
  .legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
  }
  
  .legal-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
  }
  
  .legal-updated {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    font-style: italic;
  }
  
  .legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
  }
  
  .legal-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
  }
  
  .legal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
  }
  
  .legal-content ul {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
  }
  
  .legal-content li {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-xs);
  }
  
  /* Thanks Page */
  .thanks-container {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .thanks-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
  }
  
  .thanks-container h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
  }
  
  .thanks-container p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
  }
}

@layer utilities {
  .fade-in {
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
  }
  
  .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease forwards;
  }
  
  .text-center {
    text-align: center;
  }
  
  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }
  
  .section-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}