/* =============================================
   TWNH — Travel More, Spend Less
   Brand CSS — Dark Navy + Sky Blue + White
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --navy:      #202836;
  --navy-deep: #151d28;
  --navy-mid:  #1B2837;
  --blue:      #169beb;
  --blue-dark: #0f7ec0;
  --blue-glow: rgba(22,155,235,0.18);
  --white:     #ffffff;
  --off-white: #f0f4f8;
  --text-muted: #8fa3b8;
  --border:    rgba(235,243,245,0.12);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(22,155,235,0.2);
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p  { color: rgba(255,255,255,0.82); font-weight: 300; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #5cc0f8; }

/* ─── LAYOUT UTILS ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--light { background: var(--off-white); color: var(--navy); }
.section--light p, .section--light li { color: #3a4a5a; }
.section--light h1,.section--light h2,.section--light h3,.section--light h4 { color: var(--navy); }
.text-center { text-align: center; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(27,40,55,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav__logo {
  width: 44px; height: 44px;
  background: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 18px; color: white;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav__name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  color: white; letter-spacing: -0.5px;
}
.nav__links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition); text-decoration: none;
}
.nav__links a:hover { color: var(--blue); }
.nav__cta {
  background: var(--blue); color: white !important;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-weight: 600 !important; font-size: 0.88rem !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--blue-dark) !important; color: white !important; }

/* Mobile nav toggle */
.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, #0d1b2a 100%);
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 70% 40%, rgba(22,155,235,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22,155,235,0.15); border: 1px solid rgba(22,155,235,0.3);
  color: var(--blue); padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero__tag::before { content: '✦'; font-size: 0.7rem; }
.hero__title { margin-bottom: 20px; }
.hero__title span { color: var(--blue); }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.hero__card-title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 20px; font-weight: 600;
}
.hero__stat { margin-bottom: 16px; }
.hero__stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: white; }
.hero__stat-label { font-size: 0.85rem; color: var(--text-muted); }
.hero__badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero__badge {
  background: rgba(22,155,235,0.12); border: 1px solid rgba(22,155,235,0.25);
  color: var(--blue); padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn--primary {
  background: var(--blue); color: white;
  box-shadow: 0 4px 20px rgba(22,155,235,0.3);
}
.btn--primary:hover {
  background: var(--blue-dark); color: white;
  box-shadow: 0 6px 30px rgba(22,155,235,0.45);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--blue); color: var(--blue);
  background: rgba(22,155,235,0.06);
}
.btn--light {
  background: white; color: var(--navy);
}
.btn--light:hover { background: var(--off-white); color: var(--navy); }

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-block;
  color: var(--blue); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub  { color: rgba(255,255,255,0.65); max-width: 100%; font-size: 1.05rem; }

