/* ─────────────────────────────────────────────────────────────────────────────
   Timeless Travels — Brand CSS
   TICO Reg #T1433643
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --midnight:  #0D1B2A;
  --dusk:      #1B3A5C;
  --horizon:   #2E6B8E;
  --dawn:      #C9A96E;
  --sand:      #F0E6D3;
  --ivory:     #FAF7F2;
  --white:     #FFFFFF;
  --error:     #C0392B;
  --success:   #27AE60;

  --couples:   #C4674A;
  --families:  #2E6B8E;
  --solo:      #7A9E8E;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 16px rgba(13,27,42,0.10);
  --shadow-lg: 0 8px 40px rgba(13,27,42,0.16);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--midnight);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--horizon); text-decoration: none; }
a:hover { color: var(--dawn); }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}
.display-lg { font-size: clamp(2.8rem, 6vw, 5rem); }
.display-md { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.display-sm { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.heading {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
}
.heading-lg { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.heading-md { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.heading-sm { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.body-lg  { font-size: 1.125rem; line-height: 1.75; }
.body-sm  { font-size: 0.9rem; }
.muted    { color: rgba(13,27,42,0.55); }
.gold     { color: var(--dawn); }
.centered { text-align: center; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 720px; }
.container-xs { max-width: 520px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ─── Nav ─────────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: var(--midnight);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--dawn); }

.nav-cta .btn { font-size: 0.85rem; padding: 10px 22px; }

/* ─── Hero ─────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--midnight);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory);
}
.hero-eyebrow {
  color: var(--dawn);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--dawn);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.80);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(250,247,242,0.65);
  font-size: 0.85rem;
}
.hero-trust-item::before {
  content: '✓';
  color: var(--dawn);
  font-weight: 600;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--horizon);
  color: var(--white);
  border-color: var(--horizon);
}
.btn-primary:hover {
  background: var(--dusk);
  border-color: var(--dusk);
  color: var(--white);
}
.btn-gold {
  background: var(--dawn);
  color: var(--midnight);
  border-color: var(--dawn);
}
.btn-gold:hover {
  background: #b8924e;
  border-color: #b8924e;
  color: var(--midnight);
}
.btn-outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}
.btn-outline:hover {
  background: var(--midnight);
  color: var(--ivory);
}
.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250,247,242,0.5);
}
.btn-outline-light:hover {
  background: rgba(250,247,242,0.12);
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 32px; }
.card-img { width: 100%; height: 240px; object-fit: cover; }

/* ─── Segment Cards ─────────────────────────────────────────────────────────────── */
.segment-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--midnight);
}
.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--midnight);
}
.segment-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.segment-card-body {
  padding: 28px 32px 32px;
}
.segment-card-accent {
  width: 40px; height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.segment-card.couples .segment-card-accent { background: var(--couples); }
.segment-card.families .segment-card-accent { background: var(--families); }
.segment-card.solo .segment-card-accent     { background: var(--solo); }

/* ─── Forms ─────────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(13,27,42,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--midnight);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--horizon);
  box-shadow: 0 0 0 3px rgba(46,107,142,0.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

.form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}
@media (max-width: 600px) { .form-box { padding: 28px 20px; } }

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
}
.form-notice {
  font-size: 0.78rem;
  color: rgba(13,27,42,0.5);
  line-height: 1.5;
  margin-top: 16px;
}
.form-success {
  background: #eaf7ee;
  border: 1px solid var(--success);
  color: #1a5c35;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-error-msg {
  background: #fdf0ef;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

/* ─── TICO Badge ──────────────────────────────────────────────────────────────── */
.tico-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--dawn);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 20px;
}
.tico-badge::before { content: '🛡️'; font-size: 0.9rem; }

/* ─── Progress Bar ───────────────────────────────────────────────────────────── */
.funnel-progress {
  background: rgba(201,169,110,0.15);
  height: 3px;
  position: relative;
}
.funnel-progress-fill {
  height: 100%;
  background: var(--dawn);
  transition: width 0.5s ease;
}

/* ─── Dividers ──────────────────────────────────────────────────────────────────── */
.divider {
  width: 48px; height: 2px;
  background: var(--dawn);
  margin: 20px 0;
}
.divider.centered { margin: 20px auto; }

