/* Root */
:root {
  --col-bg: #F6F2EA;
  --col-surface: #FFFFFF;
  --col-text: #14213D;
  --col-muted: #4D5870;
  --col-accent: #9A4F14;
  --col-accent-text: #FFFFFF;
  --col-plate: #14213D;
  --col-plate-text: #F6F2EA;
  --col-line: #E3DACB;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-img: 20px;
  --radius-btn: 999px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --pad-side: clamp(16px, 4vw, 40px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--col-text);
  background-color: var(--col-bg);
  background-image:
    linear-gradient(180deg, var(--col-bg) 0%, var(--col-surface) 100%),
    repeating-conic-gradient(rgb(20 33 61 / .028) 0% 25%, rgb(20 33 61 / .014) 0% 50%);
  background-blend-mode: multiply;
  background-size: auto, 7px 7px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--col-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--col-accent); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }

/* Utils */
.u-jump {
  position: absolute; left: -9999px; top: 0;
  background: var(--col-surface); color: var(--col-text);
  padding: 10px 18px; border-radius: var(--radius-btn); z-index: 100;
  text-decoration: none;
}
.u-jump:focus { left: 12px; top: 12px; }
.u-sronly {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.u-round { border-radius: var(--radius-img); }
.u-tint {
  background: linear-gradient(150deg, rgb(154 79 20 / .10), rgb(20 33 61 / .06));
  border-radius: var(--radius-img);
  padding: clamp(24px, 4vw, 48px);
}
.u-mat {
  background: var(--col-bg);
  padding: clamp(10px, 1.6vw, 18px);
  border-radius: calc(var(--radius-img) + 8px);
}
.u-mark {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw + 1rem, 5.2rem);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 750;
}
main h2.u-mark { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad-side);
}
.l-band { padding-block: clamp(56px, 7vw, 104px); }
[class*="--alt"] { background: rgb(255 255 255 / .55); }
[class*="--split"] { padding-block: clamp(40px, 6vw, 96px); }
[class*="__cols"] {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
.l-read { max-width: 760px; }
.l-read h2 { margin-top: 40px; }
.l-read ol, .l-read ul { padding-left: 24px; max-width: 68ch; }
.l-read li { margin-bottom: 8px; }
.l-read table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--col-surface); border-radius: 12px; overflow: hidden; }
.l-read th, .l-read td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--col-line); }
.l-read th { font-weight: 600; }

/* Hero split */
.l-split {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1fr;
}
.l-split [class*="__side"] img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.l-split [class*="__side"] p { color: var(--col-text); }
.l-split [class*="__side"] .c-pill { margin-top: 8px; }

/* Stats */
.l-stats {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 32px auto 0; max-width: 640px;
}
.l-stats [class*="__item"] {
  background: var(--col-surface); border: 1px solid var(--col-line);
  border-radius: var(--radius-img); padding: 36px 48px;
  box-shadow: var(--shadow-soft); text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.l-stats [class*="__value"] {
  display: block; font-family: var(--font-head); font-weight: 750;
  font-size: clamp(3.2rem, 5vw + 1.2rem, 5.4rem); line-height: 1;
  color: var(--col-accent);
}
.l-stats [class*="__label"] { display: block; margin-top: 8px; color: var(--col-muted); font-size: 0.95rem; }

/* Tiles (services) */
.c-tile-list {
  display: grid; gap: 24px; margin-top: 32px;
  grid-template-columns: 1fr;
}
.c-tile {
  background: var(--col-surface); border: 1px solid var(--col-line);
  border-radius: var(--radius-img); padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
}
.c-tile:hover, .c-tile:focus-within {
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 40px rgb(154 79 20 / .22);
  transform: translateY(-3px);
}
.c-tile p { margin-bottom: 16px; color: var(--col-muted); }
.c-tile a { margin-top: auto; font-weight: 600; }

/* FAQ */
.c-questions { margin-top: 32px; display: grid; gap: 12px; }
.c-questions details {
  background: var(--col-surface); border: 1px solid var(--col-line);
  border-radius: var(--radius-img); padding: 4px 24px;
}
.c-questions summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-head);
  font-size: 1.125rem; padding: 18px 0; list-style-position: outside;
}
.c-questions details[open] summary { color: var(--col-accent); }
.c-questions details p { padding-bottom: 16px; color: var(--col-muted); }

