/* =========================================================
   The Sweet Crumb — Bakery One-Page Site
   ========================================================= */

:root {
  --blue: #34409e;
  --blue-dark: #262f7d;
  --blue-darker: #1b2160;
  --cream: #faf6f0;
  --white: #ffffff;
  --rust: #b85c38;
  --rust-dark: #9a4a2c;
  --text-dark: #1c1c2e;
  --text-muted: #5b5f7a;
  --gray-soft: #eeece7;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Poppins", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  --container-width: 1200px;
  --header-h: 92px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e7e2d8, #d8d2c4);
  border-radius: 20px;
  overflow: hidden;
  color: rgba(0,0,0,.35);
}
.placeholder-img::before {
  content: attr(data-icon);
  font-size: 2.4rem;
  filter: grayscale(0) drop-shadow(0 6px 10px rgba(0,0,0,.15));
}
.placeholder-img[data-bg="rust"] { background: linear-gradient(145deg, var(--rust), var(--rust-dark)); }
.placeholder-img[data-bg="cream"] { background: linear-gradient(145deg, #f4ece2, #e5dccb); }

.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Strip the placeholder background/icon once a real image is in place */
.no-bg {
  background: none;
}
.no-bg::before {
  content: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(52, 64, 158, .25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(52, 64, 158, .35);
}
.btn-order {
  background: var(--rust);
  color: var(--white);
  padding: 10px 18px;
  font-size: .8rem;
  box-shadow: 0 6px 14px rgba(184, 92, 56, .3);
}
.btn-order:hover { transform: translateY(-2px) scale(1.03); background: var(--rust-dark); }
.btn-order.pulsed { animation: pulseOrder .45s var(--ease); }
.btn-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  position: relative;
}
.btn-dot::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.btn-dot--light::after { background: var(--rust); }
.btn-center { display: flex; width: fit-content; margin: 24px auto 0; }
/* When placed as the last item in a CSS grid (e.g. product-grid's 3
   columns), span every column so width:fit-content + margin:auto can
   actually center it across the full row instead of one grid cell. */
.grid-span-all { grid-column: 1 / -1; }

@keyframes pulseOrder {
  0% { transform: scale(1); }
  40% { transform: scale(.92); }
  100% { transform: scale(1); }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, .85);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  background: rgba(250, 246, 240, .97);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav-links--right { justify-content: flex-end; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--blue);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--blue);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.logo--light { color: var(--white); text-align: left; }

.logo--img {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Only the header nav gives this a meaningful height to fill (var(--header-h)).
   Scoped so reusing .logo--img in the footer (a CSS Grid item with an
   auto-sized row) doesn't stretch to 100% of that row and push the
   tagline/socials below it into an overlap with the next column. */
.nav .logo--img {
  height: 100%;
}
.logo-img {
  height: calc(var(--header-h) - 24px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .3s var(--ease);
}
.logo--img:hover .logo-img { transform: scale(1.04); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: max-height .45s var(--ease), box-shadow .3s var(--ease);
}
.mobile-menu.open {
  max-height: 400px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.mobile-link {
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue);
  border-top: 1px solid var(--gray-soft);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 86vh;
  padding: 28px 0 48px;
  text-align: center;
  overflow: hidden;
}

.hero-marquee {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  min-height: 0;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 9.5vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--blue);
  user-select: none;
  white-space: nowrap;
}

.hero-croissant {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 38vw, 540px);
  height: clamp(190px, 25vw, 360px);
  transform: translate(-50%, -50%) rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: floatCroissant 5s ease-in-out infinite;
  pointer-events: none;
}
/* Soft contact shadow drawn as its own layer (instead of filter: drop-shadow
   on the photo) so a non-transparent/near-white photo background never gets
   shadowed as a hard-edged rectangle behind the loaf. */
.hero-croissant::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 74%;
  height: 22%;
  background: radial-gradient(closest-side, rgba(28, 28, 46, .38), rgba(28, 28, 46, 0) 75%);
  transform: translateX(-50%);
  z-index: -1;
}
.hero-croissant img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Lets a photo with a white/light studio background sit seamlessly on the
     page instead of showing its rectangular background as a visible box. */
  mix-blend-mode: multiply;
}

