/* =========================================================
   TripConnect — style.css
   Core tokens, reset, layout primitives, header, hero, footer
   ========================================================= */

:root{
  /* Color tokens */
  --navy: #0B2545;
  --navy-2: #123869;
  --azure: #1B6FC9;
  --azure-dark: #0F4E96;
  --sky: #EAF2FB;
  --sky-2: #F5F9FE;
  --white: #FFFFFF;
  --coral: #FF6B35;
  --coral-dark: #E5501C;
  --slate: #475569;
  --slate-light: #8996A8;
  --line: #DCE6F2;
  --success: #1E9E6B;
  --star: #FFB020;

  /* Typography */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Radii / shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11,37,69,0.06);
  --shadow-md: 0 8px 24px rgba(11,37,69,0.10);
  --shadow-lg: 0 20px 48px rgba(11,37,69,0.16);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  margin:0 0 .5em;
  line-height:1.15;
  font-weight:600;
}
p{ margin:0 0 1em; color: var(--slate); }
input, select, textarea{ font-family: inherit; }

:focus-visible{
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--azure);
  margin-bottom:10px;
}
.eyebrow::before{
  content:"";
  width:18px; height:2px;
  background: var(--coral);
  display:inline-block;
}

section{ padding: 72px 0; }
.section-head{
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ font-size:17px; }

