/* ============================================================
   Tree Roots Retreat — Global Stylesheet
   Brand guide v1.2 · Mobile-first · No frameworks
   ============================================================ */

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

@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/liberation-sans/LiberationSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/liberation-sans/LiberationSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/liberation-sans/LiberationSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/liberation-sans/LiberationSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --- Custom properties ------------------------------------- */
:root {
  --forest-deep: #1B3A2D;
  --sage: #7A9E7E;
  --sunrise-gold: #C8A96E;
  --earth-red: #9B4A3C;
  --palm-cream: #F5F0E5;
  --ink: #1C1C1C;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Liberation Sans', Calibri, 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --section-pad: 4rem 1.25rem;
  --section-pad-lg: 6rem 2rem;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--palm-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography -------------------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}
h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 300;
  color: var(--sage);
}
h2 em {
  color: var(--sunrise-gold);
  font-style: italic;
}
h3, .h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--forest-deep);
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent-italic { font-style: italic; }

/* --- Utility classes --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: var(--section-pad); }
.section--dark {
  background: var(--forest-deep);
  color: var(--palm-cream);
}
.section--dark h1,
.section--dark h2 { color: var(--palm-cream); }
.section--dark h2 { color: var(--sage); }
.section--sage { background: var(--sage); color: var(--white); }
.text-center { text-align: center; }
.text-gold { color: var(--sunrise-gold); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--sunrise-gold);
  color: var(--forest-deep);
}
.btn--gold:hover { background: #b8993e; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--sunrise-gold);
  color: var(--sunrise-gold);
}
.btn--outline:hover {
  background: var(--sunrise-gold);
  color: var(--forest-deep);
}
.btn--outline-cream {
  background: transparent;
  border: 2px solid var(--palm-cream);
  color: var(--palm-cream);
}
.btn--outline-cream:hover {
  background: var(--palm-cream);
  color: var(--forest-deep);
}

/* --- Navigation -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--forest-deep);
  transition: background 0.3s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--palm-cream);
  white-space: nowrap;
}
.nav-logo__text span { color: var(--sunrise-gold); }
.nav-logo__img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--palm-cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sunrise-gold); }
.nav-links .btn { padding: 0.5rem 1.5rem; font-size: 0.875rem; }
.nav-reserve { margin-left: 0.5rem; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--palm-cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile sidebar */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--forest-deep);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  transition: right 0.35s ease;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--palm-cream);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245,240,229,0.1);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--sunrise-gold); }
.mobile-nav .btn { text-align: center; margin-top: 0.5rem; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  margin-top: 56px;
}
.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(27,58,45,0.45) 0%,
    rgba(27,58,45,0.3) 50%,
    rgba(27,58,45,0.55) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem;
  max-width: 800px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 4rem;
}
.hero h1 {
  color: var(--palm-cream);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero .seo-h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,229,0.75);
  margin-bottom: 1.5rem;
}
.hero .btn { margin-top: 0.5rem; }

/* --- Content sections -------------------------------------- */
.intro { max-width: 700px; margin: 0 auto; }
.intro p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p {
  max-width: 600px;
  color: rgba(28,28,28,0.75);
}
.section--dark .section-header p { color: rgba(245,240,229,0.75); }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  padding: 1.5rem;
  border-left: 3px solid var(--sage);
}
.value-card h3 { margin-bottom: 0.5rem; color: var(--sunrise-gold); }
.value-card p { font-size: 0.9375rem; color: rgba(245,240,229,0.85); margin: 0; }

/* Image + text blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.content-block__image {
  border-radius: 6px;
  overflow: hidden;
}
.content-block__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.content-block__text h2 { margin-bottom: 0.75rem; }
.content-block__text h3 { margin-bottom: 0.5rem; }
.content-block__text p { font-size: 0.9375rem; }

/* Amenities strip */
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.amenity-tag {
  padding: 0.4rem 1rem;
  background: rgba(122,158,126,0.15);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-deep);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card__body { padding: 1.25rem; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { font-size: 0.9375rem; color: rgba(28,28,28,0.75); }

/* Inclusions list */
.inclusions-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.inclusion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.inclusion-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunrise-gold);
  flex-shrink: 0;
}

/* Promise / CTA banner */
.promise-banner {
  text-align: center;
  padding: 3rem 1.25rem;
}
.promise-banner h2 {
  font-family: var(--font-heading);
  color: var(--palm-cream);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
}

/* Beyond-room feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-item h3 { margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9375rem; margin: 0; }

/* Stay the month */
.stay-month-section { text-align: center; }
.stay-month {
  max-width: 650px;
  margin: 0 auto;
}
.stay-month__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sunrise-gold);
  margin-bottom: 1rem;
}
.stay-month h2 {
  margin-bottom: 1.25rem;
}
.stay-month__body {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(245,240,229,0.85);
}

/* Host page specific */
.host-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.host-feature h3 { margin-bottom: 0.5rem; }

/* Reserve placeholder */
.booking-placeholder {
  background: var(--white);
  border: 2px dashed var(--sage);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.booking-placeholder p { color: rgba(28,28,28,0.6); }

/* Reserve info */
.reserve-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.reserve-info-item {
  font-size: 0.9375rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sage);
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--forest-deep);
  color: var(--palm-cream);
  padding: 3rem 1.25rem 1.5rem;
}
.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand .nav-logo__text {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(245,240,229,0.7);
  margin-top: 0.5rem;
}
.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.footer-nav a,
.footer-contact a,
.footer-contact p {
  display: block;
  font-size: 0.875rem;
  color: rgba(245,240,229,0.85);
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--sunrise-gold); }
.footer-address {
  font-size: 0.8125rem;
  color: rgba(245,240,229,0.65);
  line-height: 1.5;
  margin-top: 0.75rem;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,229,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245,240,229,0.5);
}

/* --- WhatsApp widget --------------------------------------- */
.whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.whatsapp-widget:hover { transform: scale(1.08); }
.whatsapp-widget svg { width: 28px; height: 28px; fill: #fff; }

/* --- Responsive -------------------------------------------- */
@media (min-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .inclusions-list { grid-template-columns: 1fr 1fr; }
  .reserve-info { grid-template-columns: 1fr 1fr; }
  .host-features { grid-template-columns: 1fr 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: var(--section-pad-lg); }
  .content-block { grid-template-columns: 1fr 1fr; }
  .content-block--reverse .content-block__image { order: 2; }
  .content-block--reverse .content-block__text { order: 1; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-nav, .nav-overlay { display: none; }
  .hero { min-height: 90vh; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-wrap { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .container { padding: 0; }
}

/* --- Divider ----------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--sage);
  opacity: 0.3;
  margin: 0;
}

/* --- Page-specific overrides ------------------------------- */
/* Wellness page two-col layout */
.wellness-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .wellness-block { grid-template-columns: 2fr 3fr; }
}
.wellness-block__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
}

/* Host page hero can be taller */
.hero--short { min-height: 60vh; }

/* --- Carousel ---------------------------------------------- */
.carousel {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.carousel__track { position: relative; }
.carousel__slide {
  display: none;
}
.carousel__slide.active {
  display: block;
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: rgba(27,58,45,0.6);
  color: var(--palm-cream);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(27,58,45,0.5);
  color: var(--palm-cream);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.carousel__btn:hover { background: rgba(27,58,45,0.8); }
.carousel__btn--prev { left: 0.5rem; }
.carousel__btn--next { right: 0.5rem; }
.carousel__dots {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245,240,229,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel__dot.active { background: var(--sunrise-gold); }
