/* DMC Construction
   Layout: light, sticky header with language pills, phone and one yellow CTA; hero is an off-white "plan sheet" (faint
   blueprint grid) with the headline left and the estimate form right; content bands alternate off-white and a warm stone;
   every call to action is the same yellow so the eye learns it once. Mobile gets a fixed call / estimate bar. */
:root {
  --yellow: #FFC42E;
  --yellow-hover: #F2B300;
  --yellow-tint: #FFF4CC;
  --bg: #FBFAF7;
  --stone: #F3F1EB;
  --card: #FFFFFF;
  --ink: #202329;
  --muted: #5F6772;
  --line: #E4E1DA;
  --grid: rgba(32, 35, 41, 0.045);
  --grid-strong: rgba(32, 35, 41, 0.08);
  --star: #F2B01E;
  --focus: #2F7DE1;
  --error: #B42318;
  --error-tint: #FDECEA;
  --shadow: 0 18px 44px rgba(32, 35, 41, 0.12);
  --wash: rgba(251, 250, 247, 0.97);
  --wash-mid: rgba(251, 250, 247, 0.72);
  --wash-clear: rgba(251, 250, 247, 0);
  --display: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --yellow: #FFD04A;
    --yellow-hover: #FFDB70;
    --yellow-tint: #3B3213;
  --error: #FF8A80;
  --error-tint: #3A1E1C;
    --bg: #17191C;
    --stone: #1E2125;
    --card: #23262B;
    --ink: #EDEEF0;
    --muted: #A3A9B2;
    --line: #34383F;
    --grid: rgba(255, 255, 255, 0.04);
    --grid-strong: rgba(255, 255, 255, 0.07);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --wash: rgba(23, 25, 28, 0.94);
  --wash-mid: rgba(23, 25, 28, 0.7);
  --wash-clear: rgba(23, 25, 28, 0);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --yellow: #FFD04A;
  --yellow-hover: #FFDB70;
  --yellow-tint: #3B3213;
  --error: #FF8A80;
  --error-tint: #3A1E1C;
  --bg: #17191C;
  --stone: #1E2125;
  --card: #23262B;
  --ink: #EDEEF0;
  --muted: #A3A9B2;
  --line: #34383F;
  --grid: rgba(255, 255, 255, 0.04);
  --grid-strong: rgba(255, 255, 255, 0.07);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --wash: rgba(23, 25, 28, 0.94);
  --wash-mid: rgba(23, 25, 28, 0.7);
  --wash-clear: rgba(23, 25, 28, 0);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.022em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.028em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em;
  padding: 0.95rem 1.4rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: #202329; border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-lg { font-size: 1.08rem; padding: 1.1rem 1.7rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--card); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.5rem; font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}
.topbar .tag { color: var(--muted); }
.lang { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang-label { color: var(--muted); margin-right: 0.25rem; }
.lang button {
  font: inherit; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.2rem 0.65rem; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); border-color: var(--ink); }

.navrow { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand-mark {
  width: 44px; height: 44px; flex: none; background: var(--yellow); border-radius: 8px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  color: #202329;
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -0.025em; }
.brand-sub { display: none; }
.nav { display: flex; gap: 1.25rem; margin-inline: auto; white-space: nowrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--muted); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--yellow); }
.hdr-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.hdr-phone { text-decoration: none; font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; color: var(--ink); }
.hdr-phone svg { color: var(--muted); }
.hdr-phone span > span { font-weight: 500; color: var(--muted); }
.menu-btn {
  display: none; font: inherit; font-weight: 700; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.8rem; cursor: pointer;
}
.mobile-nav { display: none; }
.mobile-nav a { display: block; padding: 0.85rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav { display: block; }
  .mobile-nav[hidden] { display: none; }
  .navrow { justify-content: space-between; }
  .hdr-actions .btn { padding: 0.7rem 1rem; font-size: 0.9rem; }
}
@media (max-width: 560px) {
  .topbar .tag, .hdr-phone { display: none; }
  .hdr-actions .btn-primary { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero .lead { margin-top: 1.25rem; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
.hero-years {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted);
  background: var(--yellow-tint); border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.5rem;
}
.hero-years b { font-size: 1.15rem; color: #202329; background: var(--yellow); border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.hero-grid > * { min-width: 0; }


/* Hero with a real project photo behind it. Desktop: photo fills the section and fades to the
   page color behind the headline. Phones: the photo sits as a band above the headline. */
.hero.has-photo { position: relative; isolation: isolate; background-image: none; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; display: block; }
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--wash) 0%, var(--wash) 44%, var(--wash-mid) 54%, var(--wash-clear) 68%);
}
@media (max-width: 900px) {
  .hero.has-photo::before { display: none; }
  .hero-media { position: relative; inset: auto; z-index: auto; height: clamp(190px, 52vw, 340px); }
  .hero.has-photo .hero-grid { padding-block-start: 1.75rem; }
}

