/*
Theme Name:  Inner Terrain
Theme URI:   https://innerterrain.in
Description: Mindful travel theme for Inner Terrain journeys. Custom Post Types for Destinations and Packages with full booking flow.
Version:     1.0.0
Author:      Inner Terrain
Author URI:  https://innerterrain.in
Text Domain: inner-terrain
*/
/* ── TOKENS ── */
:root {
  --dark:   #0a1f13;
  --dark2:  #0f2a1a;
  --green:  #1e5c35;
  --green2: #2d7a4a;
  --green3: #42a667;
  --sage:   #7ab892;
  --gold:   #c8a84b;
  --gold2:  #ddb95c;
  --cream:  #f5f0e8;
  --cream2: #ede7db;
  --text:   #111111;
  --muted:  #5c5c5c;
  --border: #d8d2c8;
  --white:  #ffffff;
}
/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: all .3s ease; }
button, input, select, textarea { font-family: 'Sora', sans-serif; }
/* ── NAVBAR ── */
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  background: rgba(10,31,19,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,168,75,0.12);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 46px; width: 46px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(200,168,75,0.3); }
.brand-logo-fallback {
  height: 46px; width: 46px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.3);
  background: var(--green2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--white); text-transform: uppercase; }
.brand-tagline { font-size: 0.54rem; font-weight: 300; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0 auto; }
.nav-links a { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.nav-active::after { width: 100%; }
.btn-nav {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  cursor: pointer; transition: all .3s; white-space: nowrap; display: inline-block;
}
.btn-nav:hover { background: var(--gold); color: var(--dark); }
.offcanvas-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; margin-left: auto; line-height: 1; padding: 0; }
/* ── OFFCANVAS ── */
/* ── OFFCANVAS ── */
.offcanvas {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  width: 300px !important;
  background: var(--dark) !important;
  border-left: 1px solid rgba(200,168,75,0.1) !important;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
}
.offcanvas.show {
  visibility: visible;
  transform: translateX(0);
}
.offcanvas.showing {
  visibility: visible;
}
.offcanvas.hiding {
  visibility: visible;
  transform: translateX(100%);
}
.offcanvas-header {
  padding: 1.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.offcanvas-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}