/* ─── FEATURE CARDS ─── */
.features { padding: 90px 0; }
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: rgba(22,155,235,0.35); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(22,155,235,0.12); border: 1px solid rgba(22,155,235,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p  { font-size: 0.92rem; line-height: 1.65; }

/* ─── HOW IT WORKS ─── */
.how-it-works { padding: 90px 0; background: rgba(0,0,0,0.2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 56px; }
.step { position: relative; }
.step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0f6cb3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: white; margin-bottom: 16px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(22,155,235,0.35);
}
.step h4 { margin-bottom: 8px; }
.step p  { font-size: 0.92rem; }

/* ─── DEALS SECTION ─── */
.deals { padding: 90px 0; }
.deals-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 40px; width: fit-content; }
.deals-tab {
  padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition); color: var(--text-muted);
  border: none; background: transparent; font-family: var(--font-head);
}
.deals-tab.active { background: var(--blue); color: white; }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.deal-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all var(--transition);
}
.deal-card:hover { transform: translateY(-4px); border-color: rgba(22,155,235,0.3); box-shadow: var(--shadow-card); }
.deal-card__header {
  background: linear-gradient(135deg, #1a2f45, #0d1b2a);
  padding: 24px; position: relative;
}
.deal-badge {
  position: absolute; top: 16px; right: 16px;
  background: #00d084; color: white;
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  padding: 4px 10px; border-radius: 100px;
}
.deal-card__dest { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; max-width: 250px; line-height: 28px;}
.deal-card__cabin { font-size: 0.8rem; color: var(--text-muted); }
.deal-card__body { padding: 20px 24px; }
.deal-card__price-row { display: flex; align-items: center; gap: 12px; }
.deal-card__price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--blue); }
.deal-card__avg   { font-size: 0.8rem; color: var(--text-muted); }
.deal-card__avg s { color: var(--text-muted); }
.deal-card .btn   { width: 100%; margin-top: 16px; justify-content: center; }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: 90px 0; background: rgba(0,0,0,0.15); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 56px; }
.testi-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
}
.testi-stars { color: #f5c518; font-size: 1rem; margin-bottom: 14px; }
.testi-text  { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0f6cb3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.testi-name  { font-weight: 600; font-size: 0.95rem; }
.testi-role  { font-size: 0.8rem; color: var(--text-muted); }

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(22,155,235,0.15) 0%, rgba(15,110,179,0.08) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-banner__form {
  display: flex; gap: 12px; max-width: 500px; margin: 32px auto 0;
  flex-wrap: wrap;
}
.cta-banner__input {
  flex: 1; min-width: 220px; padding: 14px 20px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: white; font-family: var(--font-body);
  font-size: 0.95rem; outline: none;
  transition: border-color var(--transition);
}
.cta-banner__input:focus { border-color: var(--blue); background: rgba(255,255,255,0.1); }
.cta-banner__input::placeholder { color: var(--text-muted); }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-deep); padding: 60px 0 28px;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p { font-size: 0.92rem; color: var(--text-muted); margin-top: 14px; max-width: 320px; }
.footer__col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--blue); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition);
}
.footer__social a:hover { background: rgba(22,155,235,0.15); color: var(--blue); border-color: rgba(22,155,235,0.3); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 130px 0 70px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { color: var(--text-muted); }

/* ─── LEGAL CONTENT ─── */
.legal-content { padding: 70px 0 90px; }
.legal-content .container { max-width: 820px; }
.legal-body h3 { font-size: 1.3rem; margin: 40px 0 14px; color: white; }
.legal-body h4 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--blue); }
.legal-body p  { margin-bottom: 16px; color: rgba(255,255,255,0.75); line-height: 1.8; }
.legal-body ul { padding-left: 24px; margin-bottom: 16px; }
.legal-body ul li { margin-bottom: 8px; color: rgba(255,255,255,0.75); line-height: 1.7; }
.legal-last-updated { display: inline-block; background: rgba(22,155,235,0.1); border: 1px solid rgba(22,155,235,0.2); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--blue); margin-bottom: 36px; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 90px 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.about-stat { background: rgba(22,155,235,0.08); border: 1px solid rgba(22,155,235,0.2); border-radius: var(--radius-md); padding: 24px; }
.about-stat__num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue); }
.about-stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.founder-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.founder-info { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.founder-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0f6cb3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.founder-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.founder-role { font-size: 0.85rem; color: var(--text-muted); }
.founder-bio  { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.8; }

/* ─── AFFILIATE ─── */
.affiliate-hero { padding: 130px 0 80px; text-align: center; background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid)); }
.affiliate-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin: 56px 0; }
.affiliate-step { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; text-align: center; }
.affiliate-step .step__num { margin: 0 auto 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero__grid     { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .affiliate-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-mid); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; }
  .nav__toggle { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .cta-banner__form { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22,155,235,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(22,155,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,155,235,0); }
}
.animate-up { animation: fadeUp 0.7s ease forwards; }
.animate-up:nth-child(1) { animation-delay: 0.1s; }
.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.3s; }
.animate-up:nth-child(4) { animation-delay: 0.4s; }

/* ─── UTILITY ─── */
.highlight { color: var(--blue); }
.divider { height: 1px; background: var(--border); margin: 0; }
.lock-icon { color: var(--text-muted); font-size: 0.8rem; margin-right: 4px; }
