/*
Theme Name: Reserve Flight Now
Theme URI: https://reserveflightnow.com
Author: Reserve Flight Now
Author URI: https://reserveflightnow.com
Description: Custom theme for Reserve Flight Now - Proof of Onward Travel service
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rfn-theme
*/

/* ============================================================
   DESIGN SYSTEM
   Navy: #0F1F3D | Gold: #C9A84C | Light BG: #F5F6F8
   Fonts: Playfair Display (headings), Inter (body)
   ============================================================ */

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

:root {
  --navy: #0F1F3D;
  --gold: #C9A84C;
  --gold-dark: #a8872e;
  --light-bg: #F5F6F8;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
select { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  color: var(--navy);
}

/* ── LAYOUT ── */
.rfn-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rfn-container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.rfn-container-xs { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.rfn-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.rfn-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.rfn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.rfn-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.rfn-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.rfn-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.2s;
}
.rfn-nav-links a:hover { color: var(--navy); }
.rfn-btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: opacity 0.2s;
  display: inline-block;
}
.rfn-btn-gold:hover { opacity: 0.88; }
.rfn-btn-navy {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: opacity 0.2s;
  display: inline-block;
}
.rfn-btn-navy:hover { opacity: 0.88; }

/* Mobile nav */
.rfn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}
.rfn-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.rfn-mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4B5563;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.rfn-mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .rfn-nav-links, .rfn-navbar-cta { display: none !important; }
  .rfn-mobile-toggle { display: block; }
}

/* ── HERO ── */
.rfn-hero {
  background-color: var(--navy);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 80px 24px;
}
.rfn-hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.rfn-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.rfn-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.rfn-hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 24px;
}
.rfn-hero-h1 .gold { color: var(--gold); }
.rfn-hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
}
.rfn-hero-note {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 28px;
}
.rfn-hero-note p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.rfn-hero-note strong { color: #fff; }
.rfn-hero-note .gold-bold { color: var(--gold); font-weight: 700; }
.rfn-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.rfn-trust-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rfn-trust-badge .check { color: #4ade80; }

/* ── SEARCH FORM ── */
.rfn-search-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 28px;
  max-width: 680px;
}
.rfn-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.rfn-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.rfn-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.rfn-field select,
.rfn-field input[type="date"] {
  width: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #1f2937;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.rfn-field select:focus,
.rfn-field input[type="date"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.rfn-search-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}
.rfn-search-btn:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .rfn-form-row-2, .rfn-form-row-3 { grid-template-columns: 1fr; }
}

/* ── SECTIONS ── */
.rfn-section { padding: 80px 24px; }
.rfn-section-light { background: var(--light-bg); }
.rfn-section-white { background: #fff; }
.rfn-section-navy { background: var(--navy); }

.rfn-section-header { text-align: center; margin-bottom: 56px; }
.rfn-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.rfn-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.rfn-section-title-white { color: #fff; }
.rfn-section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.rfn-section-sub-white { color: rgba(255,255,255,0.7); }

/* ── USE CASE CARDS ── */
.rfn-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .rfn-cards-3 { grid-template-columns: 1fr; } }

.rfn-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.rfn-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.rfn-card-emoji { font-size: 2.5rem; margin-bottom: 16px; }
.rfn-card-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; font-family: 'Playfair Display', Georgia, serif; }
.rfn-card-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── HOW IT
 WORKS ── */
.rfn-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 900px) { .rfn-steps { grid-template-columns: 1fr; } }

.rfn-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rfn-step-icon {
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15,31,61,0.3);
  position: relative;
  z-index: 2;
}
.rfn-step-num { font-size: 0.65rem; font-weight: 800; color: var(--gold); letter-spacing: 0.1em; font-family: 'Inter', sans-serif; }
.rfn-step-emoji { font-size: 1.6rem; }
.rfn-step-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: 'Playfair Display', Georgia, serif; }
.rfn-step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.rfn-steps-line {
  display: none;
  position: absolute;
  top: 40px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--gold);
  opacity: 0.35;
  z-index: 1;
}
@media (min-width: 900px) { .rfn-steps-line { display: block; } }

/* ── ROUTES ── */
.rfn-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rfn-routes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .rfn-routes-grid { grid-template-columns: 1fr; } }

