/* ============================
   Flaxi Flights — Shared Styles
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #0a1628;
  --ink-soft: #1e2d47;
  --paper: #fbf7f0;
  --paper-warm: #f4ece0;
  --accent: #e85d4e;
  --accent-dark: #c2413a;
  --gold: #d4a44a;
  --sky: #2a6cb8;
  --sky-deep: #143d6e;
  --muted: #6b7280;
  --line: #d9d0bf;
  --success: #2f7a4f;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0;
  font-size: 0.88rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--paper-warm); }
.topbar .phone {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.topbar .phone::before { content: "📞 "; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  display: inline-block;
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.logo-mark::after {
  content: "✈";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 1rem;
  transform: rotate(-35deg);
}
.logo em { color: var(--accent); font-style: normal; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.dropdown { position: relative; }
.dropdown-trigger::after {
  content: " ▾";
  font-size: 0.7em;
  color: var(--muted);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  padding: 0.5rem 0;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
}
.dropdown-menu li a:hover { background: var(--paper-warm); }

.btn-call {
  background: var(--accent);
  color: var(--paper) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 30px;
  font-weight: 600;
}
.btn-call:hover { background: var(--accent-dark); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky) 60%, #3e89c9 100%);
  color: var(--paper);
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,164,74,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--paper); margin-bottom: 1rem; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(251, 247, 240, 0.9);
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============ FLIGHT FORM ============ */
.flight-form {
  background: var(--paper);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  max-width: 100%;
}
.form-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.trip-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.trip-tab {
  padding: 0.4rem 0.9rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 20px;
  transition: all 0.2s;
}
.trip-tab.active {
  background: var(--ink);
  color: var(--paper);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-field.full { grid-column: span 2; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-field input,
.form-field select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.form-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}
.form-footnote a { color: var(--accent); font-weight: 600; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ============ SECTIONS ============ */
section { padding: 4rem 0; }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ============ DEALS ============ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.deal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.deal-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.deal-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--paper);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.deal-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.deal-route {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.deal-route .arrow { color: var(--accent); margin: 0 0.4rem; }
.deal-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.deal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.deal-price {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.deal-price small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.deal-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.deal-cta:hover { background: var(--accent); color: var(--paper); }

/* ============ EXCLUSIVE BANNER ============ */
.exclusive-banner {
  background: linear-gradient(100deg, var(--ink) 0%, var(--sky-deep) 100%);
  color: var(--paper);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.exclusive-banner h2 { color: var(--paper); }
.exclusive-banner p { color: rgba(251,247,240,0.85); max-width: 600px; margin: 0 auto 1.5rem; }
.exclusive-banner .gold-accent { color: var(--gold); font-style: italic; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  text-align: center;
  padding: 1.5rem 1rem;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--paper-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* ============ CONTENT PAGES ============ */
.page-header {
  background: var(--paper-warm);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--accent); }

.content {
  padding: 3rem 0;
  max-width: 860px;
  margin: 0 auto;
}
.content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.content h3 { margin-top: 1.75rem; }
.content p, .content li { color: var(--ink-soft); }
.content ul, .content ol {
  margin: 0 0 1.25rem 1.25rem;
}
.content li { margin-bottom: 0.5rem; }

.callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.callout strong { color: var(--ink); }

/* ============ CTA BLOCK ============ */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0;
}
.cta-block h3 { color: var(--paper); margin-bottom: 0.75rem; font-size: 1.8rem; }
.cta-block p { color: rgba(251,247,240,0.85); margin-bottom: 1.5rem; }
.cta-phone {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cta-phone:hover { background: var(--gold); color: var(--ink); }

/* ============ FOOTER ============ */
.site-footer {
  background: #08111f;
  color: var(--paper-warm);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--paper);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(251,247,240,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(251,247,240,0.8);
}
.footer-disclaimer strong { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(251,247,240,0.6);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--paper-warm);
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
}
