/* KRDI, LLC - Lawn & Garden
   White page, forest green brand, amber used sparingly (underlines, focus, small highlights).
   Shape rule: media, panels, buttons and chips 6px; inputs 4px. No pills.
   Light theme only (the client asked for a white site).
   z-index scale: header 20, mobile nav 30, skip link 40. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f3f5f1;
  --surface-2: #e7ebe3;
  --ink: #17231b;
  --ink-2: #4b5850;
  --line: #dfe4dc;
  --line-strong: #c4ccc0;
  --green: #1f3d2b;
  --green-2: #2b5139;
  --on-green: #f3f5f1;
  --on-green-2: #c3cfc3;
  --amber: #d9922e;
  --link: #1f5a37;
  --error: #a3322a;
  --shadow: 0 20px 44px -28px rgb(23 35 27 / 0.45);

  --radius: 6px;
  --radius-input: 4px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { padding-bottom: clamp(64px, 8vw, 112px); }
main:has(> .cta-band:last-child) { padding-bottom: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.ph { line-height: 1; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 40;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type: semi-condensed, heavy headings read like work-truck lettering */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.2rem); }
h3 { font-size: 1.32rem; font-stretch: 92%; letter-spacing: -0.005em; line-height: 1.15; }

.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-2);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  --pad-y: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 1.15em; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-amber { background: var(--amber); color: #18120a; }
.btn-amber:hover { background: #e5a246; }
.btn-on-green { background: transparent; color: var(--on-green); border-color: rgb(243 245 241 / 0.4); }
.btn-on-green:hover { border-color: var(--on-green); }
.btn-sm { --pad-y: 10px; padding-inline: 18px; font-size: 0.95rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.text-link .ph { transition: transform 0.25s var(--ease); }
.text-link:hover .ph { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.35rem; font-weight: 900; font-stretch: 122%; letter-spacing: -0.01em; color: var(--green); }
.brand-text span { font-size: 0.68rem; font-weight: 600; font-stretch: 118%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--line-strong); }
.nav ul a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-phone .ph { color: var(--green-2); font-size: 1.1rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle, .cart-link {
  position: relative;
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; text-decoration: none; cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.nav-toggle { display: none; }
.nav-toggle:hover, .cart-link:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px;
  background: var(--amber); color: #18120a;
  font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); z-index: 30;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--link); }
  .nav-phone { padding: 14px 0; font-size: 1.1rem; }
  .nav .btn { width: 100%; }
}

/* Sections */
.section { padding-top: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin-top: 18px; }

/* Home hero: copy aligned to the page grid, photo runs off the right edge */
.hero {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: min(calc(100dvh - var(--header-h)), 700px);
  border-bottom: 1px solid var(--line);
}
.hero .hero-copy {
  align-self: center;
  padding-block: clamp(40px, 6vw, 88px);
  padding-right: clamp(24px, 4vw, 64px);
  padding-left: max(var(--gutter), calc((100cqi - var(--wrap)) / 2 + var(--gutter)));
}
.hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.2rem); }
.hero .lede { margin-top: 24px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .hero-copy { padding: 40px var(--gutter) 36px; }
  .hero-media img { aspect-ratio: 4 / 3; height: auto; }
}

/* Services: photo held in place, list of services beside it */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-media { position: sticky; top: calc(var(--header-h) + 32px); }
.services-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.service-list { list-style: none; margin-top: 36px; border-bottom: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.service-list p { margin: 0; color: var(--ink-2); }
.services-body > .text-link { margin-top: 32px; }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services-media { position: static; }
  .services-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* Homes and businesses: two photos, the second set lower */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); }
.duo article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.duo h3 { margin: 22px 0 10px; }
.duo p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.duo article:nth-child(2) { margin-top: clamp(40px, 7vw, 104px); }

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo article:nth-child(2) { margin-top: 0; }
}

