/* Breckland Orchard — site styles
   Layout: full-screen photo homepage with a big serif menu, leading to picture-led pages made of
   full-width banners (text on the artwork's empty side; on phones the picture is cropped and the text sits below). */

:root {
  --pink: #e5137d;      /* links, current homepage item */
  --sky: #6fd6e0;       /* current page in the menu (as on the old site) */
  --mint: #33b888;      /* buttons */
  --mint-dark: #249a70;
  --lime: #77bc1f;      /* gradient start */
  --sun: #f8ea47;       /* gradient end */
  --bark: #6e5853;      /* text on light artwork */
  --white: #ffffff;
  --ink: #1d2a20;
  --line: #eef0e6;
  --display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --hand: "Delius", "Comic Neue", "Segoe UI", sans-serif;
  --script: "Caveat", "Delius", cursive;
  --ui: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--bark); font: 400 1rem/1.65 var(--hand); }
img { max-width: 100%; display: block; }
a { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem; background: var(--mint); color: var(--white); border: 0; font: 800 .78rem/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--mint-dark); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Header: logo + tagline sit on the first picture and scroll away with it */
.head { position: absolute; left: 0; right: 0; top: 0; z-index: 15; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: calc(1.1rem + env(safe-area-inset-top, 0px)); }
.logo { display: grid; gap: .25rem; text-decoration: none; }
.logo img { height: clamp(38px, 10vw, 62px); width: auto; aspect-ratio: 526 / 90; }
.logo span { font: 400 clamp(.72rem, 2.6vw, .95rem)/1.2 var(--hand); color: var(--white); padding-left: clamp(.6rem, 4vw, 1.4rem); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.burger svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .head { padding-top: calc(2.2rem + env(safe-area-inset-top, 0px)); } }

/* Menu overlay: a see-through dark layer over the page (photos keep changing underneath),
   white page names centred, current page in light blue, social icons below. The menu button turns into ✕. */
.burger .i-close { display: none; }
.menu-open .burger .i-open { display: none; }
.menu-open .burger .i-close { display: block; }
.menu-open .head:not(.panel) { position: fixed; z-index: 31; }
.menu-open .head.panel { visibility: hidden; }
.menu { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); display: grid; place-content: center; justify-items: center; text-align: center; gap: 2.5rem; padding-block: calc(6rem + env(safe-area-inset-top, 0px)) 3rem; overflow-y: auto; }
.menu[hidden] { display: none !important; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.menu a { font: 400 clamp(1.6rem, 6vw, 2.2rem)/1.35 "Arbutus Slab", var(--display); color: var(--white); text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.menu a[aria-current="page"], .menu a:hover, .menu a:focus-visible { color: var(--sky); }
.menu .social { display: flex; gap: 1.6rem; align-items: center; }
.menu .social a { display: grid; place-items: center; width: 44px; height: 44px; }
.menu .social svg { width: 28px; height: 28px; fill: currentColor; }
@media (min-width: 1024px) { .menu ul { gap: .9rem; } .menu a { font-size: 1.9rem; } .menu .social svg { width: 1.6rem; height: 1.6rem; } }

/* Homepage: full-screen photo + big serif menu; the photo follows the item you point at */
.home { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #2a2a22; }
.home > picture, .home > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.home > img { object-fit: cover; opacity: 0; transition: opacity .7s; }
.home > img.on { opacity: 1; }
.home::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.home nav { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; }
.home ul { list-style: none; margin: 0; padding: 0; display: grid; }
.home nav a { font: 400 clamp(2.4rem, 9vw, 5.6rem)/1.15 var(--display); color: var(--white); text-decoration: none; display: inline-block; padding-left: clamp(0px, 9vw, 140px); }
.home nav a.on { color: var(--pink); }

/* Page title card (gallery pages): photo with a light dark tint */
.title-card { position: relative; color: var(--white); min-height: clamp(460px, 70vh, 640px); display: grid; align-items: start; overflow: hidden; background: #333; }
.title-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.title-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.title-card .copy { position: relative; z-index: 2; padding-block: clamp(8rem, 24vh, 11rem) 3.5rem; max-width: 44rem; display: grid; gap: 1rem; }
.title-card h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); color: var(--white); }
.title-card p { font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.title-card a, .cover a { color: var(--pink); font-weight: 700; text-decoration: none; }
.title-card a:hover, .cover a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .title-card .copy { padding-left: max(140px, env(safe-area-inset-left, 0px)); padding-block: 13rem 4rem; } }

/* Gradient cover (Product Range, Get in touch) */
.cover { color: var(--white); background: linear-gradient(135deg, var(--lime), var(--sun)); display: grid; align-items: center; }
.cover .copy { max-width: 44rem; display: grid; gap: 1rem; padding-block: 9rem 4rem; }
.cover h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); color: var(--white); }
@media (min-width: 1024px) { .cover .copy { padding-left: max(140px, env(safe-area-inset-left, 0px)); } }
/* Product Range: the cover sits over the page and fades as you scroll (site.js) */
.cover.fade { position: fixed; inset: 0; z-index: 12; background: linear-gradient(135deg, rgba(119,188,31,.96), rgba(248,234,71,.94)); pointer-events: none; }
.cover.fade a { pointer-events: auto; }
.after-fade { padding-top: 70vh; padding-top: 70svh; }
.no-js .cover.fade { position: relative; }
.no-js .after-fade { padding-top: 0; }