@keyframes floatCroissant {
  0%, 100% { transform: translate(-50%, -50%) rotate(-8deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(-4deg) translateY(-16px); }
}

.hero-tagline {
  margin-top: 32px;
  font-size: 1.15rem;
  color: var(--blue);
  font-style: italic;
  font-family: var(--font-display);
  align-self: center;
}

.hero .btn-primary {
  margin-top: 22px;
  align-self: center;
  width: auto;
  flex: none;
}

/* =========================================================
   Story / About
   ========================================================= */
.story {
  background: var(--blue);
  color: var(--white);
  padding: 90px 0 110px;
  position: relative;
}

.story-heading {
  max-width: 780px;
  margin: 0 auto 60px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 28px;
  position: relative;
}

.macaron {
  aspect-ratio: 1;
  border-radius: 50%;
}
.macaron-1 { grid-column: 1; grid-row: 1; width: 78%; align-self: end; justify-self: end; }
.macaron-2 { grid-column: 1; grid-row: 1; width: 60%; align-self: end; justify-self: start; margin-bottom: -10%; }

.story-small {
  grid-column: 1; grid-row: 2;
  aspect-ratio: 1;
  border-radius: 24px;
}

.story-main {
  grid-column: 2; grid-row: 1 / span 2;
  aspect-ratio: 1;
  border-radius: 28px;
  min-height: 260px;
}

.story-text {
  grid-column: 3; grid-row: 1 / span 2;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  align-self: center;
}

.cookie-stack {
  grid-column: 4; grid-row: 1 / span 2;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  align-self: center;
}

/* =========================================================
   Page hero (secondary pages, e.g. full menu)
   ========================================================= */
.page-hero {
  padding: 64px 0 12px;
  text-align: center;
}
.page-hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1.05;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =========================================================
   Products
   ========================================================= */
.products {
  padding: 90px 0 100px;
  text-align: center;
}

.pills {
  display: inline-flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  padding: 10px 26px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.pill.active,
.pill:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.products-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--blue);
  margin-bottom: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.product-card.is-hidden {
  display: none;
}

@keyframes cardPop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.product-card.filter-pop {
  animation: cardPop .5s var(--ease);
}

.product-image {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  perspective: 600px;
  overflow: visible;
}

/* Constrain every product photo to the same footprint regardless of its
   natural size, so taller source images (e.g. drink cups) can't overlap
   the title/price text below the circle. */
.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

/* Pop the product icon forward off its background disc, in 3D */
.product-image::before {
  font-size: 3.2rem;
  position: relative;
  transform: translateZ(55px) scale(1.08) rotateX(6deg);
  transform-origin: center 65%;
  filter: drop-shadow(0 18px 14px rgba(20, 12, 4, .38));
  transition: transform .45s var(--ease), filter .45s var(--ease);
  will-change: transform;
}

.product-card:hover .product-image::before {
  transform: translateZ(85px) scale(1.18) rotateX(3deg) rotateY(-6deg);
  filter: drop-shadow(0 26px 20px rgba(20, 12, 4, .45));
}

/* Soft contact shadow under the popped icon to sell the depth */
.product-image::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 58%;
  height: 14%;
  background: radial-gradient(closest-side, rgba(20, 12, 4, .32), rgba(20, 12, 4, 0) 75%);
  transform: translateX(-50%) scaleX(1);
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  border-radius: 50%;
  z-index: 0;
}
.product-card:hover .product-image::after {
  transform: translateX(-50%) scaleX(1.25);
  opacity: .8;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.product-desc {
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 220px;
}

.product-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 70px;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  transition: transform .5s var(--ease);
}
.gallery-img::before { font-size: 3.5rem; }
.gallery-img:hover { transform: scale(1.03) rotate(-1deg); }

/* =========================================================
   Values (About page)
   ========================================================= */
.values-section {
  padding: 20px 0 100px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 50px 0 56px;
  text-align: left;
}

.value-card {
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--gray-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.value-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-section {
  padding: 20px 0 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--blue);
  font-size: .95rem;
}
.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-soft);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 64, 158, .12);
}
.form-group textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

