/*
Theme Name: Stoke Gabriel Stores
Description: Editable Christmas website built from the approved Stoke Gabriel Stores master.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Author: Stoke Gabriel Stores
License: GPL-2.0-or-later
Text Domain: stoke-gabriel-stores
*/
:root {
  --green: #173f35;
  --green-deep: #0d2d27;
  --mint: #a7cbc2;
  --cream: #f6f0e4;
  --paper: #fffaf0;
  --red: #bb3a35;
  --gold: #e0aa52;
  --ink: #1f2d29;
  --shadow: 0 22px 55px rgba(13, 45, 39, .15);
  --hand: "Marker Felt", "Bradley Hand", "Bradley Hand ITC", "Comic Sans MS", cursive;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
}

img { display: block; width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.03; font-weight: 500; }
h2 { font-size: clamp(2.25rem, 5vw, 4.6rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); margin-bottom: .7rem; }
p { font-size: 1.05rem; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 20; background: white; padding: .8rem 1rem; }
.skip-link:focus { left: 1rem; }
.handwritten { font-family: var(--hand); font-style: normal; letter-spacing: .025em; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin-bottom: .8rem; color: var(--red); font-size: 1.15rem; font-weight: 700; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.brand, .footer-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 700; }
.brand-logo { width: clamp(8rem, 12vw, 10rem); height: auto; border-radius: .2rem; }
nav { display: flex; align-items: center; align-self: flex-start; gap: 1.6rem; margin-top: -.6rem; margin-right: clamp(9rem, 22vw, 20rem); }
nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a { border: 1px solid rgba(255,255,255,.75); border-radius: 999px; padding: .65rem 1rem; }
@media (min-width: 851px) {
  .working-version .site-header { justify-content: flex-start; gap: clamp(.75rem, 1.4vw, 1.25rem); }
  .working-version nav { margin-right: 0; gap: .4rem; }
  .working-version nav a { white-space: nowrap; font-size: .82rem; padding-inline: .65rem; }
}

