/* Tastevia — Home Page prototype (Figma node 101:205) */

:root {
  --color-bg: #ffffff;
  --color-ink: #000000;
  --color-muted: rgba(0, 0, 0, 0.6);
  --color-cyan: #e7fafe;
  --color-cyan-soft: #e7f9fd;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-heart: #ff6363;
  --color-promo: #1e4d3c;
  --color-brand-dot: #ff7426;
  --color-webflow: #ff7967;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-logo: "Lobster", cursive;
  --radius-card: 30px;
  --radius-btn: 16px;
  --radius-pill: 999px;
  --radius-newsletter: 60px;
  --container: 1280px;
  --page-padding: 80px;
  --section-gap: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.container {
  width: min(100% - 32px, var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - var(--page-padding) * 2, var(--container));
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-ink);
  color: #fff;
  padding: 20px 36px;
  border-radius: var(--radius-btn);
  min-height: 60px;
}

.btn--soft {
  background: var(--color-cyan);
  color: var(--color-ink);
  padding: 20px 28px;
  border-radius: var(--radius-btn);
  min-height: 60px;
  font-size: 16px;
}

.btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ——— Meta pills ——— */

.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: -0.02em;
}

.meta__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.meta--pill {
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 20px 8px 16px;
  border-radius: var(--radius-pill);
}

/* ——— Heart save button ——— */

.save-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.save-btn:hover {
  transform: scale(1.06);
}

.save-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.save-btn.is-liked {
  box-shadow: 0 4px 14px rgba(255, 99, 99, 0.25);
}

.save-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tastevia-like__count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-heart, #ff6363);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.recipe-action.tastevia-like {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  font: inherit;
}

.recipe-action.tastevia-like img {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.recipe-action.tastevia-like .tastevia-like__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.recipe-action.tastevia-like .tastevia-like__count {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.recipe-action.tastevia-like.is-liked .tastevia-like__label {
  color: var(--color-heart, #ff6363);
}

.recipe-action.tastevia-like.is-liked .tastevia-like__count {
  background: var(--color-heart, #ff6363);
}

.post-hero__meta {
  position: relative;
}

.post-hero__like {
  position: relative;
  top: auto;
  right: auto;
  margin-left: auto;
}

/* ——— Section headings ——— */

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-head {
  margin-bottom: 64px;
}

.section-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head--center {
  text-align: center;
  max-width: 706px;
  margin-inline: auto;
}

.section-head--center p,
.section-head--split p {
  color: var(--color-muted);
  margin-top: 24px;
  line-height: 1.75;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 507px) minmax(0, 620px);
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

/* ——— Header ——— */

.site-header {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
}

.logo__dot {
  color: var(--color-brand-dot);
}

.nav {
  display: flex;
  align-items: center;
  gap: 64px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav a:hover {
  opacity: 0.65;
}

.social {
  display: flex;
  align-items: center;
  gap: 28px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-ink);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  opacity: 0.55;
  transform: translateY(-1px);
}

.social img,
.social svg {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

/* ——— Hero ——— */

.hero {
  padding: 80px 0 var(--section-gap);
}

.hero__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-cyan);
  min-height: 640px;
  position: relative;
}

.hero__content {
  padding: 50px 50px 50px 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: #fff;
  padding: 10px 20px 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  max-width: 520px;
}

.hero__desc {
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.75;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.author__name a {
  color: inherit;
  text-decoration: none;
}

.author__name a:hover {
  opacity: 0.7;
}

.author__date {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.hero__media {
  position: relative;
  min-height: 640px;
  background: #f5f5f5;
}

.hero__media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 640px;
}

.hero__handpicked {
  position: absolute;
  left: -75px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  z-index: 3;
}

.hero__handpicked-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000;
  animation: spin-slow 20s linear infinite;
}

.hero__handpicked-ring svg {
  width: 100%;
  height: 100%;
}

.hero__handpicked-ring text {
  fill: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__handpicked-thumb {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.hero__handpicked-thumb img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* ——— Categories ——— */

.categories {
  padding-bottom: var(--section-gap);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
  min-height: 202px;
  border-radius: var(--radius-card);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card__img-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: 50px;
  display: grid;
  place-items: center;
}

.category-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Figma exports these icons on black; multiply removes the black on light cards */
  mix-blend-mode: multiply;
}

.category-card__label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 24px;
}

.category-card--breakfast {
  background: linear-gradient(180deg, #fff 0%, rgba(112, 130, 70, 0.1) 100%);
}

.category-card--vegan {
  background: linear-gradient(180deg, #fff 0%, rgba(108, 198, 63, 0.1) 100%);
}

.category-card--meat {
  background: linear-gradient(180deg, #fff 0%, rgba(204, 38, 27, 0.1) 100%);
}

.category-card--dessert {
  background: linear-gradient(180deg, #fff 0%, rgba(240, 158, 0, 0.1) 100%);
}

.category-card--lunch,
.category-card--chocolate {
  background: linear-gradient(180deg, #fff 0%, rgba(0, 0, 0, 0.05) 100%);
}

/* ——— Recipes ——— */

.recipes {
  padding-bottom: var(--section-gap);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.recipe-card {
  background: linear-gradient(180deg, #fff 0%, var(--color-cyan-soft) 100%);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.recipe-card__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 368 / 250;
  background: #eee;
  flex-shrink: 0;
}

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

.recipe-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  padding: 0 8px;
}

.recipe-card__title a,
.more-card__title a {
  color: inherit;
  text-decoration: none;
}

.recipe-card__title a:hover,
.more-card__title a:hover {
  color: var(--color-accent, #ff7426);
}

.recipe-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 4px 8px 12px;
  margin-top: auto;
}

.recipe-card--promo {
  background: var(--color-promo);
  color: #fff;
  text-align: center;
  padding: 32px 20px 28px;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  gap: 12px;
}

.recipe-card--promo::before {
  content: "";
  position: absolute;
  width: 710px;
  height: 710px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -200px;
  left: -180px;
  pointer-events: none;
}

.recipe-card__promo-title {
  font-family: var(--font-logo);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
  max-width: 172px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.recipe-card__promo-img {
  width: min(100%, 260px);
  max-height: 240px;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.recipe-card__promo-url {
  display: none;
}

/* ——— Chef ——— */

.chef {
  padding-bottom: var(--section-gap);
}

.chef__inner {
  display: grid;
  grid-template-columns: 526px 1fr;
  gap: 44px;
  align-items: center;
}

.chef__copy .section-title {
  margin-bottom: 24px;
}

.chef__copy p {
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 508px;
  margin-bottom: 40px;
}

.chef__visual {
  position: relative;
  min-height: 597px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chef__bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 651px;
  height: 500px;
  background: linear-gradient(180deg, var(--color-cyan-soft) 0%, #fff 100%);
  border-radius: var(--radius-card);
}

.chef__photo {
  position: relative;
  z-index: 1;
  width: 660px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.chef__float {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.chef__float--meat {
  width: 80px;
  height: 80px;
  top: 167px;
  right: 16px;
}

.chef__float--tomato {
  width: 98px;
  height: 98px;
  top: 90px;
  left: 102px;
}

.chef__float--onion {
  width: 61px;
  height: 61px;
  top: 97px;
  right: 118px;
}

.chef__float--lettuce {
  width: 50px;
  height: 50px;
  bottom: 140px;
  left: 34px;
}

/* ——— Instagram ——— */

.instagram {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(231, 250, 254, 0) 0%, var(--color-cyan) 35%, var(--color-cyan) 65%, rgba(231, 250, 254, 0) 100%);
}

.instagram .section-head--center {
  max-width: 840px;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.ig-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.ig-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #efefef;
}

.ig-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-card__user {
  flex: 1;
  min-width: 0;
}

.ig-card__username {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ig-card__location {
  font-size: 10px;
  color: var(--color-muted);
}

.ig-card__photo {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.ig-card__body {
  padding: 10px 12px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.ig-card__likes {
  font-weight: 600;
  margin-bottom: 6px;
}

.ig-card__caption {
  color: var(--color-ink);
}

.ig-card__caption strong {
  font-weight: 600;
  margin-right: 4px;
}

.ig-card__date {
  color: var(--color-muted);
  font-size: 10px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.instagram__cta {
  text-align: center;
}

/* ——— More recipes ——— */

.more-recipes {
  padding: var(--section-gap) 0;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.more-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.more-card__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 290 / 200;
  background: var(--color-cyan-soft);
}

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

.more-card__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.more-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ——— Newsletter ——— */

.newsletter {
  padding: 40px 0 var(--section-gap);
}

.newsletter__card {
  position: relative;
  background: #e7f9fd;
  border-radius: var(--radius-newsletter);
  padding: 80px clamp(160px, 18vw, 280px) 88px;
  text-align: center;
  overflow: hidden;
  min-height: 442px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.newsletter__card > :not(.newsletter__deco) {
  position: relative;
  z-index: 2;
}

.newsletter__card .section-title {
  margin: 0 0 24px;
  max-width: none;
  font-size: clamp(28px, 3.2vw, 40px);
  white-space: nowrap;
}

.newsletter__card > p {
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.75;
  margin: 0 0 40px;
  padding-inline: 8px;
  background: transparent;
}

.newsletter__form {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 500px);
  background: #fff;
  padding: 10px 10px 10px 32px;
  border-radius: 24px;
  min-height: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.newsletter__form input {
  flex: 1;
  border: 0;
  outline: none;
  min-width: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 14px;
  font-family: inherit;
}

.newsletter__form input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.newsletter__form .btn {
  position: relative;
  z-index: 1;
  min-height: 60px;
  padding-inline: 36px;
  border-radius: 16px;
  flex-shrink: 0;
}

.newsletter__form .btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.newsletter__deco {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom;
  z-index: 0;
  user-select: none;
}

/* Corner decorations — stay outside the text/form column */
.newsletter__deco--veggies {
  left: -6%;
  bottom: -18%;
  width: min(34%, 400px);
  max-height: 92%;
}

.newsletter__deco--plate {
  right: -4%;
  bottom: -22%;
  width: min(26%, 300px);
  max-height: 88%;
}

.newsletter__deco--rucola {
  right: 9%;
  bottom: 6%;
  width: clamp(64px, 7vw, 96px);
  z-index: 0;
}

/* ——— Footer ——— */

.site-footer {
  padding: 40px 0 48px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}

.site-footer__brand p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 400px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 500;
}

.site-footer__bottom .webflow {
  color: var(--color-webflow);
}

/* ——— Responsive ——— */

@media (max-width: 1200px) {
  :root {
    --page-padding: 48px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .chef__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .more-grid,
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-padding: 20px;
    --section-gap: 64px;
    --radius-card: 24px;
    --radius-newsletter: 32px;
  }

  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
  }

  /* Do not use overflow:hidden on body — it breaks position:sticky headers mid-scroll. */
  html.is-nav-open,
  body.is-nav-open {
    overscroll-behavior: none;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    padding-top: max(16px, env(safe-area-inset-top));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.is-nav-open {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }

  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav,
  .site-header .social {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 12px;
    color: var(--color-ink);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 10;
    width: 100%;
    margin-top: 12px;
    padding: 8px 0 4px;
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: tastevia-nav-in 0.22s ease;
  }

  .nav.is-open a {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav.is-open a:last-child {
    border-bottom: 0;
  }

  .site-header.is-nav-open .social {
    display: flex;
    order: 11;
    width: 100%;
    gap: 24px;
    padding: 16px 4px 8px;
  }

  @keyframes tastevia-nav-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .logo {
    font-size: 28px;
  }

  .hero {
    padding: 24px 0 var(--section-gap);
  }

  .hero__card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .hero__media {
    order: -1;
    min-height: 280px;
  }

  .hero__media > img:first-child {
    min-height: 280px;
    max-height: 360px;
  }

  .hero__handpicked {
    left: auto;
    right: 16px;
    top: 16px;
    transform: none;
    width: 96px;
    height: 96px;
  }

  .hero__handpicked-thumb {
    inset: 22px;
  }

  .hero__handpicked-thumb img {
    width: 34px;
    height: 34px;
  }

  .hero__handpicked-ring text {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero__content {
    padding: 28px 22px 32px;
    gap: 18px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
    max-width: none;
  }

  .hero__desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero__footer {
    padding-top: 8px;
  }

  .hero__footer .btn {
    width: 100%;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-card {
    min-height: 0;
    padding-top: 14px;
    border-radius: 20px;
  }

  .category-card__img-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .category-card__label {
    font-size: 14px;
    padding-bottom: 16px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .recipe-card {
    padding: 10px;
    border-radius: 20px;
    gap: 12px;
  }

  .recipe-card__media {
    border-radius: 16px;
  }

  .recipe-card__title {
    font-size: 15px;
    line-height: 1.35;
  }

  .recipe-card__meta {
    gap: 10px;
    flex-wrap: wrap;
  }

  .recipe-card__meta .meta {
    font-size: 12px;
    gap: 6px;
  }

  .recipe-card__meta .meta__icon {
    width: 18px;
    height: 18px;
  }

  .recipe-card--promo {
    grid-column: 1 / -1;
    min-height: 220px;
    padding: 28px 20px;
  }

  .recipe-card__promo-title {
    font-size: 22px;
  }

  .recipe-card__promo-img {
    width: min(220px, 70%);
  }

  .save-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .save-btn img {
    width: 28px;
    height: 28px;
  }

  .chef__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .chef__copy {
    text-align: center;
  }

  .chef__copy p {
    margin-inline: auto;
  }

  .chef__visual {
    min-height: 360px;
    overflow: hidden;
  }

  .chef__bg {
    width: 100%;
    height: 280px;
    border-radius: 24px;
  }

  .chef__photo {
    width: 100%;
    max-height: 380px;
  }

  .chef__float--meat {
    width: 56px;
    height: 56px;
    top: 18%;
    right: 4%;
  }

  .chef__float--tomato {
    width: 64px;
    height: 64px;
    top: 8%;
    left: 8%;
  }

  .chef__float--onion {
    width: 44px;
    height: 44px;
    top: 12%;
    right: 22%;
  }

  .chef__float--lettuce {
    width: 36px;
    height: 36px;
    bottom: 18%;
    left: 6%;
  }

  .instagram {
    padding: 48px 0;
  }

  .ig-grid {
    gap: 14px;
    margin-bottom: 32px;
  }

  .more-grid {
    gap: 16px;
  }

  .more-card__media,
  .more-card__media {
    border-radius: 18px;
  }

  .more-card__title {
    font-size: 15px;
  }

  .newsletter {
    padding: 24px 0 var(--section-gap);
  }

  .newsletter__card {
    padding: 48px 20px 56px;
    min-height: 0;
    border-radius: 28px;
  }

  .newsletter__card .section-title {
    white-space: normal;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.25;
    padding-inline: 8px;
  }

  .newsletter__card > p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 28px;
    padding-inline: 4px;
  }

  .newsletter__form {
    width: 100%;
    max-width: 100%;
  }

  .newsletter__deco {
    opacity: 0.55;
    pointer-events: none;
  }

  .newsletter__deco--veggies {
    left: -18%;
    width: min(48%, 200px);
    bottom: -18%;
  }

  .newsletter__deco--plate {
    right: -14%;
    width: min(40%, 160px);
    bottom: -20%;
  }

  .newsletter__deco--rucola {
    right: 6%;
    bottom: 8%;
    width: 48px;
  }

  .site-footer {
    padding: 48px 0 32px;
  }

  .site-footer__top {
    gap: 28px;
  }

  .btn--primary,
  .btn--soft {
    padding: 16px 24px;
    min-height: 52px;
  }

  .tastevia-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 16px;
    --section-gap: 56px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recipe-card {
    padding: 12px;
  }

  .recipe-card__title {
    font-size: 18px;
  }

  .recipe-card__meta .meta {
    font-size: 13px;
  }

  .more-grid,
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ig-card__body {
    padding: 8px 10px 12px;
  }

  .ig-card__caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  .hero__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__media {
    min-height: 240px;
  }

  .hero__media > img:first-child {
    min-height: 240px;
    max-height: 300px;
  }

  .hero__handpicked {
    width: 80px;
    height: 80px;
    right: 12px;
    top: 12px;
  }

  .hero__handpicked-thumb {
    inset: 18px;
  }

  .hero__content {
    padding: 24px 18px 28px;
  }

  .hero__tags {
    gap: 10px;
  }

  .meta--pill {
    padding: 8px 14px 8px 12px;
    font-size: 13px;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    min-height: auto;
    border-radius: 20px;
    gap: 10px;
  }

  .newsletter__form input {
    padding: 12px 8px;
    text-align: center;
  }

  .newsletter__form .btn {
    width: 100%;
  }

  .newsletter__deco--veggies,
  .newsletter__deco--plate {
    opacity: 0.22;
  }

  .newsletter__deco--rucola {
    display: none;
  }

  .chef__float--onion,
  .chef__float--lettuce {
    display: none;
  }

  .chef__visual {
    min-height: 300px;
  }

  .chef__bg {
    height: 240px;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .site-footer__bottom .social {
    gap: 20px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head--row .btn {
    width: 100%;
  }

  .section-head--center p,
  .section-head--split p {
    margin-top: 14px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .category-card__label {
    font-size: 13px;
  }

  .more-grid,
  .ig-grid {
    gap: 10px;
  }

  .btn--primary,
  .btn--soft {
    font-size: 13px;
    padding: 14px 18px;
  }
}

/* Form notices (newsletter / contact) */
.contact-notice {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
}

.contact-notice--success {
  background: #e8f8ef;
  color: #0f5132;
}

.contact-notice--error {
  background: #fdecea;
  color: #842029;
}
