@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --page-bg: #f7f5f0;
  --body-text: #2a2f28;
  --nav-bg: #f7f5f0;
  --border: #e3dfd3;
  --accent-text: #3b5b45;
  --hero-bg: #3b5b45;
  --heading-text: #2a4433;
  --muted-text: #5b6358;
  --card-bg: #ffffff;
  --icon-bg: #eaf0e6;
  --alt-section-bg: #efece3;
  --faint-text: #8a8578;
  --placeholder-bg: #e3dfd3;
  --placeholder-text: #7a7564;
  --body-muted: #4a5049;
  --input-bg: #ffffff;
  --input-border: #d8d3c4;
  --footer-bg: #2a4433;
  --footer-text: #c9d3c4;
  --footer-muted: #a9b6a3;
  --footer-faint: #8fa089;
  --toggle-bg: #ffffff;
  --toggle-icon: #3b5b45;
  --accent: #d97757;
}

[data-theme="dark"] {
  --page-bg: #1b2119;
  --body-text: #e6e9e2;
  --nav-bg: #1b2119;
  --border: #333b2e;
  --accent-text: #8fae7a;
  --hero-bg: #22331f;
  --heading-text: #edf1e8;
  --muted-text: #aeb6a6;
  --card-bg: #232b1f;
  --icon-bg: #2e3b27;
  --alt-section-bg: #171d14;
  --faint-text: #8a9382;
  --placeholder-bg: #2a3324;
  --placeholder-text: #8a9382;
  --body-muted: #c4ccbc;
  --input-bg: #1b2119;
  --input-border: #3a4433;
  --footer-bg: #12160f;
  --footer-text: #a9b6a3;
  --footer-muted: #8c9885;
  --footer-faint: #657059;
  --toggle-bg: #2e3b27;
  --toggle-icon: #d9e3d2;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--page-bg);
  color: var(--body-text);
  transition: background 0.2s, color 0.2s;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }
