/* =========================================================
   SUGARSPILL — PREMIUM BAKERY WEBSITE STYLESHEET
   Editorial typography • Forest green • Buttercream • Bakery gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --cream: #fbf7eb;
  --paper: #fffdf7;
  --paper-deep: #f5efdc;
  --butter: #f4e6a6;
  --butter-soft: #faf2d4;
  --green: #173d20;
  --green-deep: #102d18;
  --green-soft: #31583a;
  --muted: #737565;
  --line: #e7dfc6;
  --gold: #c89a2c;
  --gold-deep: #a97920;
  --orange: #bd713d;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --shadow-soft: 0 8px 28px rgba(23, 61, 32, .07);
  --shadow-card: 0 16px 42px rgba(23, 61, 32, .10);
  --shadow-hover: 0 22px 48px rgba(23, 61, 32, .15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

/* ---------- Reset & global typography ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--green);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

::selection {
  color: var(--paper);
  background: var(--green);
}

:focus-visible {
  outline: 3px solid rgba(200, 154, 44, .65);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* ---------- Announcement bar & navigation ---------- */
.topbar {
  padding: 8px 16px;
  background: var(--green);
  color: #f8e8a5;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid rgba(200, 154, 44, .2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23, 61, 32, .12);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(200, 154, 44, .35);
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--green);
  font-family: var(--serif);
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  position: relative;
  padding: 11px 14px;
  border-radius: 30px;
  color: #465344;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  transition: color .25s ease, background .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--butter-soft);
  color: var(--green);
}

.nav-cta,
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease,
    border-color .25s ease, box-shadow .25s ease;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--green-deep);
  background: var(--green-deep);
  box-shadow: 0 10px 24px rgba(23, 61, 32, .18);
}

.btn.light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--green);
}

.btn.light:hover {
  border-color: var(--butter);
  background: var(--butter);
  color: var(--green);
}

.btn.outline {
  border-color: rgba(23, 61, 32, .45);
  background: transparent;
  color: var(--green);
}

.btn.outline:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.btn.pink {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-deep);
}

.btn.pink:hover {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
  color: white;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--green);
  cursor: pointer;
  font-size: 21px;
}

/* ---------- Editorial headings & section typography ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.035;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.4vw, 58px);
  letter-spacing: -.05em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -.035em;
  line-height: 1.2;
}

h4 {
  font-family: var(--sans);
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

.lead {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
}

.section {
  padding-block: clamp(72px, 8vw, 112px);
}

.section-head {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Main hero ---------- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #eee4c5;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(251, 247, 235, .98) 0%,
      rgba(251, 247, 235, .91) 34%,
      rgba(251, 247, 235, .30) 68%,
      rgba(23, 61, 32, .08) 100%
    ),
    var(--hero-image) center / cover no-repeat;
  content: "";
  transform: scale(1.015);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -115px;
  bottom: -190px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(200, 154, 44, .25);
  border-radius: 50%;
  background: url("sugarspill-logo.jpg") center / contain no-repeat;
  box-shadow: 0 0 0 34px rgba(255, 253, 247, .10),
    0 0 0 72px rgba(255, 253, 247, .07);
  opacity: .14;
  content: "";
}

.hero-content {
  max-width: 680px;
  padding-block: 100px;
}

.hero h1 {
  max-width: 680px;
  margin-block: 20px 22px;
}

.hero h1 em {
  display: block;
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 52px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 24px;
  border-right: 1px solid rgba(23, 61, 32, .18);
}

.stat:last-child {
  border: 0;
}

.stat-icon {
  color: var(--gold-deep);
  font-size: 25px;
}

.stat strong {
  display: block;
  color: var(--green);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
}

.hero-tag {
  position: absolute;
  right: 7%;
  bottom: 8%;
  padding: 17px 24px;
  border: 1px solid rgba(200, 154, 44, .32);
  border-radius: 4px;
  background: rgba(255, 253, 247, .92);
  box-shadow: var(--shadow-card);
  color: var(--green);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  transform: rotate(-3deg);
  backdrop-filter: blur(12px);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 104px) 0;
  background: linear-gradient(115deg, #f8f0d8, #f2e4b5 58%, #e8d69b);
}

.page-hero::after {
  position: absolute;
  top: -175px;
  right: 7%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(200, 154, 44, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  box-shadow: 0 0 0 35px rgba(255, 255, 255, .10);
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  margin-block: 18px;
}

.page-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 223, 198, .85);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.category-card:hover img {
  transform: scale(1.055);
}

.category-card div {
  padding: 17px 19px 19px;
}

.category-card h3 {
  margin: 0;
  font-size: 21px;
}

/* ---------- About / split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(38px, 6vw, 76px);
}

.photo-frame {
  position: relative;
  isolation: isolate;
}

.photo-frame img {
  width: 100%;
  height: 510px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.photo-frame::before {
  position: absolute;
  z-index: -1;
  bottom: -18px;
  left: -18px;
  width: 45%;
  height: 45%;
  border: 1px solid rgba(200, 154, 44, .38);
  border-radius: var(--radius-lg);
  background: var(--butter);
  content: "";
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.benefit {
  padding: 27px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 154, 44, .55);
  box-shadow: var(--shadow-soft);
}

.benefit .icon {
  color: var(--gold-deep);
  font-size: 29px;
}

.benefit h3 {
  margin-block: 14px 8px;
  font-size: 20px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200, 154, 44, .48);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform .65s ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-info {
  padding: 19px 18px 18px;
}

.product-info h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.product-info p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.mini-btn {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--butter);
  color: var(--green);
  cursor: pointer;
  font-size: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.mini-btn:hover {
  transform: translateY(-2px) rotate(4deg);
  background: var(--green);
  color: #f8df4b;
}

/* ---------- Feature banner ---------- */
.feature-banner {
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 62px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      90deg,
      rgba(251, 247, 235, .98),
      rgba(251, 247, 235, .84) 48%,
      rgba(251, 247, 235, .10)
    ),
    url('https://images.unsplash.com/photo-1535141192574-5d4897c12636?auto=format&fit=crop&w=1800&q=85')
      center / cover;
}