.offcanvas .btn-close {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23ffffff' stroke-width='1.5' d='M2 2l12 12M14 2L2 14'/%3E%3C/svg%3E") center / 1rem no-repeat !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0.7 !important;
  border: none !important;
  flex-shrink: 0;
  filter: none !important;
}
.offcanvas .btn-close:hover {
  opacity: 1 !important;
}
.offcanvas-body { padding: 0 !important; }
.offcanvas-body a {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase;
  transition: all .25s;
}
.offcanvas-body a:hover { color: var(--white); padding-left: 2rem; }
.offcanvas-cta {
  margin: 1.5rem !important;
  background: var(--gold) !important;
  color: var(--dark) !important;
  border: none !important;
  border-bottom: none !important;
  text-align: center;
  border-radius: 0;
}
/* ── SECTION COMMON ── */
section { scroll-margin-top: 72px; }
.s-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green2); display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.s-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--green2); }
.s-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.12; color: var(--text); letter-spacing: -0.025em; margin-bottom: 1rem; }
.s-desc { font-size: 0.92rem; font-weight: 300; color: var(--muted); line-height: 1.85; max-width: 460px; }
/* ── HERO (homepage) ── */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,31,19,0.88) 0%, rgba(10,31,19,0.45) 55%, rgba(10,31,19,0.1) 100%),
    linear-gradient(to top,   rgba(10,31,19,0.65) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2000&q=90') center 30% / cover no-repeat;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 3rem 5.5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.hero-eyebrow-line { width: 28px; height: 1px; background: var(--gold); }
.hero-h1 { font-size: clamp(2.16rem, 6.15vw, 4.5rem); font-weight: 700; line-height: 1.1; color: var(--white); letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 660px; }
.hero-h1 span { color: var(--gold2); }
.hero-sub { font-size: 0.95rem; font-weight: 300; color: rgba(255,255,255,0.7); max-width: 400px; line-height: 1.9; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary-fill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.85rem 2.2rem; background: var(--gold); color: var(--dark); border: 1px solid var(--gold); cursor: pointer; transition: all .3s; }
.btn-primary-fill:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-2px); }
.btn-outline-light { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.85rem 2rem; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); cursor: pointer; transition: all .3s; }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-outline-light svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .3s; }
.btn-outline-light:hover svg { transform: translateX(3px); }
/* ── MARQUEE STRIP ── */
.strip { background: var(--gold); padding: 0.7rem 0; overflow: hidden; }
.strip-track { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 28s linear infinite; }
.strip-item { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark); display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.strip-sep { width: 4px; height: 4px; background: rgba(10,31,19,0.35); transform: rotate(45deg); }
@keyframes marquee { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }
/* ── PHILOSOPHY ── */
.philosophy { padding: 8rem 3rem; background: var(--cream2); position: relative; overflow: hidden; }
.philosophy::before { content: ''; position: absolute; top: -150px; right: -150px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(42,122,74,0.07) 0%, transparent 68%); pointer-events: none; }
.philosophy::after  { content: ''; position: absolute; bottom: -100px; left: -80px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,168,75,0.05) 0%, transparent 68%); pointer-events: none; }
.philosophy-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.phil-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.phil-header-right { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1.5rem; }
.phil-header-desc { font-size: 0.88rem; font-weight: 300; color: var(--muted); line-height: 1.9; }
.btn-phil { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.78rem 1.8rem; border: 1px solid rgba(45,122,74,0.35); color: var(--green2); cursor: pointer; transition: all .3s; }
.btn-phil:hover { background: var(--green2); color: var(--white); }
.phil-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(0,0,0,0.08); }
.phil-pillar { background: var(--cream2); padding: 3rem 2.2rem; position: relative; overflow: hidden; transition: background .4s; }
.phil-pillar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--green2), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.phil-pillar:hover { background: var(--cream); }
.phil-pillar:hover::before { transform: scaleX(1); }
.phil-num { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.22em; color: var(--gold); opacity: 0.8; margin-bottom: 0.9rem; }
.phil-pillar h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-bottom: 0.9rem; line-height: 1.2; }
.phil-pillar p { font-size: 0.82rem; font-weight: 300; color: var(--muted); line-height: 1.82; }
/* ── DESTINATIONS (homepage) ── */
.destinations { padding: 7rem 3rem; background: var(--cream); }
.destinations-inner { max-width: 1280px; margin: 0 auto; }
.dest-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem; }
.dest-viewall { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.2rem; transition: all .3s; }
.dest-viewall:hover { color: var(--text); border-bottom-color: var(--text); }
.dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.dest-card { position: relative; overflow: hidden; cursor: pointer; }
.dest-card img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .6s ease; }
.dest-card:hover img { transform: scale(1.05); }
.dest-veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,31,19,0.88) 100%); }
.dest-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.8rem 2rem; }
.dest-cat { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.dest-name { font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; }
.dest-dur { font-size: 0.72rem; font-weight: 300; color: rgba(255,255,255,0.5); margin-top: 0.35rem; letter-spacing: 0.05em; }
.dest-hover-arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-6px); transition: all .3s; }
.dest-card:hover .dest-hover-arrow { opacity: 1; transform: translateY(0); }
.dest-hover-arrow svg { width: 14px; height: 14px; stroke: var(--white); fill: none; stroke-width: 2; }
/* ── TESTIMONIALS ── */
.testimonials { padding: 7rem 3rem; background: var(--dark); }
.testimonials-inner { max-width: 1280px; margin: 0 auto; }
.testi-head { margin-bottom: 4rem; }
.testi-head .s-eyebrow { color: var(--sage); }
.testi-head .s-eyebrow::before { background: var(--sage); }
.testi-head .s-title { color: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.07); }
.testi-card { background: var(--dark); padding: 2.8rem 2.5rem; transition: background .3s; }
.testi-card:hover { background: var(--dark2); }
.testi-stars { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.18em; margin-bottom: 1.5rem; }
.testi-quote { font-size: 0.95rem; font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.85; margin-bottom: 2rem; }
.testi-rule { width: 28px; height: 1px; background: rgba(255,255,255,0.12); margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.9rem; }
.testi-ava { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.testi-ava img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.testi-loc  { font-size: 0.75rem; font-weight: 300; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }
/* ── CTA SECTION ── */
.cta-section { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800&q=85') center / cover no-repeat; z-index: 0; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,24,14,0.97) 0%, rgba(10,31,19,0.92) 35%, rgba(10,31,19,0.82) 60%, rgba(8,20,13,0.92) 100%); z-index: 1; }
.cta-inner { position: relative; z-index: 3; width: 100%; max-width: 720px; margin: 0 auto; padding: 9rem 3rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.cta-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage); }
.cta-h { font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 700; color: var(--white); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.5rem; }
.cta-h em { font-style: italic; font-family: 'Playfair Display', serif; font-weight: 400; color: var(--gold2); }
.cta-p { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.9; margin-bottom: 2.5rem; max-width: 480px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.btn-cta-primary { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 1rem 2.4rem; background: var(--gold); color: var(--dark); border: 1px solid var(--gold); cursor: pointer; transition: all .3s; }
.btn-cta-primary:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-2px); }
.btn-cta-ghost { display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 2rem; border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.6); cursor: pointer; transition: all .3s; }
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }
/* ── FOOTER ── */
.footer { background: var(--dark2); padding: 5rem 3rem 2.5rem; border-top: 1px solid rgba(200,168,75,0.08); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 4rem; margin-bottom: 3.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand-logo { height: 38px; width: 38px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(200,168,75,0.2); }
.footer-brand-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.footer-p { font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.85; }
.footer-col h5 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.4rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.85rem; font-weight: 300; color: rgba(255,255,255,0.48); }
.footer-links a:hover { color: var(--white); }
.newsletter { display: flex; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; margin-top: 1.2rem; }
.newsletter input { flex: 1; padding: 0.75rem 1rem; background: transparent; border: none; color: var(--white); font-size: 0.82rem; outline: none; min-width: 0; }
.newsletter input::placeholder { color: rgba(255,255,255,0.22); }
.newsletter button { padding: 0.75rem 1.2rem; background: var(--gold); color: var(--dark); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap; transition: background .3s; }
.newsletter button:hover { background: var(--gold2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; font-weight: 300; color: rgba(255,255,255,0.22); }
/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .phil-pillars { grid-template-columns: repeat(2, 1fr); }
  .phil-header { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-custom { height: 62px; padding: 0 1.5rem; }
  .nav-links, .btn-nav { display: none; }
  .offcanvas-toggle { display: block; }
  .hero { margin-top: 62px; height: 520px !important; }
  .hero-inner { padding: 0 1.5rem 4rem; }
  .philosophy { padding: 4.5rem 1.5rem; }
  .destinations { padding: 4.5rem 1.5rem; }
  .testimonials { padding: 4.5rem 1.5rem; }
  .cta-inner { padding: 5rem 1.5rem; }
  .footer { padding: 3.5rem 1.5rem 2rem; }
  .phil-pillars { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card img { height: 260px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand-tagline { display: none; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: center; }
  .newsletter { flex-direction: column; }
  .newsletter button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
