/* =========================================================
   Farming Inn — stylesheet
   Palette: forest green, warm cream, harvest gold, clay
   ========================================================= */

:root {
  --forest: #2f3d2c;
  --forest-2: #3e5039;
  --sage: #8a9a78;
  --cream: #f6f1e7;
  --cream-2: #efe7d6;
  --paper: #fbf8f2;
  --gold: #c8a165;
  --gold-2: #b48a4c;
  --clay: #a8643f;
  --ink: #2a2a25;
  --muted: #6c6a60;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(31, 41, 28, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--forest);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { color: var(--cream); text-align: center; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .08em; }
.preloader-mark i { display: block; font-size: 2.6rem; color: var(--gold); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1;
  color: var(--forest); margin-bottom: 1.4rem;
}
.section-title em, .hero-title em, .navbar-brand em { font-style: italic; color: var(--gold-2); }
.section-forest .section-title em, .book-side .section-title em { color: var(--gold); }
.section-sub { max-width: 560px; color: var(--muted); }
.text-light-muted { color: rgba(246, 241, 231, .78); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--sans); font-weight: 500; letter-spacing: .06em; border-radius: 999px; padding: .75rem 1.7rem; transition: all .35s var(--ease); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(180, 138, 76, .7); }
.btn-forest { background: var(--forest); color: var(--cream); border: 1px solid var(--forest); }
.btn-forest:hover { background: var(--forest-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(47, 61, 44, .6); }
.btn-outline-forest { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.btn-outline-forest:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light:hover { color: var(--forest); }

/* ---------- Navbar ---------- */
.navbar { padding: 1.3rem 0; transition: all .4s var(--ease); }
.navbar-brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: .5rem; }
.navbar-brand i { color: var(--gold); font-size: 1.5rem; }
.navbar-brand:hover { color: #fff; }
.navbar .nav-link { color: rgba(255, 255, 255, .88); font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 1rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }

.navbar.scrolled { background: rgba(251, 248, 242, .94); backdrop-filter: blur(12px); padding: .7rem 0; box-shadow: 0 6px 30px -12px rgba(0, 0, 0, .15); }
.navbar.scrolled .navbar-brand { color: var(--forest); }
.navbar.scrolled .nav-link { color: var(--ink); }
.navbar.scrolled .nav-link.active, .navbar.scrolled .nav-link:hover { color: var(--forest); }

.navbar-toggler { border: 0; padding: .4rem; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-line { width: 26px; height: 2px; background: #fff; transition: all .3s; }
.navbar.scrolled .toggler-line { background: var(--forest); }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--paper); margin-top: 1rem; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
  .navbar .nav-link { color: var(--ink); }
  .navbar .nav-link::after { display: none; }
  .navbar .btn-gold { margin-top: .5rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; padding: 140px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: -40px 0; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; will-change: transform; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(25, 33, 22, .82) 0%, rgba(25, 33, 22, .45) 55%, rgba(25, 33, 22, .2) 100%); }
.hero .eyebrow { color: var(--gold); }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.04; margin-bottom: 1.5rem; }
.hero-title em { color: var(--gold); }
.hero-lead { font-size: 1.15rem; font-weight: 300; max-width: 560px; color: rgba(255, 255, 255, .85); margin-bottom: 2.2rem; }
.hero-anim { opacity: 0; transform: translateY(28px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.quick-book-wrap { position: relative; margin-top: 4rem; }
.quick-book { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; background: rgba(251, 248, 242, .97); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); opacity: 0; animation: rise 1s var(--ease) 1s forwards; }
.qb-field { padding: .5rem 1.2rem; border-right: 1px solid var(--cream-2); }
.qb-field label { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.qb-field input, .qb-field select { border: 0; background: transparent; width: 100%; font-family: var(--sans); color: var(--ink); font-size: 1rem; padding: .15rem 0; outline: none; }
.quick-book .btn { border-radius: 12px; margin-left: .5rem; }
@media (max-width: 767.98px) {
  .quick-book { grid-template-columns: 1fr 1fr; }
  .qb-field { border-right: 0; border-bottom: 1px solid var(--cream-2); }
  .qb-field:nth-child(3) { grid-column: 1 / -1; }
  .quick-book .btn { grid-column: 1 / -1; margin: .6rem 0 0; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 767.98px), (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-cream { background: var(--cream); }
.section-forest { background: var(--forest); color: var(--cream); }
@media (max-width: 767.98px) { .section { padding: 80px 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-collage { position: relative; padding: 0 12% 14% 0; }
.about-collage .img-main { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about-collage .img-float { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--paper); box-shadow: var(--shadow); }
.about-badge { position: absolute; top: 8%; right: 2%; background: var(--gold); color: #fff; border-radius: 50%; width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.about-badge .num { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.about-badge .txt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; margin-top: .3rem; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) { .about-badge { width: 100px; height: 100px; } .about-badge .num { font-size: 1.5rem; } }
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat i { font-size: 1.8rem; color: var(--gold-2); }
.stat span { font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Rooms ---------- */
.room-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); }
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.room-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-card:hover .room-img img { transform: scale(1.08); }
.room-price { position: absolute; left: 1rem; bottom: 1rem; background: rgba(251, 248, 242, .95); color: var(--forest); font-weight: 600; padding: .4rem 1rem; border-radius: 999px; font-size: .95rem; }
.room-price small { font-weight: 400; color: var(--muted); }
.room-tag { position: absolute; top: 1rem; right: 1rem; background: var(--clay); color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.room-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--forest); margin-bottom: .5rem; }
.room-body p { color: var(--muted); font-size: .96rem; }
.room-meta { list-style: none; padding: 1rem 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--cream-2); border-bottom: 1px solid var(--cream-2); font-size: .88rem; color: var(--ink); }
.room-meta i { color: var(--gold-2); margin-right: .3rem; }
.room-link { margin-top: auto; font-weight: 500; letter-spacing: .06em; color: var(--forest); }
.room-link i { transition: transform .3s; display: inline-block; }
.room-link:hover i { transform: translateX(6px); }

/* ---------- Amenities ---------- */
.amenity { background: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.3rem; height: 100%; transition: all .4s var(--ease); border: 1px solid transparent; }
.amenity:hover { background: var(--paper); border-color: var(--cream-2); transform: translateY(-5px); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .3); }
.amenity i { font-size: 1.9rem; color: var(--gold-2); }
.amenity h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--forest); margin: .6rem 0 .2rem; }
.amenity p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Dining ---------- */
.section-forest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(200, 161, 101, .14), transparent 45%); pointer-events: none; }
.dining-img { border-radius: var(--radius); overflow: hidden; position: relative; }
.dining-img::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.dining-img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.menu-list { margin-top: 2rem; }
.menu-item { display: flex; align-items: baseline; gap: .8rem; padding: .7rem 0; }
.menu-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(246, 241, 231, .35); transform: translateY(-4px); }
.menu-time { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Experiences ---------- */
.exp-card { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; transition: transform .6s var(--ease); }
.exp-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 29, 20, .92) 0%, rgba(22, 29, 20, .2) 55%, transparent 100%); transition: background .5s; }
.exp-card:hover { transform: translateY(-6px); }
.exp-card:hover::before { background: linear-gradient(to top, rgba(22, 29, 20, .95) 0%, rgba(22, 29, 20, .5) 70%, rgba(22, 29, 20, .2) 100%); }
.exp-content { position: relative; padding: 1.8rem; color: #fff; }
.exp-content i { font-size: 1.6rem; color: var(--gold); }
.exp-content h4 { font-family: var(--serif); font-size: 1.7rem; margin: .4rem 0; }
.exp-content p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .94rem; max-height: 0; opacity: 0; overflow: hidden; transition: all .5s var(--ease); }
.exp-card:hover .exp-content p, .exp-card:focus-within .exp-content p { max-height: 80px; opacity: 1; }
@media (hover: none) { .exp-content p { max-height: none; opacity: 1; } }
@media (max-width: 767.98px) { .exp-card { height: 340px; } }