/* ---------- estimate form ---------- */
.estimate {
  background: var(--card); color: var(--ink); border-radius: 14px; padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 6px solid var(--yellow);
}
.estimate h2, .estimate h3 { font-size: 1.6rem; }
.estimate .intro { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; margin-bottom: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(47,125,225,0.2); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.form-done { text-align: left; padding-block: 0.5rem; }
.form-error { background: var(--error-tint); color: var(--ink); border-left: 4px solid var(--error); border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.92rem; margin-bottom: 0.85rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
/* Spam trap: hidden from people, filled in by bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.estimate { position: relative; }
.form-done .check { width: 52px; height: 52px; color: var(--yellow-hover); margin-bottom: 0.75rem; }
.form-done p { margin-top: 0.6rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(3rem, 6vw, 5rem); }
.band-stone { background: var(--stone); }
.band-dark { background: var(--stone); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 2.25rem; }
.section-head .lead { margin-top: 0.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* trust strip */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.75rem; }
.trust-item { display: flex; gap: 0.85rem; align-items: flex-start; min-width: 0; }
.trust-item svg { width: 34px; height: 34px; flex: none; color: var(--ink); background: var(--yellow-tint); border-radius: 8px; padding: 5px; }
.trust-item h3 { font-size: 1.1rem; }
.trust-item p { font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* photo placeholder */
.ph {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background-color: var(--stone);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--grid-strong) 14px 15px);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; padding: 1rem;
}
.ph.has-photo { padding: 0; background-image: none; }
.ph.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph span { display: block; }
.ph small { display: block; font-weight: 500; opacity: 0.8; }
.ph-square { aspect-ratio: 1; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 16 / 9; }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; text-decoration: none; color: inherit; }
.svc-card .ph { aspect-ratio: 3 / 2; }
.svc-card h3 { font-size: 1.3rem; }
.svc-card p { color: var(--muted); font-size: 0.97rem; }
.svc-card:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.pill {
  position: absolute; top: 10px; left: 10px; background: var(--yellow); color: #202329;
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.svc-foot { margin-top: 2.25rem; display: flex; justify-content: center; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-list { display: grid; gap: 1.6rem; }
.why-item { display: grid; grid-template-columns: 6px 1fr; gap: 1rem; }
.why-item::before { content: ""; background: var(--yellow); border-radius: 3px; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); }
.why-photo figcaption { margin-top: 0.9rem; font-size: 1.05rem; font-style: italic; }
.why-photo cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* steps (a real sequence, so numbers are information) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; min-width: 0; counter-increment: step; }
.step::before {
  content: counter(step); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: #202329; font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.stars { color: var(--star); font-size: 1.1rem; letter-spacing: 0.1em; }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote footer { margin-top: auto; font-size: 0.92rem; color: var(--muted); }
.quote footer b { color: var(--ink); display: block; }
.quote-foot { margin-top: 2rem; display: flex; justify-content: center; }

/* service area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 0.5rem 1rem; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 0.98rem; }
.towns li { border-left: 3px solid var(--yellow); padding-left: 0.6rem; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }
.towns li { min-width: 0; overflow-wrap: anywhere; }

.mt-1 { margin-top: 1rem; }

/* cta band */
.cta-band { text-align: center; background: var(--yellow-tint); border-top: 1px solid var(--line); }
.cta-band .lead { margin: 1rem auto 1.75rem; color: var(--ink); }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--card); color: var(--ink); padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 24ch; }
.page-head .lead { margin-top: 1rem; }

/* services page */
.svc-group + .svc-group { margin-top: 3.5rem; }
.svc-group h2 { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 4px solid var(--yellow); display: inline-block; }
.svc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; min-width: 0; }
.svc-item svg { width: 36px; height: 36px; color: var(--ink); background: var(--yellow-tint); border-radius: 9px; padding: 6px; margin-bottom: 0.75rem; }
.svc-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.svc-item p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 1000px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .svc-list { grid-template-columns: 1fr; } }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-up > div { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: 14px; padding: 1.5rem; min-width: 0; }
.two-up h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.two-up p { color: var(--muted); }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }


/* ---------- recent projects gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 1.1rem; grid-auto-flow: row dense; }
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .gal-message p { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
}
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.85rem; } }

/* The message tile: same shape as the photos; a full-width band on phones. */
.gal-message {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; background: var(--yellow); color: #202329;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.7rem;
  padding: clamp(0.9rem, 1.6vw, 1.4rem);
}
.gal-message .brand-mark { width: 38px; height: 38px; font-size: 0.9rem; background: #202329; color: var(--yellow); border-radius: 7px; }
.gal-message p { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.05rem, 1.45vw, 1.35rem); text-wrap: balance; }
@media (max-width: 640px) {
  .gal-message-item { grid-column: 1 / -1; }
  .gal-message { aspect-ratio: auto; flex-direction: row; align-items: center; padding: 1.1rem 1.2rem; }
  .gal-message p { font-size: 1.2rem; }
}
.gal-item { margin: 0; min-width: 0; }
.gal-open { display: block; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--line); }
.gal-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.gal-open:hover img, .gal-open:focus-visible img { transform: scale(1.04); }
.gal-item figcaption { margin-top: 0.55rem; font-size: 0.93rem; font-weight: 600; line-height: 1.35; }

/* Enlarged photo viewer. Deliberately dark in both themes, like any photo viewer. */
.lightbox { padding: 0; border: 0; background: transparent; color: #F4F5F7; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 16, 19, 0.88); }
.lb-figure { margin: 0; display: grid; gap: 0.7rem; justify-items: center; }
.lb-img { display: block; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; }
.lb-cap { font-weight: 600; text-align: center; padding-inline: 16px; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); color: #202329; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.lb-btn:hover { background: #FFFFFF; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-img { max-height: calc(100vh - 200px); }
}

/* about page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-grid h2 { margin-bottom: 1rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { text-align: center; padding: 1.25rem 1rem; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 12px; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 0.4rem; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value { min-width: 0; }
.value h3 { font-size: 1.25rem; margin-bottom: 0.4rem; padding-top: 0.75rem; border-top: 3px solid var(--yellow); }
.value p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.notice svg { width: 44px; height: 44px; color: var(--ink); background: var(--yellow-tint); border-radius: 10px; padding: 7px; }
.notice h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.notice p { color: var(--muted); }
@media (max-width: 520px) { .notice { grid-template-columns: 1fr; } }

/* team page */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.member { min-width: 0; }
.member h3 { font-size: 1.3rem; margin-top: 0.9rem; }
.member .role { color: var(--muted); font-weight: 700; font-size: 0.9rem; margin-top: 0.15rem; }
.member p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* testimonials page */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.rating .big { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rating .stars { font-size: 1.5rem; }
.rating p { color: var(--muted); font-size: 0.95rem; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid > * { min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 30px 1fr; gap: 0.9rem; align-items: start; }
.contact-list svg { width: 30px; height: 30px; color: var(--ink); background: var(--yellow-tint); border-radius: 8px; padding: 5px; }
.contact-list b { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.contact-block + .contact-block { margin-top: 2.25rem; }
.contact-block h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-block p { color: var(--muted); }
.callout { background: var(--yellow-tint); border-left: 6px solid var(--yellow); border-radius: 10px; padding: 1.25rem 1.4rem; }
.callout h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.callout p { color: var(--ink); font-size: 0.97rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--card); color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-bottom: 5.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.foot-grid h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-contact { display: grid; gap: 0.75rem; }
.foot-contact b { display: block; color: var(--ink); font-size: 0.8rem; font-weight: 600; }
.foot-contact a { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.foot-legal { border-top: 1px solid var(--line); padding-block: 1.5rem; display: grid; gap: 0.75rem; font-size: 0.85rem; }
.foot-legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.foot-legal .links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--ink); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } .site-footer { padding-bottom: 6rem; } }
@media (min-width: 721px) { .site-footer { padding-bottom: 0; } }

/* ---------- mobile fixed bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  padding: 0.6rem 12px calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(32,35,41,0.08);
}
.mobile-bar .btn { padding: 0.85rem 0.5rem; font-size: 0.95rem; }
@media (max-width: 720px) { .mobile-bar { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gal-open img { transition: none; }
}
