/* ============================================
   CSS Reset / Normalize
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden; /* Only on body, not html */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CSS Custom Properties (Design System)
   ============================================ */

:root {
  /* Primary Colors - Navy Blue */
  --color-primary: #002540;        /* Deep navy blue - main brand color */
  --color-primary-light: #003d66;  /* Lighter navy for hover states */
  --color-primary-dark: #001a2e;   /* Darker navy for deeper backgrounds */
  --color-secondary: #ffffff;       /* White */
  
  /* Accent Colors - Gold */
  --color-accent: #D4A574;         /* Warm gold - accents and CTAs */
  --color-accent-bright: #E8B86D;  /* Bright gold for hover states */
  --color-accent-dark: #B8956A;    /* Dark gold for pressed states */
  
  /* Text Colors */
  --color-text: #002540;           /* Navy - body text on light backgrounds */
  --color-text-light: #6b7280;     /* Medium gray - secondary text */
  --color-text-on-dark: #ffffff;   /* White text on dark backgrounds */
  --color-text-accent: #D4A574;     /* Gold text for accents on dark backgrounds */
  
  /* Background Colors */
  --color-bg: #ffffff;             /* White background */
  --color-bg-alt: #f9fafb;         /* Light gray - alternate sections */
  --color-bg-dark: #002540;       /* Navy background for hero/CTA sections */
  
  /* UI Colors */
  --color-border: #D4A574;         /* Gold borders */
  --color-border-subtle: rgba(212, 165, 116, 0.3); /* Semi-transparent gold for subtle borders */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Spacing System */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 2rem;      /* 32px */
  --space-lg: 4rem;      /* 64px */
  --space-xl: 6rem;      /* 96px */
  --space-xxl: 8rem;     /* 128px */

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* Breakpoints */
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1280px;
}

/* ============================================
   Reusable Components
   ============================================ */

/* CTA Button Component */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 44px; /* Touch target size */
  line-height: 1.5;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.cta-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* CTA Button Styles */
.cta-button--primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.cta-button--primary:hover {
  color: var(--color-primary);
  background-color: var(--color-accent-bright);
}

.cta-button--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.cta-button--secondary:hover {
  color: var(--color-accent-bright);
  background-color: rgba(212, 165, 116, 0.1);
  border-color: var(--color-accent-bright);
}

.cta-button--accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.cta-button--accent:hover {
  color: var(--color-primary);
  background-color: var(--color-accent-bright);
}

/* CTA Button Sizes */
.cta-button--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  min-height: 36px;
}

.cta-button--md {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  min-height: 44px;
}

.cta-button--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
  min-height: 52px;
}

/* Responsive Image Component */
.responsive-image {
  width: 100%;
  overflow: hidden;
}

.responsive-image__img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* YouTube Video Embed Component */
.youtube-embed {
  width: 100%;
  margin: var(--space-md) 0;
}

.youtube-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color-bg-alt);
}

.youtube-embed__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Jotform AI Agent Component
   ============================================ */

.jotform-agent-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  pointer-events: none; /* Allow clicks to pass through container to agent widget */
}

/* Ensure the Jotform widget itself can receive pointer events */
.jotform-agent-container > * {
  pointer-events: auto;
}

/* Fallback message styling */
.jotform-agent-fallback {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-md);
  max-width: 300px;
  pointer-events: auto;
}

.jotform-agent-fallback__content {
  text-align: center;
}

.jotform-agent-fallback__content p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.jotform-agent-fallback__link {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.jotform-agent-fallback__link:hover {
  background-color: var(--color-accent-bright);
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .jotform-agent-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .jotform-agent-fallback {
    max-width: 100%;
  }
}

/* ============================================
   Jotform Embed Component
   ============================================ */

.jotform-embed-container {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Ensure bottom border is always visible with a pseudo-element overlay */
.jotform-embed-container::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background-color: var(--color-border);
  z-index: 10;
  pointer-events: none;
}

.jotform-embed-iframe {
  width: 100% !important; /* Override inline styles */
  max-width: 100% !important;
  min-width: 100% !important;
  height: 539px;
  border: none;
  display: block;
}

@media (max-width: 767px) {
  .jotform-embed-container {
    margin: var(--space-md) auto 0;
  }
  
  .jotform-embed-iframe {
    height: 600px; /* Slightly taller on mobile for better usability */
  }
}

/* ============================================
   Base Typography
   ============================================ */

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

/* Service card text - ensure visibility on light backgrounds */
.service-card {
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text);
}

