/*
Theme Name: Your Best Travel Deal
Theme URI: https://yourbesttraveldeal.com
Author: Your Best Travel Deal
Description: High-converting travel booking theme for Bali & Java tours. Features hero sections, tour cards, testimonials, and lead capture forms.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ybtd
*/

/* =========================================================
   CSS RESET & BASE
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark: #8B6914;
  --sand: #F5EDD8;
  --deep: #1A1008;
  --deep2: #2C1A08;
  --teal: #1D6B5A;
  --white: #FFFDF8;
  --muted: rgba(255,253,248,0.55);
  --border-gold: rgba(201,168,76,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* =========================================================
   GOOGLE FONTS IMPORT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26,16,8,0.96), transparent);
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(26,16,8,0.98);
  box-shadow: 0 1px 0 var(--border-gold);
}
.site-logo a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  line-height: 1.2;
}
.site-logo span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  font-weight: 400;
}
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  color: rgba(255,253,248,0.75);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--gold-light); }
.nav-book-btn {
  background: var(--gold) !important;
  color: var(--deep) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-book-btn:hover { background: var(--gold-light) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,16,8,0.1) 0%,
    rgba(26,16,8,0.0) 35%,
    rgba(26,16,8,0.65) 70%,
    rgba(26,16,8,1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
  animation: fadeUp 0.8s 0.1s both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.4rem;
  color: var(--white);
  animation: fadeUp 0.8s 0.25s both;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,253,248,0.78);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.55s both;
}
.hero-stats {
  position: absolute;
  bottom: 3.5rem;
  right: 3rem;
  display: flex;
  gap: 2.5rem;
  z-index: 2;
  animation: fadeUp 0.8s 0.7s both;
}
.hero-stat { text-align: right; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,253,248,0.45);
  margin-top: 0.3rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  background: var(--gold);
  color: var(--deep);
  padding: 1rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--deep); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 1rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,253,248,0.32);
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-dark {
  background: var(--deep);
  color: var(--gold-light);
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
  margin: 0 0.5rem 0.5rem;
}
.btn-dark:hover { background: var(--deep2); transform: translateY(-1px); color: var(--gold-light); }

.btn-outline-dark {
  background: transparent;
  color: var(--deep);
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--deep);
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
  margin: 0 0.5rem 0.5rem;
}
.btn-outline-dark:hover { background: var(--deep); color: var(--gold-light); }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background: var(--deep2);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.3rem 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: rgba(255,253,248,0.6);
  letter-spacing: 0.05em;
}
.trust-icon { color: var(--gold); font-size: 0.9rem; }

/* =========================================================
   SECTION BASE
   ========================================================= */
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 500;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.section-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
}

/* =========================================================
   TOURS SECTION
   ========================================================= */
.tours-section {
  background: var(--deep);
  padding: 5.5rem 3rem;
}
.tours-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
}

.tour-card {
  background: var(--deep);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.tour-card:hover .tour-img { transform: scale(1.05); }
.tour-card:hover .tour-hover-overlay { opacity: 1; }

.tour-img-wrap { height: 240px; overflow: hidden; position: relative; }
.tour-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.tour-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--deep);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  z-index: 2;
}
.tour-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,16,8,0.5);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.tour-hover-btn {
  background: var(--gold);
  color: var(--deep);
  padding: 0.7rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s;
}
.tour-hover-btn:hover { background: var(--gold-light); }
.tour-body { padding: 1.4rem; }
.tour-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tour-tag {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.2rem 0.55rem;
}
.tour-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.tour-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 1rem;
}
.tour-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold-light);
}
.tour-price small {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  color: rgba(255,253,248,0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}
.tour-duration { font-size: 0.7rem; color: rgba(255,253,248,0.38); letter-spacing: 0.06em; }
.tour-card.featured { grid-column: span 2; }
.tour-card.featured .tour-img-wrap { height: 360px; }

/* =========================================================
   DESTINATIONS GRID
   ========================================================= */
.dest-section { background: var(--deep); padding: 5rem 3rem; }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.dest-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 260px;
}
.dest-card:first-child { grid-row: span 2; height: auto; }
.dest-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.dest-card:hover .dest-img { transform: scale(1.06); }
.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,16,8,0.85) 0%, transparent 55%);
  pointer-events: none;
}
.dest-label { position: absolute; bottom: 1.2rem; left: 1.2rem; }
.dest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.dest-count {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

/* =========================================================
   WHY US
   ========================================================= */
.why-section { background: var(--deep2); padding: 5.5rem 3rem; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-visual { position: relative; height: 500px; }
.why-img-main {
  width: 75%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 50%;
  height: 55%;
  object-fit: cover;
  border: 5px solid var(--deep2);
}
.why-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.why-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  min-width: 2rem;
}
.why-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.why-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section { background: var(--deep); padding: 5rem 3rem; }
.testimonials-section .section-title { text-align: center; }
.testimonials-section .section-eyebrow { text-align: center; display: block; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.06);
  margin-top: 3rem;
}
.testi-card { background: var(--deep); padding: 2rem; position: relative; }
.testi-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}
.testi-stars { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.testi-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,253,248,0.72);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.testi-name { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.testi-location { font-size: 0.68rem; color: rgba(255,253,248,0.38); letter-spacing: 0.08em; }

/* =========================================================
   BOOKING FORM
   ========================================================= */
.booking-section {
  background: linear-gradient(135deg, var(--deep2) 0%, #1A0A05 100%);
  padding: 5.5rem 3rem;
  text-align: center;
}
.booking-form-wrap {
  max-width: 800px;
  margin: 3rem auto 0;
  background: rgba(255,253,248,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 2.5rem;
  text-align: left;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: span 2; }
.form-label {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.form-input,
.form-select {
  background: rgba(255,253,248,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border 0.3s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--gold); }
.form-input::placeholder { color: rgba(255,253,248,0.22); }
.form-select option { background: #2C1A08; color: var(--white); }
.form-submit { margin-top: 1.5rem; }
.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--deep);
  padding: 1.1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.form-note {
  font-size: 0.7rem;
  color: rgba(255,253,248,0.28);
  margin-top: 0.9rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
  background: var(--gold);
  padding: 3.5rem 3rem;
  text-align: center;
}
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 0.5rem;
}
.cta-strip p { font-size: 0.9rem; color: rgba(26,16,8,0.6); margin-bottom: 2rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,253,248,0.32);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.footer-contact { font-size: 0.78rem; color: rgba(255,253,248,0.45); line-height: 2; }
.footer-contact a { color: var(--gold); }
.footer-col-title {
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,253,248,0.42);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255,253,248,0.22);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =========================================================
   ANIMATIONS & REVEALS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,16,8,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .main-nav.open a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1001; }
  .hero-content { padding: 0 1.5rem 4rem; }
  .hero-stats { display: none; }
  .tour-card.featured { grid-column: span 1; }
  .tour-card.featured .tour-img-wrap { height: 240px; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { height: 300px; }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .dest-card:first-child { grid-row: span 1; height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .tours-section, .why-section, .testimonials-section,
  .booking-section, .dest-section { padding: 4rem 1.5rem; }
  .trust-bar { gap: 1.5rem; padding: 1rem 1.5rem; }
}

@media (max-width: 600px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card:first-child { height: 260px; }
  .hero-title { font-size: 2.5rem; }
  .cta-strip { padding: 2.5rem 1.5rem; }
}