/* Banners */
.slide { position: relative; background: var(--band, var(--white)); }
.slide img { width: 100%; height: auto; }
.slide .txt { padding-block: 2rem 2.5rem; display: grid; gap: 1rem; color: var(--fg, var(--bark)); }
.slide h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); color: var(--fg, var(--bark)); }
.slide .body { display: grid; gap: .8rem; max-width: 34rem; }
.slide .body a:not(.btn) { color: var(--pink); }
.slide.photo .txt { display: none; }
.slide.strip img { min-height: 180px; object-fit: cover; }
/* Grass strip: no flat colour behind it, so its torn bottom edge shows what's underneath (as on the old site) */
.slide.strip { background: transparent; }
@media (max-width: 899px) {
  /* phones: the strip stretches behind its text, keeping the torn edge at the bottom */
  .slide.strip img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: fill; }
  .slide.strip .txt { position: relative; padding-block: 3.2rem 4.5rem; }
}
.slide.on-photo h2, .slide.on-photo .body > p { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
/* Phones: "Find out more" keeps its text on the photo itself, with no colour block underneath */
@media (max-width: 899px) {
  .slide.overlay .txt { position: absolute; inset: auto 0 0 0; padding-block: 3rem 1.5rem; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.45)); color: var(--white); }
  .slide.overlay h2 { color: var(--white); }
}
@media (min-width: 900px) {
  .slide:not(.photo) .txt { position: absolute; inset: 0; align-content: center; width: 52%; padding-left: max(9vw, env(safe-area-inset-left, 0px)); padding-block: 2rem; }
  .slide.strip .txt { width: 70%; }
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.facts li { display: flex; gap: .5rem; }
.facts li::before { content: "❂"; }

/* Product list: bottle and words, alternating sides */
.drinks { max-width: 72rem; margin: 0 auto; }
.drink { display: grid; gap: 1.25rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.drink img { width: min(240px, 62vw); height: auto; aspect-ratio: 3 / 4; object-fit: contain; margin: 0 auto; }
.drink .dtext { display: grid; gap: .8rem; max-width: 40rem; }
.drink h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--bark); }
.drink .dtag { font: 500 clamp(1.5rem, 4.5vw, 2.1rem)/1.15 var(--script); color: var(--tc, var(--lime)); }
.drink.chat img { width: min(420px, 100%); aspect-ratio: auto; }
@media (min-width: 800px) {
  .drink { grid-template-columns: 280px 1fr; align-items: center; gap: 3rem; }
  .drink img { width: 100%; }
  .drink.flip { grid-template-columns: 1fr 280px; }
  .drink.flip img, .drink.chat img { order: 2; }
  .drink.chat { grid-template-columns: 1fr 1fr; }
}

