/* ============================================================
   Exmoor Holiday Cottage — design system v1 ("coastal Exmoor")
   Fraunces (display) + Inter (body) — same family as the sibling sites
   deep #12303a · sea #1d5a6b · tide #2f8195 · ember #c2703a · sand #f7f2e9
   ============================================================ */
:root {
  --deep: #12303a;
  --sea: #1d5a6b;
  --tide: #2f8195;
  --ink: #1b2a2f;
  --slate: #566268;
  --ember: #c2703a;
  --ember-deep: #a2562a;
  --sand: #f7f2e9;
  --paper: #fffdf9;
  --line: #e5ddcf;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(18, 48, 58, .10);
  --shadow-lift: 0 18px 48px rgba(18, 48, 58, .17);
  --container: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--sand); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  font-size: clamp(15px, 1.05vw, 17px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
::selection { background: var(--tide); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560; line-height: 1.08; letter-spacing: -.01em; color: var(--deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ember-deep);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--slate); max-width: 56ch; }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4.5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--deep); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; background: transparent;
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-solid { background: var(--sea); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ember { background: var(--ember); color: #fff; box-shadow: var(--shadow); }
.btn-ember:hover { background: var(--ember-deep); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--deep); color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: var(--sand); transform: translateY(-2px); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; border-bottom: 1px solid var(--line); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
/* ---------- Hero: CSS-only crossfade slideshow (no JS) ----------
   The animation + per-image delays are generated by build.py into an inline
   <style>, so the rotation stays correct for any number of hero images. */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
/* Reduced motion: show the first frame, still and legible */
@media (prefers-reduced-motion: reduce) {
  .hero-media img { opacity: 0; transform: none; animation: none !important; }
  .hero-media img:first-child { opacity: 1; }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,58,.58), rgba(18,48,58,.74));
}
.hero-inner { position: relative; z-index: 1; color: #fff; text-align: center; padding: clamp(104px, 17vw, 210px) var(--pad); max-width: 900px; margin: 0 auto; }
.hero-inner h1 { color: #fff; margin-bottom: 18px; text-wrap: balance; }
.hero-inner .lede { color: rgba(255,255,255,.93); margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: #fff; box-shadow: var(--shadow); background: var(--deep);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
/* Strong enough that the label stays readable even over a near-white source
   image (one destination photo is a pale logo placeholder). */
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,58,0) 28%, rgba(18,48,58,.55) 62%, rgba(18,48,58,.92) 100%);
}
.card-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 20px 22px; font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.2;
  text-shadow: 0 1px 12px rgba(9, 26, 32, .55);
}
.card-label span { display: block; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ---------- Why book with us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 26px); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); text-align: center; box-shadow: var(--shadow);
}
.feature svg { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--tide); stroke-width: 1.6; }
.feature h3 { font-size: 1.06rem; }

/* ---------- Contact ---------- */
.contact { background: var(--deep); color: rgba(255,255,255,.9); }
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255,255,255,.82); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 14px; background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lift); }
.contact-form label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--sand); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--tide); border-color: var(--tide); }

/* ---------- Footer ---------- */
.site-footer { background: #0d2229; color: rgba(255,255,255,.75); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 34px 0; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- 404 / thanks ---------- */
.notice { text-align: center; padding: clamp(96px, 14vw, 180px) var(--pad); }
