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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px; /* ensure content not hidden under fixed header */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}
h1 { font-size: var(--size-3xl); }
h2 { font-size: var(--size-2xl); }
h3 { font-size: var(--size-xl); }
h4 { font-size: var(--size-lg); }

p { margin: 0 0 var(--space-3); }
ul { padding-left: 1.1rem; margin: 0 0 var(--space-3); }

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-4);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-med) var(--easing-standard), border-color var(--duration-med) var(--easing-standard), transform var(--duration-fast) var(--easing-standard), box-shadow var(--duration-med) var(--easing-standard);
  cursor: pointer;
}
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-gold) 35%, transparent); }
.button--primary { background: var(--color-gold); color: var(--color-charcoal); }
.button--primary:hover { background: var(--color-gold-600); box-shadow: var(--shadow-md); }
.button--ghost { background: transparent; border-color: var(--color-slate); color: var(--color-charcoal); }
.button--ghost:hover { border-color: var(--color-charcoal); }

/* Improve ghost button contrast on dark hero */
.hero .button--ghost { color: var(--color-white); border-color: rgba(255,255,255,.5); }
.hero .button--ghost:hover { border-color: var(--color-white); }

/* Light mode button adjustments */
@media (prefers-color-scheme: light) {
  .button--ghost { 
    color: var(--color-charcoal); 
    border-color: var(--color-slate); 
  }
  .button--ghost:hover { 
    border-color: var(--color-charcoal); 
    color: var(--color-charcoal);
  }
  .hero .button--ghost { 
    color: var(--color-white); 
    border-color: rgba(255,255,255,.5); 
  }
  .hero .button--ghost:hover { 
    border-color: var(--color-white); 
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(17,17,17,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--duration-med) var(--easing-standard), border-color var(--duration-med) var(--easing-standard);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: .2px;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.brand img { display:block; height:36px; width:auto; }
.nav {
  display: flex;
  gap: 20px;
}
.nav a { 
  color: var(--color-white); 
  text-decoration: none; 
  font-weight: 600; 
  padding: 8px 8px; 
  transition: color var(--duration-med) var(--easing-standard);
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.nav a:hover { 
  color: var(--color-white); 
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav a[aria-current="true"], .nav a[aria-current="page"] {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Navigation always stays in dark mode regardless of browser preference */
.nav__toggle { 
  display: none; 
  background: var(--color-gold);
  color: var(--color-charcoal);
  border: none;
  font-weight: 700;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  transition: all var(--duration-med) var(--easing-standard);
}

.nav__toggle:hover {
  background: var(--color-gold-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav__toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 2px;
  background: var(--color-charcoal);
  box-shadow: 0 -6px 0 var(--color-charcoal), 0 6px 0 var(--color-charcoal);
  transition: all var(--duration-fast) var(--easing-standard);
}

.nav__toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 var(--color-charcoal);
}

.nav__toggle[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 20px;
  height: 2px;
  background: var(--color-charcoal);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Hide hero image on mobile */
@media (max-width: 768px) {
  .hero__media {
    display: none;
  }
  
  /* Enable flexbox ordering for mobile section reordering */
  body {
    display: flex;
    flex-direction: column;
  }
}

/* Mobile Typography Optimisations */
@media (max-width: 768px) {
  /* Adjust heading sizes for better mobile readability */
  h1 { 
    font-size: var(--size-2xl); 
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }
  
  h2 { 
    font-size: var(--size-xl); 
    line-height: 1.3;
    margin-bottom: var(--space-3);
  }
  
  h3 { 
    font-size: var(--size-lg); 
    line-height: 1.4;
    margin-bottom: var(--space-3);
  }
  
  h4 { 
    font-size: var(--size-base); 
    line-height: 1.4;
    margin-bottom: var(--space-2);
  }
  
  /* Improve paragraph readability on mobile */
  p { 
    font-size: var(--size-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
  }
  
  /* Hero section mobile optimisations */
  .hero h1 { 
    font-size: var(--size-2xl);
    line-height: 1.1;
    margin-bottom: var(--space-4);
  }
  
  .hero p { 
    font-size: var(--size-base);
    line-height: 1.6;
    margin-bottom: var(--space-5);
  }
  
  /* Section headings mobile adjustments */
  .section__title {
    font-size: var(--size-xl);
    line-height: 1.3;
    margin-bottom: var(--space-4);
  }
  
  .section__eyebrow {
    font-size: var(--size-sm);
    margin-bottom: var(--space-2);
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-7) 0;
  overflow: visible;
  z-index: 0;
}
/* Removed extra hero-section bottom gradient per request; keep gradient only on media glow */
.hero h1 { color: var(--color-gold); margin-bottom: var(--space-3); }
.hero p { color: #E5E7EB; max-width: 720px; }
.hero__actions { display: flex; gap: 12px; margin-top: var(--space-4); flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.accent-line { width: 120px; height: 6px; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-600)); border-radius: 999px; margin: 0 0 var(--space-3); }

/* Hero section always stays in dark mode regardless of browser preference */

/* Sections */
section { padding: var(--space-6) 0; }
.section__eyebrow { font-weight: 700; color: var(--color-gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-2); }

/* Cards */
.card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  color: var(--color-charcoal);
  transition: transform var(--duration-med) var(--easing-standard), box-shadow var(--duration-med) var(--easing-standard);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(12, 1fr);
}
.grid--3col > * { grid-column: span 4; }

@media (max-width: 900px) {
  .grid--3col > * { grid-column: span 12; }
}

/* Typography adjustments for different color schemes */
@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4, h5, h6 { color: var(--color-white); }
  p, ul, ol { color: var(--color-ink); }
}

@media (prefers-color-scheme: light) {
  h1, h2, h3, h4, h5, h6 { color: var(--color-charcoal); }
  p, ul, ol { color: var(--color-ink); }
}

/* Mobile sticky CTA */
.sticky-cta {
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 12px; 
  z-index: 60; 
  display: none;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta__inner {
  margin: 0 auto; 
  max-width: fit-content; 
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-600) 50%, var(--color-gold) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  border: none; 
  padding: 9px 14px; 
  border-radius: 19px; 
  box-shadow: 
    0 9px 38px rgba(240, 212, 65, 0.4), 
    0 5px 19px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex; 
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.sticky-cta__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.sticky-cta__inner .button {
  background: linear-gradient(135deg, var(--color-white) 0%, #f8f9fa 100%);
  color: var(--color-charcoal);
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 
    0 5px 14px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  gap: 0;
  transform: translateZ(0);
}

.sticky-cta__inner .button:hover {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3748 100%);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.8px;
}

@media (max-width: 900px) { 
  .sticky-cta.is-visible { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
  }
  
  .sticky-cta {
    bottom: 20px;
    left: 32px;
    right: 32px;
  }
  
  .sticky-cta__inner {
    max-width: fit-content;
    margin: 0 auto;
    padding: 9px 14px;
    border-radius: 23px;
    box-shadow: 
      0 14px 47px rgba(240, 212, 65, 0.5), 
      0 7px 23px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  
  .sticky-cta__inner .button {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 19px;
    min-width: auto;
    animation: subtle-pulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    gap: 0;
  }
}

/* Subtle pulsing animation for sticky CTA */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(240, 212, 65, 0.2);
  }
}