.rfn-route-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}
.rfn-route-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rfn-route-flags { font-size: 1.3rem; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.rfn-route-codes { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.rfn-route-names { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.rfn-route-link { font-size: 0.78rem; font-weight: 700; color: var(--gold); margin-top: 12px; }

/* ── PRICING ── */
.rfn-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 900px) { .rfn-pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

.rfn-plan {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.rfn-plan-popular {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 20px 60px rgba(15,31,61,0.35);
}
.rfn-plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.rfn-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.rfn-plan-popular .rfn-plan-icon { background: rgba(255,255,255,0.15); }
.rfn-plan-name { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; font-family: 'Playfair Display', Georgia, serif; }
.rfn-plan-popular .rfn-plan-name { color: #fff; }
.rfn-plan-delivery { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.rfn-plan-popular .rfn-plan-delivery { color: rgba(255,255,255,0.65); }
.rfn-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.rfn-plan-amount { font-size: 3rem; font-weight: 900; color: var(--gold); font-family: 'Playfair Display', Georgia, serif; }
.rfn-plan-currency { font-size: 0.85rem; color: var(--text-muted); }
.rfn-plan-popular .rfn-plan-currency { color: rgba(255,255,255,0.5); }
.rfn-plan-features { list-style: none; margin-bottom: 28px; flex: 1; }
.rfn-plan-features li { font-size: 0.875rem; color: #4B5563; padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.rfn-plan-popular .rfn-plan-features li { color: rgba(255,255,255,0.8); }
.rfn-plan-features li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.rfn-plan-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: opacity 0.2s;
  display: block;
  font-family: 'Inter', sans-serif;
}
.rfn-plan-btn:hover { opacity: 0.88; }
.rfn-plan-btn-dark { background: var(--navy); color: #fff; }
.rfn-plan-btn-gold { background: var(--gold); color: var(--navy); }

/* ── CTA BANNER ── */
.rfn-cta-banner { text-align: center; padding: 80px 24px; background: var(--navy); }
.rfn-cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.rfn-cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.rfn-cta-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}
.rfn-cta-btn:hover { opacity: 0.88; }

/* ── FAQ ── */
.rfn-faq-list { max-width: 800px; margin: 0 auto; }
.rfn-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.rfn-faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.rfn-faq-question:hover { background: var(--light-bg); }
.rfn-faq-item.open .rfn-faq-question { background: var(--light-bg); }
.rfn-faq-chevron { font-size: 1rem; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.rfn-faq-item.open .rfn-faq-chevron { transform: rotate(180deg); }
.rfn-faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  background: var(--light-bg);
}
.rfn-faq-item.open .rfn-faq-answer { display: block; }

/* ── FOOTER ── */
.rfn-footer { background: var(--navy); color: #fff; padding: 64px 24px 32px; }
.rfn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
@media (max-width: 768px) { .rfn-footer-grid { grid-template-columns: 1fr; } }
.rfn-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rfn-footer-brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.1rem; }
.rfn-footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 320px; margin-bottom: 20px; }
.rfn-footer-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.rfn-footer-trust span { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.rfn-footer-col h4 { font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.rfn-footer-col ul { list-style: none; }
.rfn-footer-col li { margin-bottom: 10px; }
.rfn-footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.rfn-footer-col a:hover { color: #fff; }
.rfn-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── INNER PAGES ── */
.rfn-page-hero {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}
.rfn-page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.rfn-page-hero p { color: rgba(255,255,255,0.65); margin-top: 12px; font-size: 1rem; }

.rfn-prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.rfn-prose h2 { font-size: 1.5rem; margin: 36px 0 12px; color: var(--navy); }
.rfn-prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--navy); }
.rfn-prose p { color: #4B5563; line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.rfn-prose ul { color: #4B5563; line-height: 1.8; margin-bottom: 16px; padding-left: 24px; font-size: 0.95rem; }
.rfn-prose li { margin-bottom: 6px; }
.rfn-prose a { color: var(--gold); text-decoration: underline; }
.rfn-prose .last-updated { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 32px; }

/* ── CONTACT ── */
.rfn-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}
@media (max-width: 700px) { .rfn-contact-grid { grid-template-columns: 1fr; } }
.rfn-contact-form input,
.rfn-contact-form textarea,
.rfn-contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.rfn-contact-form input:focus,
.rfn-contact-form textarea:focus { border-color: var(--gold); }
.rfn-contact-form textarea { min-height: 120px; resize: vertical; }
.rfn-contact-form label { font-size: 0.78rem; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.rfn-contact-info h3 { font-size: 1.2rem; margin-bottom: 16px; }
.rfn-contact-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

/* ── ORDER PAGE ── */
.rfn-order-wrap { max-width: 700px; margin: 0 auto; padding: 60px 24px; }
.rfn-order-step { background: var(--light-bg); border-radius: 14px; padding: 28px; margin-bottom: 24px; }
.rfn-order-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.rfn-order-step-num { background: var(--gold); color: var(--navy); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none; }
