/* Installist — site styles
   Built from Installist design system: charcoal base, mint accent on dark,
   teal accent on light, Sora type, one 12px radius, hairlines instead of shadows. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #26292E;
  --charcoal-deep: #1C1E22;
  --mint: #9ADFE3;
  --teal: #1C767C;
  --gray-800: #33373D;
  --gray-700: #474C53;
  --gray-600: #5E636B;
  --gray-500: #8A9099;
  --gray-400: #A7ADB5;
  --gray-300: #C9CDD2;
  --gray-200: #E1E4E7;
  --gray-100: #EEF0F2;
  --off-white: #F6F7F8;
  --white: #FFFFFF;

  --radius: 12px;
  --font: "Sora", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --section: 64px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --section: 96px; }
}

/* Section themes: every section sets its own ground, so the brand's
   light/dark pairing is explicit and never depends on the visitor's OS. */
.theme-dark {
  --bg: var(--charcoal);
  --raised: var(--gray-800);
  --ink: var(--off-white);
  --muted: var(--gray-400);
  --line: var(--gray-700);
  --accent: var(--mint);
  --on-accent: var(--charcoal);
  --focus: var(--mint);
  background: var(--bg);
  color: var(--ink);
}
.theme-deep {
  --bg: var(--charcoal-deep);
  --raised: var(--charcoal);
  --ink: var(--off-white);
  --muted: var(--gray-400);
  --line: var(--gray-700);
  --accent: var(--mint);
  --on-accent: var(--charcoal);
  --focus: var(--mint);
  background: var(--bg);
  color: var(--ink);
}
.theme-light {
  --bg: var(--off-white);
  --raised: var(--white);
  --ink: var(--charcoal);
  --muted: var(--gray-600);
  --line: var(--gray-200);
  --accent: var(--teal);
  --on-accent: var(--white);
  --focus: var(--teal);
  background: var(--bg);
  color: var(--ink);
}
.theme-light.is-white { --bg: var(--white); --raised: var(--off-white); background: var(--white); }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  background: var(--charcoal);
  color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--charcoal); padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.label {
  font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.display {
  font-size: clamp(38px, 6.2vw, 64px); line-height: 1.02; letter-spacing: -.035em;
  margin-top: 16px; max-width: 15ch; text-wrap: balance;
}
.headline {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em;
  margin-top: 12px; text-wrap: balance;
}
.lead { font-size: 17px; line-height: 27px; color: var(--muted); max-width: 54ch; margin-top: 20px; }
@media (min-width: 720px) { .lead { font-size: 18px; line-height: 28px; } }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal); border-bottom: 1px solid var(--gray-700);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--gray-400); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--off-white); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; color: var(--off-white); text-decoration: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--gray-700); border-radius: var(--radius); color: var(--off-white); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--gray-700); padding: 8px 0 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; color: var(--off-white); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--gray-700);
}
.mobile-nav a:last-child { border-bottom: 0; }
.site-header .btn-ghost { --ink: var(--off-white); --line: var(--gray-700); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-phone { display: inline; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- home hero ---------- */
.hero { padding: 56px 0 72px; }
@media (min-width: 720px) { .hero { padding: 88px 0 96px; } }
.hero-top { display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px) { .hero-top { grid-template-columns: 1.4fr 1fr; } .hero-top .btn-row { justify-content: flex-end; } }
.hero .lead { margin-top: 20px; }

.tiles-head { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: grid; grid-template-columns: 116px 1fr; align-items: stretch;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--gray-500); }
.tile:hover .tile-go span { transform: translateX(3px); }
.tile-img { position: relative; background: var(--charcoal-deep); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tile h3 { font-size: 16px; line-height: 21px; letter-spacing: -.01em; font-weight: 600; }
.tile p { font-size: 13px; line-height: 19px; color: var(--muted); }
.tile-go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tile-go span { transition: transform .15s; }
@media (min-width: 600px) {
  .tile { grid-template-columns: 1fr; }
  .tile-img { aspect-ratio: 4 / 3; }
  .tile-body { padding: 18px 20px 20px; gap: 8px; }
  .tile h3 { font-size: 18px; line-height: 24px; }
  .tile p { font-size: 14px; line-height: 21px; }
  .tile-go { font-size: 14px; padding-top: 10px; }
}
@media (max-width: 599px) { .tile-img img { position: absolute; inset: 0; } .tile-body { min-height: 116px; } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; } }
.prose p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.prose p:first-of-type { margin-top: 24px; }
.prose strong { color: var(--ink); font-weight: 600; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.areas li { font-size: 13px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }

.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points .n { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); font-size: 15px; line-height: 24px; }
.points h3 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.points p { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: 4px; }

/* ---------- contact / lead form ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }
.direct { margin-top: 32px; border-top: 1px solid var(--line); }
.direct a, .direct div.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.direct span { color: var(--muted); font-size: 14px; }
.direct b { font-weight: 500; font-variant-numeric: tabular-nums; }

.form-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/22px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px; appearance: none; -webkit-appearance: none;
}
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea { background: var(--charcoal); }
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 6px; }
.fine { font-size: 12px; line-height: 18px; color: var(--muted); margin-top: 16px; }
.fine a { color: var(--ink); }
.form-alert { display: none; margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.form-alert.show { display: block; }

/* ---------- service page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.svc-hero { padding: 48px 0 72px; }
@media (min-width: 720px) { .svc-hero { padding: 64px 0 96px; } }
.svc-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .svc-hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.svc-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--charcoal-deep); }
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: 8px; }

.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); }
.steps h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: 4px; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel ul { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.panel li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 23px; }
.panel .btn { margin-top: 24px; }
.notice { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; line-height: 22px; color: var(--muted); }
.notice strong { color: var(--ink); font-weight: 600; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px; line-height: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-weight: 400; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 68ch; }

/* ---------- legal pages ---------- */
.legal-hero { padding: 56px 0 48px; }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; line-height: 28px; letter-spacing: -.02em; margin: 44px 0 0; }
.legal h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 24px 0 0; }
.legal p, .legal li { color: var(--gray-600); font-size: 16px; line-height: 26px; }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-top: 8px; }
.legal strong { color: var(--charcoal); font-weight: 600; }
.legal a { color: var(--teal); }
.legal .toc { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; }
.legal .toc a { text-decoration: none; }

/* ---------- simple message pages ---------- */
.message { min-height: 60vh; display: flex; align-items: center; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 32px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { color: var(--muted); font-size: 14px; line-height: 22px; margin-top: 18px; max-width: 36ch; }
.foot-col h2 { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.foot-col li { margin-top: 10px; font-size: 15px; line-height: 22px; }
.foot-col a { text-decoration: none; color: var(--ink); }
.foot-col a:hover { color: var(--accent); }
.foot-col .tab { font-variant-numeric: tabular-nums; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.foot-legal p { font-size: 12px; line-height: 18px; color: var(--muted); }