.contact-info-card {
  background: var(--blue);
  color: var(--white);
  border-radius: 28px;
  padding: 44px 40px;
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 28px;
}
.contact-info-row { margin-bottom: 24px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.contact-info-row p,
.contact-info-row a {
  font-size: .95rem;
  color: var(--white);
  line-height: 1.6;
}
.hours-row--light { max-width: none; color: var(--white); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--blue-darker);
  color: var(--white);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo--light,
.footer-brand .logo--img { margin-bottom: 14px; justify-content: flex-start; }
.footer-brand .logo-img { height: 56px; }
.footer-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}

.socials { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--white); }

.hours-row { display: flex; justify-content: space-between; gap: 16px; max-width: 220px; }

.copyright {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* =========================================================
   Scroll reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.story-gallery .reveal:nth-child(1) { transition-delay: .05s; }
.story-gallery .reveal:nth-child(2) { transition-delay: .12s; }
.story-gallery .reveal:nth-child(3) { transition-delay: .18s; }
.story-gallery .reveal:nth-child(4) { transition-delay: .24s; }
.story-gallery .reveal:nth-child(5) { transition-delay: .3s; }
.story-gallery .reveal:nth-child(6) { transition-delay: .36s; }
.product-grid .reveal:nth-child(1) { transition-delay: 0s; }
.product-grid .reveal:nth-child(2) { transition-delay: .12s; }
.product-grid .reveal:nth-child(3) { transition-delay: .24s; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--blue-darker);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Responsive — Tablet (<=1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  .story-gallery {
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .macaron-1, .macaron-2 { grid-column: 1; grid-row: 1; }
  .story-small { grid-column: 1; grid-row: 2; }
  .story-main { grid-column: 2; grid-row: 1 / span 2; }
  .cookie-stack { grid-column: 3; grid-row: 1 / span 2; }
  .story-text { grid-column: 1 / -1; grid-row: 3; text-align: center; margin-top: 10px; }

  .product-grid { gap: 28px; }

  .contact-grid { gap: 36px; }
}

/* =========================================================
   Responsive — Mobile / small tablet (<=768px)
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 76px; }

  .nav-links--left, .nav-links--right { display: none; }
  .hamburger { display: flex; }
  .logo { font-size: 1.05rem; margin: 0 auto; }

  /* Only the hamburger remains as a flex child at this size, so pin it to the
     right and center the logo independently via absolute positioning —
     otherwise a lone flex child under space-between sits at the start (left).
     Scoped to .nav so the footer's reuse of .logo--img isn't pulled out of
     its normal document flow. */
  .nav { justify-content: flex-end; position: relative; }
  .nav .logo--img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Shorter viewport-relative height on mobile — 86vh (tuned for desktop)
     left large empty gaps above/below the now-tightly-clustered text. */
  .hero { min-height: 58vh; padding: 28px 0 36px; }
  .hero-row { padding: 0 12px; letter-spacing: -.03em; }
  /* Tighten the gap between the 3 text rows without changing the marquee's
     own height, so the bread (centered on the marquee box) stays put. */
  .hero-marquee { justify-content: center; gap: 10px; }
  .hero-croissant { width: clamp(210px, 68vw, 380px); height: clamp(145px, 44vw, 240px); }
  .hero-tagline { font-size: 1rem; margin-top: 24px; }

  .story { padding: 60px 0 70px; }
  .story-heading { margin-bottom: 40px; }
  .story-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .story-gallery > * { width: 100% !important; max-width: 340px; margin: 0 !important; }
  .macaron { max-width: 140px; }
  .story-main { min-height: unset; }

  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-row { grid-template-columns: 1fr; gap: 20px; }

  .values-grid { grid-template-columns: 1fr; gap: 20px; margin: 40px 0 44px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-info-card { padding: 36px 28px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   Responsive — Small mobile (<=480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-row { font-size: clamp(1.15rem, 7.6vw, 1.9rem); letter-spacing: -.01em; }
  .products-heading { font-size: 1.9rem; }
  .btn { padding: 12px 22px; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 4px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
