@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #4f8f3a;
  --green-dark: #2f5d34;
  --yellow: #f2c94c;
  --wood: #8a5a32;
  --cream: #fff8ea;
  --beige: #f3e5c8;
  --paper: #fffdf5;
  --text: #263326;
  --muted: #5e6b58;
  --line: #dfcfab;
  --shadow: 0 22px 58px rgba(47, 93, 52, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.62;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 207, 171, .82);
  background: rgba(255, 248, 234, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--yellow);
  font-family: "Lora", Georgia, serif;
  font-size: 1.25rem;
}

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 27px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  content: "";
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-dark);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 710px;
  display: grid;
  align-items: end;
  padding: 72px 0 48px;
  color: var(--paper);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hofladen-hero.webp") center/cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(23, 44, 25, .78), rgba(23, 44, 25, .43) 46%, rgba(23, 44, 25, .08));
  content: "";
}

.hero-content {
  max-width: 760px;
  padding-bottom: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--wood);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-band .eyebrow {
  color: var(--yellow);
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  line-height: 1.1;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.65rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 253, 245, .88);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--paper);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--yellow);
  color: var(--green-dark);
  background: var(--yellow);
}

.btn-green {
  border-color: var(--green-dark);
  color: var(--paper);
  background: var(--green-dark);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -74px;
  position: relative;
  z-index: 5;
}

.quick-card,
.card,
.news-card,
.hours-card,
.contact-card,
.team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(47, 93, 52, .07);
}

.quick-card {
  min-height: 180px;
  padding: 22px;
}

.quick-card span,
.step-number,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(242, 201, 76, .75);
  font-weight: 700;
}

.quick-card h3 {
  margin-bottom: 10px;
}

.section {
  padding: clamp(68px, 9vw, 120px) 0;
}

.section.tight {
  padding: 54px 0;
}

.section.beige {
  background: var(--beige);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.intro-grid,
.feature-grid,
.contact-grid,
.about-grid,
.milk-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.image-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel.small {
  min-height: 340px;
}

.image-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(38, 51, 38, .82);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  overflow: hidden;
}

.card-image {
  height: 230px;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  height: auto;
  margin: 0;
  padding: 6px 10px;
  color: var(--green-dark);
  font-size: .82rem;
}

.milk-highlight {
  border-top: 6px solid var(--yellow);
  border-bottom: 6px solid var(--yellow);
  color: var(--paper);
  background: var(--green-dark);
}

.milk-highlight h2,
.milk-highlight h3 {
  color: var(--paper);
}

.milk-highlight .eyebrow,
.milk-highlight .milk-note strong {
  color: var(--yellow);
}

.milk-highlight p,
.dark-band p {
  color: rgba(255, 253, 245, .78);
}

.milk-note {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 253, 245, .24);
  border-radius: 8px;
  background: rgba(255, 253, 245, .08);
}

.milk-note strong {
  color: var(--yellow);
  font-size: 1.1rem;
}

.list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 13px 0;
  border-top: 1px solid rgba(138, 90, 50, .24);
  color: var(--muted);
}

.milk-highlight .list li {
  border-color: rgba(255, 253, 245, .2);
  color: rgba(255, 253, 245, .82);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  overflow: hidden;
}

.news-card img {
  height: 210px;
}

.news-card div {
  padding: 20px;
}

.news-date {
  display: block;
  margin-bottom: 10px;
  color: var(--wood);
  font-size: .84rem;
  font-weight: 700;
}

.dark-band {
  color: var(--paper);
  background: linear-gradient(135deg, var(--green-dark), #214025);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 14px;
}

.gallery-strip a,
.gallery-grid a {
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(47, 93, 52, .1);
}

.gallery-strip img,
.gallery-grid img,
.card-image img,
.news-card img {
  transition: transform .45s ease;
}

.gallery-strip a:hover img,
.gallery-grid a:hover img,
.card:hover img,
.news-card:hover img {
  transform: scale(1.05);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hours-card {
  padding: 24px;
}

.hours-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.hours-card p {
  color: var(--muted);
}

.page-hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf0, var(--cream));
}

.page-hero .container {
  max-width: 980px;
  text-align: center;
}

.page-hero h1,
.page-hero .lead {
  margin-right: auto;
  margin-left: auto;
}

.page-hero .lead {
  margin-top: 18px;
}

.product-list {
  display: grid;
  gap: 18px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-row img {
  height: 220px;
  border-radius: 6px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: steps;
}

.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.step-number {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.notice {
  padding: 22px;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--paper);
}

.team-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  padding: 22px;
}

.team-card h3 {
  margin-bottom: 8px;
}

.contact-card {
  padding: 26px;
}

.contact-card + .contact-card {
  margin-top: 18px;
}

.contact-card + .route-box {
  margin-top: 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-form .btn {
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--green-dark);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: #fffdf8;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-message {
  min-height: 26px;
  color: var(--green-dark);
  font-weight: 700;
}

.route-box {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(42deg, transparent 47%, rgba(138, 90, 50, .32) 48%, rgba(138, 90, 50, .32) 52%, transparent 53%),
    radial-gradient(circle at 68% 40%, var(--yellow) 0 10px, transparent 11px),
    radial-gradient(circle at 34% 62%, var(--green) 0 13px, transparent 14px),
    linear-gradient(135deg, #edf2d7, #f8edcd);
}

.route-box span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 253, 245, .88);
  color: var(--green-dark);
  font-weight: 700;
}

.site-footer {
  padding: 56px 0 28px;
  color: rgba(255, 253, 245, .72);
  background: #223726;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .9fr .7fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 1.2rem;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 253, 245, .72);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 245, .16);
  font-size: .9rem;
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 12px;
    font-size: .86rem;
  }

  .hero-cards,
  .card-grid,
  .news-grid,
  .hours-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .feature-grid,
  .contact-grid,
  .about-grid,
  .milk-grid,
  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 10px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(23, 44, 25, .34), rgba(23, 44, 25, .82));
  }

  .hero-content {
    padding-bottom: 80px;
  }

  .hero-cards,
  .card-grid,
  .news-grid,
  .hours-grid,
  .team-grid,
  .gallery-grid,
  .gallery-strip,
  .step-grid,
  .footer-grid,
  .form-row,
  .product-row {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    margin-top: 20px;
  }

  .image-panel {
    min-height: 320px;
  }

  .product-row img {
    height: 210px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
