/* ================================================================
   ATLANTIC AIR — DESIGN TOKENS
   Palette sampled directly from the client's real logo:
   brand blue #0077B4 (wordmark), gold #FECC07 / orange #ED8E00 (sun),
   teal-cyan #0293CE (wave). Tier badge colors are defined in
   pricing-config.js (kept in sync here for CSS custom properties).
   ================================================================ */
:root {
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef4f8;
  --color-text: #142433;
  --color-text-muted: #566878;
  --color-border: #e0e7ed;

  --color-brand-blue: #0077b4;
  --color-brand-blue-dark: #005a8c;
  --color-brand-blue-darker: #0d2b3d;
  --color-brand-orange: #ed8e00;
  --color-brand-orange-dark: #cf7a00;
  --color-brand-gold: #fecc07;
  --color-brand-teal: #0293ce;

  --color-tier-good: #e04b3f;
  --color-tier-better: #e0a63f;
  --color-tier-best: #3f9e5c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(20, 36, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 36, 51, 0.1);
  --shadow-lg: 0 16px 48px rgba(20, 36, 51, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  background: rgba(0, 119, 180, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-brand-orange);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--color-brand-orange-dark); }

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-brand-blue-dark);
  border: 2px solid var(--color-brand-blue);
}
.btn--secondary:hover { background: var(--color-surface-alt); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.1rem; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.site-header__logo img {
  height: 46px;
  width: auto;
}

.site-header__tagline {
  display: none;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__phone {
  display: none;
  font-weight: 700;
  color: var(--color-brand-blue-dark);
  text-decoration: none;
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .site-header__tagline { display: block; }
  .site-header__phone { display: inline-block; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-brand-blue-darker) 0%, #123a52 55%, var(--color-brand-blue-dark) 100%);
  color: #ffffff;
  padding: 48px 0 40px;
}

.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--color-brand-gold); }

.hero p.hero__subhead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__trust-strip span { display: inline-flex; align-items: center; gap: 8px; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-height: 480px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(13, 43, 61, 0.85), transparent);
  color: #fff;
  padding: 32px 18px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ================================================================
   TRUST BULLETS (What to Expect, compact form)
   ================================================================ */
.trust-bullets {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-bullet {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.trust-bullet__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 119, 180, 0.1);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.trust-bullet h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.trust-bullet p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ================================================================
   QUOTE / QUESTIONNAIRE
   ================================================================ */
.quote-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px 32px;
  border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .quote-panel { padding: 40px 48px 44px; }
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-orange), var(--color-brand-gold));
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 10%;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 28px;
}

.quiz-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.quiz-step--enter {
  opacity: 1;
  transform: translateY(0);
}

