:root {
  --cream: #f4f1ec;
  --cream-2: #ebe6de;
  --charcoal: #2b2926;
  --charcoal-2: #3a3733;
  --bronze: #8a7a68;
  --bronze-dark: #6f6151;
  --text: #3b3834;
  --muted: #6d675f;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(43, 41, 38, 0.12);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--charcoal); line-height: 1.25; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; letter-spacing: .03em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--bronze); margin: 0 0 .6rem; font-weight: 700; }
.eyebrow.light { color: #c9bba9; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--charcoal); background: var(--charcoal); color: var(--white);
  font-size: 1rem; cursor: pointer; font-family: var(--sans);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); }
.btn-block { width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 236, .95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .12em; color: var(--charcoal); text-transform: uppercase; }
.brand-sub { font-size: .62rem; letter-spacing: .42em; color: var(--bronze); text-transform: uppercase; margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--charcoal); }
.nav-menu a:not(.btn):hover { color: var(--bronze); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: url("assets/images/house-exterior.jpg") center 35% / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,241,236,.92) 0%, rgba(244,241,236,.82) 55%, rgba(244,241,236,.55) 100%); }
.hero-content { position: relative; text-align: center; padding-top: 2rem; padding-bottom: 3rem; }
.hero-logo { width: min(420px, 82vw); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 10px rgba(244,241,236,.9)); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 620px; margin: 1.5rem auto 1.8rem; color: var(--charcoal-2); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--charcoal); color: #e7e2da; }
.section-dark h2 { color: var(--white); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.about-img { margin: 0; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.values { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.values li { padding-left: 1.1rem; border-left: 3px solid var(--bronze); }
.values strong { display: block; color: var(--charcoal); }
.values span { color: var(--muted); font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.5rem; }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.service:hover { transform: translateY(-4px); }
.service img { width: 100%; height: 220px; object-fit: cover; }
.service-body { padding: 1.4rem 1.5rem 1.7rem; }
.service-body p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px;
  grid-auto-flow: dense; gap: 14px; margin-top: 2.5rem;
}
.g-item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-span2 { grid-column: span 2; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.1rem; color: var(--white); }
.contact-list a:hover { color: #c9bba9; }
.contact-list .icon { width: 1.5em; height: 1.5em; color: #c9bba9; }
.contact-form { background: var(--cream); color: var(--text); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.2rem; }
.form-note { margin: 0 0 1.2rem; color: var(--muted); font-size: .93rem; }
.contact-form label { display: block; font-weight: 700; font-size: .9rem; color: var(--charcoal); margin-bottom: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem;
  font: inherit; font-weight: 400; color: var(--text);
  border: 1px solid #d3ccc1; border-radius: 8px; background: var(--white);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--bronze); border-color: var(--bronze); }
.form-error { color: #a33a2a; font-size: .9rem; margin: 0 0 1rem; }

/* Footer */
.site-footer { background: #1f1d1b; color: #b5ada2; padding: 2rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--white); }
.footer-inner .small { width: 100%; font-size: .82rem; opacity: .8; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,18,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 6px; }
.lightbox-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: var(--white); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* Responsive */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .services { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--cream-2);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-menu.open { max-height: 320px; }
  .nav-menu a:not(.btn) { padding: 1rem 20px; width: 100%; text-align: center; }
  .nav-menu .btn { margin: .5rem 0 1.2rem; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-content { padding-top: 1rem; padding-bottom: 3.5rem; }
  .contact-form { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