.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; color: white; }
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-image { object-position: center 52%; }
.hero-shade { background: linear-gradient(90deg, rgba(8,30,25,.94) 0%, rgba(8,30,25,.62) 48%, rgba(8,30,25,.12) 77%), linear-gradient(0deg, rgba(8,30,25,.62), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(830px, calc(100% - 40px)); margin: 0 0 clamp(4rem, 10vh, 7rem) max(20px, calc((100vw - 1180px)/2)); }
.hero h1 { max-width: 720px; margin: 0 0 1.4rem; font-size: clamp(3.4rem, 5.5vw, 5.5rem); letter-spacing: -.055em; }
.hero h1 em { color: white; font-style: normal; font-weight: inherit; }
.hero-intro { max-width: 620px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.button { display: inline-block; margin-top: .8rem; padding: .9rem 1.25rem; border-radius: 999px; background: var(--red); color: white; text-decoration: none; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero-actions .button { text-align: center; }
.hero-note { position: absolute; z-index: 3; right: 4vw; bottom: 2.4rem; font-size: 1.1rem; rotate: 0deg; }

.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(5rem, 9vw, 9rem); align-items: end; }
.welcome-background { background: #a7c7d5; }
.welcome h2 { margin-bottom: 0; }
.welcome > p { max-width: 540px; margin: 0 0 .75rem; font-size: 1.2rem; }

.offer { padding-block: clamp(5rem, 9vw, 8rem); background: #af4e93; color: white; }
.offer > .section-shell > .eyebrow { color: var(--paper); }
.offer h2 { max-width: 700px; }
.offer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.4rem; margin-top: 3rem; }
.offer-card { overflow: hidden; border-radius: 1.3rem; background: var(--paper); color: var(--ink); box-shadow: 0 15px 45px rgba(0,0,0,.18); }
.offer-card--wide { grid-row: span 2; }
.offer-card img, .texture-card { width: 100%; height: 260px; object-fit: cover; }
.offer-card--wide img { height: 480px; }
.offer-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-grid--four > .offer-card > figure img { height: 290px; }
.offer-grid--four .tree-photos { height: 290px; }
@media (max-width: 850px) { .offer-grid.offer-grid--four { grid-template-columns: 1fr; } }
.tree-photos { position: relative; height: clamp(290px, 32vw, 390px); background: var(--paper); overflow: hidden; }
.tree-photos > figure { position: absolute; height: 100%; min-width: 0; }
.tree-photos > figure:first-child { inset: 0; width: 100%; object-position: 65% 58%; transform: scale(2.15); transform-origin: 65% 58%; }
.tree-photos > figure:last-child { top: 9%; right: 7%; width: 47%; height: 80%; object-fit: cover; object-position: center; border: 6px solid var(--paper); border-radius: .2rem; transform: rotate(8deg); box-shadow: 0 8px 24px rgba(13,45,39,.4); }
.offer-card > div:last-child { padding: 1.5rem 1.6rem 1.6rem; }
.offer-card p:last-child { margin-bottom: 0; }
.card-kicker { margin-bottom: .35rem; color: var(--red); font-family: var(--hand); font-weight: 700; }
.texture-card { position: relative; background-color: #dce7d7; overflow: hidden; }
.texture-card::before { position: absolute; inset: -20%; display: grid; place-items: center; font-size: 7rem; rotate: -8deg; }
.tree-card::before { content: "✦  🎄  ✦  🎄  ✦"; background: radial-gradient(circle at 30% 30%, #f3dbb2, transparent 28%), linear-gradient(135deg, #a7cbc2, #e8e0bf); }
.bird-card::before { content: "✦  🪶  ✦  🪶  ✦"; background: radial-gradient(circle at 70% 35%, #f1c0ab, transparent 25%), linear-gradient(135deg, #e8d4b2, #b65c52); }

.hampers { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(5rem, 10vw, 10rem); align-items: center; }
.hamper-copy p:not(.eyebrow) { max-width: 470px; }
.hampers-background { background: #dad260; }
.scrawl { color: var(--red); font-size: 1.4rem; rotate: 0deg; }
.hamper-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hamper-gallery > figure { height: 220px; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow); }
.hamper-gallery .hamper-main { grid-column: 1 / -1; height: 430px; }

.local { padding-block: clamp(5rem, 9vw, 8rem); background: #448e73; color: #071e16; }
.local .eyebrow { color: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.section-heading > p { max-width: 430px; margin-bottom: 1.5rem; }
.preserves-grid { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 1rem; margin-top: 2.5rem; }
.preserves-grid figure { position: relative; margin: 0; overflow: hidden; min-height: 480px; border-radius: 1rem; background: var(--green); }
.preserves-grid img { height: 100%; object-fit: cover; }
.preserves-grid figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .55rem .8rem; border-radius: 999px; background: rgba(255,250,240,.92); font-family: var(--hand); font-weight: 700; }
.preserves-grid figure:nth-child(2) img { object-position: center; }

.delivery { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(6rem, 11vw, 11rem); }
.delivery-photo-stack { position: relative; min-height: 540px; }
.delivery-photo { position: absolute; width: 78%; height: 390px; object-fit: cover; border: 10px solid var(--paper); box-shadow: var(--shadow); }
.delivery-photo--back { top: 0; left: 0; rotate: -5deg; }
.delivery-photo--front { right: 0; bottom: 0; rotate: 4deg; }
.delivery-photo--car { object-position: center bottom; }
.delivery-background { position: relative; padding-top: clamp(220px, 23vw, 340px); background: linear-gradient(rgba(13,45,39,.12), rgba(13,45,39,.3)), url("assets/Exterior5.jpeg") center 84% / cover no-repeat; }
.delivery-background .delivery { position: relative; }
.delivery-background .delivery-copy { padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: 1.2rem; background: rgba(255,250,240,.94); box-shadow: var(--shadow); }

.santa { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; background: var(--red); color: white; }
.santa img { height: 100%; max-height: 760px; object-fit: cover; object-position: center 26%; }
.santa-copy { align-self: center; max-width: 520px; padding: clamp(3rem, 8vw, 7rem); }
.santa .eyebrow { color: var(--gold); }

.shopping-night { padding-block: clamp(5rem, 9vw, 8rem); background: #3891bf; color: #092a25; }
.shopping-night > .section-shell > .eyebrow { color: var(--paper); }
.shopping-night h2 { max-width: 850px; margin-bottom: 1.4rem; }
.shopping-date { color: #092a25; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.shopping-intro { max-width: 720px; }
.shopping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.shopping-grid .offer-card img { height: 310px; }
.shopping-grid .rich-photo img { object-position: 52% center; }
.shopping-grid .tasting-photo img { object-position: center 43%; }
.shopping-grid .santa-night-photo img { object-position: center 62%; }
@media (max-width: 850px) {
  .shopping-grid { grid-template-columns: 1fr; }
  .shopping-grid .offer-card img { height: auto; aspect-ratio: 4 / 3; }
  .shopping-grid .offer-card .santa-night-photo { aspect-ratio: 4 / 5; }
}

.order { position: relative; min-height: 720px; display: grid; place-items: center; padding: 3rem 20px; overflow: hidden; }
.order > figure { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.08); transform-origin: 68% 64%; filter: saturate(.9); }
.order::after { content: ""; position: absolute; inset: 0; background: rgba(8,30,25,.52); }
.order-panel { position: relative; z-index: 1; width: min(650px, 100%); padding: clamp(2rem, 6vw, 4.5rem); border-radius: 1.4rem; background: rgba(255,250,240,.96); box-shadow: var(--shadow); }
.order-detail { margin-top: 2rem; }
.order-columns { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.order-columns .order-panel { width: 100%; padding: clamp(1.5rem, 3vw, 3rem); }
.order-columns h2 { font-size: clamp(2.25rem, 4vw, 3.6rem); }
.order-form-panel { display: flex; flex-direction: column; align-self: start; }
.normal-hours-title { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #cdbfa6; }
.order-columns--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-columns--three .order-panel { padding: clamp(1.25rem, 2.2vw, 2rem); }
.order-columns--three h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.opening-hours-panel { display: flex; flex-direction: column; }
.opening-hours { margin: 1rem 0; }
.opening-hours > div { padding: 1rem 0; border-bottom: 1px solid #d8ccb8; }
.opening-hours dt { font-weight: 700; }
.opening-hours dd { margin: .2rem 0 0; font-size: 1.15rem; }
.opening-hours-panel .small-note { margin-top: auto; }
.form-placeholder { flex: 1; padding: 1.5rem; border: 1px dashed #b6a98f; border-radius: .7rem; background: rgba(255,255,255,.45); }
.form-placeholder p:last-child { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.form-actions button { font: inherit; font-size: .9rem; border: 1px solid #b6a98f; border-radius: 999px; padding: .7rem 1rem; background: #e9e1d1; color: #665f55; cursor: not-allowed; }
@media (max-width: 1000px) { .order-columns--three { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .order-columns { grid-template-columns: 1fr; width: 100%; } }
.small-note { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #cdbfa6; color: #665f55; font-size: .86rem; }
.small-note a { overflow-wrap: anywhere; }

.kindness { display: flex; justify-content: center; gap: 1rem; padding: 1.2rem 20px; background: var(--gold); color: var(--green-deep); text-align: center; }
.kindness p { margin: 0; }
.kindness .handwritten { font-weight: 700; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3rem max(20px, calc((100vw - 1180px)/2)); background: var(--green-deep); color: white; }
footer p { margin: 0; font-size: .92rem; }
.footer-logo { width: 8rem; height: auto; border-radius: .2rem; }

@media (max-width: 850px) {
  nav { margin-right: 0; }
  nav a:not(.nav-cta) { display: none; }
  .brand > span:last-child { display: none; }
  .hero { min-height: 820px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,30,25,.95), rgba(8,30,25,.38) 75%, rgba(8,30,25,.5)); }
  .hero-copy { margin: 0 20px 6rem; }
  .hero-note { left: 20px; right: auto; bottom: 2rem; }
  .welcome, .hampers, .section-heading, .delivery, .santa { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card--wide { grid-row: auto; }
  .offer-card--wide img { height: 340px; }
  .preserves-grid { grid-template-columns: 1fr 1fr; }
  .veg-feature { grid-column: 1 / -1; }
  .preserves-grid figure { min-height: 390px; }
  .delivery-copy { order: -1; }
  .santa img { max-height: 620px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { padding: 1rem 20px; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hamper-gallery { grid-template-columns: 1fr; }
  .hamper-gallery .hamper-main { grid-column: auto; height: 300px; }
  .hamper-gallery > figure { height: 270px; }
  .preserves-grid { grid-template-columns: 1fr; }
  .veg-feature { grid-column: auto; }
  .preserves-grid figure { min-height: 430px; }
  .delivery-photo-stack { min-height: 440px; }
  .delivery-photo { height: 300px; }
  .kindness { display: block; }
  .kindness p + p { margin-top: .25rem; }
}

.refined-version .brand-logo { width: clamp(9rem, 15vw, 12rem); }
.refined-version .hero-copy { margin-bottom: clamp(10rem, 18vh, 13rem); padding-top: 13rem; }
.refined-version .hero-note { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 700; max-width: calc(100% - 40px); }
.refined-version footer > p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
.refined-version .shopping-grid .rich-photo img { object-position: center 32%; }
@media (max-width: 560px) {
  .refined-version .hero-copy { margin-bottom: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
