/* ============================================================
   TRAVELSITE — Full Stylesheet
   Recruitment-focused homepage + blog content engine
   ============================================================ */

/* --- Tokens --- */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text1: #1a1a2e;
  --text2: #4a4a5a;
  --text3: #7a7a8a;
  --accent: #c9a84c;
  --accent2: #a88a30;
  --navy: #0d1b2a;
  --navy2: #1b2d45;
  --navy-light: #243b55;
  --gold: #c9a84c;
  --gold-light: #e4d08e;
  --border: #dce0e5;
  --border2: #c8cdd4;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --max-w: 1100px;
  --article-w: 720px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text1);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo span { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0; }

.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,0.7);
  padding: .4rem .75rem; border-radius: 6px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--navy-light); color: #fff; }
.nav-links a.active { background: var(--gold); color: var(--navy); }

/* Legacy nav-tabs (archive/article pages) */
.nav-tabs { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a {
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,0.7);
  padding: .45rem .75rem; border-radius: 6px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-tabs a:hover { background: var(--navy-light); color: #fff; }
.nav-tabs a.active { background: var(--gold); color: var(--navy); }

.nav-cta {
  font-size: .85rem; font-weight: 600; color: var(--navy) !important;
  background: var(--gold); padding: .5rem 1.1rem; border-radius: 6px;
  white-space: nowrap; transition: background .2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ============================================================
   HERO — Full-width with background image
   ============================================================ */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80') center/cover;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.5) 0%, rgba(13,27,42,0.88) 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 680px; color: #fff;
}
.hero-inner h1 {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin-bottom: .75rem;
}
.hero-inner p {
  font-size: 1.1rem; opacity: .92; margin-bottom: 1.5rem; line-height: 1.6;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block; padding: .65rem 1.5rem;
  background: var(--gold); color: var(--navy) !important;
  font-size: .95rem; font-weight: 600; border-radius: 8px;
  transition: background .2s; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem;
}
.section-sm {
  max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem;
}
.section-alt {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
  color: #fff;
}
.section-alt .section-title { color: #fff; }
.section-alt .section-sub { color: rgba(255,255,255,0.7); }
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: .5rem;
}
.section-sub {
  text-align: center; color: var(--text2); margin-bottom: 2rem;
  font-size: .95rem; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.benefit-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.benefit-icon { font-size: 2rem; margin-bottom: .75rem; }
.benefit-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .4rem;
}
.benefit-card p { font-size: .88rem; color: var(--text2); line-height: 1.55; }

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; counter-reset: step;
}
/* Vertical (stacked) steps layout — activated by admin toggle */
.steps-vertical .steps-grid {
  grid-template-columns: 1fr;
  max-width: 550px; margin: 0 auto; gap: 2.5rem;
}
.steps-vertical .step {
  text-align: center;
}
.step { text-align: center; padding: 1rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin-bottom: .75rem;
}
.step h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .3rem; }
.step p { font-size: .88rem; color: rgba(255,255,255,0.7); }

/* Section-alt overrides for steps */
.section-alt .step h3 { color: #fff; }

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem;
}
.team-card { text-align: center; }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .75rem; border: 3px solid var(--gold);
}
.team-card h4 { font-size: .95rem; margin-bottom: .15rem; }
.team-card p { font-size: .8rem; color: var(--text2); }
.team-bio { font-size: .82rem; color: var(--text2); margin-top: .5rem; line-height: 1.5; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1.25rem 0; }
.faq-q {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.faq-q::after {
  content: '+'; font-size: 1.3rem; color: var(--gold);
  transition: transform .2s; flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none; padding-top: .75rem;
  font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
   FORMS — Get Started + Lead Capture
   ============================================================ */
.form-box {
  max-width: 480px; margin: 0 auto; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.form-box label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text2); margin-bottom: .3rem; margin-top: .9rem;
}
.form-box input,
.form-box select,
.form-box textarea {
  width: 100%; padding: .6rem .8rem;
  border: 1px solid var(--border2); border-radius: 6px;
  font-size: .92rem; font-family: var(--font-body); background: var(--bg);
}
.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus { outline: none; border-color: var(--gold); }
.form-box textarea { height: 80px; resize: vertical; }
.form-box button {
  width: 100%; margin-top: 1.5rem; padding: .75rem;
  background: var(--gold); color: var(--navy); border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600; font-family: var(--font-body); cursor: pointer;
  transition: background .2s;
}
.form-box button:hover { background: var(--gold-light); }
.form-msg {
  text-align: center; font-size: .88rem; margin-top: .75rem;
  color: var(--accent2); font-weight: 600; display: none;
}

/* Searchable referrer dropdown */
.ref-dropdown { position: relative; }
.ref-dropdown input { width: 100%; }
.ref-results {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border2); border-top: none;
  border-radius: 0 0 6px 6px; max-height: 200px; overflow-y: auto; z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ref-results.open { display: block; }
.ref-results .ref-option {
  padding: .5rem .8rem; font-size: .9rem; cursor: pointer;
  transition: background .15s;
}
.ref-results .ref-option:hover,
.ref-results .ref-option.highlighted { background: rgba(201,168,76,0.08); }
.ref-results .ref-none { padding: .5rem .8rem; font-size: .85rem; color: var(--text3); }

/* Legacy lead-form (contact page) */
.lead-form {
  max-width: 480px; margin: 2rem auto; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.lead-form h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .75rem; text-align: center; }
.lead-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--text2); margin-bottom: .3rem; margin-top: .75rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--border2);
  border-radius: 6px; font-size: .9rem; font-family: var(--font-body); background: var(--bg);
}
.lead-form textarea { height: 80px; resize: vertical; }
.lead-form button {
  width: 100%; margin-top: 1.25rem; padding: .7rem;
  background: var(--gold); color: var(--navy); border: none; border-radius: 6px;
  font-size: 1rem; font-weight: 600; font-family: var(--font-body); cursor: pointer;
}
.lead-form button:hover { background: var(--accent2); }