/* Gallery */
.l-gallery {
  display: grid; gap: 24px; margin: 56px auto 0;
  grid-template-columns: 1fr; max-width: 1100px;
}
.l-gallery [class*="__item"] { margin: 0; }
.l-gallery [class*="__item"] img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.l-gallery [class*="__item"] figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--col-muted); }

/* Masthead */
.c-masthead {
  background: var(--col-surface);
  border-bottom: 1px solid var(--col-line);
  position: relative; z-index: 20;
}
.c-masthead [class*="__top"] {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 10px 0; font-size: 0.9rem;
  border-bottom: 1px dashed var(--col-line);
}
.c-masthead [class*="__top"] a { color: var(--col-muted); text-decoration: none; font-weight: 600; }
.c-masthead [class*="__top"] a:hover { color: var(--col-accent); text-decoration: underline; }
.c-masthead [class*="__bar"] {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.c-identity {
  font-family: var(--font-head); font-weight: 750;
  font-size: clamp(1.15rem, 2vw + 0.6rem, 1.6rem);
  color: var(--col-text); text-decoration: none; letter-spacing: -0.01em;
  order: -1;
}
.c-menu [class*="__list"] {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.l-menu-item a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 18px; border: 1px solid var(--col-accent);
  border-radius: var(--radius-btn); color: var(--col-text);
  text-decoration: none; font-size: 1rem; font-weight: 600;
  transition: background-color .25s ease, color .25s ease, text-decoration-thickness .2s ease;
}
.l-menu-item a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-underline-offset: 5px; }
.l-menu-item a[aria-current="page"] {
  background: var(--col-accent); color: var(--col-accent-text);
}
.c-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--col-line);
  border-radius: var(--radius-btn); padding: 12px; cursor: pointer;
}
.c-burger [class*="__line"] { display: block; width: 22px; height: 2px; background: var(--col-text); border-radius: 2px; }

/* Pills */
.c-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid var(--col-text); border-radius: var(--radius-btn);
  background: transparent; color: var(--col-text);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .28s ease, transform .15s ease, border-color .28s ease;
}
.c-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--col-text);
  transform: scale(0); border-radius: 50%;
  transition: transform .32s ease;
}
.c-pill:hover { color: var(--col-bg); }
.c-pill:hover::before { transform: scale(1.6); }
.c-pill:focus-visible {
  outline: 4px solid var(--col-accent); outline-offset: 4px;
}
.c-pill:active { transform: scale(.95); }
.c-pill-plate { border-color: var(--col-plate-text); color: var(--col-plate-text); }
.c-pill-plate::before { background: var(--col-plate-text); }
.c-pill-plate:hover { color: var(--col-plate); }

/* Slab */
.c-slab {
  background: var(--col-plate); color: var(--col-plate-text);
  border-radius: var(--radius-img);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
}
.c-slab h2 { color: var(--col-plate-text); }
.c-slab p { color: var(--col-plate-text); opacity: .92; }
.c-slab-list { margin: 24px 0 28px; display: grid; gap: 8px; }
.c-slab-list span { opacity: .75; margin-right: 6px; }
.c-slab-list a { color: var(--col-plate-text); }

/* Form */
.c-writein {
  margin-top: 32px; display: grid; gap: 20px;
  background: var(--col-surface); border: 1px solid var(--col-line);
  border-radius: var(--radius-img); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft); max-width: 760px;
}
.l-writein-row { display: grid; gap: 6px; }
.l-writein-tag { font-weight: 600; font-size: 1rem; }
.l-writein-line {
  font: inherit; color: var(--col-text);
  border: 1px solid var(--col-line); border-radius: 12px;
  padding: 12px 16px; background: var(--col-bg);
  width: 100%;
}
.l-writein-line::placeholder { color: var(--col-muted); opacity: 1; }
.l-writein-line:focus-visible { outline: 3px solid var(--col-accent); outline-offset: 2px; }
.l-writein-area { resize: vertical; min-height: 120px; }
.is-invalid .l-writein-line,
.l-writein-line.is-invalid { border-color: var(--col-accent); box-shadow: 0 0 0 3px rgb(154 79 20 / .18); }
.l-writein-agree { display: flex; gap: 12px; align-items: flex-start; max-width: 68ch; }
.l-writein-agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--col-accent); flex: none; }
.l-writein-hint { font-size: 0.9rem; color: var(--col-muted); margin: 0; }
.l-writein-send { justify-self: start; }
.is-sending .l-writein-send { opacity: .6; pointer-events: none; }

