:root {
  --wood: #6b3f1f;
  --cream: #f5f0eb;
  --cream-strong: #fffaf4;
  --charcoal: #2c2c2c;
  --gold: #c49a3c;
  --muted: #6f655f;
  --line: rgba(44, 44, 44, 0.12);
  --shadow: 0 20px 50px rgba(44, 28, 14, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  font-family: "Lato", Arial, sans-serif;
  background: linear-gradient(90deg, rgba(107, 63, 31, 0.035) 1px, transparent 1px), linear-gradient(180deg, var(--cream), #fff 42%, var(--cream));
  background-size: 28px 28px, auto;
}
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.06; }
p { line-height: 1.75; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 240, 235, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav { width: min(1180px, calc(100% - 32px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand, .nav-links a, .button, .whatsapp { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; color: var(--wood); }
.brand-mark { width: 62px; height: 54px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 12px 14px; border-bottom: 2px solid transparent; font-weight: 700; }
.nav-links a:hover, .nav-links a.is-active { color: var(--wood); border-color: var(--gold); }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--cream-strong); color: var(--wood); font: inherit; font-weight: 900; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { position: relative; min-height: clamp(560px, calc(100vh - 124px), 760px); display: grid; align-items: end; margin-bottom: 18px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44, 44, 44, 0.78), rgba(44, 44, 44, 0.28) 56%, rgba(44, 44, 44, 0.04)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { max-width: 680px; padding: 40px clamp(20px, 5vw, 54px); color: #fff; }
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { margin-top: 16px; font-size: clamp(3rem, 6vw, 4.6rem); }
.hero p:not(.eyebrow) { max-width: 58ch; margin-top: 18px; color: rgba(255,255,255,.9); font-size: 1.12rem; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; font-weight: 900; cursor: pointer; }
.button-primary { background: var(--gold); color: #1f1a14; }
.button-secondary { background: rgba(255,255,255,.92); color: var(--wood); }
.section, .stats-band { margin: 34px 0; }
.section { padding: clamp(32px, 5vw, 64px); background: rgba(255,250,244,.94); border: 1px solid var(--line); box-shadow: var(--shadow); }
.intro, .cta-section, .contact-layout, .split-section { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 34px; align-items: center; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.intro h2, .section-heading h1, .section-heading h2, .cta-section h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3.6rem); }
.page-hero { padding: 72px 0 28px; }
.page-hero .section-heading { margin-bottom: 0; }
.service-grid, .material-grid, .team-grid, .values-grid, .gallery-grid, .cert-grid { display: grid; gap: 18px; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card, .material-card, .team-card, .value-card, .cert-card, .contact-card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(196,154,60,.5); color: var(--wood); font-size: 1.35rem; font-weight: 900; }
.service-card h3, .material-card h3, .team-card h3, .value-card h3, .cert-card h3, .contact-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.service-card p, .material-card p, .team-card p, .value-card p, .cert-card p, .contact-card p, .intro p, .cta-section p { color: var(--muted); }
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--charcoal); color: #fff; }
.stats-band div { padding: 28px; border-right: 1px solid rgba(255,255,255,.14); }
.stats-band div:last-child { border-right: 0; }
.stats-band strong { display: block; font-family: "Playfair Display", Georgia, serif; color: var(--gold); font-size: clamp(2rem, 5vw, 4rem); }
.stats-band span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-weight: 700; }
.split-image, .team-card img, .gallery-item img, .before-after img { width: 100%; object-fit: cover; }
.split-image { height: 420px; }
.material-grid, .team-grid, .values-grid, .cert-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solo-grid { grid-template-columns: minmax(0, 520px); }
.team-card img, .gallery-item img { height: 290px; margin-bottom: 18px; }
.tag-list, .advantage-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.tag-list li, .advantage-list li { padding: 8px 10px; background: var(--cream); color: var(--wood); font-size: .92rem; font-weight: 900; }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.before-after figure, .gallery-item { margin: 0; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.before-after img { height: 260px; }
.before-after figcaption, .gallery-item span { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; background: rgba(44,44,44,.84); color: #fff; font-size: .84rem; font-weight: 900; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.filter-button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; color: var(--charcoal); font: inherit; font-weight: 900; cursor: pointer; }
.filter-button.is-active { border-color: var(--gold); background: var(--wood); color: #fff; }
.gallery-item[hidden] { display: none; }
.gallery-item img { margin: 0; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.quote-form, .contact-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; padding: 14px; color: var(--charcoal); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field small { min-height: 18px; color: #9f2f19; }
.form-status { min-height: 24px; color: var(--wood); font-weight: 900; }
.map { width: 100%; height: 320px; border: 0; filter: saturate(.85); }
.footer { width: min(1180px, calc(100% - 32px)); margin: 40px auto 90px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer a { color: var(--wood); font-weight: 900; }
.whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.4rem; font-weight: 900; box-shadow: 0 16px 38px rgba(0,0,0,.2); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.84); }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; width: min(980px, 100%); object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 2rem; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 78px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); background: var(--cream-strong); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { border-bottom: 0; }
  .hero { min-height: 620px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(44,44,44,.38), rgba(44,44,44,.84)); }
  .service-grid, .stats-band, .gallery-grid, .team-grid, .values-grid, .cert-grid, .material-grid, .intro, .cta-section, .contact-layout, .split-section { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav, main, .footer { width: min(100% - 22px, 1180px); }
  .brand span:last-child { max-width: 150px; }
  .hero-content { padding: 46px 18px 54px; }
  .hero h1 { font-size: 2.75rem; }
  .section { padding: 26px 18px; }
  .service-grid, .stats-band, .gallery-grid, .team-grid, .values-grid, .cert-grid, .material-grid, .intro, .cta-section, .contact-layout, .split-section, .before-after { grid-template-columns: 1fr; }
  .stats-band div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stats-band div:last-child { border-bottom: 0; }
  .split-image, .gallery-item img, .team-card img, .before-after img { height: 240px; }
  .footer { flex-direction: column; }
}
