/* ==========================================================
   Thinleygang Nature View Homestay
   Black & white theme: the page stays monochrome so the
   colour photos of the house, farm and food do the talking.
   ========================================================== */

:root {
  --white:    #ffffff;
  --paper:    #fafafa;
  --paper-2:  #f0f0f0;
  --paper-3:  #dcdcdc;
  --mid:      #8a8a8a;
  --ink-soft: #5f5f5f;
  --ink:      #111111;
  --black:    #000000;
  --tape:     rgba(205, 205, 205, .7);

  /* same pairing as dragongalaxytravels.com: Manrope headings, Inter text */
  --head:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:  "Kalam", "Segoe Print", "Comic Sans MS", cursive;

  --header-h: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a, button { -webkit-tap-highlight-color: rgba(0, 0, 0, .08); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: .4em; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75em 1.3em;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:hover  { background: #fff; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; }

.btn-whatsapp, .btn-outline { background: transparent; color: var(--ink); }
.btn-whatsapp:hover, .btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Polaroid prints (used all over) ---------- */
.polaroid {
  position: relative;
  margin: 0;
  padding: 10px 10px 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 26px -14px rgba(0, 0, 0, .45);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 1.2rem;
  line-height: 1.2;
  color: #2a2a2a;
  text-align: center;
  padding: 10px 6px 14px;
}
/* strip of tape */
.polaroid::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--paper-3);
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .45);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 62px; }
.brand-name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
}
.brand-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a:hover {
  color: var(--ink);
  text-decoration: underline wavy currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}
