/* =====================================================================
   WHITE COLLAR TOURS — base.css
   Shared design system: tokens, typography, buttons, nav, footer, motion
   ===================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ---- Design tokens ---- */
:root {
  /* color */
  --ink:        #0A1726;
  --navy:       #0E2238;
  --navy-2:     #143150;
  --navy-soft:  #1c3e60;
  --gold:       #C9A24B;
  --gold-light: #E6CB87;
  --gold-deep:  #A8822F;
  --cream:      #F6F2E9;
  --paper:      #FBFAF6;
  --white:      #FFFFFF;
  --slate:      #54647A;
  --slate-2:    #7C8A9C;
  --line:       rgba(10, 23, 38, 0.09);
  --line-strong:rgba(10, 23, 38, 0.16);

  /* type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* layout */
  --container: 1200px;
  --radius-s: 12px;
  --radius:   18px;
  --radius-l: 26px;
  --radius-xl: 36px;

  /* shadow */
  --sh-sm: 0 2px 8px rgba(10,23,38,0.06);
  --sh-md: 0 12px 30px rgba(10,23,38,0.10);
  --sh-lg: 0 30px 70px rgba(10,23,38,0.16);
  --sh-gold: 0 16px 40px rgba(201,162,75,0.30);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---- Typography helpers ---- */
.display { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.center::before { display: none; }

.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.015em; color: var(--navy);
}
.section-title .accent { color: var(--gold-deep); font-style: italic; }
.section-sub { color: var(--slate); font-size: 1.05rem; max-width: 560px; margin-top: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--sh-gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(201,162,75,0.42); }
.btn-primary::after {
  content:""; position:absolute; inset:0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-md); }

.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--sh-sm); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ---- Pill / badge ---- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(201,162,75,0.12); color: var(--gold-deep);
}
.pill.glass { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }

/* ---- Form fields (shared layout primitives; colours set per context) ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-size: 0.95rem;
  appearance: none; -webkit-appearance: none; transition: border .3s, background .3s;
}
.field select { background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }

/* ---- Form success / note (shared) ---- */
.form-note { font-size: 0.78rem; color: var(--slate-2); text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: pageIn .5s var(--ease) both; }
.form-success .fs-ico { width: 72px; height: 72px; border-radius: 50%; background: rgba(40,170,90,.12); color: #28a05a; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .fs-ico svg { width: 36px; height: 36px; }
.form-success h3 { color: var(--navy); }
.form-success p { color: var(--slate); margin-top: 8px; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 10px 0; background: rgba(251,250,246,0.82);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(10,23,38,0.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(201,162,75,.5);
  position: relative;
}
.brand-mark span { font-family: var(--display); font-weight: 700; color: var(--gold-light); font-size: 1.25rem; line-height: 1; }
.brand-text { line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--navy); letter-spacing: -0.01em; display: block; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.site-header.on-hero:not(.scrolled) .brand-text strong { color: var(--white); }
.site-header.on-hero:not(.scrolled) .brand-text small { color: var(--gold-light); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--slate); position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.site-header.on-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.site-header.on-hero:not(.scrolled) .nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 11px 22px; font-size: 0.9rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; flex: none; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .35s var(--ease); }
.burger span:nth-child(1){ top: 16px; } .burger span:nth-child(2){ top: 22px; } .burger span:nth-child(3){ top: 28px; }
.site-header.on-hero:not(.scrolled) .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1){ top:22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity:0; }
body.menu-open .burger span:nth-child(3){ top:22px; transform: rotate(-45deg); }
body.menu-open .burger span { background: var(--navy) !important; }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 99; padding: 110px 26px 40px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-drawer { transform: translateX(0); visibility: visible; }
.mobile-drawer a {
  font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--navy);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer .btn { margin-top: 24px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 80px 0 40px; position: relative; overflow: hidden; }
.site-footer::before {
  content:""; position:absolute; top:-40%; right:-10%; width:480px; height:480px; border-radius:50%;
  background: radial-gradient(circle, rgba(201,162,75,.12), transparent 70%); pointer-events:none;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; position: relative; }
.footer-brand .brand-text strong { color: #fff; }
.footer-about { margin-top: 18px; font-size: 0.95rem; line-height: 1.7; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; margin-top: 22px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff;
  transition: .3s var(--ease);
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 0.94rem; transition: color .3s, padding .3s; }
.footer-col a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact-row { display: flex; gap: 11px; margin-bottom: 14px; font-size: 0.92rem; align-items: flex-start; }
.footer-contact-row svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* =====================================================================
   MOBILE BOTTOM TAB BAR (app-like)
   ===================================================================== */
.tabbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 95; display: none; align-items: center; gap: 4px;
  background: rgba(14,34,56,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 7px 9px;
  box-shadow: 0 16px 40px rgba(10,23,38,0.34); width: calc(100% - 28px); max-width: 420px;
  justify-content: space-between;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 999px; color: rgba(255,255,255,.62);
  font-size: 0.62rem; font-weight: 600; transition: .3s var(--ease);
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--navy); background: var(--gold); }
.tabbar a:not(.active):active { color: #fff; }

/* =====================================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].in[data-reveal="left"],
[data-reveal].in[data-reveal="right"],
[data-reveal].in[data-reveal="scale"] { transform: none; }
[data-delay="1"]{ transition-delay:.08s } [data-delay="2"]{ transition-delay:.16s }
[data-delay="3"]{ transition-delay:.24s } [data-delay="4"]{ transition-delay:.32s }
[data-delay="5"]{ transition-delay:.40s } [data-delay="6"]{ transition-delay:.48s }

@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-16px) } }
@keyframes spin-slow { to { transform: rotate(360deg) } }
@keyframes shimmer { to { background-position: 200% center } }
@keyframes pulse-ring { 0%{ box-shadow: 0 0 0 0 rgba(201,162,75,.5) } 70%{ box-shadow: 0 0 0 16px rgba(201,162,75,0) } 100%{ box-shadow: 0 0 0 0 rgba(201,162,75,0) } }

/* page fade-in on load */
@keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }
body { animation: pageIn .5s ease both; }

::selection { background: var(--gold); color: var(--navy); }

/* focus */
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy-2); border-radius: 99px; border: 3px solid var(--cream); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .tabbar { display: flex; }
  .site-footer { padding-bottom: 100px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
