/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1C1917;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Custom Properties (Brand) ===== */
:root {
  /* Brand — change these to rebrand */
  --brand-name: 'Eve Insurance';

  /* Primary: Forest Green (from DESIGN.md) */
  --green-50: #F0FFF4;
  --green-100: #C6F6D5;
  --green-200: #9AE6B4;
  --green-300: #68D391;
  --green-600: #2D6A4F;
  --green-700: #276749;
  --green-800: #22543D;
  --green-900: #1C4532;

  /* Accent: Warm Amber (from DESIGN.md) */
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-500: #E09F3E;
  --amber-600: #D97706;
  --amber-700: #B45309;

  /* Neutrals: Warm Stone (from DESIGN.md) */
  --stone-50: #FAFAF9;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --stone-700: #44403C;
  --stone-800: #292524;
  --stone-900: #1C1917;

  /* Semantic aliases */
  --primary: var(--green-600);
  --primary-hover: var(--green-700);
  --primary-light: var(--green-100);
  --primary-bg: var(--green-50);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-600);

  --telegram-blue: #0088cc;

  /* Layout */
  --max-width: 960px;
  --section-padding: 64px 24px;
  --nav-height: 64px;

  /* Spacing (4px base) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  /* Border radius (from DESIGN.md) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--stone-900);
  z-index: 100;
  transition: box-shadow 0.2s ease-out;
}

.nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-300);
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: var(--stone-400);
  font-size: 14px;
  transition: color 0.15s ease-out;
}

.nav__link:hover {
  color: #fff;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-300);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

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

.btn--secondary:hover {
  background: var(--primary-bg);
}

.btn--accent {
  background: var(--accent);
  color: var(--stone-900);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--telegram {
  background: var(--telegram-blue);
  color: #fff;
}

.btn--telegram:hover {
  background: #006da3;
}

.btn--large {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--stone-900) 0%, var(--green-900) 100%);
  padding: 120px 24px 80px;
}

.hero__inner {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-3xl);
  align-items: center;
}

/* Left column keeps the original reading width so the headline wraps the
   same way; the right column holds the call-an-advisor panel. */
.hero__main {
  max-width: 600px;
}

.hero__tagline {
  color: var(--green-300);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.hero__headline {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-md);
}

.hero__subtext {
  color: var(--stone-400);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--sp-xl);
  max-width: 520px;
}

/* ===== Hero CTA stack (insurance-type picker) =====
   Replaces the previous phone-only hero form. Five buttons stacked
   vertically -- Vehicle (primary/accent) followed by four secondary
   lines (Property, Health, Business, Other). Each CTA carries a
   primary label + a one-line muted sub-label so visitors can scan
   without clicking. The .btn--secondary base style assumes a light
   background; on the dark hero gradient we override the surface +
   border via .hero__cta below so the contrast holds. */
.hero__cta-stack {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 20px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.hero__cta:active {
  transform: translateY(1px);
}

/* The Motor / accent CTA inherits .btn--accent (amber on dark green);
   the four non-motor CTAs use .btn--secondary, which we override here
   to render properly on the dark hero gradient. */
.hero__cta.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero__cta.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--green-300);
}

.hero__cta-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hero__cta-sub {
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.85;
}

/* Accent CTA's sub-label needs darker text on the amber background. */
.hero__cta.btn--accent .hero__cta-sub {
  color: rgba(0, 0, 0, 0.75);
}

.hero__reassurance {
  color: var(--stone-400);
  font-size: 0.8125rem;
  margin-top: var(--sp-md);
}

.hero__telegram-link {
  color: var(--stone-500);
  font-size: 0.8125rem;
  margin-top: var(--sp-sm);
}

.hero__telegram-link a {
  color: var(--green-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__telegram-link a:hover {
  color: #fff;
}

/* Below-fold pointer for non-motor visitors. Same low-key style as the
   Telegram link -- not a primary CTA, just a discoverable alternative. */
.hero__alt-line {
  color: var(--stone-500);
  font-size: 0.8125rem;
  margin-top: var(--sp-xs);
}

.hero__alt-line a {
  color: var(--green-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__alt-line a:hover {
  color: #fff;
}

/* ===== Hero call-an-advisor panel (right column) =====
   Click-to-call alternative to the self-serve picker. tel: dials on mobile;
   the number stays visible so desktop visitors can read or copy it. Interim
   number is the broker line -- swap for the short code when it goes live. */
.hero__callout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 28px 24px;
}

.hero__callout-eyebrow {
  color: var(--green-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.hero__callout-text {
  color: var(--stone-300);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: var(--sp-lg);
}

.hero__callout-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  min-height: 64px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 120ms ease, transform 80ms ease;
}

.hero__callout-btn:hover {
  background: var(--green-50);
}

.hero__callout-btn:active {
  transform: translateY(1px);
}

.hero__callout-btn:focus-visible {
  outline: 3px solid var(--green-300);
  outline-offset: 2px;
}

.hero__callout-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--green-600);
}

.hero__callout-btn-inner {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero__callout-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-600);
}

.hero__callout-number {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green-800);
  white-space: nowrap;
}

