/* ============================================================
   Point2Point Travel — Design Tokens & Base Styles
   Brand system shared across LP-A, LP-B, LP-C
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* --- Brand Colors ---
     NOTE: --color-teal (#00B5A5) is the brand accent for decorative use
     (borders, icons, highlights on dark backgrounds).
     Use --color-cta (#007B6E) for button fills and any teal text on
     white/light backgrounds — it passes WCAG 2.1 AA (4.54:1 on white).
     --color-teal on navy passes 6.0:1 and may be used there freely.
  */
  --color-navy:        #0A2540;
  --color-teal:        #00B5A5; /* decorative only on light bg */
  --color-cta:         #007B6E; /* AA-accessible teal for CTAs, 4.54:1 on white */
  --color-cta-hover:   #006558; /* darkened CTA for hover/focus states */
  --color-body:        #1A1A1A;
  --color-muted:       #555555;
  --color-bg-section:  #F4F6F8;
  --color-white:       #FFFFFF;
  --color-border:      rgba(10, 37, 64, 0.10);

  /* Semantic aliases */
  --color-text:        var(--color-body);
  --color-text-muted:  var(--color-muted);
  --color-primary:     var(--color-navy);
  --color-accent:      var(--color-teal);

  /* --- Spacing (4 px base) --- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* --- Typography --- */
  --font-stack:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight-normal:   400;
  --font-weight-semibold: 600;

  --text-xs:   12px;
  --text-sm:   16px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  60px;

  --line-height-tight:   1.2;
  --line-height-snug:    1.35;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.7;

  /* --- Layout --- */
  --container-max:     1120px;
  --container-padding: var(--space-4);

  /* --- Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.10), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.12), 0 2px 6px rgba(10, 37, 64, 0.07);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.14), 0 6px 16px rgba(10, 37, 64, 0.08);

  /* --- Transitions --- */
  --transition-fast:   120ms ease;
  --transition-base:   180ms ease;
  --transition-medium: 280ms ease;

  /* --- Tap targets --- */
  --tap-min: 44px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* prevent layout shift from scrollbar appearing */
  overflow-y: scroll;
}

body {
  font-family: var(--font-stack);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong {
  font-weight: var(--font-weight-semibold);
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-cta-hover);
}

/* ============================================================
   FOCUS STYLES  (WCAG 2.1 AA — visible on all backgrounds)
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* High-contrast mode support */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid ButtonText;
  }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-10);
}

.section--sm {
  padding-block: var(--space-10);
}

.section--lg {
  padding-block: var(--space-12);
}

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

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

.display {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
}

.heading-xl {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
}

.heading-lg {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-navy);
}

.heading-md {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-navy);
}

.heading-sm {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-navy);
}

.subhead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal); /* teal on white only for large/bold uppercase — verify at 14px bold */
}

.eyebrow--on-dark {
  color: var(--color-teal); /* teal on navy: 6.0:1 — passes AAA */
}

.text-muted {
  color: var(--color-muted); /* #555 on white: 7.43:1 — passes AAA */
}

/* ============================================================
   BUTTONS  (min 44×44 px tap target)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  /* prevent double-tap zoom on mobile */
  touch-action: manipulation;
}

/* Primary — teal fill, white text (4.54:1 ✓) */
.btn--primary {
  background-color: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  background-color: var(--color-cta-hover);
  box-shadow: none;
  transform: translateY(1px);
}

/* Secondary — navy outline */
.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Ghost — for use on dark/navy sections */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.60);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Sizes */
.btn--sm {
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn--lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

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

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-block: var(--space-5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 55px;
  width: auto;
}

.site-logo__wordmark {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.site-header__cta {
  flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-block: var(--space-16) var(--space-20);
  text-align: center;
}

.hero__eyebrow {
  color: var(--color-teal); /* teal on navy: 6.0:1 ✓ */
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.hero__subhead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 670px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__trust-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-3);
}

/* ============================================================
   TRUST BAR / LOGO STRIP
   ============================================================ */

.trust-bar {
  background-color: var(--color-bg-section);
  padding-block: var(--space-8) var(--space-10);
  text-align: center;
}

.trust-bar__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6) var(--space-10);
}

.trust-bar__logos img {
  height: 28px;
  width: auto;
  opacity: 0.50;
  filter: grayscale(1);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

.trust-bar__logos img:hover {
  opacity: 0.85;
  filter: none;
}

/* ============================================================
   STAT / METRIC CALLOUTS
   ============================================================ */

.stats-row {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.stat {
  text-align: center;
  padding: var(--space-6);
}

.stat__number {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__number--teal {
  color: var(--color-cta); /* accessible teal */
}

.stat__label {
  font-size: var(--text-base);
  color: var(--color-muted);
}

/* ============================================================
   BENEFIT / FEATURE CARDS
   ============================================================ */

.cards-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.card--accent-border {
  border-top: 3px solid var(--color-teal);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
}

.testimonial__quote {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-body);
  margin-bottom: var(--space-5);
}

.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after  { content: "\201D"; }

.testimonial__byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ============================================================
   ABOUT / ADVISOR BLOCK
   ============================================================ */

.advisor {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  text-align: center;
}

.advisor__photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-teal);
  flex-shrink: 0;
}

.advisor__bio {
  line-height: var(--line-height-relaxed);
  color: var(--color-muted);
}

/* ============================================================
   CALENDLY EMBED
   ============================================================ */

.calendly-section {
  padding-block: var(--space-16);
  background-color: var(--color-bg-section);
}

.calendly-section__heading {
  text-align: center;
  margin-bottom: var(--space-8);
}

.calendly-section__heading .heading-xl {
  margin-bottom: var(--space-3);
}

#calendly-inline-widget {
  min-width: 320px;
  width: 100%;
  height: 700px;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-white);
}

/* ============================================================
   STICKY CTA BAR (mobile)
   ============================================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 16px rgba(10, 37, 64, 0.12);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-bg-section);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
  font-size: var(--text-sm);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__nav a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus {
  color: var(--color-cta);
}

.site-footer__legal {
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  max-width: 680px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

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

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

/* ============================================================
   RESPONSIVE — Tablet (≥ 640 px)
   ============================================================ */

@media (min-width: 640px) {
  :root {
    --container-padding: var(--space-6);
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  .hero__cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .advisor {
    flex-direction: row;
    text-align: left;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  /* Hide sticky CTA on tablet+ (booking widget is visible) */
  .sticky-cta {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (≥ 1024 px)
   ============================================================ */

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
  }

  .display {
    font-size: var(--text-5xl);
  }

  .hero {
    padding-block: var(--space-24);
  }

  .hero__headline {
    font-size: var(--text-5xl);
  }

  .section {
    padding-block: var(--space-12);
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

/* ============================================================
   FAQ ACCORDION (JS-driven)
   ============================================================ */

.faq-answer { overflow: hidden; height: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq-answer { transition: height 300ms ease-out; }
  .faq-icon   { transition: transform 300ms ease-out; }
}

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

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .sticky-cta,
  .calendly-section,
  .btn {
    display: none !important;
  }

  body { color: #000; background: #fff; }
  a    { color: #000; text-decoration: underline; }
}