/* Contact */
.contact { max-width: 72rem; margin: 0 auto; padding-block: 3rem 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.contact h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--bark); }
.contact .lede { font: 500 clamp(1.4rem, 4vw, 1.9rem)/1.2 var(--script); color: var(--lime); }
.details { display: grid; gap: .25rem; font-weight: 400; }
.details span { user-select: all; }
form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 700 .85rem/1.3 var(--ui); color: var(--ink); }
.field input, .field textarea { font: 400 1rem/1.4 var(--ui); padding: .75rem .85rem; border: 1px solid #cfd5c3; border-radius: 4px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(51,184,136,.45); border-color: var(--mint); }
.form-status { font: 600 .95rem/1.4 var(--ui); }
.form-status.ok { color: #17694c; }
.form-status.err { color: #a0262a; }
.hp { position: absolute; left: -5000px; }

/* Text pages (privacy) */
.prose { max-width: 46rem; margin: 0 auto; padding-block: 3rem 4rem; display: grid; gap: 1rem; color: #4d3f3b; font-family: var(--ui); }
.prose h2 { font-size: 1.8rem; color: var(--bark); margin-top: 1.5rem; }
.prose h3 { font: 800 .85rem/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }

footer { border-top: 1px solid #eee; font: 400 .85rem/1.5 var(--ui); color: #666; }
footer .gut { padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
footer a { color: #17694c; }
footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* Large screens: scale everything with the window, like the Squarespace 7.0 template did
   (body text ~21px on a 1440px screen, ~28px on 1920px; page tops fill the screen). */
@media (min-width: 1024px) {
  html { font-size: clamp(16px, 1.25vw, 32px); }
  .head { padding-left: 12vw; padding-right: 3vw; }
  .logo img { height: 5rem; }
  .logo span { font-size: 1rem; padding-left: 1.6rem; }
  .burger { width: 3rem; height: 3rem; } .burger svg { width: 2rem; height: 2rem; }
  .home nav a { padding-left: 13.5vw; font-size: min(5.6rem, 9vw); }
  .title-card { min-height: 100vh; min-height: 100svh; align-items: center; }
  .title-card .copy { padding-left: 13.5vw; padding-block: 12rem 6rem; max-width: 50rem; }
  .cover .copy { padding-left: 13.5vw; max-width: 50rem; }
  .title-card p, .cover p { font-size: 1.15rem; }
  .slide:not(.photo) .txt { padding-left: 10.5vw; width: 50%; }
  .slide .body { max-width: 30rem; font-size: 1.05rem; line-height: 1.4; gap: .9rem; }
  .slide .txt { gap: 1.2rem; }
  .drinks { max-width: 90vw; }
  .drink { grid-template-columns: 22rem 1fr; gap: 4rem; padding-block: 3.5rem; }
  .drink.flip { grid-template-columns: 1fr 22rem; }
  .drink .dtext { max-width: 46rem; font-size: 1.15rem; }
  .contact { max-width: 90vw; }
  .title-card h1, .cover h1 { font-size: 3.6rem; }
  .title-card .copy, .cover .copy { max-width: 40rem; }
  .slide h2 { font-size: 2.4rem; }
  .drink h2 { font-size: 2.2rem; }
  .drink .dtag { font-size: 2.4rem; }
  .drink .dtext { font-size: 1rem; }
  .after-fade { padding-top: 14rem; }
}

/* Picture pages: the homepage panel waits, fixed, underneath the page. The page scrolls up and away over it,
   uncovering it at the end (as the old Squarespace index did). The empty end-space lets clicks pass through to it. */
.home.end { position: fixed; inset: 0; z-index: 0; }
.has-end .title-card, .has-end .slide { z-index: 1; }   /* the page's own sections slide over the panel */
.end-space { height: 100vh; height: 100svh; }
/* lay the footer over the bottom of the uncovered panel */
.has-end footer { position: relative; z-index: 5; margin-top: -5rem; min-height: 5rem; border: 0; color: rgba(255,255,255,.85); display: grid; align-items: end; pointer-events: none; }
.has-end footer .gut { pointer-events: auto; padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.has-end footer a { color: var(--white); }
@media (max-width: 640px) { .has-end footer { margin-top: -6.5rem; min-height: 6.5rem; } .has-end footer .gut { font-size: .75rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