/* Colophon */
.c-colophon {
  background: var(--col-plate); color: var(--col-plate-text);
  padding: clamp(48px, 7vw, 88px) 0 32px; margin-top: 0;
}
.c-colophon address p { color: var(--col-plate-text); opacity: .92; }
.c-colophon [class*="__title"] { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin: 0 0 14px; color: var(--col-plate-text); }
.c-colophon ul li { margin-bottom: 8px; }
.c-colophon ul span { opacity: .75; margin-right: 6px; }
.c-colophon a { color: var(--col-plate-text); }
.c-colophon [class*="__copy"] {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgb(246 242 234 / .25);
  font-size: 0.9rem; opacity: .85;
}

/* Inner pages */
.l-pagehead { padding-block: clamp(40px, 6vw, 80px) 0; }
.l-pagehead p { color: var(--col-muted); font-size: 1.1rem; }
.l-contactbox {
  background: var(--col-surface); border: 1px solid var(--col-line);
  border-radius: var(--radius-img); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft); display: grid; gap: 8px;
}
.l-contactbox ul { display: grid; gap: 8px; margin-top: 12px; }
.l-contactbox span { color: var(--col-muted); margin-right: 6px; }

/* Reveal */
.c-rise { transition: opacity .6s ease, transform .6s ease; }
html.has-js .c-rise { opacity: 0; transform: translateY(24px); }
html.has-js .c-rise.is-shown { opacity: 1; transform: translateY(0); }

/* Breakpoints */
@media (min-width: 480px) {
  .c-tile-list { grid-template-columns: 1fr; }
  .l-gallery { grid-template-columns: 1fr 1fr; }
  .l-gallery [class*="__item"]:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .c-burger { display: flex; }
  .c-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--col-surface); border-bottom: 1px solid var(--col-line);
    box-shadow: var(--shadow-soft);
  }
  .c-menu [class*="__list"] {
    display: none; flex-direction: column; align-items: stretch;
    padding: 16px var(--pad-side); gap: 10px;
  }
  .c-menu.is-open [class*="__list"] { display: flex; }
  .l-menu-item a { width: 100%; justify-content: center; }
}
@media (min-width: 768px) {
  .l-split { grid-template-columns: 1fr 1fr; }
  .c-tile-list { grid-template-columns: repeat(2, 1fr); }
  [class*="__cols"] { grid-template-columns: 1fr 1fr; }
  .c-colophon [class*="__legal"] { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .c-tile-list { grid-template-columns: repeat(3, 1fr); }
  [class*="__cols"] { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .c-colophon [class*="__legal"] { grid-column: auto; }
  .c-identity { order: 0; }
}
@media (min-width: 1280px) {
  .l-wrap { padding-inline: 40px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.has-js .c-rise { opacity: 1; transform: none; }
}

/* Hero balance */
.l-split .u-mark {
  font-size: clamp(2.1rem, 2.4vw + 1.2rem, 2.95rem);
  line-height: 1.18;
}
.l-split .u-mark + p { margin-top: 4px; }

/* Cards equal height */
.c-tile-list { align-items: stretch; }
.c-tile { min-height: 100%; }

/* Small screens */
@media (max-width: 600px) {
  .l-split [class*="__side"] img { aspect-ratio: 4 / 3; }
  .l-split .u-mark { font-size: 2rem; line-height: 1.2; }
  .l-stats [class*="__item"] { padding: 28px 32px; }
  .l-gallery { margin-top: 40px; }
}
@media (max-width: 480px) {
  .c-masthead [class*="__top"] { justify-content: center; }
}