/* Team: full-width photo with the copy set over its lower left */
.team-band { position: relative; margin-top: clamp(72px, 9vw, 128px); color: #fff; isolation: isolate; }
.team-band img { width: 100%; height: clamp(440px, 72vh, 720px); object-fit: cover; object-position: 50% 22%; }
.team-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(20deg, rgb(12 20 15 / 0.82) 0%, rgb(12 20 15 / 0.45) 38%, rgb(12 20 15 / 0) 65%);
}
.team-overlay { position: absolute; inset: auto 0 0 0; z-index: 1; padding-bottom: clamp(32px, 5vw, 64px); }
.team-copy { max-width: 520px; }
.team-copy p { margin: 16px 0 22px; color: rgb(255 255 255 / 0.86); }
.team-copy .text-link { color: #fff; }

@media (max-width: 700px) {
  .team-band { background: var(--green); }
  .team-band img { height: auto; aspect-ratio: 4 / 3; }
  .team-band::after { display: none; }
  .team-overlay { position: static; padding: 32px 0 40px; }
}

/* Service area: plain town lists by county */
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.area h2 { max-width: 13ch; }
.area p { margin-top: 18px; max-width: 42ch; }
.county-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.county-cols h3 { font-size: 1.05rem; padding-top: 14px; border-top: 2px solid var(--green); margin-bottom: 12px; }
.county-cols ul { list-style: none; display: grid; gap: 6px; color: var(--ink-2); }
.county-cols li.is-home { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .area { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .county-cols { grid-template-columns: 1fr 1fr; }
}

/* CTA band: full width, ends the page before the footer */
.cta-band { background: var(--green); color: var(--on-green); margin-top: clamp(72px, 9vw, 128px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-block: clamp(56px, 7vw, 96px); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--on-green-2); margin: 18px 0 0; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 800px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* Page header (inner pages) */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 15ch; }
.page-head .lede { margin-top: 22px; }

/* About */
.about-photo img { width: 100%; height: clamp(360px, 64vh, 660px); object-fit: cover; object-position: 50% 4%; }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.story-body { font-size: 1.12rem; max-width: 62ch; }
.story-body p { color: var(--ink-2); }
.story-body p:first-child { color: var(--ink); font-size: 1.3rem; line-height: 1.5; }
.fact-list { margin: 32px 0 0; display: grid; gap: 0; }
.fact-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.fact-list dt { font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
.fact-list dd { margin: 2px 0 0; font-weight: 700; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
}

.principles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.principles-media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; border-radius: var(--radius); }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 36px; align-content: center; }
.principle { border-top: 2px solid var(--green); padding-top: 18px; }
.principle h3 { margin-bottom: 10px; }
.principle p { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; }
  .principles-media img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .principle-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-panel { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 44px); }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
.form-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

