/* ============================================================
   Conifer House — Mere, Cheshire
   Palette: white / warm neutral, gold accent, graded greys
   ============================================================ */

:root {
  --paper:      #ffffff;
  --shell:      #faf9f7;
  --mist:       #f2f0ec;
  --rule:       #e3dfd8;

  --ink:        #1c1d1e;
  --graphite:   #3a3b3d;
  --slate:      #6e6f72;
  --ash:        #9a9894;

  --gold:       #b08d4f;
  --gold-light: #c9a86a;
  --gold-pale:  #efe5d2;

  --serif: "Cormorant Garamond", "Didot", "Hoefler Text", Garamond, "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --measure: 1240px;
  --gut: clamp(1.5rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.005em;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 1.6rem;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--slate);
  max-width: 54ch;
}

section { padding-block: clamp(5rem, 11vw, 9.5rem); }
section.tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.shell { background: var(--shell); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gut);
  transition: background 0.45s ease, padding 0.45s ease, box-shadow 0.45s ease;
}

.nav__mark {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.45s ease;
}

.nav__links { display: flex; gap: 2.4rem; align-items: center; }

.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s ease;
  position: relative;
  padding-block: 0.2rem;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.35s ease;
}

.nav__links a:hover::after { width: 100%; }

.nav.is-solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--rule);
  padding-block: 1.05rem;
}
.nav.is-solid .nav__mark { color: var(--ink); }
.nav.is-solid .nav__links a { color: var(--graphite); }
.nav.is-solid .nav__links a:hover { color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  width: 34px;
}
.nav__toggle span {
  display: block;
  height: 1px;
  background: #fff;
  margin: 6px 0;
  transition: background 0.4s ease;
}
.nav.is-solid .nav__toggle span { background: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Bias upward so the gables and roofline stay in frame when the
     landscape photograph is cropped to a tall viewport. */
  object-position: center 32%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(16,17,18,0.46) 0%,
      rgba(16,17,18,0.08) 26%,
      rgba(16,17,18,0.34) 52%,
      rgba(16,17,18,0.72) 76%,
      rgba(16,17,18,0.90) 100%);
}

.hero__inner { position: relative; width: 100%; }

.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #e0c694;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  color: #fff;
  font-size: clamp(3.1rem, 10vw, 7.4rem);
  margin-bottom: 1.1rem;
}

.hero__place {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 300;
}

.hero__meta {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.7rem;
}
.hero__meta div { color: rgba(255,255,255,0.92); }
.hero__meta strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 300;
  color: #fff;
}
.hero__meta span {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- intro ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.prose p { margin: 0 0 1.4rem; }
.prose p:last-child { margin-bottom: 0; }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 2rem;
}

.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 3 / 2; }

/* ---------- stat band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.stats div {
  padding: clamp(2rem, 4vw, 3rem) 1.4rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.stats div:last-child { border-right: 0; }
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.stats span {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- accommodation ---------- */

.sched { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }

.sched h3 {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.sched ul { list-style: none; margin: 0; padding: 0; }
.sched li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.93rem;
}
.sched li span:first-child { color: var(--ink); }
.sched li span:last-child { color: var(--ash); white-space: nowrap; font-size: 0.86rem; }

/* ---------- plans ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.plan { text-align: center; }
.plan img {
  width: 100%;
  height: auto;
  background: #fff;
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
}
.plan figcaption {
  margin-top: 1.1rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- specification ---------- */

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3.5vw, 2.8rem); }

.spec article {
  background: var(--paper);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  border: 1px solid var(--rule);
}
.spec h3 {
  font-size: 1.22rem;
  margin-bottom: 1.1rem;
}
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.62rem;
  font-size: 0.89rem;
  color: var(--slate);
  line-height: 1.6;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 5px; height: 1px;
  background: var(--gold);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery figure:hover img { transform: scale(1.04); }

.g-a { grid-column: span 7; aspect-ratio: 3 / 2; }
.g-b { grid-column: span 5; aspect-ratio: 3 / 2; }
.g-c { grid-column: span 5; aspect-ratio: 3 / 2; }
.g-d { grid-column: span 7; aspect-ratio: 3 / 2; }
.g-e { grid-column: span 6; aspect-ratio: 16 / 9; }
.g-f { grid-column: span 6; aspect-ratio: 16 / 9; }

/* ---------- location ---------- */

.dist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); margin-top: 3rem; }
.dist div { background: var(--shell); padding: clamp(1.4rem, 3vw, 2.1rem) 0.8rem; text-align: center; }
.dist strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.dist em {
  display: block;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.45rem 0 0.6rem;
}
.dist span { font-size: 0.78rem; color: var(--slate); }

.footnote { font-size: 0.74rem; color: var(--ash); margin-top: 1.5rem; font-style: italic; }

/* ---------- enquiry ---------- */

.enquire { background: var(--ink); color: #fff; }
.enquire .section-title { color: #fff; }
.enquire .lede { color: rgba(255,255,255,0.68); }

.price {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--gold-light);
  line-height: 1;
  margin: 0 0 1.4rem;
}
.price span {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.nav__cta { color: var(--gold-light) !important; }
.nav.is-solid .nav__cta { color: var(--gold) !important; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.6rem; }
.form .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 300;
  padding: 0.6rem 0;
  transition: border-color 0.35s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-light);
}

.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.05rem 2.8rem;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); }

/* Honeypot. Hidden from people and screen readers; bots still fill it. */
.trap {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__privacy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.34);
  margin: 0.9rem 0 0;
}

.form__note { font-size: 0.82rem; margin-top: 1.1rem; min-height: 1.3em; }
.form__note.ok { color: var(--gold-light); }
.form__note.err { color: #e5a5a5; }

.contact-card { border-left: 1px solid rgba(255,255,255,0.16); padding-left: clamp(1.6rem, 4vw, 3rem); }
.contact-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.contact-card p { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin: 0 0 0.5rem; }
.contact-card a { color: var(--gold-light); }
.contact-card a:hover { color: #fff; }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.4rem 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.foot__disclaimer { max-width: 62ch; line-height: 1.6; }

/* ---------- reveal ---------- */

.rise { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2,0.7,0.2,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split, .sched, .plans { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(1), .stats div:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .dist { grid-template-columns: 1fr 1fr 1fr; }
  .contact-card { border-left: 0; border-top: 1px solid rgba(255,255,255,0.16); padding: 2rem 0 0; }
  .g-a, .g-b, .g-c, .g-d, .g-e, .g-f { grid-column: span 12; aspect-ratio: 3 / 2; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.985);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
  }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--ink); font-size: 0.9rem; }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav.is-open .nav__toggle span { background: var(--ink); }
  .spec { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .dist { grid-template-columns: 1fr 1fr; }
}
