/* =========================================================
   Fern Ville — styles.css
   Earthy / natural palette · modern fonts · fast & responsive
   ========================================================= */

:root {
  /* Palette */
  --forest:      #24382d;
  --forest-2:    #2f4a3c;
  --tea:         #6b8f5e;
  --tea-deep:    #567a4a;
  --sage:        #a9bd9d;
  --cream:       #f6f2e8;
  --cream-2:     #efe9db;
  --sand:        #e6ddc9;
  --terracotta:  #c07a4c;
  --terracotta-d:#a9663b;
  --ink:         #2a2d27;
  --muted:       #5f665b;
  --white:       #ffffff;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --shadow: 0 18px 40px -22px rgba(30, 45, 30, .45);
  --shadow-sm: 0 8px 24px -14px rgba(30, 45, 30, .4);
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(60px, 9vw, 120px); }
.eyebrow {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--tea-deep); margin-bottom: .8em;
}
.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head .lead { color: var(--muted); font-size: 1.06rem; }
.section-head.light .eyebrow { color: var(--sage); }
.section-head.light h2 { color: var(--cream); }

/* ---------- Line icons ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.1em; height: 1.1em; flex-shrink: 0; display: inline-block;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 100px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest-2); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: .7em 1.3em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .5em; color: var(--cream); }
.brand-mark { display: grid; place-items: center; color: var(--sage); }
.brand-logo { width: 68px; height: 68px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.22)); transition: transform .2s ease; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { color: var(--cream); font-weight: 500; font-size: .96rem; opacity: .92; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav-cta { border: 1.5px solid rgba(255,255,255,.55); padding: .5em 1.1em; border-radius: 100px; }
.nav-cta:hover { background: rgba(255,255,255,.15); }

/* Scrolled state */
.site-header.scrolled { background: rgba(36,56,45,.94); box-shadow: 0 6px 24px -14px rgba(0,0,0,.5); backdrop-filter: blur(8px); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream);
  background: linear-gradient(160deg, #33513f 0%, #1f2f26 100%);
  background-image: image-set(url("../images/hero.jpg") 1x);
  background-size: cover; background-position: center;
}
.hero { background-image: url("../images/hero.jpg"); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,24,.55) 0%, rgba(20,30,24,.25) 45%, rgba(20,30,24,.75) 100%);
}
.hero-content { position: relative; max-width: 760px; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .25em; }
.hero .eyebrow { color: var(--sage); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; color: rgba(246,242,232,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; right: -14px; bottom: -14px; background: var(--forest-2); color: var(--cream);
  padding: 16px 20px; border-radius: 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.about-badge .num { display: block; font-family: var(--serif); font-size: 1.5rem; }
.about-badge .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--ink); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 1.6em; }
.about-features div { display: flex; align-items: center; gap: .6em; font-weight: 500; color: var(--ink); font-size: .96rem; }
.af-ico { display: inline-flex; align-items: center; color: var(--tea-deep); }
.af-ico .ic { width: 22px; height: 22px; }

/* ---------- Rooms ---------- */
.rooms { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.room {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.room:last-child { margin-bottom: 0; }
.room-reverse .room-media { order: 2; }
.room-media { position: relative; }
.room-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.room-tag {
  position: absolute; top: 16px; left: 16px; background: rgba(36,56,45,.92); color: var(--cream);
  padding: .4em .9em; border-radius: 100px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.room-tag-gold { background: var(--terracotta); }
.room-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.room-body > p { color: var(--muted); }
.room-body em { color: var(--terracotta-d); font-style: italic; }
.room-specs { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.room-specs li { display: flex; align-items: center; gap: .6em; font-size: .94rem; font-weight: 500; }
.room-specs li span { display: inline-flex; align-items: center; color: var(--tea-deep); }
.room-specs li span .ic { width: 20px; height: 20px; }
.room-luxury .room-body h3 { color: var(--forest); }

/* ---------- Experience ---------- */
.experience { background: var(--forest); color: var(--cream); }
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.exp-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px 22px; transition: transform .25s ease, background .25s ease; }
.exp-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.exp-ico { display: block; margin-bottom: .6em; color: var(--sage); }
.exp-ico .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.exp-card h4 { font-size: 1.2rem; color: var(--cream); margin-bottom: .3em; }
.exp-card p { color: rgba(246,242,232,.78); font-size: .94rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.g-item img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }

/* ---------- Location ---------- */
.location { background: var(--cream-2); }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.location-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.location-copy > p { color: var(--muted); }
.loc-list { list-style: none; padding: 0; margin: 1.2em 0 1.8em; display: grid; gap: 12px; }
.loc-list li { display: flex; gap: .7em; align-items: flex-start; font-size: .96rem; }
.loc-list li span { flex-shrink: 0; display: inline-flex; color: var(--tea-deep); margin-top: 2px; }
.loc-list li span .ic { width: 20px; height: 20px; }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Enquire ---------- */
.enquire { background: linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 100%); color: var(--cream); }
.enquire-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.enquire-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--cream); }
.enquire-intro > p { color: rgba(246,242,232,.85); }
.light-eyebrow { color: var(--sage); }
.enquire-contacts { display: grid; gap: 12px; margin-top: 1.6em; }
.ec-item { display: flex; align-items: center; gap: .7em; font-weight: 500; color: var(--cream); opacity: .92; }
.ec-item:hover { opacity: 1; color: var(--sage); }
.ec-item span { display: inline-flex; align-items: center; color: var(--sage); }
.ec-item span .ic { width: 20px; height: 20px; }

.enquire-form { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: .35em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75em .9em; border: 1.5px solid var(--sand); border-radius: 10px;
  background: var(--white); font-family: inherit; font-size: .96rem; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--tea); box-shadow: 0 0 0 3px rgba(107,143,94,.18); }
.field textarea { resize: vertical; }
.form-note { margin: .8em 0 0; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: var(--tea-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #1b2a22; color: var(--cream); padding-top: clamp(40px, 6vw, 70px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand .brand-text { font-size: 1.5rem; }
.footer-logo { width: 88px; height: 88px; border-radius: 50%; }
.footer-brand p { color: rgba(246,242,232,.7); max-width: 280px; margin-top: .8em; }
.footer-links, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-contact a { color: rgba(246,242,232,.82); font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sage); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; }
.footer-base p { margin: 0; font-size: .85rem; color: rgba(246,242,232,.6); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.7); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 60; width: 46px; height: 46px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--forest-2); color: var(--cream); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--forest); transform: translateY(-2px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,22,18,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.lb-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
         background: rgba(27,42,34,.98); backdrop-filter: blur(10px); padding: 10px 0 24px; transform: translateY(-140%);
         transition: transform .35s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px var(--pad); border-top: 1px solid rgba(255,255,255,.08); }
  .nav-cta { border: 0; border-radius: 0; }
  .nav-toggle { display: flex; }
  .site-header:not(.scrolled) { background: rgba(36,56,45,.6); backdrop-filter: blur(6px); }

  .about-grid, .location-grid, .enquire-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-inline: auto; }
  .room, .room-reverse { grid-template-columns: 1fr; }
  .room-reverse .room-media { order: 0; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .about-features, .room-specs, .field-row { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { right: 10px; bottom: -10px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