fieldset { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
fieldset:last-of-type { margin-bottom: 28px; }
legend { font-weight: 800; font-stretch: 92%; font-size: 1.35rem; padding: 0; margin-bottom: 18px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row-3 { grid-template-columns: 2fr 1.2fr 1fr; }
@media (max-width: 640px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 8px; margin-bottom: 18px; align-content: start; }
.field-sub { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: 0.97rem; }
.field .req { color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.field .error-msg { font-size: 0.9rem; color: var(--error); margin: 0; display: none; font-weight: 600; }
.field.has-error .error-msg { display: block; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: #6b776f; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgb(217 146 46 / 0.35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }

/* Choice chips (checkbox / radio) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: #fff;
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice span .ph { font-size: 1.1rem; }
.choice input:hover + span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.field.has-error .choice span { border-color: var(--error); }

.form-alert {
  display: none; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--error); background: #fff; color: var(--ink);
  border-radius: var(--radius-input); padding: 14px 16px; margin-bottom: 24px;
}
.form-alert .ph { color: var(--error); font-size: 1.3rem; flex: none; }
.form-alert.is-visible { display: flex; }

.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-foot p { margin: 0; font-size: 0.92rem; color: var(--ink-2); max-width: 44ch; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn[aria-busy="true"] .spin { display: inline-block; }
.btn[aria-busy="true"] .ph { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: none; }
.form-success.is-visible { display: block; }
.form-success .ph-check-circle { font-size: 2.6rem; color: var(--green-2); }
.form-success h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem); margin: 14px 0 14px; }
.form-success p { color: var(--ink-2); max-width: 52ch; }

/* "What happens next" */
.next-steps { list-style: none; display: grid; }
.next-steps li { padding: 16px 0; border-top: 1px solid var(--line); }
.next-steps strong { display: block; }
.next-steps span { color: var(--ink-2); font-size: 0.97rem; }

.direct { display: grid; gap: 10px; }
.direct a { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.direct a .ph { color: var(--green-2); font-size: 1.2rem; }
.direct a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contact-lines { display: grid; align-content: start; }
.contact-line { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-line small { display: block; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.contact-line a, .contact-line address { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 800; font-stretch: 92%; color: var(--ink); text-decoration: none; font-style: normal; line-height: 1.25; overflow-wrap: anywhere; }
.contact-line a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.contact-line a.text-link { display: inline-flex; font-size: 1rem; font-stretch: 100%; font-weight: 700; margin-top: 12px; }
.contact-line p { margin: 0; font-weight: 600; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--surface); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 320px; }
}

.message-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.message-grid h2 { max-width: 12ch; }
.message-grid .muted { margin-top: 18px; max-width: 40ch; }
@media (max-width: 900px) {
  .message-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--surface); padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-brand img { width: 120px; }
.footer-brand p { margin-top: 18px; color: var(--ink-2); max-width: 34ch; }
.footer-col h2 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col address { color: var(--ink-2); text-decoration: none; font-style: normal; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Store */
.store-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.cat-chips .choice span small { font-size: 0.82em; font-weight: 600; opacity: 0.7; margin-left: 2px; font-variant-numeric: tabular-nums; }
.store-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 1.1rem; pointer-events: none; }
.search-box input { padding-left: 40px; width: 240px; }
.store-tools select { width: auto; }

.store-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 26px; }
.store-meta p { margin: 0; color: var(--ink-2); font-weight: 600; }
.store-meta .text-link { background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 700; cursor: pointer; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-media {
  aspect-ratio: 1; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.product-media img { width: 84%; height: 84%; object-fit: contain; transition: transform 0.6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-media.is-missing { background: var(--surface); color: var(--ink-2); font-size: 2.4rem; }
.product-cat { margin: 16px 0 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.product-card h3 { font-size: 1.12rem; line-height: 1.22; text-wrap: pretty; }
.product-desc {
  margin: 8px 0 16px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-buy { margin-top: auto; display: grid; gap: 12px; }
.product-buy select { padding: 10px 40px 10px 12px; font-size: 0.95rem; }
.product-size { margin: 0; font-size: 0.95rem; color: var(--ink-2); padding: 10px 0; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-stretch: 92%; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.add-btn.is-added { background: var(--amber); color: #18120a; }

.store-empty { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 6px; }
.store-empty > .ph { font-size: 2.4rem; color: var(--green-2); }
.store-empty h3 { margin-top: 8px; }
.store-note { margin-top: 48px; font-size: 0.9rem; color: var(--ink-2); }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chips .choice { scroll-snap-align: start; flex: none; }
  .store-tools { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
}
@media (max-width: 480px) {
  .product-card h3 { font-size: 1.02rem; }
  .product-row { flex-direction: column; align-items: stretch; }
  .product-row .btn { width: 100%; }
}

/* Cart drawer */
html.has-drawer { overflow: hidden; }
dialog.cart {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(460px, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  background: #fff; color: var(--ink);
  box-shadow: -24px 0 60px -30px rgb(0 0 0 / 0.45);
}
dialog.cart[open] { display: flex; flex-direction: column; }
dialog.cart::backdrop { background: rgb(12 20 15 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  dialog.cart[open] { animation: drawer-in 0.4s var(--ease); }
  dialog.cart[open]::backdrop { animation: fade-in 0.3s ease; }
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.cart-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.5rem; flex: 1; }
.cart-close, .cart-back {
  width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; cursor: pointer;
}
.cart-close:hover, .cart-back:hover { border-color: var(--ink); }
.cart-back { display: none; }
dialog.cart[data-step="order"] .cart-back { display: inline-flex; }

.cart-step { display: none; flex: 1; min-height: 0; flex-direction: column; }
dialog.cart[data-step="cart"] .cart-step-cart,
dialog.cart[data-step="order"] .cart-step-order,
dialog.cart[data-step="done"] .cart-step-order { display: flex; }
dialog.cart[data-step="done"] .order-summary { display: none; }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px 24px; overscroll-behavior: contain; }
.cart-list { list-style: none; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 86%; height: 86%; object-fit: contain; }
.cart-thumb.is-missing { background: var(--surface); color: var(--ink-2); font-size: 1.4rem; }
.cart-name { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.cart-meta { margin: 3px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 2px; }
.qty button { width: 30px; height: 30px; border-radius: 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-line strong { font-variant-numeric: tabular-nums; }
.cart-remove { border: 0; background: none; padding: 0; color: var(--ink-2); font: inherit; font-size: 0.86rem; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: var(--error); }

.cart-empty { text-align: center; padding: 56px 8px; display: grid; justify-items: center; gap: 4px; }
.cart-empty > .ph { font-size: 2.4rem; color: var(--green-2); margin-bottom: 8px; }
.cart-empty p { margin: 0; }
.cart-empty .btn { margin-top: 16px; }

.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); }
dialog.cart.is-empty .cart-foot { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total small { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.cart-total strong { font-size: 1.5rem; font-stretch: 92%; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-fine { font-size: 0.86rem; color: var(--ink-2); margin: 8px 0 14px; }
.cart-continue { width: 100%; }

.order-summary { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; margin: 16px 0 22px; border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.order-summary strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cart .form-success { padding-top: 24px; }
.cart .form-success h2 { font-size: 1.8rem; }

/* Motion: hero entrance and a light reveal on scroll. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-media img { animation: settle 1.2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0.4; transform: scale(1.03); } to { opacity: 1; transform: none; } }

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