/* ==========================================================================
   Jin's Home Services - design system
   Edit tokens below to re-skin the whole site.
   ========================================================================== */

:root {
  --ink: #15201b;
  --ink-soft: #2c3932;
  --muted: #58645d;
  --paper: #f7f4ed;
  --paper-2: #efe9dd;
  --white: #ffffff;
  --green: #2c5647;
  --green-deep: #1e3e33;
  --green-soft: #dce7e0;
  --clay: #94502e;
  --clay-soft: #f4e5da;
  --line: rgba(21, 32, 27, 0.14);
  --line-strong: rgba(21, 32, 27, 0.3);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 10px 30px -18px rgba(21, 32, 27, 0.35);
  --shadow: 0 30px 70px -34px rgba(21, 32, 27, 0.4);
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--green); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: rgba(247, 244, 237, 0.78); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }
.section--ink .eyebrow { color: #d9a684; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
}
.section-head--split p { margin: 0; }
@media (max-width: 800px) {
  .section-head--split { grid-template-columns: 1fr; gap: 18px; }
}

.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(21, 32, 27, 0.04); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { background: transparent; border-color: rgba(247, 244, 237, 0.45); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); background: rgba(247, 244, 237, 0.08); }
.btn--block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

.text-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.22s var(--ease), border-color 0.22s var(--ease);
}
.text-link:hover { gap: 12px; border-color: var(--green); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 237, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 30px -26px rgba(21, 32, 27, 0.5);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}
.brand__mark { width: 40px; height: 40px; color: var(--green); }
.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.brand__sub {
  margin-top: 5px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; row-gap: 4px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 11px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transition: right 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; color: var(--green); }
.header-phone:hover { color: var(--green); }
.header-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* em breakpoints so the header also collapses when the reader enlarges text */
@media (max-width: 65em) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 12px; }
}
@media (max-width: 43.75em) {
  .header-actions .btn { display: none; }
  .brand__sub { display: none; }
  .header-inner { min-height: 70px; gap: 12px; }
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--header-h, 82px) 0 0;
  z-index: 90;
  background: var(--paper);
  padding: 32px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  overflow-y: auto;
}
/* visibility must flip on the first frame when opening, or focus() is ignored */
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 26px; }
.mobile-menu__contact { margin-top: 26px; display: grid; gap: 10px; font-size: 1rem; color: var(--muted); }
.mobile-menu__contact a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); border: 0; padding: 0; overflow-wrap: anywhere; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: clamp(560px, 76vh, 760px);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 84px) clamp(44px, 6vw, 76px) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.hero__copy .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 5.3vw, 4.15rem); }
.hero__lede { margin-top: 24px; max-width: 47ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 32, 27, 0.02), rgba(21, 32, 27, 0.18));
}
.hero__badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
  background: rgba(247, 244, 237, 0.96);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 260px;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.hero__badge span { display: block; margin-top: 5px; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 40px var(--gutter) 44px; }
  .hero__media { order: -1; height: clamp(190px, 26vh, 240px); }
  .hero__copy { padding-top: 22px; }
  .hero__lede { margin-top: 14px; }
  .hero__actions { margin-top: 18px; }
  .hero__proof { margin-top: 22px; padding-top: 18px; }
  .hero h1 { max-width: 18ch; }
  .hero__badge { display: none; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--ink); color: rgba(247, 244, 237, 0.72); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__item { padding: 30px 26px; border-left: 1px solid rgba(247, 244, 237, 0.12); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item:last-child { padding-right: 0; }
.trust__item strong { display: block; color: var(--paper); font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.trust__item span { font-size: 0.85rem; }
@media (max-width: 800px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 22px 18px; }
  .trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid rgba(247, 244, 237, 0.12); }
  .trust__item:nth-child(even) { padding-right: 0; }
}

