/* ============================================
   AJI'S FRUIT FARM
   Inspired by The Farm Resorts aesthetic
   ============================================ */

:root {
  --bg:        #f0ede4;
  --bg-alt:    #e8e2d6;
  --bg-dark:   #1b3826;
  --text:      #18180f;
  --muted:     #6b6856;
  --border:    #d4cec3;
  --wa-green:  #25d366;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max: 1200px;
  --gap: 108px;
  --side: 64px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
address { font-style: normal; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

/* LABEL — "01 — SECTION" */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.label--light { color: rgba(255,255,255,0.5); }

/* HEADINGS */
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.8;
  max-width: 54ch;
}

p + p { margin-top: 16px; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--side);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(240, 237, 228, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.nav-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: opacity 0.2s;
}
.nav-wa:hover { opacity: 0.88; }

/* HERO */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px 100px;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  max-width: none;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: none;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* HERO CTA BUTTON */
.hero-cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.48);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.88);
  color: #fff;
}

/* ANCHOR SCROLL OFFSET — compensate for fixed nav */
section[id] { scroll-margin-top: 80px; }

/* SPLIT SECTION */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.split--reverse .split-text { order: 2; }
.split--reverse .split-image { order: 1; }

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap) var(--side);
}

.split-image {
  overflow: hidden;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split-image:hover img { transform: scale(1.03); }

/* COTTAGES */
.cottages {
  padding: var(--gap) var(--side);
  background: var(--bg-alt);
}

.cottages-header {
  margin-bottom: 56px;
}
.cottages-sub {
  margin-top: -16px;
}

/* Cottage teaser grid linking to rooms.html */
.cottage-teaser {
  display: block;
  cursor: pointer;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: clamp(260px, 38vw, 500px);
  margin-bottom: 20px;
  overflow: hidden;
}

.teaser-main {
  overflow: hidden;
}
.teaser-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.teaser-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}
.teaser-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.teaser-side div { overflow: hidden; }

.cottage-teaser:hover .teaser-main img,
.cottage-teaser:hover .teaser-side img { transform: scale(1.03); }

.teaser-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 56, 38, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}
.cottage-teaser:hover .teaser-main::after {
  background: rgba(27, 56, 38, 0.12);
}
.teaser-main { position: relative; }

.teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.cottage-teaser:hover .teaser-cta { gap: 16px; }

.card-body {
  padding: 20px 0 0;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { max-width: none; }

/* EXPLORE */
.explore {
  padding: var(--gap) var(--side);
}

.explore-header {
  margin-bottom: 56px;
}

.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}
.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.activity:hover .activity-img img { transform: scale(1.05); }

.activity-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(27, 56, 38, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.activity { padding-bottom: 16px; }
.activity h3 { margin-bottom: 14px; }
.activity p { max-width: none; }

/* REVIEWS */
.reviews {
  padding: var(--gap) var(--side);
  background: var(--bg-alt);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial {
  max-width: 760px;
  margin: 0 auto 32px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 24px;
  transition: opacity 0.4s;
}

.testimonial blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--border);
  display: block;
  margin-bottom: 16px;
  font-style: normal;
  opacity: 0.9;
}

cite {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  transition: opacity 0.4s;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.dot.active { background: var(--text); border-color: var(--text); }

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rating-stars {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #c8952e;
}

.rating-score {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rating-count {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

/* CONTACT */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.contact-info {
  background: var(--bg-dark);
  color: #fff;
  padding: var(--gap) var(--side);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  color: #fff;
  margin-bottom: 20px;
}

.contact-info address {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

.contact-wa p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  max-width: 38ch;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 14px 28px;
  transition: opacity 0.2s;
}
.btn-wa:hover { opacity: 0.88; }

.contact-map {
  position: relative;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* TEXT LINK — arrow CTA */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  margin-top: 24px;
  transition: gap 0.2s;
}
.text-link:hover { gap: 14px; }

/* HOST QUOTE */
.host-quote {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  margin-top: 24px;
  max-width: none;
  border-left: 3px solid var(--bg-dark);
  padding-left: 20px;
}

/* FOOTER */
footer {
  padding: 36px var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-small a { text-decoration: underline; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-social a {
  color: var(--muted);
  display: flex;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  :root { --side: 40px; --gap: 80px; }
}

@media (max-width: 860px) {
  :root { --side: 28px; --gap: 64px; }

  .nav-links { display: none; }

  .nav-wa {
    font-size: 0;
    padding: 10px 14px;
  }
  .nav-wa svg { width: 20px; height: 20px; }

  .split,
  .contact { grid-template-columns: 1fr; }

  .split-image { aspect-ratio: 4/3; min-height: unset; }
  .split-image img { height: 100%; }

  .split--reverse .split-text { order: 1; }
  .split--reverse .split-image { order: 2; }

  .cards,
  .activities { grid-template-columns: 1fr 1fr; }

  .contact-map { height: 320px; position: relative; }
  .contact-map iframe { position: static; height: 320px; }

  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  :root { --side: 20px; }

  .cards,
  .activities { grid-template-columns: 1fr; }

  .hero-content h1 { letter-spacing: 0; }

  .teaser-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 6px;
  }
  .teaser-main { aspect-ratio: 4/3; }
  .teaser-side {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }
  .teaser-side img { aspect-ratio: 1/1; height: auto; }
}
