/* ================================================================== */
/* The Calm Flyer — Shared Design System                              */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/* Design tokens                                                      */
/* ------------------------------------------------------------------ */
:root {
  --blue:       #2B6CB0;
  --blue-d:     #234E80;
  --blue-l:     #EBF4FF;
  --cream:      #FFF8F0;
  --cream-d:    #FFF1E0;
  --coral:      #E8836B;
  --coral-d:    #D46A52;
  --coral-l:    #FFF0EC;
  --teal:       #319795;
  --teal-d:     #2C7A7B;
  --teal-l:     #E6FFFA;
  --text:       #2D3748;
  --text-m:     #4A5568;
  --text-l:     #718096;
  --border:     #E2E8F0;
  --green:      #38A169;
  --red:        #E53E3E;
  --white:      #FFFFFF;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.12);
  --radius:     12px;
  --radius-lg:  20px;
  --max-w:      1120px;
  --max-w-narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Utility                                                            */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.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;
}

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

/* ------------------------------------------------------------------ */
/* Section rhythm                                                     */
/* ------------------------------------------------------------------ */
.section {
  padding: 5rem 0;
}

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

.section--blue {
  background: linear-gradient(135deg, #2B6CB0 0%, #234E80 100%);
  color: var(--white);
}

.section--teal {
  background: linear-gradient(135deg, #319795 0%, #2C7A7B 100%);
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section--blue .section-label,
.section--teal .section-label {
  color: rgba(255,255,255,0.7);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--blue-d);
}

.section--blue .section-title,
.section--teal .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-m);
  max-width: 640px;
  line-height: 1.7;
}

.section--blue .section-subtitle,
.section--teal .section-subtitle {
  color: rgba(255,255,255,0.85);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,131,107,0.4);
}
.btn--coral:hover {
  background: var(--coral-d);
  box-shadow: 0 6px 20px rgba(232,131,107,0.5);
}

.btn--white {
  background: var(--white);
  color: var(--blue-d);
  box-shadow: var(--shadow);
}
.btn--white:hover {
  background: #F7FAFC;
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.25rem;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Cards                                                              */
/* ------------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* Badges / Tags                                                      */
/* ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge--green {
  background: #C6F6D5;
  color: #276749;
}

.badge--blue {
  background: var(--blue-l);
  color: var(--blue);
}

.badge--coral {
  background: var(--coral-l);
  color: #9B2C2C;
}

/* ------------------------------------------------------------------ */
/* Trust bar                                                          */
/* ------------------------------------------------------------------ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-m);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                         */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,248,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
}

.nav__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.nav__brand:hover { text-decoration: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-m);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--blue); text-decoration: none; }

.nav__cta {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--coral);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav__cta:hover {
  background: var(--coral-d);
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav__links.open { display: flex; }

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav__links li:last-child { border-bottom: none; }

  .nav__links a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
  }

  .nav__cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem !important;
  }
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer a {
  color: rgba(255,255,255,0.85);
}
.footer a:hover {
  color: var(--white);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer__disclaimer {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Print                                                              */
/* ------------------------------------------------------------------ */
@media print {
  .nav, .footer, .btn, .flight-input-wrap { display: none !important; }
  body { background: white; }
  .section { padding: 1.5rem 0; }
  .section--blue, .section--teal, .section--alt { background: white; color: var(--text); }
  .section--blue .section-title, .section--teal .section-title { color: var(--blue-d); }
  .section--blue .section-subtitle, .section--teal .section-subtitle { color: var(--text-m); }
}
