@import "tokens.css";

/* ==========================================================================
   Flour & Bloom - styles.css
   reset → base → utilities → buttons → header/nav → hero → sections → footer
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Guarantee the `hidden` attribute always hides an element, even if a
   component class later sets its own `display` (form success, panels, etc.). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-tight); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Scroll-reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .strip__track { animation: none !important; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-7);
}
.section__title {
  font-size: var(--fs-800);
  color: var(--color-text);
  letter-spacing: -.01em;
}
.section__intro {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--fs-500);
  max-width: 40rem;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.eyebrow--berry { color: var(--color-primary); }
.eyebrow--caramel { color: var(--color-accent-strong); }
.eyebrow--cream { color: var(--color-accent); }

.link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link:hover { color: var(--color-primary-strong); border-bottom-color: currentColor; }
.link--cream { color: var(--color-accent); }
.link--cream:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-400);
  text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-strong); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  border-color: var(--color-primary);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--color-primary); color: var(--color-on-primary); }
.btn--lg { min-height: 52px; padding: var(--space-3) var(--space-6); font-size: var(--fs-500); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 239, .94);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
  background: rgba(253, 246, 239, .98);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
}
.header__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  flex: 0 0 auto;
}
.header__wordmark {
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--color-text);
  white-space: nowrap;
}

/* Toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.nav__toggle-bar {
  height: 2.5px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.is-nav-open .nav__toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.is-nav-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.is-nav-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.nav {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--gutter) var(--space-7);
  display: grid;
  gap: var(--space-5);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}
.nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__list { display: grid; gap: var(--space-1); }
.nav__link {
  display: block;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-500);
  color: var(--color-text);
  min-height: 44px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--color-surface-2); color: var(--color-primary); }
.nav__cta { width: 100%; white-space: nowrap; }

/* Language switch (EN | HR) - lives inside the nav, so it's part of the
   mobile drawer here and dissolves into the desktop bar with the rest of .nav. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  justify-self: start;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch__btn:hover { color: var(--color-primary-strong); }
.lang-switch__btn[aria-pressed="true"] {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 5rem) var(--section-y);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(207, 139, 78, .14), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(178, 58, 91, .08), transparent 60%),
    var(--color-bg);
}
.hero__inner {
  display: grid;
  gap: var(--space-7);
}
.hero__copy { max-width: 38rem; }
.hero__title {
  font-size: var(--fs-900);
  letter-spacing: -.015em;
  color: var(--color-text);
}
.hero__lede {
  margin-top: var(--space-5);
  font-size: var(--fs-500);
  color: var(--color-muted);
  max-width: 34rem;
}
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__stats {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-5);
  max-width: 30rem;
}
.hero__stat dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-700);
  color: var(--color-primary);
  line-height: 1;
}
.hero__stat dd {
  margin-top: var(--space-2);
  font-size: var(--fs-300);
  color: var(--color-muted);
}

.hero__media {
  position: relative;
  isolation: isolate;
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-surface);
}
.hero__badge {
  position: absolute;
  bottom: -18px;
  right: 14px;
  display: grid;
  place-content: center;
  text-align: center;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
  border: 3px dashed rgba(255, 255, 255, .55);
  z-index: 2;
}
.hero__badge-top { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hero__badge-bottom {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.strip {
  background: var(--color-primary);
  color: var(--color-on-primary);
  overflow: hidden;
  padding-block: var(--space-3);
}
.strip__track {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  animation: strip-scroll 32s linear infinite;
}
.strip__dot { color: var(--color-accent); font-style: normal; }
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Featured products
   ========================================================================== */
.products { background: var(--color-bg); }
.products__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.product {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product__media { position: relative; }
.product__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.product__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(253, 246, 239, .92);
  color: var(--color-primary);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.product__body { padding: var(--space-5); display: grid; gap: var(--space-2); }
.product__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.product__name {
  font-size: var(--fs-600);
  color: var(--color-text);
}
.product__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--color-accent-strong);
  white-space: nowrap;
}
.product__desc { color: var(--color-muted); font-size: var(--fs-400); }
.products__note {
  margin-top: var(--space-7);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--fs-500);
}

/* ==========================================================================
   Custom cakes feature
   ========================================================================== */
.custom { background: var(--color-surface-2); }
.custom__inner {
  display: grid;
  gap: var(--space-7);
}
.custom__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.custom__lede {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--fs-500);
}
.custom__features {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-5);
}
.custom__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}
.custom__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  flex: 0 0 auto;
}
.custom__feature-title { font-size: var(--fs-500); color: var(--color-text); margin-bottom: 2px; }
.custom__feature p { color: var(--color-muted); font-size: var(--fs-400); }
.custom__cta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}
.custom__from { color: var(--color-muted); font-size: var(--fs-400); }
.custom__from strong { color: var(--color-text); font-family: var(--font-display); font-size: var(--fs-500); }

/* ==========================================================================
   Story
   ========================================================================== */
.story { background: var(--color-bg); }
.story__inner {
  display: grid;
  gap: var(--space-7);
}
.story__copy p {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--fs-500);
  max-width: 38rem;
}
.story__quote {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.story__quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-600);
  color: var(--color-text);
  line-height: var(--lh-snug);
}
.story__quote figcaption {
  margin-top: var(--space-3);
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}
.story__media { position: relative; }
.story__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  background: rgba(46, 33, 29, .82);
  color: var(--color-on-cocoa);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  display: grid;
  backdrop-filter: none;
}
.story__caption-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-500); }
.story__caption-role { font-size: var(--fs-300); color: var(--color-on-cocoa-muted); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { background: var(--color-surface-2); }
.gallery__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}
.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  transition: transform var(--dur) var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.loved { background: var(--color-bg); }
.loved__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.quote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .6;
  color: var(--color-accent);
  opacity: .45;
}
.quote__text { font-size: var(--fs-500); color: var(--color-text); flex: 1; }
.quote__person { display: flex; align-items: center; gap: var(--space-3); }
.quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  flex: 0 0 auto;
}
.quote__name { display: block; font-weight: 700; color: var(--color-text); }
.quote__meta { display: block; font-size: var(--fs-300); color: var(--color-muted); }

