@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Nunito+Sans:wght@400;500;600&display=swap");

:root {
  /* Matched to chevinendguesthouse.co.uk Wix palette */
  --cream: #f3f1c4;
  --paper: #4d4b36;
  --ink: #f3f1c4;
  --moss: #403f2b;
  --deep: #29291f;
  --stone: #9f9d8e;
  --gold: #bfbf7e;
  --soft: #fefaf1;
  --btn: #f3f1c4;
  --btn-text: #403f2b;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--moss);
  color: var(--ink);
  font-family: "Avenir Next", "Nunito Sans", "Figtree", system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 2.4rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(64, 63, 43, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 241, 196, 0.12);
}
.logo img { height: 64px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
  color: var(--cream);
}
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--cream); }
.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}
.menu-btn {
  display: none;
  border: 1px solid rgba(243, 241, 196, 0.35);
  background: transparent;
  color: var(--cream);
  padding: 0.45rem 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.focal-face-left { object-position: 18% 34%; }
.focal-face { object-position: center 28%; }
.focal-faces { object-position: center 30%; }
.focal-face-mid { object-position: center 32%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 41, 31, 0.2), rgba(41, 41, 31, 0.72));
}
.hero-copy {
  position: relative;
  z-index: 1;
  color: var(--cream);
  padding: 0 6vw 8vh;
  max-width: 40rem;
}
.eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0;
  color: var(--gold);
}
h1, h2, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--cream);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  margin: 0.35rem 0 0.8rem;
}
.lede { font-size: 1.15rem; max-width: 38rem; color: var(--cream); }
section { padding: 5rem 0; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.cards, .gallery {
  display: grid;
  gap: 1.2rem;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  overflow: hidden;
  color: var(--cream);
}
.card img { height: 260px; width: 100%; object-fit: cover; object-position: center; }
.card h3, .card p { padding: 0 1.2rem; }
.card p { padding-bottom: 1.4rem; color: var(--stone); }
.gallery { grid-template-columns: 1.4fr 1fr; }
.gallery img { width: 100%; height: 360px; object-fit: cover; object-position: center; }
.policy { color: var(--stone); }
.facts {
  margin: 1rem 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--cream);
  line-height: 1.75;
}
.facts li { margin: 0.2rem 0; }
.rooms-gallery {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
}
.rooms-gallery img { height: 280px; object-position: center; }
.rooms-gallery img:first-child {
  grid-column: 1 / -1;
  height: 380px;
}
footer {
  border-top: 1px solid rgba(243, 241, 196, 0.12);
  padding: 2.5rem 6vw 5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--stone);
}
.page-hero img { width: 100%; height: 46vh; object-fit: cover; object-position: center; }
.split > img {
  width: 100%;
  height: min(520px, 70vw);
  object-fit: cover;
  object-position: center;
}
form { display: grid; gap: 0.8rem; max-width: 32rem; }
form label {
  display: grid;
  gap: 0.35rem;
  color: var(--cream);
  font-size: 0.92rem;
}
form button.book {
  border: 0;
  cursor: pointer;
  width: fit-content;
  font: inherit;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(243, 241, 196, 0.22);
  background: var(--deep);
  color: var(--cream);
  padding: 0.85rem 0.9rem;
  font: inherit;
}
input::placeholder,
textarea::placeholder {
  color: var(--stone);
}
.footer-links {
  margin-top: 0.75rem;
}
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal-page {
  max-width: 42rem;
}
.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--deep);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  animation: splash-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.splash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Three-alpaca portrait: keep all faces in frame (not ear-cropped) */
  object-position: center 32%;
  transform: scale(1.04);
  animation: splash-ken 7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  filter: saturate(1.05) contrast(1.03);
}
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(20, 20, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(41, 41, 31, 0.35) 0%, rgba(41, 41, 31, 0.18) 42%, rgba(41, 41, 31, 0.72) 100%);
  pointer-events: none;
}
.splash-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 1.5rem;
  max-width: min(36rem, 100%);
}
.splash-copy .splash-brand {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0;
  color: var(--gold);
  opacity: 0;
  transform: translateY(14px);
  animation: splash-rise 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.splash-rule {
  display: block;
  width: 0;
  height: 1px;
  margin: 1.1rem auto 0.95rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: splash-rule 1s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.splash-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  opacity: 0;
  transform: translateY(22px);
  animation: splash-rise 1s 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 12px 40px rgba(20, 20, 14, 0.45);
}
.splash-hint {
  margin: 1.35rem 0 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(243, 241, 196, 0.72);
  opacity: 0;
  animation: splash-rise 0.8s 1.15s ease forwards;
}
.skip {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 3;
  background: rgba(41, 41, 31, 0.35);
  border: 1px solid rgba(243, 241, 196, 0.35);
  color: var(--cream);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.65rem 1rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: splash-rise 0.7s 1.35s ease forwards;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.skip:hover,
.skip:focus-visible {
  background: rgba(243, 241, 196, 0.12);
  border-color: rgba(243, 241, 196, 0.7);
  outline: none;
}
.splash.is-out {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1), transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
body.locked { overflow: hidden; }
@keyframes splash-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes splash-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
@keyframes splash-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-rule {
  from { width: 0; opacity: 0; }
  to { width: 4.5rem; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash img,
  .splash-copy .splash-brand,
  .splash-copy h1,
  .splash-hint,
  .splash-rule,
  .skip {
    animation: none !important;
    opacity: 1;
    transform: none;
    width: auto;
  }
  .splash-rule { width: 4.5rem; margin-inline: auto; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    background: var(--moss);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.4rem;
    border-bottom: 1px solid rgba(243, 241, 196, 0.12);
  }
  .nav.open { display: flex; }
  .split, .cards, .gallery, .rooms-gallery { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
  footer { padding-bottom: 6rem; }
  .logo img { height: 52px; }
  .rooms-gallery img { height: 240px; }
}
