/* Site Maple Way — contemporary structured workshop aesthetic */
:root {
  --ink: #15241c;
  --ink-soft: #3a4f44;
  --paper: #f3f6f2;
  --paper-2: #e7eee8;
  --surface: #ffffff;
  --forest: #1a3d2e;
  --forest-mid: #2f6b4f;
  --maple: #c8922a;
  --maple-deep: #9a6e18;
  --line: rgba(21, 36, 28, 0.12);
  --shadow: 0 18px 40px rgba(21, 36, 28, 0.08);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 107, 79, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(200, 146, 42, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2315241c' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

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

a {
  color: var(--forest-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--maple-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

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

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.wrap-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 242, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50% 40% 55% 45%;
  background: linear-gradient(145deg, var(--maple) 0%, var(--forest-mid) 70%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
  animation: leaf-breathe 5s var(--ease) infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--forest);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--forest);
  color: #f5faf6 !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--forest-mid);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.22rem 0;
  background: var(--forest);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--forest);
  color: #f5faf6;
}

.btn-primary:hover {
  background: var(--forest-mid);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed visual */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f5faf6;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(15, 32, 24, 0.88) 0%, rgba(15, 32, 24, 0.55) 48%, rgba(15, 32, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 32, 24, 0.7) 0%, transparent 45%);
}

.hero-content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 0.95;
  color: #f7fbf8;
  animation: rise-in 0.9s var(--ease) both;
}

.hero h1 {
  color: #e8f0eb;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 550;
  max-width: 28ch;
  margin-bottom: 0.85rem;
  animation: rise-in 0.9s 0.12s var(--ease) both;
}

.hero-lead {
  max-width: 38ch;
  color: rgba(245, 250, 246, 0.88);
  font-size: 1.08rem;
  animation: rise-in 0.9s 0.22s var(--ease) both;
}

.hero .btn-group { animation: rise-in 0.9s 0.32s var(--ease) both; }

.hero .btn-primary {
  background: var(--maple);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: #dbab45;
  color: var(--ink);
}

.hero .btn-secondary {
  border-color: rgba(245, 250, 246, 0.65);
  color: #f5faf6;
}

.hero .btn-secondary:hover {
  background: rgba(245, 250, 246, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maple-deep);
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(21, 36, 28, 0.25));
  pointer-events: none;
}

/* Offer rows — not cards in hero; interactive/listing containers OK */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.offer-row:hover {
  border-color: var(--forest-mid);
  transform: translateX(4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.offer-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 2px;
}

.offer-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.offer-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offer-arrow {
  font-size: 1.4rem;
  color: var(--maple-deep);
  padding-right: 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.panel h3 a {
  text-decoration: none;
  color: var(--forest);
}

.quote-block {
  border-left: 3px solid var(--maple);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--forest);
}

.quote-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}

.stat-note {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-note div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--forest);
}

.stat-note div span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  background: var(--forest);
  color: #f5faf6;
  font-weight: 600;
}

.rate-table tr:last-child td { border-bottom: 0; }

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--forest-mid);
  outline-offset: 1px;
  border-color: transparent;
}

.form-row textarea { min-height: 140px; resize: vertical; }

.field-error {
  color: #9b2c2c;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e4f3ea;
  color: #1a3d2e;
  border: 1px solid #2f6b4f;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #9b2c2c;
  border: 1px solid #c53030;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  background: var(--forest);
  color: #e8f0eb;
  padding: 1.75rem;
  border-radius: var(--radius);
}

.contact-aside a { color: #f0d78a; }
.contact-aside h2 { color: #f5faf6; }
.contact-aside p { color: rgba(232, 240, 235, 0.9); }

/* Page hero (inner) */
.page-hero {
  padding: 3.25rem 0 2rem;
  position: relative;
  z-index: 1;
}

.page-hero.with-image {
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #f5faf6;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
}

.page-hero.with-image .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero.with-image .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero.with-image .page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15,32,24,0.88), rgba(15,32,24,0.35));
}

.page-hero.with-image .wrap {
  padding: 5rem 0 2.75rem;
}

.page-hero.with-image h1 { color: #f5faf6; }
.page-hero.with-image p { color: rgba(245,250,246,0.9); max-width: 42ch; }

/* Blog */
.article-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.prose h2 { margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.blog-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
}

/* Lab schedule */
.lab-timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--forest-mid);
  margin-left: 0.5rem;
}

.lab-slot {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}

.lab-slot::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maple);
  box-shadow: 0 0 0 3px var(--paper);
}

.lab-slot time {
  display: block;
  font-weight: 700;
  color: var(--maple-deep);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
}

.review cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--forest);
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

/* Legal */
.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  background: var(--surface);
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--paper-2);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--forest);
  color: rgba(232, 240, 235, 0.88);
  position: relative;
  z-index: 1;
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5faf6;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: #f0d78a;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

.site-footer a {
  color: rgba(232, 240, 235, 0.9);
  text-decoration: none;
}

.site-footer a:hover { color: #f0d78a; }

.footer-address { white-space: pre-line; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.cookie-banner.is-visible { display: block; animation: rise-in 0.45s var(--ease); }

.cookie-banner p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-error {
  background: #fdecec;
  color: #9b2c2c;
  border: 1px solid #c53030;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--maple);
  margin: 0;
}

/* Animations */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes leaf-breathe {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.06); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse,
  .contact-grid,
  .story,
  .grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split-reverse { direction: ltr; }

  .offer-row {
    grid-template-columns: 100px 1fr;
  }

  .offer-arrow { display: none; }

  .blog-item {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 246, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

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

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

@media (max-width: 560px) {
  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-row img {
    width: 100%;
    height: 160px;
  }

  .hero-content { padding-bottom: 2.5rem; }
}
