/* ============ Tokens ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1180px;

  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

:root,
[data-theme='light'] {
  --color-bg: #f4f6f7;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfc;
  --color-surface-offset: #e9edef;
  --color-divider: #dde3e6;
  --color-border: #cdd6da;

  --color-text: #12191d;
  --color-text-muted: #5b686f;
  --color-text-faint: #9aa5ab;
  --color-text-inverse: #f7fafb;

  --color-primary: #0a5c73;
  --color-primary-hover: #084655;
  --color-primary-active: #063240;
  --color-primary-highlight: #dbe8ec;

  --color-star: #b8801a;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 230 / 0.07);
  --shadow-md: 0 6px 18px oklch(0.2 0.02 230 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 230 / 0.13);
}

[data-theme='dark'] {
  --color-bg: #0f1416;
  --color-surface: #161c1f;
  --color-surface-2: #1a2124;
  --color-surface-offset: #1d2528;
  --color-divider: #232b2e;
  --color-border: #333d41;

  --color-text: #ced5d8;
  --color-text-muted: #7d888d;
  --color-text-faint: #5a6367;
  --color-text-inverse: #101619;

  --color-primary: #4fa3b8;
  --color-primary-hover: #6ab9cd;
  --color-primary-active: #85cadb;
  --color-primary-highlight: #1e2c31;

  --color-star: #e0aa42;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); font-weight: 700; }
p, li { text-wrap: pretty; }

::selection { background: var(--color-primary-highlight); color: var(--color-text); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a, button, [role='button'] {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ============ Layout ============ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.section-lead { color: var(--color-text-muted); max-width: 58ch; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.header--scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand svg { color: var(--color-primary); flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  letter-spacing: -0.01em; line-height: 1.1;
}
.brand__tag { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 500;
  color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; gap: var(--space-5); margin-left: auto; }
.nav a {
  font-size: var(--text-sm); text-decoration: none; color: var(--color-text-muted); font-weight: 500;
}
.nav a:hover { color: var(--color-text); }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-md); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-offset); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700; text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md); border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { background: var(--color-surface-offset); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.hero__grid {
  display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--space-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero__note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }

.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  color: var(--color-text-muted); background: var(--color-surface);
}
.badge svg { color: var(--color-primary); }

/* Hero visual: technical line art */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px; width: 100%; margin-inline: auto;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 20% 10%, var(--color-surface) 0%, var(--color-surface-offset) 100%);
  border: 1px solid var(--color-divider);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
}
.hero__visual svg { position: relative; width: 74%; color: var(--color-primary); }

/* ============ Services ============ */
.svc-groups { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-10); }
@media (min-width: 820px) { .svc-groups { grid-template-columns: 1fr 1fr; } }

.svc {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.svc__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.svc__icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight); color: var(--color-primary);
}
.svc h3 { font-size: var(--text-lg); }
.svc ul { display: grid; gap: var(--space-3); }
.svc li {
  display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider);
}
.svc li:last-child { border-bottom: none; padding-bottom: 0; }
.svc li b { color: var(--color-text); font-weight: 600; }
.svc li svg { flex-shrink: 0; align-self: flex-start; margin-top: 5px; color: var(--color-primary); }

/* ============ Steps ============ */
.steps-band { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.steps { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-10); counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--color-primary-highlight); }
.step__num {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800;
  color: var(--color-primary); margin-bottom: var(--space-2);
}
.step h3 { font-size: var(--text-base); margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 700; }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ Reviews ============ */
.rating-row {
  display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center;
  margin-top: var(--space-8); margin-bottom: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.rating { display: flex; align-items: baseline; gap: var(--space-3); }
.rating__score { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; }
.rating__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--color-star); }
.rating-row a { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; margin-left: auto; }
.rating-row a:hover { text-decoration: underline; }

.reviews { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 780px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.review blockquote { font-size: var(--text-sm); color: var(--color-text); }
.review footer { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: auto; }
.review footer b { display: block; color: var(--color-text-muted); font-weight: 600; font-size: var(--text-sm); }

/* ============ Area ============ */
.area-band { background: var(--color-surface-offset); }
.area-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.area-list li {
  font-size: var(--text-sm); padding: var(--space-2) var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); color: var(--color-text-muted);
}