/* ─── Grid Utilities ─────────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ─── Animations ──────────────────────────────────────────────────────────────── */
.animate-fadeup {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-fadeup.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-fadein {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.animate-fadein.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }

/* ─── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--midnight);
  color: rgba(250,247,242,0.65);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,242,0.1);
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.footer-tico {
  font-size: 0.8rem;
  color: var(--dawn);
  font-weight: 500;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(250,247,242,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--dawn); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal {
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 680px;
}
.footer-copy {
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ─── Misc Utilities ─────────────────────────────────────────────────────────── */
.bg-sand  { background: var(--sand); }
.bg-ivory { background: var(--ivory); }
.bg-midnight { background: var(--midnight); }
.bg-dusk  { background: var(--dusk); }
.text-ivory { color: var(--ivory); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ─── Flatpickr Overrides ──────────────────────────────────────────────────── */
.flatpickr-calendar {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--horizon) !important;
  border-color: var(--horizon) !important;
}
.flatpickr-day:hover {
  background: rgba(46,107,142,0.12) !important;
}

/* ─── Admin Dashboard ──────────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  background: var(--midnight);
  color: var(--ivory);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13,27,42,0.08);
}
.admin-table tr:hover td { background: var(--sand); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-new      { background: #e3f0fb; color: #1a5c8a; }
.badge-contacted{ background: #fef9e7; color: #7d6608; }
.badge-qualified{ background: #eaf7ee; color: #1a5c35; }
.badge-booked   { background: #f4ecf7; color: #6c3483; }
.badge-converted{ background: #eaf7ee; color: #145a32; }
.badge-closed   { background: #f2f3f4; color: #616a6b; }
.badge-couples  { background: #fbeee9; color: var(--couples); }
.badge-families { background: #e8f3f8; color: var(--families); }
.badge-solo     { background: #eef4f2; color: var(--solo); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 56px 0; }
  .section-lg { padding: 80px 0; }
  .form-box   { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}

/* ─── Language Switcher ──────────────────────────────────────────────────────── */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 12px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.6);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.lang-btn:hover {
  background: rgba(250,247,242,0.1);
  color: var(--ivory);
  border-color: rgba(250,247,242,0.4);
}
.lang-btn.lang-active {
  background: var(--dawn);
  color: var(--midnight);
  border-color: var(--dawn);
}
/* Hide Google Translate toolbar */
.goog-te-banner-frame,
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { display: none !important; }

/* ─── Mobile Responsive — Book Call ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Stack two-column grids on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Nav adjustments for language switcher */
  #lang-switcher { margin-right: 8px; }
  .lang-btn { padding: 3px 5px; font-size: 0.68rem; }
  .nav-cta .btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* ─── Two-column responsive layout ──────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.top {
  align-items: start;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* On mobile, reverse order on step2 pages so form comes AFTER content */
  .two-col.form-last > *:last-child {
    order: 2;
  }
  .two-col.form-last > *:first-child {
    order: 1;
  }
  /* Why Patricia section on homepage */
  .two-col .card { margin-top: 0; }
  /* Hero sections */
  .couples-hero, .families-hero, .solo-hero {
    padding: 100px 0 48px !important;
  }
  .couples-hero .two-col img,
  .families-hero .two-col img,
  .solo-hero .two-col img {
    display: none; /* hide side image on mobile, hero text takes full width */
  }
  /* Form boxes */
  .form-box { padding: 24px 16px !important; }
  /* Section padding */
  .section { padding: 48px 0 !important; }
}

/* ─── Nav mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-logo { font-size: 1.15rem; }
  .nav-cta .btn.btn-sm { display: none; } /* hide book call btn on very small screens */
  #lang-switcher { margin-right: 0; }
}
@media (max-width: 768px) {
  /* Segment cards stack on step1 already handled — make sure grid-3 stacks too */
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  /* Hero text sizing */
  .hero-sub { font-size: 1rem; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-trust-item { font-size: 0.8rem; }
  /* Step3 guide card */
  .guide-card { margin-bottom: 16px; }
  /* Container padding */
  .container { padding: 0 16px; }
}