.quiz-step__question {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.quiz-step__helper {
  color: var(--color-text-muted);
  margin: 0 0 22px;
  font-size: 0.95rem;
}

.quiz-step__legal {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 18px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-grid--2col {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (min-width: 560px) {
  .card-grid:not(.card-grid--inline) { grid-template-columns: repeat(2, 1fr); }
}

.card-grid--inline {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.option-card:hover {
  border-color: var(--color-brand-blue);
}

.option-card:active { transform: scale(0.98); }

.option-card--selected {
  border-color: var(--color-brand-orange);
  background: rgba(237, 142, 0, 0.06);
}

.option-card--consent {
  align-items: center;
  text-align: center;
  font-weight: 700;
}

.card-grid--inline .option-card {
  align-items: center;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 10px;
}

.option-card__label {
  font-weight: 700;
  font-size: 1rem;
}

.option-card__full {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.option-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.text-input-wrap { margin-top: 4px; }

.text-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.text-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 119, 180, 0.12);
}

.error-msg {
  color: var(--color-tier-good);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 14px;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.quiz-nav__back {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 12px 8px;
}
.quiz-nav__back:hover { color: var(--color-text); }

.submitting-overlay {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 18px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand-orange);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   RESULTS / PRICING CARDS
   ================================================================ */
#results[hidden] { display: none; }

.results-summary {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.results-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 60ch;
  margin: 0 auto 8px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.pricing-grid {
  display: grid;
  gap: 20px;
  margin: 32px 0 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card--recommended {
  border-color: var(--color-tier-best);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-tier-best);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.pricing-card__badge {
  align-self: flex-start;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing-card__product {
  font-size: 1.05rem;
  margin: 4px 0 0;
  min-height: 2.7em;
}

.pricing-card__tier-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0;
  min-height: 2.6em;
}

.pricing-card__monthly {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-brand-blue-dark);
  margin-top: 8px;
}

.pricing-card__monthly strong { font-size: 1.7rem; }

.pricing-card__sale {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card__cta {
  margin-top: auto;
}

.pricing-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 72ch;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.results-error {
  text-align: center;
  padding: 24px;
  font-weight: 600;
}

/* ================================================================
   FREE SERVICE / HOW WE WORK
   ================================================================ */
.steps-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  text-align: center;
  padding: 8px;
}

.step-card__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

.offer-banner {
  background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-blue-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}

.offer-banner h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3.6vw, 2rem); }
.offer-banner p { margin: 0 0 24px; color: rgba(255,255,255,0.85); }

/* ================================================================
   REVIEWS
   ================================================================ */
.reviews-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.review-card__stars { color: var(--color-brand-gold); font-size: 1rem; margin-bottom: 10px; }
.review-card p.review-quote { margin: 0 0 14px; color: var(--color-text); font-size: 0.95rem; }
.review-card__author { font-weight: 700; font-size: 0.88rem; color: var(--color-text-muted); }

/* ================================================================
   ABOUT / OWNER
   ================================================================ */
.about-block {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 800px) {
  .about-block { grid-template-columns: 280px 1fr; }
}

.about-block__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.about-block__photo-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  color: var(--color-text);
}

.faq-item__question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-brand-blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item--open .faq-item__question::after { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-item--open .faq-item__answer {
  max-height: 400px;
  padding-bottom: 18px;
}

/* ================================================================
   SECOND OPINION / FINANCING CTAs
   ================================================================ */
.cta-duo {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .cta-duo { grid-template-columns: repeat(2, 1fr); }
}

.cta-card {
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  color: #fff;
}

.cta-card--financing { background: linear-gradient(135deg, var(--color-brand-teal), var(--color-brand-blue-dark)); }
.cta-card--second-opinion { background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-orange-dark)); }

.cta-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.cta-card p { margin: 0 0 20px; color: rgba(255,255,255,0.88); }

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.final-cta h2 { margin: 0 0 10px; }
.final-cta__summary { color: var(--color-brand-blue-dark); font-weight: 700; min-height: 1.4em; margin-bottom: 6px; }
.final-cta p.final-cta__sub { color: var(--color-text-muted); max-width: 56ch; margin: 0 auto 26px; }

.final-cta__confirmation {
  display: none;
  background: rgba(63, 158, 92, 0.1);
  border: 1px solid rgba(63, 158, 92, 0.3);
  color: #256a3c;
  border-radius: var(--radius-md);
  padding: 16px;
  font-weight: 600;
  margin-top: 18px;
}

.final-cta__confirmation.is-visible { display: block; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--color-brand-blue-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 24px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.site-footer__logo-plate {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: inline-block;
}

.site-footer__logo-plate img { height: 40px; }

.site-footer__contact { font-size: 0.92rem; line-height: 1.8; }
.site-footer__contact a { color: #fff; text-decoration: none; font-weight: 600; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ================================================================
   STICKY MOBILE CTA
   ================================================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(20, 36, 51, 0.1);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: flex;
  gap: 10px;
}

.sticky-cta--visible { transform: translateY(0); }

.sticky-cta .btn { flex: 1; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ================================================================
   MISC / A11Y
   ================================================================ */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 2px;
}

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