/* ============ Contacts ============ */
.contacts { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-16)); grid-template-columns: 1fr; margin-top: var(--space-10); }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1fr; } }

.cinfo { display: grid; gap: var(--space-6); align-content: start; }
.cinfo__item { display: flex; gap: var(--space-4); }
.cinfo__item svg { flex-shrink: 0; align-self: flex-start; color: var(--color-primary); margin-top: 3px; }
.cinfo dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); margin-bottom: var(--space-1); font-weight: 600; }
.cinfo dd { font-size: var(--text-base); font-weight: 600; }
.cinfo dd a { text-decoration: none; }
.cinfo dd a:hover { color: var(--color-primary); }
.cinfo dd small { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--color-text-muted); margin-top: var(--space-1); }

.cta-card {
  background: var(--color-primary); color: var(--color-text-inverse);
  border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10));
  align-self: start;
}
.cta-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); color: var(--color-text-inverse); }
.cta-card p { font-size: var(--text-sm); opacity: 0.85; margin-bottom: var(--space-6); }
.cta-card .phone {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-xl); letter-spacing: -0.01em; text-decoration: none; color: inherit;
  margin-bottom: var(--space-5);
}
.cta-card .phone:hover { text-decoration: underline; }
.cta-card .btn--white {
  background: var(--color-surface); color: var(--color-primary);
}
.cta-card .btn--white:hover { background: var(--color-surface-2); transform: translateY(-1px); }
.cta-card ul { display: grid; gap: var(--space-2); margin-top: var(--space-6); font-size: var(--text-sm); }
.cta-card li { display: flex; gap: var(--space-2); opacity: 0.9; }
.cta-card li svg { flex-shrink: 0; align-self: flex-start; margin-top: 5px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-10); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.footer p { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer nav { display: flex; gap: var(--space-5); }
.footer nav a { font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: none; }
.footer nav a:hover { color: var(--color-text); }

/* ============ Sticky mobile call bar ============ */
.callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: none; padding: var(--space-3) var(--space-4);
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-divider);
}
.callbar .btn { width: 100%; }
@media (max-width: 719px) {
  .callbar { display: block; }
  body { padding-bottom: 76px; }
  .nav { display: none; }
  .header__phone { display: none; }
}

/* reveal on scroll — only when JS marks the document ready */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1; transform: none; } }

/* ============ Gallery ============ */
.gallery {
  margin-top: var(--space-10);
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.shot { margin: 0; }
.shot__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--color-surface-2); border-radius: var(--radius-md); overflow: hidden;
  line-height: 0; box-shadow: var(--shadow-sm);
}
.shot__btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}
.shot__btn:hover img, .shot__btn:focus-visible img { transform: scale(1.04); }
.shot__zoom {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  font-size: 15px; font-weight: 600;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  color: var(--color-text); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 200ms ease;
}
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; transform: none; }
.shot figcaption {
  margin-top: var(--space-3); font-size: var(--text-sm);
  color: var(--color-text-muted); line-height: 1.45;
}
.gallery__note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-text-faint); }
.gallery__note a { color: var(--color-primary); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  padding: clamp(16px, 4vw, 48px);
  place-items: center;
  background: rgba(8, 14, 17, 0.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lb.is-open { display: grid; animation: lb-in 180ms ease both; }
@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }
.lb__fig { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb__fig img {
  max-width: 100%; max-height: 78vh; border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0,0,0,.45); background: #0d1417;
}
.lb__cap { margin-top: var(--space-4); color: rgba(255,255,255,.86); font-size: var(--text-sm); }
.lb__close {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
  transition: background 150ms ease;
}
.lb__close:hover { background: rgba(255,255,255,.22); }
@media (prefers-reduced-motion: reduce) {
  .shot__btn img, .lb.is-open { transition: none; animation: none; }
}

/* ============ Brand logo & master photo ============ */
.brand__logo { width: 44px; height: 44px; display: block; flex-shrink: 0; }
@media (max-width: 560px) { .brand__logo { width: 40px; height: 40px; } }

.cta-card__head { display: flex; align-items: center; gap: var(--space-4); }
.cta-card__head h3 { margin: 0; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--color-text-inverse) 35%, transparent);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.footer__brand img { width: 56px; height: 56px; flex-shrink: 0; }