input, textarea, select, button { font-family: 'Work Sans', sans-serif; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Source Serif 4', serif; font-weight: 600; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header .brand img { height: 40px; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-text); white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--heading-text); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-actions .phone { font-size: 14px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.theme-toggle {
  background: var(--toggle-bg); color: var(--toggle-icon); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center; padding: 0;
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #ffffff; border: none;
  padding: 16px 28px; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-outline { background: transparent; color: #ffffff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-block { width: 100%; }

/* — hero — */
.hero {
  background: var(--hero-bg); color: #ffffff; padding: 96px 32px 110px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 0; max-width: 1200px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12); padding: 6px 14px;
  border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 24px;
}
.hero h1 { font-size: 56px; line-height: 1.08; margin: 0 0 24px; }
.hero p { font-size: 19px; line-height: 1.6; color: #dce6dd; max-width: 520px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  justify-self: center; background: #ffffff; border-radius: 12px; padding: 28px 32px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.hero-card img { width: 100%; max-width: 320px; }
.page-hero {
  background: var(--hero-bg); color: #ffffff; padding: 72px 32px; text-align: center;
}
.page-hero .wrap { max-width: 900px; padding: 0; }
.page-hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: #eab89a; margin-bottom: 14px; }
.page-hero h1 { font-size: 44px; margin: 0 0 16px; }
.page-hero p { font-size: 18px; color: #dce6dd; margin: 0; }

/* — sections — */
.section { padding: 80px 32px; }
.section .wrap { padding: 0; }
.section-alt { background: var(--alt-section-bg); }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-heading h2 { font-size: 36px; margin: 0 0 12px; color: var(--heading-text); }
.section-heading p { font-size: 17px; color: var(--muted-text); line-height: 1.6; margin: 0; }

/* — service cards — */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 32px 28px;
}
.service-icon { width: 44px; height: 44px; background: var(--icon-bg); border-radius: 0 50% 0 50%; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; color: var(--heading-text); margin: 0 0 10px; }
.service-card p { font-size: 15px; color: var(--muted-text); line-height: 1.55; margin: 0; }

.service-detail {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
}
.service-detail + .service-detail { margin-top: 56px; }
.service-detail .service-icon { width: 56px; height: 56px; margin-bottom: 0; flex-shrink: 0; }
.service-detail h2 { font-size: 26px; color: var(--heading-text); margin: 0 0 10px; }
.service-detail p { font-size: 16px; line-height: 1.7; color: var(--body-muted); margin: 0; }

/* — before/after gallery — */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.gallery-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.ba-slider { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; user-select: none; }
.ba-slider .ba-before, .ba-slider .ba-after {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
.ba-slider .ba-before.placeholder {
  background: repeating-linear-gradient(45deg, #dcc9a8, #dcc9a8 12px, #cbb690 12px, #cbb690 24px);
}
.ba-slider .ba-after.placeholder {
  background: repeating-linear-gradient(45deg, #8fae7a, #8fae7a 12px, #79995f 12px, #79995f 24px);
}
.ba-slider .ba-label {
  font-family: monospace; font-size: 12px; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.55); color: #fff; padding: 6px 12px; border-radius: 4px;
}
.ba-slider .ba-handle-line {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,0.3); pointer-events: none;
}
.ba-slider .ba-handle-dot {
  position: absolute; top: 50%; width: 36px; height: 36px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: #3b5b45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); pointer-events: none; transform: translate(-50%, -50%);
}
.ba-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.gallery-card-copy { padding: 18px 20px; }
.gallery-card-copy .title { font-weight: 600; color: var(--heading-text); font-size: 15px; }
.gallery-card-copy .location { font-size: 13px; color: var(--faint-text); margin-top: 4px; }
.gallery-note { text-align: center; font-size: 13px; color: var(--faint-text); margin-top: 8px; }

/* — split layout (about teaser / about page) — */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.photo-placeholder {
  width: 100%; aspect-ratio: 4/5; border-radius: 8px; background: var(--placeholder-bg);
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder span { font-family: monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--placeholder-text); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 14px; }
.split h2 { font-size: 34px; color: var(--heading-text); margin: 0 0 18px; }
.split p { font-size: 17px; line-height: 1.7; color: var(--body-muted); margin: 0 0 18px; }
.text-link { background: none; border: none; color: var(--accent-text); font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; }

/* — testimonials — */
.testimonials-section { padding: 80px 32px; background: var(--hero-bg); }
.testimonials-section h2 { color: #ffffff; text-align: center; font-size: 32px; margin: 0 0 48px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 28px; color: #ffffff; }
.testimonial p { font-size: 16px; line-height: 1.65; margin: 0 0 18px; color: #eaefe7; }
.testimonial .name { font-size: 14px; font-weight: 600; }
.testimonial .role { font-size: 13px; color: #b9c7b4; }

/* — values (about page) — */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.value { text-align: center; padding: 0 12px; }
.value .service-icon { margin: 0 auto 18px; }
.value h3 { font-size: 19px; color: var(--heading-text); margin: 0 0 10px; }
.value p { font-size: 15px; color: var(--muted-text); line-height: 1.6; margin: 0; }
.stat-badge {
  display: inline-flex; align-items: center; gap: 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 100px; padding: 16px 32px; margin-bottom: 36px;
}
.stat-badge .num { font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 600; color: var(--accent); }
.stat-badge .label { font-size: 15px; color: var(--body-muted); text-align: left; line-height: 1.3; }

/* — contact — */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .label { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 8px; }
.contact-info .value-lg { font-size: 20px; font-weight: 600; color: var(--heading-text); }
.contact-info .value-md { font-size: 18px; font-weight: 600; color: var(--heading-text); }
.contact-info .value-body { font-size: 16px; color: var(--body-muted); line-height: 1.6; }
.contact-form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 36px; }
.contact-form-card h3 { font-size: 22px; color: var(--heading-text); margin: 0 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--body-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--input-border); border-radius: 4px;
  font-size: 15px; background: var(--input-bg); color: var(--body-text);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-success { text-align: center; padding: 40px 0; }
.form-success .check {
  width: 56px; height: 56px; background: var(--icon-bg); border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--hero-bg);
}
.form-success h3 { font-size: 22px; color: var(--heading-text); margin: 0 0 10px; }
.form-success p { font-size: 15px; color: var(--muted-text); margin: 0; }
.form-error { font-size: 14px; color: #b3432f; margin: 0 0 16px; display: none; }
.form-error.visible { display: block; }

/* — CTA — */
.cta { padding: 80px 32px; text-align: center; }
.cta h2 { font-size: 34px; color: var(--heading-text); margin: 0 0 16px; }
.cta p { font-size: 17px; color: var(--muted-text); margin: 0 0 28px; }

/* — footer — */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 32px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo { background: #ffffff; display: inline-block; border-radius: 6px; padding: 8px 14px; margin-bottom: 14px; }
.footer-logo img { height: 28px; }
.footer-grid p { font-size: 14px; line-height: 1.6; color: var(--footer-muted); max-width: 320px; margin: 0; }
.footer-heading { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: #ffffff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--footer-text); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: var(--footer-faint);
}

@media (max-width: 900px) {
  .hero .wrap, .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .site-nav { gap: 16px; }
}
