:root {
  --bg: #f7f2ea;
  --bg-accent: #eadbc5;
  --panel: #fffdfa;
  --panel-strong: #ffffff;
  --text: #1e1713;
  --muted: #635649;
  --line: rgba(44, 29, 19, 0.11);
  --brand: #8d5227;
  --brand-dark: #201711;
  --brand-light: #c69b73;
  --brand-soft: rgba(154, 93, 47, 0.14);
  --accent: #2f5e4f;
  --shadow: 0 16px 38px rgba(44, 29, 19, 0.08);
  --shadow-soft: 0 8px 22px rgba(44, 29, 19, 0.06);
  --ring: 0 0 0 4px rgba(154, 93, 47, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(235, 214, 183, 0.35), transparent 22%),
    linear-gradient(180deg, #faf6ef 0%, #f6efe4 52%, #f2e8d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: none;
  mask-image: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 22px rgba(31, 20, 13, 0.12);
}

.site-utility {
  background: #1f1510;
  color: #f2e4d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-utility__inner,
.site-nav__inner {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.site-utility__inner {
  grid-template-columns: 1.2fr auto 1fr;
  gap: 16px;
  min-height: 40px;
  font-size: 0.8rem;
}

.site-utility__social,
.site-utility__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-utility__links {
  justify-content: flex-end;
}

.site-utility__notice {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.site-utility a {
  color: #f2e4d2;
  text-decoration: none;
  opacity: 0.88;
}

.site-nav {
  background: #fffefb;
  border-bottom: 1px solid rgba(31, 20, 13, 0.12);
}

.site-nav__inner {
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  min-height: 74px;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-nav__menu a,
.site-nav__office {
  color: #2f241d;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav__office {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 36, 29, 0.2);
}

.brand--nav .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.page-shell--narrow {
  width: min(1100px, calc(100vw - 32px));
}

.hero h1,
.subpage-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
}

.overview-page .subpage-hero h1 {
  max-width: 14ch;
  line-height: 0.96;
}

.hero,
.subpage-hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: none;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero {
  padding: 28px;
  border-radius: 18px;
}

.hero::after,
.panel::after,
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(163, 108, 62, 0.11), transparent 66%);
  pointer-events: none;
}

.panel:hover,
.subpage-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(55, 36, 22, 0.1);
  border-color: rgba(86, 59, 39, 0.16);
}

.hero__topbar,
.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #36261d, #8d5227);
  color: #fff8f0;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(92, 53, 30, 0.34);
}

.brand__text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fffefb;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lang-switch--floating {
  margin-top: 12px;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-switch__btn.is-active {
  background: linear-gradient(135deg, #2a1d16, #7d4822);
  color: #fff7ef;
  box-shadow: 0 12px 28px rgba(154, 93, 47, 0.26);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.lead,
.story-copy,
.panel__note,
.field-hint,
.price-card__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.lang-switch__btn:focus-visible,
input:focus,
select:focus {
  outline: none;
  box-shadow: var(--ring);
}

.button--primary {
  background: linear-gradient(135deg, #2a1d16, #8d5227);
  color: #fff8f0;
  box-shadow: 0 18px 34px rgba(154, 93, 47, 0.3);
}

.button--secondary,
.button--ghost {
  background: #fffdf8;
  border-color: var(--line);
  color: var(--text);
}

.button--ghost:hover,
.button--secondary:hover {
  border-color: rgba(92, 62, 40, 0.24);
  background: rgba(255, 250, 242, 0.98);
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 5%, rgba(219, 176, 124, 0.24), transparent 32%),
    linear-gradient(185deg, rgba(32, 23, 17, 0.96), rgba(58, 38, 25, 0.96));
  color: #f7ece0;
  min-height: 100%;
  border: 1px solid rgba(246, 224, 198, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 246, 232, 0.15), 0 12px 34px rgba(30, 19, 11, 0.3);
}

.price-card__header,
.price-card__value-row,
.price-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price-card__label,
.price-card__meta,
.price-card__unit {
  color: rgba(247, 236, 224, 0.78);
}

.price-card__value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  letter-spacing: -0.05em;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
  font-weight: 800;
}

.content-grid,
.overview-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.story-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.panel {
  grid-column: span 6;
  padding: 24px;
  border-radius: 18px;
}

.panel--wide {
  grid-column: 1 / -1;
}

.prose {
  margin-top: 14px;
}

.prose > * + * {
  margin-top: 14px;
}

.prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.prose h3 {
  margin: 10px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.prose li {
  line-height: 1.6;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group--full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(80, 57, 42, 0.18);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.98);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

input:focus,
select:focus {
  border-color: rgba(154, 93, 47, 0.46);
  background: #fffdf9;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 124px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(70, 46, 29, 0.12);
  border-color: rgba(98, 67, 43, 0.18);
}

.result-card span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.result-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.status-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.status-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid rgba(80, 57, 42, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.status-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(68, 45, 28, 0.14);
  border-color: rgba(96, 65, 42, 0.2);
}

.status-item__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.status-item h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
}

.status-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.subpage-hero {
  padding: 30px;
  border-radius: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--brand);
  transform: translateX(-2px);
}

.roastery-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.roastery-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roastery-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}

.check-item input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(80, 57, 42, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.88);
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.contact-table th,
.contact-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(80, 57, 42, 0.1);
  vertical-align: top;
}

.contact-table th {
  position: sticky;
  top: 0;
  background: #fffaf3;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  z-index: 1;
}

.contact-table tbody tr:hover {
  background: rgba(248, 239, 227, 0.74);
}

.contact-table a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill--on {
  background: rgba(47, 94, 79, 0.12);
  color: #1f5747;
}

.status-pill--off {
  background: rgba(141, 82, 39, 0.12);
  color: #7c4320;
}

.site-footer {
  margin-top: 26px;
  padding: 20px 10px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.overview-layout .panel:nth-child(1),
.overview-layout .panel:nth-child(4) {
  grid-column: 1 / -1;
}

[data-lang-hidden="true"] {
  display: none !important;
}

.fade-in {
  animation: fadeIn 420ms cubic-bezier(0.2, 0.64, 0.22, 1) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-utility__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8px 0;
  }

  .site-utility__social,
  .site-utility__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 14px;
  }

  .site-nav__menu {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-nav__office {
    margin: 0 auto;
  }

  .hero__grid,
  .panel,
  .results-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero__topbar,
  .panel__header {
    flex-direction: column;
  }

  .roastery-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    max-width: 13ch;
  }

  .panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .page-shell--narrow {
    width: min(100vw - 18px, 100%);
    padding-top: 10px;
  }

  .hero,
  .subpage-hero,
  .panel {
    border-radius: 16px;
    padding: 19px;
  }

  .brand__text {
    font-size: 0.82rem;
  }

  .price-card {
    padding: 20px;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch__btn {
    flex: 1;
  }

  .roastery-form__grid {
    grid-template-columns: 1fr;
  }

  .roastery-form__checks {
    display: grid;
    gap: 10px;
  }

  .contact-table {
    min-width: 720px;
  }
}
