/* Website Service house theme.
   Brand tokens (--accent, --accent-ink, --ink, --paper, fonts) are injected per client by build.py.
   Everything else lives here. Mobile first. */

:root {
  --muted: color-mix(in srgb, var(--ink) 62%, white);
  --line: color-mix(in srgb, var(--ink) 10%, white);
  --card: #ffffff;
  --tint: color-mix(in srgb, var(--accent) 6%, var(--paper));
  --radius: 18px;
  --shadow: 0 10px 30px -18px color-mix(in srgb, var(--ink) 45%, transparent);
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--hero { background: var(--accent-ink); color: var(--accent); }
.btn--hero:hover { background: color-mix(in srgb, var(--accent-ink) 90%, var(--accent)); }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.brand__img { height: 40px; width: auto; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--accent); }
.nav__cta { padding: .65em 1.1em; font-size: .95rem; }

/* Hero */
.hero {
  position: relative; color: var(--accent-ink); overflow: hidden;
  background: var(--accent);
  background-image:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent-ink) 16%, transparent) 0, transparent 38%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, black 22%, transparent) 0, transparent 45%);
}
.hero--photo { background: var(--ink); }
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero); background-size: cover; background-position: center;
  opacity: .55;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent), color-mix(in srgb, var(--ink) 80%, transparent));
}
.hero__inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; opacity: .9; margin-bottom: 14px; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: .35em; }
.hero__intro { font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 600px; opacity: .95; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .btn--ghost { color: var(--accent-ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; }

/* Sections */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section__title { margin-bottom: .35em; }
.section__intro { color: var(--muted); max-width: 640px; margin-bottom: 1.8em; }
.section__intro:empty { display: none; }

.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--reviews { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { margin: 0; }
.card__price { color: var(--accent); font-weight: 800; white-space: nowrap; }
.card__desc { color: var(--muted); margin: 10px 0 0; font-size: .97rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tile { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.04); }
.gallery .tile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--few { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery--few .tile { aspect-ratio: 4 / 5; }
.gallery--few .tile:first-child { grid-column: auto; grid-row: auto; }

/* Reviews */
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review p { font-size: 1.02rem; margin: 10px 0 14px; }
.review footer { font-size: .92rem; color: var(--muted); }
.review footer strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: #f5a524; }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
.about--with-media { grid-template-columns: 1.1fr .9fr; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__text p { max-width: 62ch; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.section--contact { background: var(--tint); }
.contact { display: grid; gap: 34px; margin-bottom: 28px; }
.contact h3 { margin-top: 18px; }
.contact h3:first-child { margin-top: 0; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th { text-align: left; font-weight: 600; padding: 5px 14px 5px 0; white-space: nowrap; vertical-align: top; }
.hours td { padding: 5px 0; color: var(--muted); }
.contact__address { margin-bottom: 4px; }
.contact__phone { font-weight: 700; font-size: 1.1rem; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.socials a { margin-right: 14px; font-weight: 600; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: inherit;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, white); border-radius: 10px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; }
.form__note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.form__note.is-success { color: var(--accent); font-weight: 600; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0 96px; font-size: .9rem; color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer p { margin: 0; }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--ink); color: #fff; padding: 10px; gap: 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.actionbar:empty { display: none; }
.actionbar a { color: #fff; text-decoration: none; font-weight: 700; text-align: center; padding: 12px 6px; border-radius: 10px; background: color-mix(in srgb, white 10%, transparent); }
.actionbar a:first-child { background: var(--accent); color: var(--accent-ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; width: auto; border-radius: 12px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* Prose (privacy) */
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Desktop */
@media (min-width: 820px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: 26px; }
  .actionbar { display: none; }
}

/* Mobile */
@media (max-width: 819px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 14px;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links { flex-direction: column; gap: 12px; }
  .nav__links a { display: block; padding: 6px 0; font-size: 1.05rem; }
  .about--with-media { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tile:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
}

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