/* Surrey Piggies — single-page site */

:root {
  --ink: #1a1310;
  --ink-2: #251b16;
  --ink-3: #33261f;
  --paper: #fbf7f1;
  --cream: #f3eadd;
  --line: #e4d8c8;
  --text: #2a211c;
  --muted: #74655a;
  --on-dark: #f5ece0;
  --on-dark-muted: #bfae9d;
  --ember: #e0612a;
  --ember-hi: #f2803f;
  --gold: #d6a867;
  --choc: #2e1a11;
  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(40, 20, 8, .45);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { overflow-x: clip; } /* nothing may widen the page on phones/tablets */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--ember-hi); }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ember); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 12px 30px -12px rgba(224, 97, 42, .8); }
.btn--ember:hover { background: var(--ember-hi); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

.eyebrow {
  font: 700 12.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow--dark { color: var(--ember); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 19, 16, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); font: 600 21px/1 var(--display); letter-spacing: -.01em; }
.brand em { font-style: italic; color: var(--ember-hi); font-weight: 500; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--on-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 78% 58%, rgba(224, 97, 42, .28), transparent 62%),
    radial-gradient(700px 400px at 10% 0%, rgba(214, 168, 103, .10), transparent 60%),
    var(--ink);
}
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 24px;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
}
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 34px 0 0; font-weight: 600; font-size: 14.5px; color: var(--on-dark); }
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(224, 97, 42, .22); }
.hero__art { position: relative; }
.hero__art img { position: relative; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero__pig { width: 112%; max-width: none; margin-left: -4%; animation: float 7s ease-in-out infinite; }
.hero__fountain { position: absolute !important; right: -6%; top: -14%; width: 44%; animation: float 7s ease-in-out -3.5s infinite; }
.hero__glow { position: absolute; inset: 18% 8% 6%; background: radial-gradient(closest-side, rgba(242, 128, 63, .45), transparent); filter: blur(30px); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2, .area h2, .enquire h2 { font-size: clamp(34px, 4.4vw, 54px); }
.section__head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- dishes ---------- */
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dish { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.dish__art { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px 24px 0; }
.dish__art img { width: 100%; max-height: 100%; object-fit: contain; }
.dish__body { padding: 8px 34px 36px; }
.dish__tag { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.dish h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.dish--pig { background: linear-gradient(180deg, #fff 0%, #fdf5ea 100%); border: 1px solid var(--line); }
.dish--pig .dish__art { background: radial-gradient(60% 70% at 50% 60%, #fbe3c7, transparent 70%); }
.dish--pig .dish__tag { color: var(--ember); }
.dish--pig p { color: var(--muted); }
.dish--choc { background: radial-gradient(90% 60% at 50% 30%, #4a2a1b 0%, var(--choc) 70%); color: var(--on-dark); }
.dish--choc .dish__tag { color: var(--gold); }
.dish--choc p { color: #cdb9a6; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; font-size: 15.5px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 9px; border-left: 2.5px solid var(--ember); border-bottom: 2.5px solid var(--ember); transform: rotate(-45deg) translateY(-3px); }
.dish--choc .ticks li::before { border-color: var(--gold); }

.combo {
  margin-top: 24px; padding: 28px 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink-3) 100%); color: var(--on-dark);
}
.combo__kicker { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.combo__title { font: 500 clamp(20px, 2.1vw, 26px)/1.3 var(--display); max-width: 30em; }
.combo .btn { flex: none; }

.occasions { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 40px 0 0; justify-content: center; }
.occasions li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--muted); }

/* ---------- kit ---------- */
.kit { position: relative; overflow: hidden; background: radial-gradient(800px 500px at 25% 55%, rgba(224, 97, 42, .18), transparent 65%), var(--ink); }
.kit__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kit__art { position: relative; margin: 0; }
.kit__art img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }
.kit__glow { position: absolute; inset: 10% 15% 30%; background: radial-gradient(closest-side, rgba(242, 128, 63, .35), transparent); filter: blur(30px); }
.kit__art figcaption { position: relative; margin-top: 8px; text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.kit__art figcaption span { color: var(--gold); font-weight: 700; }
.kit h2 { font-size: clamp(34px, 4.4vw, 54px); }
.kit__lead { margin-top: 18px; color: var(--on-dark-muted); font-size: 18px; }
.kit__specs { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.kit__specs li { display: flex; gap: 14px; align-items: flex-start; }
.kit__specs svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(224, 97, 42, .14); color: var(--ember-hi); }
.kit__specs h3 { font: 700 16px/1.3 var(--body); letter-spacing: 0; margin-bottom: 4px; }
.kit__specs p { color: var(--on-dark-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 32px; }
.step__num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--ember-hi); font: 600 16px/1 var(--display); margin-bottom: 22px; }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- area ---------- */
.area { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.area__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.towns { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--cream); }
.map { margin: 0; background: var(--ink); border-radius: calc(var(--radius) + 6px); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.map svg { width: 100%; font-family: var(--body); }
.map__ring { fill: none; stroke: var(--gold); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 4 8; }
.map__ring--in { stroke-opacity: .2; }
.map__county { fill: rgba(224, 97, 42, .16); stroke: var(--ember); stroke-width: 2.5; }
.map__labels text { fill: var(--on-dark-muted); font-size: 12px; font-weight: 700; letter-spacing: .2em; opacity: .7; }
.map__labels .map__name { fill: var(--on-dark); font: italic 600 34px var(--display); letter-spacing: .06em; opacity: .16; }
.map__towns circle { fill: var(--on-dark); }
.map__towns text { fill: var(--on-dark); font-size: 13px; font-weight: 600; }
.map__pin circle { fill: var(--ember); }
.map__pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(4); opacity: 0; } }
.map figcaption { color: var(--on-dark-muted); font-size: 13px; text-align: center; margin-top: 8px; }

/* ---------- enquire ---------- */
.enquire { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.enquire__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--on-dark-muted); font-size: 18px; }
.contacts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.contacts li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.contacts span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contacts a { text-decoration: none; font-weight: 600; font-size: 18px; word-break: break-word; }
.contacts a:hover { color: var(--ember-hi); }

.form { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--on-dark-muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 500 16px/1.4 var(--body); color: var(--on-dark);
  background: var(--ink); border: 1.5px solid var(--ink-3); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s; color-scheme: dark;
}
.form textarea { resize: vertical; min-height: 92px; }
.form input::placeholder, .form textarea::placeholder { color: #7d6c60; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(224, 97, 42, .18); }
.form .invalid { border-color: #ff7a6a; }
.pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pick legend { font-size: 13.5px; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 8px; padding: 0; }
.pick label { display: block; position: relative; }
.pick input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--ink-3); color: var(--on-dark); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s; }
.pick input:checked + span { background: var(--ember); border-color: var(--ember); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--ember-hi); outline-offset: 2px; }
.form__error { color: #ff9a8a; font-weight: 600; font-size: 14.5px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 19px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ember); font: 600 20px/1 var(--body); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 48px 0 56px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer__inner > p:first-of-type { flex: 1; min-width: 240px; }
.footer__small { font-size: 14px; }

/* ---------- mobile dock ---------- */
.dock { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__art img, .map__pulse { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero__grid, .dishes, .area, .enquire, .faq, .kit__grid { grid-template-columns: 1fr; }
  .hero__grid { padding-top: 44px; }
  .hero__art { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__pig { width: 100%; margin: 0; }
  .hero__fountain { right: 0; top: -12%; width: 40%; }
  .combo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { width: calc(100% - 32px); }
  .nav__inner { height: 64px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .nav .btn { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .steps, .kit__specs { grid-template-columns: 1fr; }
  .dish__body { padding: 4px 22px 28px; }
  .combo { padding: 24px 22px; }
  .combo .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .contacts li { grid-template-columns: 1fr; gap: 4px; }
  .dock {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(26, 19, 16, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .dock__btn { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
  .dock__btn--ember { background: var(--ember); color: #fff; box-shadow: none; }
}
