:root {
  --cream: #f4efe7;
  --paper: #fffaf2;
  --ink: #1f1712;
  --muted: #77695f;
  --coffee: #4a2c1f;
  --coffee-dark: #2b1812;
  --copper: #b96f3d;
  --sage: #6f7f63;
  --line: rgba(58, 37, 25, 0.16);
  --shadow: 0 22px 55px rgba(43, 24, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(244, 239, 231, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(18px, 5vw, 62px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--coffee-dark);
  border-radius: 8px;
  color: var(--paper);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

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

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(185, 111, 61, 0.13);
  color: var(--coffee-dark);
}

.nav-toggle {
  background: var(--coffee-dark);
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  cursor: pointer;
  display: none;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 13px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.62fr);
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 62px);
}

.hero-copy {
  align-self: center;
  max-width: 780px;
}

.eyebrow {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.6rem, 7.5vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

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

.hero-copy p:not(.eyebrow),
.page-hero p {
  font-size: 1.12rem;
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
}

.button-primary {
  background: var(--coffee-dark);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--coffee);
}

.button-light {
  background: var(--paper);
  border-color: var(--line);
  color: var(--coffee-dark);
}

.image-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  align-self: center;
  min-height: 560px;
}

.hero-image img {
  height: 100%;
  width: 100%;
}

.timeline span,
.product-tag {
  color: var(--copper);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 62px);
}

.split-section,
.equipment-section,
.map-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.split-section > div:first-child,
.equipment-section > div:last-child,
.map-section > div:last-child {
  max-width: 620px;
}

.text-link {
  border-bottom: 2px solid var(--copper);
  color: var(--coffee-dark);
  font-weight: 900;
}

.image-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.92fr 1fr;
}

.image-stack img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(43, 24, 18, 0.12);
  width: 100%;
}

.image-stack img:nth-child(2) {
  margin-top: 48px;
}

.gallery-section {
  background: var(--coffee-dark);
  color: var(--paper);
}

.gallery-section p {
  color: rgba(255, 250, 242, 0.72);
}

.gallery-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.carousel-control {
  align-items: center;
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 8px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.carousel-control:hover,
.carousel-control:focus {
  background: var(--paper);
  color: var(--coffee-dark);
  outline: none;
}

.scroll-gallery {
  display: grid;
  gap: 16px;
  grid-auto-columns: minmax(290px, 31vw);
  grid-auto-flow: column;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 250, 242, 0.42) transparent;
}

.scroll-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  min-height: 260px;
  scroll-snap-align: start;
  width: 100%;
}

.page-hero {
  padding: clamp(52px, 8vw, 98px) clamp(18px, 5vw, 62px);
}

.compact-hero,
.contact-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.compact-hero h1,
.contact-hero h1 {
  max-width: 920px;
}

.process-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
}

.process-hero img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

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

.products-message {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
}

.product-card,
.contact-card,
.note-panel,
.timeline article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(43, 24, 18, 0.08);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
}

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

.product-card strong {
  color: var(--coffee-dark);
  display: block;
  font-size: 1.22rem;
  margin-top: 14px;
}

.note-panel {
  margin: 0 clamp(18px, 5vw, 62px) clamp(48px, 7vw, 86px);
  padding: clamp(24px, 4vw, 42px);
}

.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  padding: 22px;
}

.equipment-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.equipment-section .image-frame img {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.spec-list span {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--coffee-dark);
  font-weight: 800;
  padding: 12px 14px;
}

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

.contact-card {
  padding: 24px;
}

.map-placeholder {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(43, 24, 18, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(43, 24, 18, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 28px;
  text-align: center;
}

.map-placeholder span {
  color: var(--coffee-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--coffee-dark);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 12px 13px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
  outline: 3px solid rgba(185, 111, 61, 0.18);
}

.site-footer {
  align-items: center;
  background: #050505;
  border-top: 1px solid #050505;
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 62px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.footer-credit a {
  border-bottom: 1px solid currentColor;
  color: #ffffff;
  font-weight: 850;
}

.footer-credit a:hover,
.footer-credit a:focus {
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .equipment-section,
  .map-section,
  .process-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 420px;
  }

  .product-grid,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

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

  .site-nav a {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
  }

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

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .timeline,
  .contact-grid,
  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:nth-child(2) {
    margin-top: 0;
  }

  .scroll-gallery {
    gap: 12px;
    grid-auto-columns: minmax(230px, 78vw);
    scroll-snap-type: x proximity;
  }

  .map-placeholder {
    min-height: 300px;
  }
}