/* ---------- service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.045); }
.service-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.service-card__body h3 { font-size: 1.32rem; }
.service-card__body p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.service-card__meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
}
.service-card__meta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__meta svg { transform: translateX(4px); }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split > * { min-width: 0; }
.split__intro { position: sticky; top: 120px; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split--warranty { grid-template-columns: 1fr 1.2fr; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.feature-item { border-top: 1px solid var(--line); padding-top: 20px; }
.feature-item__num { font-family: var(--font-display); font-size: 0.9rem; color: var(--clay); }
.feature-item h3 { margin: 8px 0 8px; font-size: 1.16rem; }
.feature-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .split, .split--even, .split--warranty { grid-template-columns: 1fr; }
  .split__intro { position: static; }
  .feature-list { gap: 26px 22px; }
}
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { border-top: 1px solid rgba(247, 244, 237, 0.2); padding-top: 22px; }
.process-step__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #d9a684;
  letter-spacing: 0.06em;
}
.process-step h3 { color: var(--paper); font-size: 1.24rem; margin: 14px 0 10px; }
.process-step p { font-size: 0.93rem; margin: 0; color: rgba(247, 244, 237, 0.66); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  padding: 0;
  border: 0;
  text-align: left;
  width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(21, 32, 27, 0.72));
  opacity: 0.9;
}
.gallery-item__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gallery-item__caption small { opacity: 0.75; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-grid--teaser { grid-template-columns: 1.1fr 0.9fr 1fr; grid-auto-rows: 260px; }
.gallery-grid--teaser .gallery-item:first-child { grid-row: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid--teaser { grid-template-columns: 1fr 1fr; }
  .gallery-grid--teaser .gallery-item:first-child { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery-grid, .gallery-grid--teaser { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item--wide, .gallery-item--tall { grid-column: auto; grid-row: auto; }
}

/* gallery video badge */
.gallery-item__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.gallery-item__play svg {
  width: 58px;
  height: 58px;
  padding: 15px;
  border-radius: 50%;
  background: rgba(247, 244, 237, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  width: 94vw;
}
.lightbox::backdrop { background: rgba(12, 18, 15, 0.86); backdrop-filter: blur(4px); }
.lightbox__frame { position: relative; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.lightbox__frame img, .lightbox__video { width: 100%; max-height: 78vh; object-fit: contain; background: #0d120f; }
.lightbox__video { display: block; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--paper);
  font-size: 0.9rem;
}
.lightbox__buttons { display: flex; gap: 8px; }
.lightbox button.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 237, 0.28);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.lightbox button.icon-btn:hover { background: rgba(247, 244, 237, 0.12); }
.lightbox button.icon-btn svg { width: 18px; height: 18px; }

/* ---------- testimonial ---------- */
.quote-band { text-align: center; max-width: 880px; margin-inline: auto; }
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.quote-band blockquote::before { content: "\201C"; color: var(--clay); margin-right: 4px; }
.quote-band blockquote::after { content: "\201D"; color: var(--clay); margin-left: 2px; }
.quote-band figcaption {
  margin-top: 26px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-band figcaption span { color: var(--clay); }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; margin: 0; color: var(--muted); max-width: 68ch; }
.faq--two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; border-top: 0; }
.faq--two-col details { border-top: 1px solid var(--line); }
@media (max-width: 800px) { .faq--two-col { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: rgba(255, 255, 255, 0.82); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px); }
.cta-band__inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { margin-top: 16px; max-width: 48ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band__actions .btn--light { background: var(--white); }
.cta-band__actions .btn--outline-light { border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- page hero (inner) ---------- */
.page-hero { background: var(--paper-2); padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 6vw, 72px); align-items: end; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.page-hero p { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.chip svg { width: 14px; height: 14px; color: var(--green); }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .page-hero__inner { grid-template-columns: minmax(0, 1fr); } .page-hero__media { aspect-ratio: 16 / 9; } }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.8rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs__sep { opacity: 0.5; }

/* ---------- service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.service-body > * + * { margin-top: 40px; }
.service-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.service-body h2 + p { margin-top: 14px; }
.prose p { max-width: 68ch; }
.prose ul { display: grid; gap: 10px; margin-top: 6px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--muted); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.option-list { display: grid; gap: 18px; }
.option-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.option-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.option-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.aside-card {
  position: sticky;
  top: 106px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.aside-card h2 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.aside-card dl { margin: 0 0 24px; display: grid; gap: 14px; }
.aside-card dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.aside-card dd { margin: 3px 0 0; font-weight: 600; color: var(--ink); font-size: 0.98rem; line-height: 1.4; }
.aside-card .btn { width: 100%; }
.aside-card__note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); text-align: center; }
@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; order: -1; }
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
caption { text-align: left; padding: 20px 22px 0; font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; color: var(--ink); caption-side: top; }
th, td { padding: 15px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { width: 38%; color: var(--ink); font-weight: 500; }
td { color: var(--muted); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--green); outline: 2px solid transparent; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a33b2a; }
.field__error { font-size: 0.78rem; color: #a33b2a; min-height: 1em; }
.form-foot { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 500; }
.form-status[data-state="error"] { color: #a33b2a; }
.form-note a, .table-wrap a { display: inline-flex; align-items: center; min-height: 24px; }
.form-status[data-state="ok"] { color: var(--green); }

.contact-aside { display: grid; gap: 22px; }
.contact-card { background: var(--ink); color: rgba(247, 244, 237, 0.76); border-radius: var(--radius-lg); padding: 30px 28px; }
.contact-card h2 { color: var(--paper); font-size: 1.5rem; }
.contact-card a { color: var(--paper); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-card a:hover { color: #d9a684; }
.contact-card__row { padding: 16px 0; border-top: 1px solid rgba(247, 244, 237, 0.16); display: grid; gap: 4px; }
.contact-card__row:first-of-type { margin-top: 18px; }
.contact-card__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 244, 237, 0.55); }
@media (max-width: 820px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 244, 237, 0.62); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: 36px; }
.footer-grid > * { min-width: 0; }
.site-footer h2 { color: var(--paper); font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin: 0 0 16px; }
.site-footer .brand__mark { color: #d9a684; }
.site-footer .brand__name { color: var(--paper); }
.site-footer .brand__sub { color: rgba(247, 244, 237, 0.5); }
.footer-about { margin-top: 18px; font-size: 0.92rem; max-width: 34ch; }
.footer-links { display: grid; gap: 10px; font-size: 0.92rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-contact { display: grid; gap: 10px; font-size: 0.92rem; }
.footer-contact a { color: var(--paper); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #d9a684; }
.footer-bottom {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(247, 244, 237, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(247, 244, 237, 0.5);
}
.footer-bottom a { text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- mobile sticky call bar ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 237, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.call-bar .btn { flex: 1; min-height: 46px; padding: 10px 14px; font-size: 0.9rem; }
@media (max-width: 900px) {
  .call-bar { display: flex; }
  body { padding-bottom: var(--call-bar-h, 70px); }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
.notfound p { margin: 18px auto 28px; max-width: 46ch; color: var(--muted); }

/* ---------- numbered prose lists ---------- */
.prose--numbered li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.prose-num { position: absolute; left: 0; color: var(--clay); font-weight: 600; font-size: 0.95em; }
.process-grid--light .process-step { border-top-color: var(--line); }
.process-grid--light .process-step h3 { color: var(--ink); }
.process-grid--light .process-step p { color: var(--muted); }
.process-grid--light .process-step__num { color: var(--clay); }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 0.85rem; color: var(--muted); }

.footer-details { margin-top: 10px; font-size: 0.82rem; color: rgba(247, 244, 237, 0.5); }
.footer-details:empty { display: none; }
.quote-band__link { margin-top: 22px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.review-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.review-card figcaption { margin-top: 16px; font-size: 0.84rem; color: var(--muted); }
.review-card figcaption strong { color: var(--ink); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.contact-card .small { color: rgba(247, 244, 237, 0.74); }

.feature-video { margin: 0; }
.feature-video video { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.feature-video figcaption { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }

.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filter__btn {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.gallery-filter__btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery-item[hidden] { display: none; }

.comparison-table { margin-top: 36px; }
.comparison-table td:first-child { width: 22%; }
.comparison-table a { color: var(--green); text-decoration: none; }
.comparison-table a:hover { text-decoration: underline; }