.nav .nav-call {
  padding: .45em .95em;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.nav .nav-call:hover { background: #fff; color: var(--ink); text-decoration: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
/* while the header sits over the hero photo */
.site-header:not(.scrolled):not(.menu-open) .brand-logo { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.site-header:not(.scrolled):not(.menu-open) .brand-name { color: #fff; }
.site-header:not(.scrolled):not(.menu-open) .brand-name small { color: rgba(255, 255, 255, .85); }
.site-header:not(.scrolled):not(.menu-open) .nav a { color: #fff; }
.site-header:not(.scrolled):not(.menu-open) .nav .nav-call { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.site-header:not(.scrolled):not(.menu-open) .nav .nav-call:hover { background: transparent; color: #fff; }
.site-header:not(.scrolled):not(.menu-open) .menu-toggle span { background: #fff; }

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .9) 100%),
    url("../images/hero-house.jpg") center 35% / cover no-repeat;
}
.hero-content {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(60px, 11vh, 120px);
}
.hello {
  display: inline-block;
  margin: 0 0 .2em;
  font-family: var(--hand);
  font-size: 1.9rem;
  color: #fff;
  transform: rotate(-3deg);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: .35em;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hero-lead {
  max-width: 34ch;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, .92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.t-short { display: none; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}
.hero-meta svg { width: 18px; height: 18px; flex: none; fill: #fff; }

.btn-leaf { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.btn-leaf:hover { background: transparent; color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--ink); transform: none; box-shadow: inset 0 0 0 2px #fff; }

.stamp {
  position: absolute;
  right: 7%;
  bottom: 13%;
  width: 150px;
  color: #fff;
  font-family: var(--sans);
  transform: rotate(12deg);
  opacity: .88;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
}
.stamp text { fill: currentColor; }

/* ---------- Route ---------- */
.route { padding: 34px 0 44px; background: var(--paper-2); }
.route-note {
  margin: 0 0 24px;
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--ink);
  text-align: center;
}
.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-line::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 10%;
  right: 10%;
  border-top: 3px dashed rgba(0, 0, 0, .28);
}
.route-line li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.route-line .dot {
  position: relative;
  z-index: 1;
  width: 18px; height: 18px;
  margin: 4px 0 10px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 3px solid var(--ink-soft);
}
.route-line strong { font-family: var(--head); font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.route-line small  { font-size: .92rem; color: var(--ink-soft); }
.route-line .here .dot {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: -13px 0 4px;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}
.route-line .here .dot img { width: 36px; }
.route-line .here strong { font-size: 1.35rem; }
.route-line .here small {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink);
  transform: rotate(-4deg);
}

/* ---------- Welcome ---------- */
.welcome { padding: 100px 0; }
.welcome-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.welcome-photo { transform: rotate(-2.5deg); }
.welcome-photo img { aspect-ratio: 4 / 3.3; }

.letter {
  position: relative;
  padding: 46px 48px 36px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 20px 40px -26px rgba(0, 0, 0, .5);
  transform: rotate(.6deg);
}
.letter::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 38px;
  width: 110px;
  height: 26px;
  background: var(--tape);
  transform: rotate(-4deg);
}
.letter p { color: #333; }
.letter .sign {
  margin: 1.3em 0 0;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Visit ---------- */
.visit { padding: 100px 0; background: var(--paper-2); }
.visit h2 { max-width: 17em; }
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 56px;
}
.way .polaroid { margin-bottom: 26px; }
.way:nth-child(1) .polaroid { transform: rotate(-2deg); }
.way:nth-child(2) .polaroid { transform: rotate(1.6deg); margin-top: 26px; }
.way:nth-child(3) .polaroid { transform: rotate(-1deg); }
.way p { color: var(--ink-soft); margin: 0; }

/* ---------- Farm ---------- */
.farm {
  padding: 110px 0;
  background: #0d0d0d;
  color: #cfcfcf;
  overflow: hidden;
}
.farm h2 { color: #fff; }
.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.fb-quote {
  margin: 34px 0 0;
  padding: 22px 26px;
  border-left: 4px solid #fff;
  background: rgba(255, 255, 255, .06);
}
.fb-quote p { margin: 0; font-family: var(--hand); font-size: 1.28rem; line-height: 1.5; color: #fff; }
.fb-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .95rem; color: rgba(255, 255, 255, .6); }

.farm-board { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.farm-board .polaroid img { aspect-ratio: 3 / 3.8; }
.farm-board .polaroid:nth-child(1) { transform: rotate(-3deg); }
.farm-board .polaroid:nth-child(2) { transform: rotate(2.5deg); margin-top: 44px; }
.farm-board .wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: 64%;
  margin-top: -20px;
  transform: rotate(-1.2deg);
}
.farm-board .wide img { aspect-ratio: 16 / 9; }

/* ---------- Notes (Facebook posts) ---------- */
.notes { padding: 100px 0 76px; overflow: hidden; }
.notes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 46px;
}
.notes-head h2 { margin-bottom: .3em; }
.notes-intro { max-width: 36em; margin: 0; color: var(--ink-soft); }
.btn-fb svg { width: 20px; height: 20px; fill: currentColor; }

/* masonry of post cards */
.posts { columns: 3 290px; column-gap: 24px; }
.post {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 20px 22px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 30px -22px rgba(0, 0, 0, .45);
  transition: transform .35s ease, box-shadow .35s ease;
}
.post:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 26px 40px -24px rgba(0, 0, 0, .55);
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--paper-3);
  object-fit: cover;
}
.post-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.post-who strong { font-family: var(--head); font-weight: 800; font-size: .92rem; letter-spacing: -.02em; color: var(--ink); }
.post-who span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); }
.post-who span::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13.4 21v-7.2h2.4l.4-2.9h-2.8V9.1c0-.8.3-1.4 1.5-1.4h1.4V5.2s-1.3-.2-2.4-.2c-2.3 0-3.7 1.4-3.7 3.9v2h-2.4v2.9h2.4V21z'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.post p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #222; }
.post .post-tags { margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); }

.post-big { background: linear-gradient(160deg, #ffffff, #ebebeb); }
.post-big p {
  padding: 8px 0 4px;
  font-family: var(--hand);
  font-size: 1.8rem;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  animation: bloom 3.6s ease-in-out infinite;
}
@keyframes bloom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.post-photo { position: relative; padding: 8px; }
.post-photo img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: 10px; }
.post-photo figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}

/* cards ease in as they scroll into view (only when JS is running) */
.js .post { opacity: 0; transform: translateY(28px); }
.js .post.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), box-shadow .35s ease;
}
.js .post.in:hover { transform: translateY(-5px) rotate(-.5deg); }

