:root {
  --teal: #0f7f78;
  --teal-deep: #0a5c57;
  --accent: #0f7f78;
  --pink: #d45d7a;
  --ink: #1f2a28;
  --muted: #5c6b68;
  --paper: #f7f1e8;
  --cream: #fff8f0;
  --shadow: rgba(31, 42, 40, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 127, 120, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(212, 93, 122, 0.1), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--paper) 40%, #efe6d8);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ===== Header (Whiddy's layout in current cream bar) ===== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 22px;
  background: rgba(255, 248, 240, 0.96);
  border-bottom: 1px solid rgba(31, 42, 40, 0.08);
  backdrop-filter: blur(8px);
}

.socials {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 110px;
  flex: 0 0 auto;
}

.socials a {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: rgba(31, 42, 40, 0.78);
}

.socials a:hover {
  color: var(--teal-deep);
}

.socials svg {
  width: 100%;
  height: 100%;
}

.menu {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu a:hover {
  color: var(--accent);
}

.menu .search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--accent);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  background: #fff;
  color: #1c2430;
  border: 1px solid #e6e8ec;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  padding: 8px;
  z-index: 45;
  text-transform: none;
  letter-spacing: 0;
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1c2430;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.is-active {
  background: #f3f5f8;
}

.menu .search-toggle {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu .search-toggle svg {
  width: 100%;
  height: 100%;
}

.menu .search-toggle:hover {
  color: var(--accent);
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search[hidden] {
  display: none !important;
}

.nav-search input {
  width: min(180px, 28vw);
  border: 0;
  border-bottom: 1px solid rgba(31, 42, 40, 0.28);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(31, 42, 40, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 140px;
  flex: 0 0 auto;
}

.nav-actions > a {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.nav-actions > a:hover {
  color: var(--accent);
}

.nav-actions svg {
  width: 100%;
  height: 100%;
}

.nav-actions .with-badge span {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(52vh, 520px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #1a2422;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #1a2422;
  background-image: url("/images/grandma-hero-lqip.jpg");
  background-size: cover;
  background-position: 58% 72%;
}

.hero-media picture,
.hero-media img.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media picture {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Desktop crop — unchanged from before */
  object-position: 58% 72%;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-photo.is-ready {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 40, 38, 0.72) 0%, rgba(12, 40, 38, 0.42) 42%, rgba(12, 40, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 40, 38, 0.1) 0%, rgba(12, 40, 38, 0.28) 55%, rgba(12, 40, 38, 0.58) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(40rem, 92vw);
  padding: clamp(1.8rem, 4.5vh, 3rem) clamp(1.2rem, 5vw, 3.5rem);
  animation: rise-in 0.8s ease both;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.hero-lede {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--teal-deep);
}

.btn-primary:hover {
  background: #f3c5cf;
}

/* ===== Goods ===== */
.goods {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.goods-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.goods-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
}

.goods-head p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.goods-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.goods-list li {
  padding: 1.4rem 1.35rem 1.5rem;
  border-top: 2px solid rgba(15, 127, 120, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
}

.goods-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goods-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.goods-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.placeholder {
  display: none;
}

/* ===== Trust bar ===== */
.trust {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(31, 42, 40, 0.1);
  background: #fff;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink);
}

.rating .stars {
  color: #f5b942;
  letter-spacing: 0.08em;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-list .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--teal);
}

.trust-list .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-list strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.trust-list p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Story / Contact / FAQ ===== */
.story {
  background: rgba(15, 127, 120, 0.08);
  padding: clamp(3rem, 7vh, 4.5rem) 0;
}

.story-inner,
.contact-inner,
.faq-inner {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.story h2,
.contact h2,
.faq h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
}

.story p,
.contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
}

.contact {
  padding: clamp(3rem, 7vh, 4.5rem) 0;
  background: #fff;
}

.contact a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq {
  padding: 0 0 clamp(3rem, 7vh, 4.5rem);
  background: #fff;
}

.faq details {
  border-top: 1px solid rgba(31, 42, 40, 0.1);
  padding: 0.95rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid rgba(31, 42, 40, 0.1);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "▼";
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.7rem;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::before {
  transform: rotate(0deg);
}

.faq details p {
  margin: 0.55rem 0 0.2rem 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Auth drawers ===== */
.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;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 40, 0.42);
  z-index: 80;
}

.auth-overlay[hidden] {
  display: none !important;
}

.auth-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: var(--cream);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  padding: 22px 26px 36px;
  color: var(--ink);
  font-family: var(--font-body);
}

.auth-drawer.is-open {
  transform: translateX(0);
}

.auth-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 40, 0.12);
  margin-bottom: 22px;
}

.auth-drawer-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 0 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(31, 42, 40, 0.18);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 16px 14px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--teal);
}

.auth-form input::placeholder {
  color: #8a9794;
}

.auth-muted-link,
.auth-switch {
  border: 0;
  background: transparent;
  color: #8a9794;
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-switch {
  text-align: center;
  margin-top: 8px;
}

.auth-submit {
  margin-top: 6px;
  border: 0;
  width: 100%;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-submit:hover {
  background: var(--teal-deep);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-privacy {
  margin: 4px 0 0;
  color: #8a9794;
  font-size: 12px;
  line-height: 1.55;
}

.auth-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: #d4524a;
}

.auth-status.is-ok {
  color: var(--teal-deep);
}

.auth-account {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-hello {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
}

.auth-email {
  margin: 0 0 6px;
  color: var(--muted);
}

.auth-shipments h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shipment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipment-card {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(31, 42, 40, 0.12);
}

.shipment-card strong {
  display: block;
  font-size: 14px;
}

.shipment-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.shipment-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(31, 42, 40, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.foot-brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.foot-brand picture {
  flex-shrink: 0;
}

.foot-brand strong,
.foot-brand span {
  display: block;
}

.foot-brand strong {
  font-family: var(--font-display);
}

.foot-brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1%, -0.5%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .trust-list {
    width: 100%;
    gap: 16px 22px;
  }

  .menu,
  .socials {
    display: none;
  }

  .main-nav.is-open .menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px 20px;
    background: rgba(255, 248, 240, 0.98);
    border-bottom: 1px solid rgba(31, 42, 40, 0.08);
  }

  .menu-toggle {
    display: inline-grid;
    order: 3;
  }

  .nav-actions {
    width: auto;
    margin-left: auto;
  }

  .goods-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(58vh, 480px);
    align-items: end;
  }

  /* Mobile art direction: force cropped hero (head removed).
     Tall phone viewports ignore object-position on the full landscape image. */
  .hero-media {
    background-color: #1a2422;
    background-image: url("/images/grandma-hero-mobile.jpg");
    background-size: cover;
    background-position: 50% 35%;
  }

  .hero-media picture {
    display: none;
  }

  .hero-photo {
    display: none;
  }

  .hero-veil {
    background:
      linear-gradient(90deg, rgba(12, 40, 38, 0.62) 0%, rgba(12, 40, 38, 0.28) 55%, rgba(12, 40, 38, 0.12) 100%),
      linear-gradient(180deg, rgba(12, 40, 38, 0.08) 0%, rgba(12, 40, 38, 0.22) 40%, rgba(12, 40, 38, 0.72) 100%);
  }

  .hero-copy {
    justify-content: flex-end;
    width: min(100%, 92vw);
    padding: 1.2rem 1.15rem 1.85rem;
    padding-top: 4.5rem;
  }

  .hero-brand {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    margin-bottom: 0.55rem;
  }

  .hero-lede {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-copy {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .hero-photo {
    transform: none;
  }
}