/* ============================================================
   CATEGORY TAGS
   ============================================================ */
.cat {
  display: inline-block; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .55rem; border-radius: 4px;
  background: var(--gold); color: var(--navy);
}
.cat-dest { background: #2a6b5a; color: #fff; }
.cat-cruise { background: #2e5fa1; color: #fff; }
.cat-tips { background: var(--gold); color: var(--navy); }
.cat-family { background: #9b5de5; color: #fff; }
.cat-luxury { background: var(--navy); color: var(--gold); }
.cat-budget { background: #e07a2f; color: #fff; }
.cat-culture { background: #c44536; color: #fff; }

/* ============================================================
   BLOG GRID (homepage preview + archive)
   ============================================================ */
.blog-grid, #articleGrid, #archiveGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.ac {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ac:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ac-img { width: 100%; height: 185px; object-fit: cover; }
.ac-body { padding: 1rem 1.15rem; }
.ac-body .cat { margin-bottom: .5rem; }
.ac-body h3 {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; line-height: 1.3; margin-bottom: .4rem; color: var(--text1);
}
.ac-body h3 a { color: inherit; }
.ac-body h3 a:hover { color: var(--accent); }
.ac-body p { font-size: .88rem; color: var(--text2); line-height: 1.55; margin-bottom: .5rem; }
.ac-foot { font-size: .75rem; color: var(--text3); }

.view-all { text-align: center; margin-top: 1.5rem; }
.view-all a {
  font-weight: 600; font-size: .95rem; color: var(--accent);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.view-all a:hover { color: var(--accent2); border-color: var(--gold-light); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrap {
  max-width: var(--article-w); margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem;
}
.article-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .75rem; font-size: .82rem; color: var(--text3);
}
.article-wrap h1 {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; line-height: 1.2; margin-bottom: .75rem; color: var(--text1);
}
.article-lead {
  font-size: 1.1rem; line-height: 1.7; color: var(--text2);
  margin-bottom: 1.5rem; border-left: 3px solid var(--gold); padding-left: 1rem;
}
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.article-wrap h2 {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; margin: 2rem 0 .75rem; color: var(--text1);
}
.article-wrap p { margin-bottom: 1rem; color: var(--text1); }
.article-wrap blockquote {
  border-left: 3px solid var(--gold); padding: .75rem 1rem;
  margin: 1.25rem 0; background: #f0f2f5;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text2);
}
.article-wrap a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.article-wrap a:hover { color: var(--accent2); }

/* Callout box in articles */
.callout {
  background: rgba(201,168,76,0.08); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout p { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }

/* Sources */
.sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sources h3 {
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: .75rem;
}
.sources ul { list-style: none; }
.sources li { font-size: .85rem; color: var(--text2); padding: .3rem 0; }
.sources li a { color: var(--accent); }

/* ============================================================
   NEWSLETTER BOX (articles & archive)
   ============================================================ */
.nl-box {
  max-width: 600px; margin: 2.5rem auto; padding: 2.5rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.nl-box h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.nl-box p { font-size: .9rem; color: var(--text2); margin-bottom: 1.25rem; }
.nl-box form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.nl-box input[type="text"],
.nl-box input[type="email"] {
  flex: 1; padding: .6rem .85rem; border: 1px solid var(--border2);
  border-radius: 6px; font-size: .9rem; font-family: var(--font-body); background: var(--bg);
}
.nl-box input:focus { outline: none; border-color: var(--gold); }
.nl-box button {
  padding: .6rem 1.25rem; background: var(--gold); color: var(--navy);
  border: none; border-radius: 6px; font-size: .9rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: background .2s;
}
.nl-box button:hover { background: var(--gold-light); }
.nl-fine { font-size: .75rem; color: var(--text3); margin-top: .75rem; }
.nl-msg { font-size: .85rem; margin-top: .5rem; color: var(--accent2); font-weight: 600; display: none; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-wrap {
  max-width: var(--article-w); margin: 0 auto; padding: 2.5rem 1.5rem;
}
.about-wrap h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.about-wrap h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .75rem; }
.about-wrap p { margin-bottom: 1rem; color: var(--text1); }

/* ============================================================
   TICKER (blog pages)
   ============================================================ */
.ticker-wrap {
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: .55rem 0;
}
.ticker-track {
  display: flex; gap: 2.5rem;
  animation: ticker-scroll 60s linear infinite; width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { font-size: .8rem; font-weight: 500; color: var(--text2); white-space: nowrap; }
.ticker-track a:hover { color: var(--accent); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  border-top: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: .5rem; color: var(--navy); }
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: .85rem; color: var(--text2); }
.site-footer h4 {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text3); margin-bottom: .75rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.site-footer li a { font-size: .88rem; color: var(--text2); }
.site-footer li a:hover { color: var(--accent); }
.copyright {
  text-align: center; font-size: .75rem; color: var(--text3);
  padding: 1.5rem; border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-tabs a { padding: .4rem .5rem; font-size: .75rem; }
  .hero { min-height: 400px; padding: 2rem 1.5rem; }
  .hero-inner h1 { font-size: 1.8rem; }
  .blog-grid, #articleGrid, #archiveGrid { grid-template-columns: 1fr; }
  .article-wrap h1 { font-size: 1.5rem; }
  .nl-box form { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* --- Responsive Video Embeds --- */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 10px; margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

.team-note { display: none; }