.bg-sky{ background: var(--sky-2); }
.bg-navy{ background: var(--navy); color:#fff; }
.bg-navy h2, .bg-navy h3{ color:#fff; }
.bg-navy p{ color: #C7D6EA; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight:600;
  font-size:15px;
  border:2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--coral);
  color:#fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--coral-dark); box-shadow: var(--shadow-md); }
.btn-outline{
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover{ background: rgba(255,255,255,.12); }
.btn-secondary{
  background: var(--white);
  color: var(--azure);
  border-color: var(--line);
}
.btn-secondary:hover{ border-color: var(--azure); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:14px; }

/* =========================
   Header
   ========================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 500;
  height: var(--header-h);
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight:700;
  font-size:21px;
  color: var(--navy);
}
.logo svg{ width:32px; height:32px; }
.logo span{ color: var(--coral); }

.main-nav{ display:flex; }
.main-nav ul{ display:flex; gap:6px; }
.main-nav a{
  display:block;
  padding:10px 14px;
  border-radius: 999px;
  font-weight:600;
  font-size:15px;
  color: var(--navy);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{
  background: var(--sky);
  color: var(--azure-dark);
}

.header-actions{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background:none; border:none;
  border-radius: 10px;
}
.nav-toggle:hover{ background: var(--sky); }
.nav-toggle svg{ width:24px; height:24px; }

.mobile-nav{
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 490;
  padding: 12px 20px 32px;
  overflow-y:auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav a{
  display:block;
  padding:16px 4px;
  font-size:18px;
  font-weight:600;
  border-bottom:1px solid var(--line);
  color: var(--navy);
}
.mobile-nav .btn{ margin-top:20px; }

/* =========================
   Hero
   ========================= */
.hero{
  position:relative;
  overflow:hidden;
  padding: 56px 0 120px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, var(--azure-dark) 100%);
  color:#fff;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.10), transparent 70%);
  pointer-events:none;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items:center;
}
.hero-copy .eyebrow{ color:#BFD9F7; }
.hero-copy .eyebrow::before{ background: var(--coral); }
.hero h1{
  color:#fff;
  font-size: clamp(32px, 4vw, 50px);
  max-width: 16ch;
}
.hero-copy p{
  color:#C7D6EA;
  font-size:18px;
  max-width: 46ch;
  margin-bottom:28px;
}
.hero-stats{
  display:flex;
  gap:28px;
  margin-top:32px;
  flex-wrap:wrap;
}
.hero-stats div strong{
  display:block;
  font-family: var(--font-display);
  font-size:26px;
  color:#fff;
}
.hero-stats div span{
  font-size:13px;
  color:#9FB7DA;
}
.hero-art{
  position:relative;
  display:flex;
  justify-content:center;
}
.hero-art svg{ width:100%; max-width:460px; height:auto; }

/* Search widget */
.search-widget{
  position:relative;
  margin-top: -76px;
  background:#fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow:hidden;
}
.search-tabs{
  display:flex;
  background: var(--sky);
  border-bottom:1px solid var(--line);
}
.search-tab{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 10px;
  background:none;
  border:none;
  border-bottom:3px solid transparent;
  font-weight:700;
  font-size:14px;
  color: var(--slate);
}
.search-tab svg{ width:18px; height:18px; }
.search-tab[aria-selected="true"]{
  color: var(--azure-dark);
  border-bottom-color: var(--coral);
  background: #fff;
}
.search-panels{ padding: 26px 26px 30px; }
.search-panel{ display:none; }
.search-panel.is-active{ display:block; }
.search-fields{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.field label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color: var(--slate-light);
}
.field .input-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  border:1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  background: var(--sky-2);
}
.field .input-wrap svg{ width:18px; height:18px; flex-shrink:0; color: var(--azure); }
.field input, .field select{
  border:none;
  background:transparent;
  width:100%;
  font-size:15px;
  color: var(--navy);
}
.field input:focus, .field select:focus{ outline:none; }
.search-submit{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}
.search-submit .btn{ min-width:220px; }

/* Sticky mobile CTA */
.sticky-cta{
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 400;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11,37,69,.08);
  padding: 12px 16px;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.sticky-cta strong{ font-size:14px; }
.sticky-cta span{ display:block; font-size:12px; color: var(--slate); }

/* =========================
   How it works
   ========================= */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.step{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  position:relative;
}
.step .step-num{
  font-family: var(--font-display);
  font-weight:700;
  font-size:14px;
  color:#fff;
  background: var(--azure);
  width:34px; height:34px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.step h3{ font-size:19px; }
.step p{ font-size:15px; margin-bottom:0; }

/* =========================
   Why us
   ========================= */
.why-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:20px;
}
.why-card{
  text-align:center;
  padding: 26px 16px;
}
.why-card .icon-badge{
  width:56px; height:56px;
  border-radius:16px;
  background: var(--sky);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 16px;
}
.why-card .icon-badge svg{ width:26px; height:26px; color: var(--azure); }
.why-card h3{ font-size:16px; }
.why-card p{ font-size:14px; margin-bottom:0; }

/* =========================
   Partners
   ========================= */
.partners-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding: 28px 0;
}
.partner-badge{
  display:flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-weight:600;
  font-size:16px;
  color: var(--slate);
  opacity:.8;
}
.partner-badge svg{ width:22px; height:22px; color: var(--azure); }

/* =========================
   Newsletter
   ========================= */
.newsletter{
  background: var(--sky);
  border-radius: var(--radius-lg);
  padding: 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.newsletter h3{ font-size:24px; margin-bottom:6px; }
.newsletter p{ margin-bottom:0; max-width:44ch; }
.newsletter-form{
  display:flex;
  gap:10px;
  flex:1;
  min-width:280px;
  max-width:440px;
}
.newsletter-form input{
  flex:1;
  padding: 14px 16px;
  border-radius: 999px;
  border:1.5px solid var(--line);
  background:#fff;
  font-size:15px;
}
.newsletter-form input:focus{ outline:none; border-color: var(--azure); }
.newsletter-note{
  font-size:12px;
  color: var(--slate-light);
  margin-top:8px;
}
.form-success{
  display:none;
  color: var(--success);
  font-weight:600;
  font-size:14px;
}

/* =========================
   Footer
   ========================= */
.site-footer{
  background: var(--navy);
  color:#C7D6EA;
  padding: 64px 0 0;
}
.footer-top{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .logo{ color:#fff; }
.footer-brand p{ color:#9FB7DA; font-size:14px; margin-top:14px; max-width:32ch; }
.footer-col h4{
  color:#fff;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:16px;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ color:#B7C9E2; font-size:14px; }
.footer-col a:hover{ color:#fff; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:38px; height:38px;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background: var(--coral); }
.social-row svg{ width:18px; height:18px; }

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding: 22px 0;
  flex-wrap:wrap;
}
.payment-icons{ display:flex; gap:10px; align-items:center; }
.payment-icons svg{ height:22px; width:auto; }
.footer-bottom small{ font-size:13px; color:#9FB7DA; }
.affiliate-note{
  font-size:12px;
  color:#7F97BC;
  padding: 16px 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 900px;
}

/* Breadcrumb */
.breadcrumb{
  font-size:13px;
  color: var(--slate-light);
  padding: 18px 0 0;
}
.breadcrumb a{ color: var(--azure); }
.breadcrumb span{ margin: 0 6px; }

/* Page hero (inner pages) */
.page-hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--azure-dark) 100%);
  color:#fff;
  padding: 44px 0 96px;
}
.page-hero h1{ color:#fff; font-size: clamp(28px,3.6vw,42px); max-width: 22ch; }
.page-hero p{ color:#C7D6EA; max-width:56ch; font-size:17px; }

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  background:#fff;
  padding:12px 18px;
  border-radius: 8px;
  z-index:1000;
}
.skip-link:focus{ left:20px; top:20px; }

/* Lazy image fade in */
img[loading="lazy"]{
  opacity:0;
  transition: opacity .3s ease;
}
img.is-loaded{ opacity:1; }

.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }
