:root {
  --ink: #1e2922;
  --forest: #2f5d48;
  --leaf: #6e8d3d;
  --butter: #f7d566;
  --paper: #fbf9f3;
  --line: #d9ded4;
  --red: #b44832;
  --muted: #667067;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 19px;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: #244c3b;
}

.button.alt {
  color: var(--forest);
  background: transparent;
}

.button.alt:hover {
  background: #edf1e9;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

/* Header */
.announcement {
  padding: 9px 20px;
  color: #fff;
  background: var(--forest);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  background: rgba(251, 249, 243, .96);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 94px;
}

.brand {
  display: flex;
  align-items: center;
}

.site-header .brand {
  gap: 14px;
  height: 100%;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.site-header .brand-logo {
  height: 88px;
  width: auto;
  max-height: calc(100% - 6px);
  transition: transform 0.2s ease;
}

.site-header .brand:hover .brand-logo {
  transform: scale(1.02);
}

.brand-name {
  font-family: Fraunces, serif;
  font-size: clamp(36px, 2.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-name .mamma {
  color: #000;
}

.brand-name .foods {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--red);
}

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

.icon-button,
.menu-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.menu-button {
  display: none;
}

/* Hero */
.hero {
  display: flex;
  align-items: stretch;
  min-height: 570px;
  background: #e9eee3;
}

.hero-copy {
  display: flex;
  align-items: center;
  width: 50%;
  padding: 70px 6vw max(70px, 7vw) max(6vw, calc((100vw - 1180px) / 2));
}

h1 {
  max-width: 620px;
  margin: 16px 0 21px;
  font-family: Fraunces, serif;
  font-size: clamp(42px, 5.1vw, 70px);
  line-height: 1.02;
}

.hero p {
  max-width: 470px;
  margin-bottom: 30px;
  color: #465249;
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-carousel {
  width: 50%;
  min-height: 570px;
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  position: absolute;
}

.carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-item.active {
  opacity: 1;
}

/* Trusted strip */
.trusted {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trusted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #526057;
}

.trusted-label {
  max-width: 145px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trusted-items {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 70px);
  color: #63735a;
  font-family: Fraunces, serif;
  font-size: 18px;
  opacity: .9;
}

/* Shared sections */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

h2 {
  max-width: 600px;
  margin: 10px 0 0;
  font-family: Fraunces, serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.section-intro {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.category {
  position: relative;
  min-height: 210px;
  padding: 29px;
  overflow: hidden;
  background: #fff;
}

.category:hover {
  background: #f1f4ea;
}

.category-number {
  color: var(--red);
  font-family: Fraunces, serif;
  font-size: 14px;
}

.category i {
  display: block;
  margin: 28px 0 18px;
  color: var(--forest);
  font-size: 38px;
}

.category h3 {
  margin-bottom: 8px;
  font-family: Fraunces, serif;
  font-size: 23px;
}

.category p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Catalogue */
.catalogue {
  background: #f0f3ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalogue-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 9px 14px;
  color: #4e5a50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.product-count {
  color: var(--muted);
  font-size: 13px;
}

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

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 224px;
  padding: 21px;
  background: #fff;
  border: 1px solid transparent;
  transition: .2s;
}

.product:hover {
  border-color: var(--leaf);
  transform: translateY(-3px);
}

.product-visual {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--red);
  background: #fbf5db;
  border-radius: 50%;
  font-size: 26px;
}

.product:nth-child(2) .product-visual {
  color: var(--forest);
  background: #e5efe6;
}

.product:nth-child(3) .product-visual {
  color: var(--red);
  background: #f5e6e2;
}

.product:nth-child(4) .product-visual {
  color: #45658a;
  background: #e9edf6;
}

.product-type {
  margin: 17px 0 5px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product h3 {
  margin: 0 0 7px;
  font-family: Fraunces, serif;
  font-size: 21px;
}

.product small {
  color: var(--muted);
  font-size: 12px;
}

.product-link {
  align-self: flex-end;
  margin-top: 16px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.product.hidden {
  display: none;
}

/* Professional section */
.professional {
  color: #fff;
  background: var(--forest);
}

.professional-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 55px;
}

.professional .eyebrow {
  color: var(--butter);
}

.professional h2 {
  color: #fff;
}

.professional p {
  max-width: 480px;
  margin: 21px 0 30px;
  color: #dae3d6;
  font-size: 16px;
  line-height: 1.6;
}

.professional .button {
  color: var(--ink);
  background: var(--butter);
  border-color: var(--butter);
}

.professional .button:hover {
  background: #f9dc7b;
}

.stat-list {
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.stat strong {
  min-width: 56px;
  color: var(--butter);
  font-family: Fraunces, serif;
  font-size: 29px;
}

.stat span {
  color: #e7efe4;
  font-size: 14px;
}

/* Recipe */
.recipe-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 50px;
}

.recipe-image {
  min-height: 370px;
  background-image: url("../mammafoods-hero.png");
  background-size: cover;
  background-position: 85% center;
}

.recipe-content p {
  max-width: 480px;
  margin: 19px 0 25px;
  color: var(--muted);
  line-height: 1.65;
}

.recipe-meta {
  display: flex;
  gap: 25px;
  padding-top: 17px;
  color: #526057;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Location */
.location {
  background: #f0f3ec;
  border-top: 1px solid var(--line);
}

.location-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  min-height: 390px;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(26px, 6vw, 80px);
}

.location-copy p {
  max-width: 300px;
  margin: 19px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.location-address i {
  margin-top: 3px;
}

.map-frame {
  width: 100%;
  min-height: 390px;
  border: 0;
  filter: saturate(.85);
}

/* Footer */
.footer {
  padding: 54px 0 24px;
  color: #d8e0d5;
  background: #1e2922;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 38px;
  padding-bottom: 42px;
}

.footer .brand {
  color: #fff;
}

.footer .brand-logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer p {
  max-width: 285px;
  margin-top: 14px;
  color: #b9c4b7;
  font-size: 14px;
  line-height: 1.55;
}

.footer h3 {
  margin: 7px 0 15px;
  color: var(--butter);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-address {
  margin: 0;
  color: #b9c4b7;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 21px;
  color: #9fac9f;
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1100px) and (min-width: 851px) {
  .nav {
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  .site-header .brand {
    gap: 10px;
  }

  .site-header .brand-logo {
    height: 80px;
  }

  .brand-name {
    font-size: 30px;
  }
}

@media (max-width: 850px) {

  .nav-links,
  .nav-actions .icon-button,
  .nav-actions .button {
    display: none;
  }

  .nav-links.open {
    position: absolute;
    top: 94px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 30px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .menu-button {
    display: grid;
  }

  .hero {
    display: block;
  }

  .hero-copy,
  .hero-carousel {
    width: 100%;
  }

  .hero-copy {
    min-height: 470px;
    padding: 70px 30px;
  }

  .hero-carousel {
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .professional-layout,
  .recipe-row,
  .location-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .location-copy {
    padding: 58px 30px 25px;
  }

  .map-frame {
    min-height: 330px;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .recipe-image {
    order: 2;
    min-height: 300px;
  }
}

@media (max-width: 580px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .nav {
    height: 70px;
  }

  .nav-links.open {
    top: 70px;
  }

  .site-header .brand-logo {
    height: 64px;
    width: auto;
    max-height: calc(100% - 6px);
  }

  .brand-name {
    font-size: clamp(20px, 5.5vw, 25px);
  }

  .footer .brand-logo {
    width: 130px;
    height: auto;
  }

  .announcement {
    font-size: 11px;
  }

  .hero-copy {
    min-height: 440px;
    padding: 55px 24px;
  }

  h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trusted-row {
    align-items: flex-start;
  }

  .trusted-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 22px;
    font-size: 15px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    display: block;
  }

  .section-intro {
    margin-top: 15px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category {
    min-height: 184px;
  }

  .catalogue-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .product {
    min-height: 207px;
    padding: 16px;
  }

  .product h3 {
    font-size: 19px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-top> :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
    line-height: 1.6;
  }
}