.feature-banner .copy {
  max-width: 520px;
}

.feature-banner h2 {
  font-size: clamp(34px, 4vw, 50px);
}

/* ---------- Filters ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}

.filter-btn {
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--green);
  background: var(--green);
  color: #f8df4b;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quote {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.stars {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 3px;
}

.quote p {
  color: #626b5e;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
}

.quote strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- Contact section & form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: 26px;
}

.contact-card,
.form-card {
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item span {
  color: var(--gold-deep);
  font-size: 22px;
}

.contact-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #fffef9;
  color: var(--green);
  font-size: 14px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a392;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  background: white;
  box-shadow: 0 0 0 4px rgba(200, 154, 44, .14);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  color: var(--gold-deep) !important;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 42px;
  border: 1px solid rgba(248, 223, 75, .16);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--paper);
}

.cta-band h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: clamp(29px, 3vw, 38px);
}

.cta-band p {
  margin: 0;
  color: #dce5d5;
  font-size: 13px;
  line-height: 1.7;
}

.cta-band .btn {
  flex: 0 0 auto;
  border-color: #f8df4b;
  background: #f8df4b;
  color: var(--green);
}

.cta-band .btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 84px;
  padding: 64px 0 24px;
  background: var(--green-deep);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 38px;
}

.footer-grid h4 {
  margin: 0 0 17px;
  color: #f8df4b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #dce5d5;
  font-size: 12px;
  line-height: 1.85;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  transition: color .2s ease;
}

.footer-grid a:hover {
  color: #f8df4b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 223, 75, .22);
  color: #cbd8c4;
  font-size: 11px;
}

/* ---------- Scroll reveal fallback ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .navbar {
    gap: 16px;
  }

  .nav-links a {
    padding-inline: 10px;
    font-size: 11px;
  }

  .nav-cta {
    padding-inline: 16px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 38px;
  }

  .hero {
    min-height: 610px;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(251, 247, 235, .98),
        rgba(251, 247, 235, .78) 56%,
        rgba(251, 247, 235, .18)
      ),
      var(--hero-image) center / cover no-repeat;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobile navigation & layout ---------- */
@media (max-width: 700px) {
  .container {
    width: min(100% - 34px, 560px);
  }

  .navbar {
    min-height: 70px;
  }

  .brand {
    gap: 9px;
    font-size: 23px;
  }

  .brand-logo,
  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 15px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 7px;
    font-size: 13px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 680px;
    align-items: flex-end;
  }

  .hero::before {
    background:
      linear-gradient(
        0deg,
        rgba(251, 247, 235, .99) 0%,
        rgba(251, 247, 235, .92) 45%,
        rgba(251, 247, 235, .14) 100%
      ),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-content {
    padding: 250px 0 48px;
  }

  .hero h1 {
    margin-block: 15px 17px;
    font-size: clamp(43px, 12vw, 62px);
  }

  .hero .lead {
    max-width: 500px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    padding-inline: 17px;
  }

  .hero-stats {
    gap: 13px;
    margin-top: 30px;
  }

  .stat {
    gap: 7px;
    padding-right: 12px;
  }

  .stat-icon {
    font-size: 19px;
  }

  .stat strong {
    font-size: 14px;
  }

  .stat small {
    font-size: 9px;
  }

  .hero-tag {
    top: 23%;
    right: 5%;
    bottom: auto;
    padding: 12px 16px;
    font-size: 16px;
  }

  .section {
    padding-block: 66px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    margin: 0 8px 8px;
  }

  .photo-frame img {
    height: 360px;
  }

  .category-grid,
  .product-grid {
    gap: 13px;
  }

  .category-card {
    min-height: 0;
    border-radius: 12px;
  }

  .category-card img {
    height: 165px;
  }

  .category-card div {
    padding: 13px;
  }

  .category-card h3 {
    font-size: 17px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card img {
    height: 175px;
  }

  .product-info {
    padding: 13px;
  }

  .product-info h3 {
    font-size: 17px;
  }

  .product-info p {
    font-size: 11px;
  }

  .benefits {
    gap: 11px;
  }

  .benefit {
    padding: 18px 15px;
  }

  .benefit h3 {
    font-size: 18px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .quote {
    padding: 23px;
  }

  .feature-banner {
    min-height: 370px;
    padding: 30px 24px;
    background-position: 62% center;
  }

  .feature-banner .copy {
    max-width: 82%;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 29px 25px;
  }

  .cta-band .btn {
    width: 100%;
  }

  .site-footer {
    margin-top: 62px;
    padding-top: 48px;
  }

  .footer-grid {
    gap: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .page-hero {
    padding-block: 65px;
  }

  .page-hero h1 {
    font-size: clamp(39px, 11vw, 52px);
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 390px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar {
    font-size: 9px;
    letter-spacing: .09em;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 220px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-stats {
    gap: 9px;
  }

  .stat {
    padding-right: 8px;
  }

  .stat small {
    font-size: 8px;
  }

  .category-card img,
  .product-card img {
    height: 145px;
  }

  .category-card h3,
  .product-info h3 {
    font-size: 15px;
  }
}

/* ---------- Reduced motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
