/* Site styles. Plain CSS, no build step. Mobile first; checked at 390px and 1440px.
   Colors and fonts live in the tokens block. site.py init rewrites it from a palette and a type pair. */

/* tokens:start */
:root {
  --color-bg: #fafaf5;
  --color-text: #1c1c1c;
  --color-surface-alt: #edede9;
  --color-muted: #5a5a5a;
  --color-primary: #2d5a3d;
  --color-primary-hover: #274d34;
  --color-on-primary: #ffffff;
  --color-accent: #81610e;
  --color-accent-vivid: #d4a017;
  --color-on-accent: #ffffff;
  --color-dark: #14222d;
  --color-on-dark: #ffffff;
  --color-border: #dbdbd7;
  --font-heading: "Lora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* tokens:end */

:root {
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(3rem, 6vw, 5.5rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-accent-vivid); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-primary); color: var(--color-on-primary); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--alt p, .section--alt li { color: var(--color-text); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); }
.section--dark a:not(.btn) { color: var(--color-on-dark); }
.section__head { max-width: 720px; margin: 0 0 2.25rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead { font-size: 1.125rem; color: var(--color-muted); }
.section--alt .section__lead { color: var(--color-muted); }
.section--dark .section__lead { color: var(--color-on-dark); opacity: 0.9; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.6rem; }
.section--dark .eyebrow { color: var(--color-on-dark); }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.4em; border-radius: var(--radius-sm);
  border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { color: var(--color-on-accent); filter: brightness(0.95); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: currentColor; }
.section--dark .btn--outline, .hero--full .btn--outline { color: var(--color-on-dark); }
.btn--sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* Header and nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-text); text-decoration: none; font: 700 1.15rem/1.2 var(--font-heading); }
.brand__logo { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-sm); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--color-text); position: relative; content: ""; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0.25rem; padding: 0.75rem var(--gutter) 1.25rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
.site-nav.is-open { display: flex; }
.site-nav a { padding: 0.65rem 0; color: var(--color-text); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav .btn { margin-top: 0.5rem; color: var(--color-on-primary); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav .btn { margin-top: 0; }
}

/* Hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0; overflow: hidden; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__subtitle { font-size: 1.2rem; color: var(--color-muted); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__media img, .hero__media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__media--empty { min-height: 220px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--color-primary), var(--color-dark)); }
@media (min-width: 900px) { .hero--split .hero__inner { grid-template-columns: 1.05fr 1fr; } }
.hero--full { min-height: min(86vh, 760px); display: flex; align-items: center; color: var(--color-on-dark); background: var(--color-dark); }
.hero--full .hero__bg { position: absolute; inset: 0; }
.hero--full .hero__bg img, .hero--full .hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero--full .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35)); }
.hero--full .hero__inner { position: relative; z-index: 1; }
.hero--full .hero__subtitle, .hero--full .eyebrow { color: var(--color-on-dark); }
.hero--full .hero__copy { max-width: 680px; }
.hero--page { padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--color-surface-alt); }
@media (prefers-reduced-motion: reduce) { .hero__bg video { display: none; } .btn:hover { transform: none; } html { scroll-behavior: auto; } }

/* Cards: services grid, feature icon grid, credentials */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { margin: -1.5rem -1.5rem 1.25rem; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-surface-alt); color: var(--color-primary); margin-bottom: 1rem; }
.card__icon svg { width: 22px; height: 22px; }
.card__title { margin-bottom: 0.4rem; }
.card p { color: var(--color-muted); }
.card__price { font-weight: 700; color: var(--color-text); }
.card__link { margin-top: auto; font-weight: 600; }

/* Services as alternating rows */
.rows { display: grid; gap: 2.5rem; }
.row { display: grid; gap: 1.5rem; align-items: center; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1fr; gap: 3rem; } .row:nth-child(even) .row__media { order: 2; } }

/* Feature checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 768px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.checklist li::after { content: ""; position: absolute; left: 0.38rem; top: 0.5em; width: 0.32rem; height: 0.6rem; border: solid var(--color-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-heading); color: var(--color-primary); }
.section--dark .stat__value { color: var(--color-on-dark); }
.stat__label { color: var(--color-muted); }
.section--dark .stat__label { color: var(--color-on-dark); }

/* Testimonials (real reviews only) */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 1.5rem; border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote figcaption { font-weight: 600; color: var(--color-muted); }
.quote--feature { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.25rem; border: 0; background: transparent; }

/* Logo strip (credentials) */
.logo-strip { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.logo-strip img { max-height: 48px; width: auto; filter: grayscale(1); opacity: 0.85; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
.about--centered { text-align: center; justify-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .about--split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.4rem; }
@media (min-width: 900px) {
  .gallery--magazine:has(> .gallery__item:nth-child(3)) .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery:not(:has(> .gallery__item:nth-child(3))) { grid-template-columns: repeat(2, 1fr); }
}
.gallery--masonry { display: block; columns: 2 200px; column-gap: 1rem; }
.gallery--masonry .gallery__item { break-inside: avoid; margin-bottom: 1rem; }
.gallery--masonry .gallery__item img { aspect-ratio: auto; }

/* Before / after */
.before-after { display: grid; gap: 1rem; }
@media (min-width: 768px) { .before-after--side { grid-template-columns: 1fr 1fr; } }
.before-after figure { margin: 0; position: relative; }
.before-after img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.before-after figcaption { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--color-dark); color: var(--color-on-dark); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); padding: 0 1.25rem; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--color-primary); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--color-muted); }

/* CTA and contact form */
.cta { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .cta--split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.cta--card { max-width: 720px; margin: 0 auto; background: var(--color-bg); color: var(--color-text); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cta--band { text-align: center; justify-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; font-weight: 600; }
.contact-form { background: var(--color-bg); color: var(--color-text); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; box-shadow: var(--shadow-lg); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; color: var(--color-text); background: var(--color-bg); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--color-accent-vivid); outline-offset: 1px; border-color: var(--color-primary); }
.contact-form__status { margin: 0; font-weight: 600; }

/* Contact details and map */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-details strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.section--dark .contact-details strong { color: var(--color-on-dark); opacity: 0.85; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); }
.hours td:last-child { text-align: right; }
.map iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius-lg); }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-on-dark); padding: 3rem 0 1.5rem; }
.site-footer a { color: var(--color-on-dark); }
.site-footer__inner { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1fr auto; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer__name { font: 700 1.2rem/1.2 var(--font-heading); margin-bottom: 0.3rem; }
.site-footer__legal { margin-top: 2rem; font-size: 0.9rem; opacity: 0.85; }

/* Sticky mobile call bar (optional) */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 0.5rem; padding: 0.6rem var(--gutter); background: var(--color-bg); border-top: 1px solid var(--color-border); }
.call-bar .btn { flex: 1; }
body.has-call-bar { padding-bottom: 72px; }
@media (min-width: 900px) { .call-bar { display: none; } body.has-call-bar { padding-bottom: 0; } }

/* Lightbox (built by site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.lightbox__dialog { position: relative; max-width: min(92vw, 1100px); }
.lightbox__img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__caption { color: #ffffff; text-align: center; margin-top: 0.6rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(0, 0, 0, 0.6); color: #ffffff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox__close { top: -56px; right: 0; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }

.not-found { text-align: center; }
