:root {
  --navy: #1E2430;
  --navy-strong: #141926;
  --off-white: #FAFAF8;
  --cream: #F3F1EC;
  --slate: #9AA4B5;
  --mustard: #B89B4A; /* Darkened from #D8C07A for WCAG AA compliance */
  --headline-font: "Brandon Grotesque", ui-sans-serif, system-ui;
  --body-font: "Questrial", ui-sans-serif, system-ui;
}

body {
  font-family: var(--body-font);
  background-color: var(--off-white);
  color: var(--navy);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--headline-font);
  font-weight: 500;
  letter-spacing: -0.025em;
}

p {
  color: var(--navy); /* Changed from rgba(30, 36, 48, 0.7) for better contrast */
  opacity: 1; /* Increased to 1 for WCAG 4.5:1 compliance */
}

/* Custom Components (re-implemented from Tailwind layers) */
.btn-primary, .btn-primary-light, .btn-ghost, .btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-family: var(--body-font);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--off-white);
  box-shadow: 0 10px 25px rgba(30, 36, 48, 0.15);
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-strong);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 40px rgba(30, 36, 48, 0.25);
}

.btn-primary-light {
  background-color: var(--mustard);
  color: var(--navy);
  box-shadow: 0 10px 25px rgba(184, 155, 74, 0.2);
  border: 1px solid var(--mustard);
}

.btn-primary-light:hover {
  background-color: var(--off-white);
  border-color: var(--off-white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  border: 1px solid var(--navy);
  color: var(--navy);
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--navy);
  color: var(--off-white);
  transform: translateY(-2px);
}

.btn-ghost-light {
  border: 1px solid var(--off-white);
  color: var(--off-white);
  background-color: transparent;
}

.btn-ghost-light:hover {
  background-color: var(--off-white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Icon sizing consistency */
[data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.5px;
  flex-shrink: 0;
}

/* Mobile high-performance CTA enhancements */
@media (max-width: 768px) {
  .btn-primary, .btn-primary-light {
    padding: 1.125rem 2.5rem;
    width: 100%;
    max-width: 400px;
    font-size: 1.05rem;
    background-image: linear-gradient(to bottom right, rgba(255,255,255,0.1), transparent);
  }

  .header-cta-btn {
    width: auto;
    max-width: none;
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
  }
}

@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(184, 155, 74, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(184, 155, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 155, 74, 0); }
}

.hero-cta-attn {
  animation: hero-cta-pulse 3.2s ease-in-out infinite;
}

.hero-cta-attn-secondary {
  animation: hero-cta-outline 3.6s ease-in-out infinite;
}

@keyframes hero-cta-pulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(30, 36, 48, 0.16);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 36px rgba(30, 36, 48, 0.24), 0 0 0 6px rgba(184, 155, 74, 0.12);
    transform: translateY(-1px);
  }
}

@keyframes hero-cta-outline {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(30, 36, 48, 0.08);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 10px 24px rgba(30, 36, 48, 0.14), 0 0 0 5px rgba(30, 36, 48, 0.08);
    transform: translateY(-1px);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.sunlight-float {
  animation: float 6.5s ease-in-out infinite;
  will-change: transform;
}

.animate-float-delay-1 { animation: float 6s ease-in-out infinite; animation-delay: 0s; }
.animate-float-delay-2 { animation: float 7s ease-in-out infinite; animation-delay: 1.5s; }
.animate-float-delay-3 { animation: float 8s ease-in-out infinite; animation-delay: 3s; }
.animate-float-delay-4 { animation: float 6.5s ease-in-out infinite; animation-delay: 0.5s; }

@keyframes logo-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-marquee 28s linear infinite;
  will-change: transform;
}

.logo-group {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.logo-item {
  min-width: 210px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 250, 248, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 10px 25px rgba(30, 36, 48, 0.25);
}

.logo-item.logo-wide {
  min-width: 260px;
}

@media (max-width: 768px) {
  .logo-track {
    animation-duration: 22s;
  }

  .logo-item {
    min-width: 170px;
    font-size: 0.62rem;
  }

  .logo-item.logo-wide {
    min-width: 220px;
  }
}

.card-premium {
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(30, 36, 48, 0.05);
  box-shadow: 0 12px 30px rgba(30, 36, 48, 0.08);
  transition: all 0.5s;
}

.card-premium:hover {
  box-shadow: 0 24px 60px rgba(30, 36, 48, 0.14);
}

/* Dark variant for cards on navy backgrounds */
.card-dark {
  background-color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s;
}

.card-dark:hover {
  box-shadow: 0 0 20px rgba(184, 155, 74, 0.15); /* Subtle mustard glow */
  border-color: var(--mustard);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 1s ease-out;
}

[data-animate].visible {
  opacity: 100;
  transform: translateY(0);
}

/* Overlays */
.honeycomb-overlay {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,2 58,16 58,36 30,50 2,36 2,16' fill='black'/%3E%3C/svg%3E");
  mask-repeat: repeat;
}

/* Custom Header / Logo Container */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contrast enhancement for yellow text on light backgrounds */
.text-contrast-mustard {
    /* Removed text-shadow as per task 11 */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header Scroll Effect */
header {
  transition: all 0.3s ease-in-out;
}

header.scrolled {
  background-color: rgba(250, 250, 248, 0.98); /* Higher opacity off-white */
  box-shadow: 0 4px 20px rgba(30, 36, 48, 0.08); /* shadow-soft */
  padding-top: 0;
  padding-bottom: 0;
}

header.scrolled .logo-container img {
  height: 2rem;
  transition: height 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-attn,
  .hero-cta-attn-secondary,
  .animate-float,
  .sunlight-float,
  .animate-float-delay-1,
  .animate-float-delay-2,
  .animate-float-delay-3,
  .animate-float-delay-4 {
    animation: none !important;
  }
}

/* Back To Top Button State */
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