/* Service card links should be gold per requirements */
.service-card__link {
  color: var(--color-accent) !important;
}

.service-card__link:hover {
  color: var(--color-accent-bright) !important;
}

/* Text in dark sections (hero, CTA) - must be white */
.hero,
.hero * {
  color: var(--color-text-on-dark);
}

.hero p,
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: var(--color-text-on-dark);
}

/* Hero Section Styling */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-xxl) 0;
  text-align: center;
}

/* Reduce top spacing for split hero */
.hero--split {
  padding-top: calc(var(--space-xxl) * 0.5);
}

.hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  color: white;
}

.hero__subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA buttons - works with component system */
.hero .cta-button {
  margin: 0 var(--space-xs);
}

.hero__actions--single {
  align-items: stretch;
  justify-content: center;
}

/* Home hero single-CTA enhancement */
.hero__actions--single .hero__cta-primary--jumbo {
  min-width: 280px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 44px rgba(212, 165, 116, 0.32);
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-bright) 48%,
    var(--color-accent) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero__actions--single .hero__cta-primary--jumbo::after {
  content: '→';
  margin-left: 0.65rem;
  font-weight: 700;
  transform: translateY(1px);
}

.hero__actions--single .hero__cta-primary--jumbo::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: hero-cta-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.hero__actions--single .hero__cta-primary--jumbo:hover {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.26),
    0 0 60px rgba(212, 165, 116, 0.4);
}

