/* Base tokens */
:root {
  --color-navy: #0a243b;
  --color-charcoal: #111827;
  --color-gold: #c8a44a;
  --color-gold-ink: #6b5715;
  --color-cream: #f8e8a6;
  --color-soft: #f3f4f6;
  --focus: #1c7ed6;
}

/* Utility classes used throughout the site */
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-gray { color: #4a5568; }
.bg-navy { background-color: var(--color-navy); }
.bg-gold { background-color: var(--color-gold); }
.bg-grayish { background-color: var(--color-soft); }
.bg-charcoal { background-color: var(--color-charcoal); }
.border-gold { border-color: var(--color-gold); }

/* Layout + type baseline */
body {
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

a {
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* Primary conversion button */
.primary-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.3rem;
  border-radius: 0.5rem;
  background: var(--color-gold);
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: filter 180ms ease;
}
.primary-cta:hover,
.btn-primary:hover {
  filter: brightness(1.04);
}
.primary-cta[disabled],
.btn-primary[disabled],
.btn-primary.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.secondary-cta-link {
  font-size: 0.9rem;
  color: #dbeafe;
  text-decoration: underline;
}
.secondary-cta-link:hover,
.secondary-cta-link:focus {
  color: #ffffff;
}

/* Homepage sections */
.hero-shell {
  background: linear-gradient(145deg, #0a243b 0%, #0d2e4a 55%, #111827 100%);
  color: #fff;
  padding: 4.5rem 0 4.75rem;
}

/* Explicit dark-background text colors for legibility */
.hero-shell h1 { color: var(--color-gold); }
.hero-shell p { color: #e5e7eb; }
.cta-band .section-title { color: #ffffff; }
.cta-band p { color: #e5e7eb; }

.site-section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  color: var(--color-navy);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-copy {
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
}

.compliance-note {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.6;
}

.surface-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.process-step {
  list-style: decimal;
  list-style-position: inside;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  color: #1f2937;
}

.cta-band {
  background: linear-gradient(180deg, #0f2940 0%, #111827 100%);
  padding: 4rem 0;
}

/* Shared form styling */
.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111827;
  padding: 0.75rem 0.875rem;
  line-height: 1.3;
}
.input::placeholder { color: #6b7280; }
.input:focus {
  border-color: #1c7ed6;
  box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.15);
}

/* Contrast and focus */
.bg-navy a:not(.primary-cta):not(.btn-primary),
.bg-charcoal a:not(.primary-cta):not(.btn-primary),
.bg-navy .prose a {
  color: var(--color-cream);
}
.bg-navy a:not(.primary-cta):not(.btn-primary):hover,
.bg-charcoal a:not(.primary-cta):not(.btn-primary):hover,
.bg-navy a:not(.primary-cta):not(.btn-primary):focus,
.bg-charcoal a:not(.primary-cta):not(.btn-primary):focus {
  color: #ffffff;
}

.on-light .text-gold,
.text-gold.on-light {
  color: var(--color-gold-ink) !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
:focus { outline: none; }

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

footer a:hover {
  text-decoration: underline;
}

.calendly-embed {
  position: relative;
  padding-top: 75%;
}

/* Mobile behavior */
@media (max-width: 767px) {
  .hero-shell {
    padding: 3.5rem 0 3.75rem;
  }

  .site-section,
  .cta-band {
    padding: 3rem 0;
  }

  .section-copy {
    font-size: 0.98rem;
  }

  .compliance-note {
    font-size: 0.78rem;
  }

  .carousel {
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .carousel > div {
    min-width: 85%;
  }

  .calendly-embed {
    padding-top: 145%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