/* ---------- Quote banner ---------- */
.quote-banner { position: relative; padding: 160px 0; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; }
.quote-overlay { position: absolute; inset: 0; background: rgba(25, 33, 22, .62); }
.quote-icon { font-size: 3.5rem; color: var(--gold); line-height: 1; }
.quote-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.3; margin: 1rem auto; max-width: 900px; }
.quote-by { letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--gold); }
@media (max-width: 991.98px), (hover: none) { .quote-banner { background-attachment: scroll; padding: 110px 0; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: rgba(47, 61, 44, .45); opacity: 0; transition: opacity .4s; }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 575.98px) { .gallery-grid { grid-auto-rows: 160px; gap: 10px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(18, 22, 16, .94); display: flex; align-items: center; justify-content: center; padding: 2rem; animation: fadeIn .3s ease; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: var(--cream); font-family: var(--serif); font-size: 1.3rem; margin-top: 1rem; font-style: italic; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; transition: background .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 575.98px) { .lb-nav { top: auto; bottom: 20px; } .lb-prev { left: calc(50% - 58px); } .lb-next { right: calc(50% - 58px); } }

/* ---------- Booking ---------- */
.book-section { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 50%); }
.book-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.book-side { position: relative; background-size: cover; background-position: center; min-height: 420px; }
.book-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(47, 61, 44, .92), rgba(47, 61, 44, .72)); }
.book-side-inner { position: relative; padding: 3.2rem; color: var(--cream); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.book-perks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.book-perks li { padding: .35rem 0; }
.book-perks i { color: var(--gold); margin-right: .5rem; }
.book-form-wrap { padding: 3.2rem; }
@media (max-width: 575.98px) { .book-side-inner, .book-form-wrap { padding: 2rem 1.4rem; } }
.form-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.form-control, .form-select { border: 1px solid var(--cream-2); background-color: var(--cream); border-radius: 12px; padding: .75rem 1rem; font-family: var(--sans); }
.form-control:focus, .form-select:focus { border-color: var(--gold); background-color: #fff; box-shadow: 0 0 0 .2rem rgba(200, 161, 101, .2); }
.form-note { color: var(--forest); font-weight: 500; min-height: 1.5em; margin: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream-2); }
.contact-list i { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--paper); color: var(--gold-2); display: grid; place-items: center; font-size: 1.15rem; }
.contact-list strong { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-list span, .contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--gold-2); }
.socials { display: flex; gap: .7rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--forest); display: grid; place-items: center; color: var(--forest); transition: all .3s; }
.socials a:hover { background: var(--forest); color: var(--cream); transform: translateY(-3px); }
.map-wrap { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; height: 100%; min-height: 420px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) sepia(.15); }

/* ---------- Footer ---------- */
.footer { background: #1f281d; color: rgba(246, 241, 231, .7); padding: 80px 0 30px; font-size: .95rem; }
.footer h5 { font-family: var(--serif); color: var(--cream); font-size: 1.35rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: .25rem 0; }
.footer a { color: rgba(246, 241, 231, .7); transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer-brand { color: var(--cream) !important; }
.newsletter { display: flex; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: .3rem; border: 1px solid rgba(255, 255, 255, .1); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: .5rem 1rem; outline: none; }
.newsletter input::placeholder { color: rgba(246, 241, 231, .5); }
.newsletter button { border: 0; background: var(--gold); color: #fff; width: 42px; height: 42px; border-radius: 50%; transition: background .3s; }
.newsletter button:hover { background: var(--gold-2); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ---------- Back to top & toast ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--forest); color: #fff; }
#siteToast { background: var(--forest); color: var(--cream); border-radius: 14px; }
#siteToast .btn-close { filter: invert(1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-anim, .quick-book { opacity: 1; transform: none; }
}