/* ---------- Guests / tour operators ---------- */
.guests {
  position: relative;
  padding: 90px 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
/* big faint leaf in the corner */
.guests::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -30px;
  width: 480px;
  height: 150px;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: .12;
  transform: rotate(-8deg);
  pointer-events: none;
}
.guests-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.kicker {
  margin: 0 0 .9em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.guests h2 { margin: 0; color: #fff; }
.guests .kicker { color: #9a9a9a; }
.guests strong { color: #fff; }
.guests-copy p { margin: 0; font-size: 1.05rem; color: #cfcfcf; }
.guests-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.guests-wa { font-weight: 600; color: #fff; text-decoration: none; }
.guests-wa:hover { text-decoration: underline; }

/* ---------- Photos ---------- */
.photos { padding: 100px 0; background: var(--paper-2); }
.photos h2 { margin-bottom: .2em; }
.photos-intro { font-family: var(--hand); font-size: 1.2rem; color: var(--ink); margin-bottom: 36px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}
.g-item {
  padding: 7px;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 10px 18px -12px rgba(0, 0, 0, .4);
  transition: transform .2s ease;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item:hover { transform: rotate(-1deg) scale(1.02); }
.g-item:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- Find us ---------- */
.find { padding: 100px 0; }
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.steps { margin: 0 0 22px; padding-left: 1.3em; color: #333; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--ink); font-weight: 700; }
.lost {
  display: inline-block;
  margin: 4px 0 28px;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
  transform: rotate(-1.5deg);
}
.lost a { color: var(--ink); font-weight: 700; }
.find-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.map-frame {
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 20px 36px -22px rgba(0, 0, 0, .5);
}
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; background: var(--paper-2); filter: grayscale(1) contrast(1.05); }

/* ---------- Contact ---------- */
.contact { padding: 110px 0 150px; background: #141414; color: #cfcfcf; }
.contact h2 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.big-phone {
  display: inline-block;
  margin: 8px 0 30px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1;
  color: #fff;
  text-decoration: underline wavy rgba(255, 255, 255, .6);
  text-decoration-thickness: 2px;
  text-underline-offset: 12px;
}
.big-phone:hover { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; flex: none; fill: #fff; }
.contact-list a, .contact-list span { color: #fff; font-weight: 500; font-size: 1.08rem; word-break: break-word; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: #fff; text-decoration: underline wavy rgba(255, 255, 255, .6); text-underline-offset: 5px; }

.enquiry {
  position: relative;
  padding: 40px 38px 34px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transform: rotate(-.6deg);
}
.enquiry::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 46px;
  width: 110px;
  height: 26px;
  background: var(--tape);
  transform: rotate(4deg);
}
.enquiry h3 { font-size: 1.8rem; margin-bottom: .1em; }
.form-note { color: var(--ink-soft); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.field label { font-family: var(--hand); font-size: 1.12rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .6em .8em;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}
.field textarea { resize: vertical; }
.form-error { color: var(--ink); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 180px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: 30px;
  background: var(--black);
  color: rgba(255, 255, 255, .7);
  font-size: 1rem;
}
.hills {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 80px;
  display: block;
}
.hills-back  { fill: #0a0a0a; }
.hills-front { fill: var(--black); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr .8fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand img { width: 110px; margin-bottom: 14px; }
.site-footer h4 {
  margin-bottom: 10px;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.3rem;
  color: #fff;
}
.site-footer strong { color: #fff; }
.site-footer a { color: #e0e0e0; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.footer-bottom p { margin: 0; }
.credit a,
.credit a:hover,
.credit a:focus,
.credit a:visited { text-decoration: none; }
.credit a { color: #fff; font-weight: 700; }
.credit a:hover { color: #bdbdbd; }

/* ---------- Loading screen ---------- */
/* hidden unless the inline script in <head> switched it on */
.loader { display: none; }
.is-loading body { overflow: hidden; }
.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #fff;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.is-leaving .loader { opacity: 0; visibility: hidden; }

.loader-mark { position: relative; width: min(230px, 58vw); aspect-ratio: 789 / 244; }
.lz { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the two long leaves sweep in from the left… */
.is-loading .lz-swoosh-top    { animation: lz-wipe .8s cubic-bezier(.65, 0, .35, 1) .1s both; }
.is-loading .lz-swoosh-bottom { animation: lz-wipe .8s cubic-bezier(.65, 0, .35, 1) .25s both; }
/* …then the three small leaves sprout from the stem, one after another, and keep swaying */
.is-loading .lz-leaf-left {
  transform-origin: 80.5% 62%;
  animation: lz-sprout .6s cubic-bezier(.34, 1.56, .64, 1) .75s both, lz-sway 2.6s ease-in-out 1.4s infinite;
}
.is-loading .lz-leaf-tall {
  transform-origin: 82% 66%;
  animation: lz-sprout .6s cubic-bezier(.34, 1.56, .64, 1) .9s both, lz-sway 2.6s ease-in-out 1.6s infinite reverse;
}
.is-loading .lz-leaf-small {
  transform-origin: 81.5% 82%;
  animation: lz-sprout .5s cubic-bezier(.34, 1.56, .64, 1) 1.05s both;
}

.loader-name {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-align: center;
  color: var(--ink);
}
.loader-name small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.is-loading .loader-name { animation: lz-rise .6s ease 1.1s both; }

@keyframes lz-wipe   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lz-sprout { from { opacity: 0; transform: scale(0) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes lz-sway   { 0%, 100% { rotate: 0deg; } 50% { rotate: -4deg; } }
@keyframes lz-rise   { from { opacity: 0; transform: translateY(8px); } }

/* as the loading screen fades, the hero text rises in */
.hero-content > * { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-content > :nth-child(2) { transition-delay: .08s; }
.hero-content > :nth-child(3) { transition-delay: .16s; }
.hero-content > :nth-child(4) { transition-delay: .24s; }
.hero-content > :nth-child(5) { transition-delay: .32s; }
.is-loading:not(.is-leaving) .hero-content > * { opacity: 0; transform: translateY(22px); }

/* ---------- Call button (mobile) ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease;
}
.past-hero .fab { opacity: 1; pointer-events: auto; transform: none; }
.fab:hover { color: #fff; }
.fab svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(0, 0, 0, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 8px solid #fff; }
.lightbox button {
  position: absolute;
  width: 50px; height: 50px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }

@keyframes fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .g-item, .post { transition: none; }
  .js .post { opacity: 1; transform: none; }
  .post-big p { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .nav { gap: 18px; }
  .ways { gap: 34px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16.5px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 22px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-3);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav a { padding: 13px 0; border-bottom: 1px dashed var(--paper-3); font-size: 1.1rem; }
  /* dim the page behind the open menu; tapping it closes the menu */
  .site-header.menu-open::after {
    content: "";
    /* the header's backdrop-filter makes it the containing block, so size from its bottom edge */
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    background: rgba(0, 0, 0, .5);
    animation: fade-in .2s ease;
  }
  .nav .nav-call { margin-top: 16px; border-bottom: 0; text-align: center; }

  .welcome-grid,
  .guests-inner,
  .farm-grid,
  .find-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .stamp { right: 20px; bottom: auto; top: calc(var(--header-h) + 24px); width: 110px; }

  .welcome-grid { gap: 56px; }
  .letter { padding: 40px 28px 30px; }

  .ways { grid-template-columns: 1fr; gap: 56px; max-width: 480px; }
  .way:nth-child(2) .polaroid { margin-top: 0; }

  .farm-grid { gap: 56px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }

  .contact { padding-bottom: 130px; }
  .contact-grid { gap: 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .fab { display: inline-flex; }
}

@media (max-width: 700px) {
  /* portrait crop of the house for phones: smaller file, shows the whole painted corner */
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .08) 18%, rgba(0, 0, 0, .22) 34%, rgba(0, 0, 0, .8) 54%, rgba(0, 0, 0, .95) 100%),
      url("../images/hero-house-mobile.jpg") center top / cover no-repeat;
  }
  .hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }

  .route-note { text-align: left; }
  .route-line { grid-template-columns: 1fr; gap: 20px; padding-left: 4px; }
  .route-line::before {
    top: 10px; bottom: 10px; left: 12px; right: auto;
    border-top: 0;
    border-left: 3px dashed rgba(0, 0, 0, .28);
  }
  .route-line li { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .route-line strong { white-space: nowrap; }
  .route-line small { min-width: 0; line-height: 1.3; }
  .route-line .dot { margin: 0; flex: none; }
  .route-line .here .dot { margin: 0 0 0 -17px; }
  .route-line .here small { transform: rotate(-3deg); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }

  .brand-logo { width: 50px; }
  .brand-name { font-size: 1.15rem; }
  .brand-name small { font-size: .72rem; }

  /* landing page on phones */
  .hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 34px; }
  .hello { font-size: 1.45rem; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 10.4vw, 2.75rem); }
  .hero-lead { max-width: 32ch; font-size: 1.02rem; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero-actions .btn { min-height: 50px; padding: .8em .5em; font-size: .95rem; }
  .t-full { display: none; }
  .t-short { display: inline; }
  .hero-meta { margin-top: 16px; font-size: .88rem; }
  .stamp { width: 84px; right: 14px; top: calc(var(--header-h) + 14px); }

  .welcome, .visit, .notes, .guests, .photos, .find { padding: 72px 0; }
  .farm { padding: 80px 0; }
  .contact { padding: 80px 0 120px; }

  .farm-board { gap: 14px; }
  .farm-board .wide { width: 86%; margin-top: 0; }


  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .g-item { padding: 5px; }

  .enquiry { padding: 34px 20px 26px; transform: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