@keyframes hero-cta-shine {
  0% {
    left: -120%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  35% {
    left: 140%;
    opacity: 0;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

.hero__cta-secondary {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero__cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

/* Hero split variant (home page) */
.hero--split {
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Orb lighting overlay (purely decorative) */
.hero--orbs {
  position: relative;
  overflow: hidden;
}

.hero--orbs .container {
  position: relative;
  z-index: 1;
}

.hero--orbs::before {
  content: '';
  position: absolute;
  width: 1500px;
  height: 1500px;
  top: -540px;
  right: -540px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.4;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.95) 0%, rgba(212, 165, 116, 0) 70%);
  filter: blur(70px);
}

.hero--orbs::after {
  content: '';
  position: absolute;
  width: 1200px;
  height: 1200px;
  bottom: -480px;
  left: -480px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.3;
  background: radial-gradient(circle, rgba(74, 144, 194, 0.95) 0%, rgba(74, 144, 194, 0) 70%);
  filter: blur(70px);
}

.hero__split {
  display: grid;
  grid-template-areas: "media content";
  grid-template-columns: minmax(220px, 380px) 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero__media {
  grid-area: media;
  width: 100%;
  max-width: 380px;
  margin: 0;
  justify-self: end;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.25));
}

.hero__content {
  grid-area: content;
  min-width: 0;
}

.hero--split .hero__subtitle {
  max-width: 52ch;
  margin-left: 0;
  margin-right: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero--split .cta-button {
  margin: 0;
}

.hero--split .hero__image .responsive-image__img {
  max-height: 520px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero--split {
    padding-top: calc(var(--space-xl) * 0.5);
  }
  
  .hero__title {
    font-size: var(--text-3xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-lg);
  }
  
  .hero__cta {
    display: block;
    margin: var(--space-xs) 0;
  }

  .hero__actions--single .hero__cta-primary--jumbo {
    width: 100%;
    max-width: 360px;
  }

  .hero__split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media";
    gap: var(--space-md);
    text-align: center;
  }

  .hero--orbs::before {
    width: 1260px;
    height: 1260px;
    top: -570px;
    right: -630px;
    opacity: 0.35;
    filter: blur(72px);
  }

  .hero--orbs::after {
    width: 960px;
    height: 960px;
    bottom: -510px;
    left: -570px;
    opacity: 0.25;
    filter: blur(72px);
  }

  .hero--split .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* ============================================
   Hero Underline Animation (Home Page)
   ============================================ */

.hero__title-wrapper {
  position: relative;
  display: inline-block;
}

.hero__title-wrapper .hero__title {
  position: relative;
  z-index: 2;
}

.hero__underline-animation {
  position: absolute;
  top: 82%;
  left: 0;
  width: 100%;
  height: 22%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.hero__underline-animation line {
  stroke: var(--color-accent);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-dasharray: 8 4 15 4 10 6; /* Sketchy hand-drawn effect */
  stroke-dashoffset: 100;
  filter: url(#hero-underline-glow);
  animation: heroUnderlineDraw 5.3s ease-out 800ms infinite;
}

@keyframes heroUnderlineDraw {
  0% {
    stroke-dashoffset: 100;
    opacity: 1;
  }
  /* Draw complete at 1.5s / 5.3s = 28.3% */
  28.3% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  /* Stay visible until 4.5s / 5.3s = 84.9% */
  84.9% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  /* Fade out by 100% */
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__underline-animation line {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hero__underline-animation line {
    stroke-width: 2px;
  }
}

.cta-section,
.cta-section * {
  color: var(--color-text-on-dark);
}

.cta-section p,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6 {
  color: var(--color-text-on-dark);
}

/* CTA Section Styling */
.cta-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section__title {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section__button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: var(--space-md);
}

.cta-section__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* Ensure headings in light sections are visible */
.services h2,
.services p,
.about h2,
.about p,
.intro-section h2,
.intro-section p {
  color: var(--color-text);
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-bright);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* ============================================
   Layout Utilities
   ============================================ */

/* Container */
.container {
  max-width: var(--breakpoint-desktop);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* Responsive container padding */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Section spacing */
.section {
  padding: var(--space-lg) 0;
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-md) 0;
  }
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ============================================
   Flexbox Utilities
   ============================================ */

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* ============================================
   Grid Utilities
   ============================================ */

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-gap-sm {
  gap: var(--space-sm);
}

.grid-gap-md {
  gap: var(--space-md);
}

.grid-gap-lg {
  gap: var(--space-lg);
}

/* Responsive grid - stacks on mobile */
@media (max-width: 767px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Spacing Utilities
   ============================================ */

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

.px-xs { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* ============================================
   Responsive Visibility Utilities
   ============================================ */

/* Hide on mobile, show on desktop */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

/* ============================================
   Width Utilities
   ============================================ */

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.max-w-full {
  max-width: 100%;
}

/* Responsive image container */
.img-container {
  width: 100%;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Responsive Typography Utilities
   ============================================ */

@media (max-width: 767px) {
  .text-responsive {
    font-size: var(--text-sm);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
}

/* ============================================
   Global Header Component
   ============================================ */

/* Header container with sticky positioning */
#header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--color-bg);
}

.header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.header__container {
  max-width: var(--breakpoint-desktop);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.header__logo-image {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header__logo-text {
  display: inline-block;
}

@media (max-width: 767px) {
  .header__container {
    min-height: 75px;
  }
  
  .header__logo-image {
    height: 48px; /* 50% larger than before */
  }
  
  .header__logo {
    font-size: var(--text-lg);
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
  align-items: center;
}

.header__nav-item {
  margin: 0;
}

.header__nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: all 0.2s ease;
  display: block;
}

.header__nav-link:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
  text-decoration: none;
}

.header__nav-link--active {
  color: var(--color-accent);
  font-weight: 600;
  background-color: var(--color-bg-alt);
}

.header__nav-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Mobile Menu Toggle Button */
.header__menu-toggle {
  display: none; /* Hidden on desktop, shown on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001; /* Above the nav */
}

.header__menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .header__menu-toggle {
    display: flex; /* Show hamburger on mobile */
  }

  /* Hide the nav list by default on mobile */
  .header__nav-list {
    display: none;
  }

  /* Show nav list when expanded */
  .header__nav[aria-expanded="true"] .header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-sm) var(--space-md);
    gap: 0;
    width: 100%;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
  }

  .header__nav-item {
    width: 100%;
  }

  .header__nav-link {
    padding: var(--space-sm);
    display: block;
    width: 100%;
    border-radius: 4px;
  }
}