.hero__callout-note {
  color: var(--stone-400);
  font-size: 0.8125rem;
  margin-top: var(--sp-md);
}

/* ===== Shared Section Styles ===== */
.section-label {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: var(--sp-2xl);
}

.section-context {
  color: var(--stone-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--sp-xl);
}

.how-it-works .section-context {
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--primary-bg);
  border-bottom: 1px solid var(--green-200);
  padding: var(--sp-md) var(--sp-lg);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}

.trust-bar__item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-800);
}

/* ===== How It Works ===== */
.how-it-works {
  padding: var(--section-padding);
}

/* How can we help you */
.help {
  padding: var(--section-padding);
}

.help-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  max-width: 760px;
}

.help-card {
  position: relative;
  display: block;
  background: #fff;
  padding: var(--sp-lg);
  padding-right: var(--sp-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-200);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.help-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.help-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 var(--sp-xs);
}

.help-card__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--stone-600);
  margin: 0;
}

.help-card__arrow {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  color: var(--green-600);
  font-size: 1.125rem;
}

.how-it-works .section-label,
.how-it-works .section-title {
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
}

.step {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  padding-bottom: var(--sp-xl);
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
}

.step__number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.step__content {
  padding-top: var(--sp-xs);
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: 2px;
}

.step__desc {
  font-size: 0.875rem;
  color: var(--stone-500);
  line-height: 1.5;
}

/* ===== Why Eve ===== */
.why-eve {
  background: var(--stone-50);
  padding: var(--section-padding);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  max-width: 640px;
}

.card {
  background: #fff;
  padding: var(--sp-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-200);
  transition: border-color 0.15s ease-out;
}

.card:hover {
  border-color: var(--stone-300);
}

.card__marker {
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: var(--sp-sm);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: var(--sp-xs);
}

.card__desc {
  font-size: 0.875rem;
  color: var(--stone-500);
  line-height: 1.5;
}

/* ===== Trust Block (About) ===== */
.trust-block {
  padding: var(--section-padding);
  background: #fff;
}

.trust-block__inner {
  max-width: 560px;
}

.trust-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: var(--sp-md);
}

.trust-block__text {
  color: var(--stone-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.trust-block__details {
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  color: var(--stone-500);
  font-size: 0.875rem;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--stone-200);
}

/* ===== Telegram CTA ===== */
.telegram-cta {
  background: var(--stone-900);
  padding: var(--section-padding);
}

.telegram-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}

.telegram-cta__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}

.telegram-cta__desc {
  color: var(--stone-400);
  font-size: 1rem;
  max-width: 400px;
}

/* ===== Footer ===== */
.footer {
  background: var(--stone-800);
  border-top: 1px solid var(--stone-700);
  padding: var(--sp-2xl) var(--sp-lg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__logo {
  color: var(--green-300);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.footer__tagline,
.footer__copyright {
  color: var(--stone-500);
  font-size: 0.875rem;
}

.footer__copyright {
  margin-top: var(--sp-xs);
}

.footer__contact {
  text-align: right;
  color: var(--stone-500);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.sr-only:focus {
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  margin: 0;
}

.btn--full {
  width: 100%;
}

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

/* ===== Mobile: 768px and below ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px 20px;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  /* Nav */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--stone-900);
    flex-direction: column;
    padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
    gap: var(--sp-md);
    border-top: 1px solid var(--stone-800);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 60px;
  }

  /* Stack the two columns: picker first, then the call panel. */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .hero__main,
  .hero__callout {
    max-width: 520px;
  }

  /* Keep the phone number on one line on narrow screens. */
  .hero__callout-btn {
    padding: 14px 16px;
    gap: var(--sp-sm);
  }

  .hero__callout-number {
    font-size: 1.25rem;
  }

  .hero__headline {
    font-size: 1.75rem;
  }

  .hero__subtext {
    font-size: 1rem;
  }

  /* Trust bar */
  .trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
    text-align: center;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.25rem;
  }

  /* Telegram CTA */
  .telegram-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: var(--sp-lg);
  }

  .footer__contact {
    text-align: left;
  }

  /* Touch targets: 48px per DESIGN.md */
  .btn {
    min-height: 48px;
  }
}

/* ===== Small mobile: 380px and below ===== */
@media (max-width: 380px) {
  .hero__headline {
    font-size: 1.5rem;
  }

  /* Smallest phones (~320px): the nested hero paddings leave little room for
     the call button. Shrink the number, tighten padding, and allow a wrap as a
     last resort so the number can never spill out of the button/card. */
  .hero__callout-btn {
    padding: 12px 14px;
    gap: var(--sp-sm);
  }

  .hero__callout-number {
    font-size: 1.125rem;
    white-space: normal;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq {
  background: #fff;
  padding: var(--section-padding);
}

.faq__list {
  max-width: 720px;
  border-top: 1px solid var(--stone-200);
}

.faq__item {
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--stone-200);
}

.faq__q {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: var(--sp-sm);
}

.faq__a {
  font-size: 0.9375rem;
  color: var(--stone-600);
  line-height: 1.7;
}
