/* Layout: a deep charcoal-green "ceiling" hero where a pendant glows in the logo's yellow, then light sections. Yellow = action, green = confirmation and detail, matching the Hipros logo. */
:root {
  --bg: #f6f8f3;
  --surface: #ffffff;
  --surface-2: #edf1e8;
  --ink: #17201a;
  --muted: #5a665c;
  --line: #dde4d7;
  --accent: #ffc20e;        /* logo yellow: buttons, light, prices */
  --accent-ink: #4b7612;    /* dark logo green, for text and icons on light surfaces */
  --on-accent: #1f1a05;
  --green: #a0c842;         /* logo green: ticks, selected choices */
  --night: #16201a;
  --night-ink: #f1f4ee;
  --night-muted: #a8b5aa;
  --night-line: #2b3a2f;
  --focus: #2b6fd6;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.4rem + 4vw, 4.2rem);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1511; --surface: #172019; --surface-2: #131b15; --ink: #edf1ea; --muted: #9eab9f; --line: #27332a;
    --accent: #ffc20e; --accent-ink: #b9de62; --on-accent: #1f1a05; --green: #a0c842; --night: #0a0f0b; --night-ink: #f1f4ee; --night-muted: #a8b5aa; --night-line: #26342a; --focus: #7fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1511; --surface: #172019; --surface-2: #131b15; --ink: #edf1ea; --muted: #9eab9f; --line: #27332a;
  --accent: #ffc20e; --accent-ink: #b9de62; --on-accent: #1f1a05; --green: #a0c842; --night: #0a0f0b; --night-ink: #f1f4ee; --night-muted: #a8b5aa; --night-line: #26342a; --focus: #7fb0ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-light { background: var(--night); color: var(--night-ink); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent-ink); white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--f-display); }
.logo svg { width: 32px; height: 32px; }
.logo img { height: 48px; width: auto; }
.footer-grid .logo img { height: 64px; }
.logo-ring { fill: var(--night); }
.logo-mark { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.logo-dot { fill: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-cta .btn { white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { background: var(--night); color: var(--night-ink); padding-block: clamp(40px, 7vw, 88px) 0; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; max-width: 14ch; }
.hero .lead { font-size: var(--step-1); color: var(--night-muted); max-width: 52ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--night-ink); }

.hero-art { position: relative; min-height: 360px; display: grid; place-items: start center; }
.glow {
  position: absolute; left: 50%; top: 52%; width: 520px; height: 520px; max-width: 140%;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 14%, transparent) 55%, transparent 75%);
  transition: opacity .6s ease; pointer-events: none;
}
.lamp { position: relative; width: min(300px, 80%); height: auto; margin-top: -40px; overflow: visible; }
.cord { stroke: var(--night-muted); stroke-width: 2; }
.shade { fill: var(--night-line); stroke: #3b4c3f; stroke-width: 1.5; }
.rim { fill: var(--accent); transition: fill .4s ease; }
.bulb { fill: #fff3d6; filter: drop-shadow(0 0 18px var(--accent)); transition: fill .4s ease, filter .4s ease; }
.hero[data-lit="false"] .glow { opacity: 0; }
.hero[data-lit="false"] .bulb { fill: #3b4c3f; filter: none; }
.hero[data-lit="false"] .rim { fill: #3b4c3f; }
.spec { position: absolute; left: 6%; bottom: 22%; display: flex; flex-direction: column; gap: 2px; color: var(--night-muted); border-left: 2px solid var(--accent); padding-left: 10px; transition: opacity .4s; }
.hero[data-lit="false"] .spec { opacity: .35; }
.switch { position: absolute; right: 4%; bottom: 14%; display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--night-ink); font: 500 0.9rem var(--f-body); cursor: pointer; padding: 6px; }
.sw-track { width: 30px; height: 50px; border-radius: 8px; background: #e9ecf2; border: 2px solid #c9ced8; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
.sw-knob { position: absolute; left: 4px; right: 4px; height: 20px; border-radius: 4px; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.25); top: 4px; transition: top .2s ease; }
.switch[aria-pressed="false"] .sw-knob { top: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(32px, 5vw, 64px) 0 0; border-top: 1px solid var(--night-line); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px 20px 26px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--night-line); }
.stat dd { margin: 0; font: 800 var(--step-2)/1 var(--f-display); color: var(--accent); }
.stat dt { color: var(--night-muted); font-size: var(--step--1); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .muted { font-size: var(--step-1); line-height: 1.5; }

.ico { width: 28px; height: 28px; flex: none; }
.ico-lg { width: 48px; height: 48px; color: var(--accent-ink); }
.ico .ray { stroke: var(--accent); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.service-head { display: flex; align-items: center; gap: 16px; }
.service > p { color: var(--muted); }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.service-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.other { margin-top: 24px; color: var(--muted); }
.other a { color: var(--accent-ink); font-weight: 600; }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.reason { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--ink); }
.reason p { color: var(--muted); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project-visual { width: 64px; height: 64px; border-radius: 12px; background: var(--night); color: var(--night-ink); display: grid; place-items: center; overflow: hidden; }
.project-visual .ico-lg { color: var(--night-ink); width: 40px; height: 40px; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.project-body h3 { font-size: 1.05rem; }
.project-body p { font-size: 0.9rem; }
.project-price { text-align: right; display: flex; flex-direction: column; }
.project-price .mono { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.project-price strong { font: 800 var(--step-2)/1 var(--f-display); font-variant-numeric: tabular-nums; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-n { color: var(--accent-ink); }
.step p { color: var(--muted); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.quote-intro .muted { font-size: var(--step-1); line-height: 1.5; }
.quote-alt a { color: var(--accent-ink); font-weight: 600; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 60px -40px rgba(10, 14, 22, .35); min-width: 0; }
.q-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--muted); }
.q-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; --p: .33; }
.q-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 100%); background: var(--accent); transition: width .3s ease; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
legend { font: 800 var(--step-2)/1.1 var(--f-display); margin-bottom: 4px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.field-inline { flex-direction: row; align-items: center; gap: 14px; }
.field-inline input { width: 100px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { min-width: 180px; }
.field-sm { flex: 0 1 160px; }
.label { font-weight: 600; font-size: 0.95rem; }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.95rem; background: var(--bg); transition: border-color .15s, background .15s; }
.chip span:hover { border-color: var(--muted); }
.chip input:checked + span { border-color: var(--green); background: color-mix(in srgb, var(--green) 18%, var(--surface)); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-error { color: #c0392b; font-weight: 600; min-height: 1.2em; font-size: 0.92rem; }
.q-error:empty { min-height: 0; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; }
.q-done { display: flex; flex-direction: column; gap: 14px; outline: none; }
.q-done h3 { font-size: var(--step-2); }
.q-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; padding: 16px; background: var(--bg); border-radius: 12px; }
.q-summary dt { color: var(--muted); }
.q-summary dd { margin: 0; font-weight: 600; min-width: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--accent); letter-spacing: 3px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--night); color: var(--accent); display: grid; place-items: center; font: 700 0.9rem var(--f-display); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.areas { display: flex; flex-direction: column; gap: 12px; }
.areas ul { display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.92rem; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 var(--step-1)/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--f-body); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* CTA + footer */
.cta-band { background: var(--accent); color: var(--on-accent); padding-block: clamp(48px, 7vw, 88px); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.cta-grid > div { display: flex; flex-direction: column; gap: 16px; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { font-size: var(--step-1); }
.contact { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact dt { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: .75; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.site-footer { background: var(--night); color: var(--night-ink); padding-block: 56px 96px; }
.site-footer .muted { color: var(--night-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-grid h3 { font-size: 1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--night-muted); }
.footer-grid a:hover { color: var(--night-ink); }
.footer-grid .logo { color: var(--night-ink); }

.socials { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 0.9rem; }

.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .quote-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .quote-intro { position: static; }
  .services, .steps, .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .phone-link, .header-cta .btn-sm { display: none; }
  .projects, .reasons { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .service, .step, .review { padding: 22px; }
  .project { grid-template-columns: 52px 1fr auto; padding: 14px 16px; }
  .project-visual { width: 52px; height: 52px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn-ghost { color: var(--ink); }
  .spec { left: 0; }
  .switch { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Photos added from the admin portal */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.service-photo { width: calc(100% + 56px); max-width: none; margin: -28px -28px 4px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (max-width: 600px) { .service-photo { width: calc(100% + 44px); margin: -22px -22px 4px; } }

/* Three services */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services .ticks { grid-template-columns: 1fr; }
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .services { grid-template-columns: 1fr; } .services .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } .services .ticks { grid-template-columns: 1fr; } }