/* ==========================================================================
   Order CTA + form (cocoa band)
   ========================================================================== */
.order {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(207, 139, 78, .18), transparent 55%),
    var(--color-cocoa);
  color: var(--color-on-cocoa);
}
.order__inner {
  display: grid;
  gap: var(--space-7);
}
.order__title { color: #fff; }
.order__lede { margin-top: var(--space-4); color: var(--color-on-cocoa-muted); font-size: var(--fs-500); }
.order__list {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.order__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-on-cocoa);
}
.order__list span { color: var(--color-accent); }
.order__call { margin-top: var(--space-6); color: var(--color-on-cocoa-muted); }

.order__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

/* Form */
.form__chips {
  border: 0;
  padding: 0;
  margin-bottom: var(--space-5);
}
.form__legend {
  font-weight: 600;
  font-size: var(--fs-400);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.chip {
  display: inline-flex;
  margin: 0 var(--space-2) var(--space-2) 0;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--color-primary); color: var(--color-primary); }
.chip.is-active span,
.chip input:checked + span {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.form__grid { display: grid; gap: var(--space-4); }
.form__field { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.form__grid .form__field { margin-bottom: 0; }
.form__label { font-weight: 600; font-size: var(--fs-300); color: var(--color-text); }
.form__input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form__input::placeholder { color: #b39a8d; }
.form__input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(178, 58, 91, .18);
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__fineprint {
  margin-top: var(--space-3);
  font-size: var(--fs-300);
  color: var(--color-muted);
  text-align: center;
}
.form__success {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-size: var(--fs-500);
  color: var(--color-text);
  text-align: center;
}
.form__success-emoji { display: block; font-size: 2.5rem; margin-bottom: var(--space-2); }

/* ==========================================================================
   Visit - hours & location
   ========================================================================== */
.visit { background: var(--color-bg); }
.visit__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.visit__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.visit__subtitle {
  font-size: var(--fs-600);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.hours { display: grid; gap: var(--space-1); }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-border);
}
.hours__row:last-child { border-bottom: 0; }
.hours dt { color: var(--color-muted); }
.hours dd { font-weight: 600; color: var(--color-text); }
.visit__note { margin-top: var(--space-4); color: var(--color-muted); font-size: var(--fs-300); }
.visit__address { font-style: normal; font-size: var(--fs-500); color: var(--color-text); line-height: var(--lh-snug); }
.visit__contacts { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.visit__map svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-cocoa);
  color: var(--color-on-cocoa);
  padding-top: var(--section-y);
}
.footer__inner {
  display: grid;
  gap: var(--space-7);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
}
.footer__logo .header__mark { background: var(--color-accent); color: var(--color-cocoa); }
.footer__logo .header__wordmark { color: #fff; }
.footer__blurb {
  margin-top: var(--space-4);
  color: var(--color-on-cocoa-muted);
  max-width: 30rem;
}
.footer__social {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: var(--color-on-cocoa);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--color-accent); color: var(--color-cocoa); transform: translateY(-2px); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-500);
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer__col ul { display: grid; gap: var(--space-2); }
.footer__col a {
  color: var(--color-on-cocoa-muted);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--color-accent); }

.footer__bar {
  margin-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: var(--space-5);
}
.footer__bar-inner {
  display: grid;
  gap: var(--space-2);
  color: var(--color-on-cocoa-muted);
  font-size: var(--fs-300);
}
.footer__credit { color: var(--color-on-cocoa-muted); }

/* ==========================================================================
   Responsive - layer up with min-width
   ========================================================================== */
@media (min-width: 600px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .loved__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bar-inner { display: flex; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: var(--space-8);
  }
  .hero__badge { width: 116px; height: 116px; bottom: -22px; right: 22px; }
  .custom__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-8); }
  .story__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-8); }
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    /* dense back-fills the cell the wide item skips - without it the last
       row is mostly holes */
    grid-auto-flow: dense;
  }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--tall img { aspect-ratio: auto; }
  .gallery__item--wide { grid-column: span 2; }
  .order__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-8); }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .loved__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.2fr 1.4fr; gap: var(--space-9); }
  .visit__grid { grid-template-columns: 1fr 1fr 1.3fr; }
  .visit__map { grid-column: 3; grid-row: 1 / span 1; }
}

/* Desktop nav: dissolve the drawer into an inline bar.
   Kicks in at 1180px (the container's own max-width) rather than the more
   common 1024px, on purpose: five nav links + the EN/HR switch + the "Order
   online" CTA need the room, and Croatian labels run longer than English -
   the row must never wrap (see header contract). Below 1180px the compact
   hamburger drawer (with the switch inside it) handles it comfortably. */
@media (min-width: 1180px) {
  .nav__toggle { display: none; }
  .nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
  }
  .nav__list { display: flex; align-items: center; gap: var(--space-1); }
  .nav__link {
    padding: var(--space-2) var(--space-2);
    font-size: var(--fs-400);
    min-height: auto;
  }
  .nav__link:hover { background: transparent; color: var(--color-primary); }
  .lang-switch { justify-self: auto; }
  .nav__cta { width: auto; }
}

@media (min-width: 1280px) {
  .nav { gap: var(--space-5); }
  .nav__list { gap: var(--space-2); }
  .nav__link { padding: var(--space-2) var(--space-3); }
}
