:root {
  --bg: #f8f4ef;
  --surface: #fffdfb;
  --surface-2: #f1e8df;
  --text: #2a241f;
  --muted: #6e6257;
  --line: rgba(42, 36, 31, 0.12);
  --primary: #b89b7a;
  --primary-dark: #8e7357;
  --shadow: 0 18px 50px rgba(66, 47, 31, 0.09);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--muted); }
h1, h2, h3, strong {
  color: var(--text);
}
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.05;
  margin: 0 0 12px;
}
h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.9rem; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.section { padding: 88px 0; }
.soft-bg { background: linear-gradient(180deg, rgba(184,155,122,0.08), rgba(184,155,122,0.02)); }
.accent-panel { background: #fcfaf7; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.lead { font-size: 1.1rem; max-width: 620px; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 244, 239, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); font-size: 0.82rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}
.hero-points {
  padding-left: 18px;
  margin: 28px 0 0;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.metric {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.metric strong {
  display: block;
  margin-bottom: 4px;
}
.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.card-image,
.card,
.project-card {
  background: var(--surface);
  border: 1px solid rgba(42, 36, 31, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-image { overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.split-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  max-width: none;
}
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 28px;
}
.service-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.scroll-note {
  margin: -6px 0 16px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.lateral-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.lateral-scroll > * {
  scroll-snap-align: start;
}
.lateral-scroll::-webkit-scrollbar {
  height: 8px;
}
.lateral-scroll::-webkit-scrollbar-thumb {
  background: rgba(184, 155, 122, 0.55);
  border-radius: 999px;
}
.lateral-scroll::-webkit-scrollbar-track {
  background: rgba(42, 36, 31, 0.08);
  border-radius: 999px;
}
.projects-rail .project-card {
  min-height: 100%;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.project-card {
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-link {
  display: block;
  text-decoration: none;
}
.project-card.is-hidden {
  display: none;
}
.project-card div {
  padding: 20px 22px 24px;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-cta {
  margin-top: 10px;
  display: inline-block;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
}
.project-card:hover {
  transform: translateY(-3px);
}
.about-signature {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.about-signature span {
  display: block;
  font-weight: 700;
  color: var(--text);
}
.about-signature small {
  color: var(--muted);
}
.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }
.form-note { font-size: 0.92rem; margin: 0; }
.footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-wrap div:last-child {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-admin {
  margin-top: 12px;
  text-align: center;
}
.footer-admin-link {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.footer-admin-link:hover {
  opacity: 1;
  border-color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-sm { min-height: 42px; padding: 0 18px; }
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: #25d366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.24);
  font-weight: 700;
}
.project-hero {
  padding-top: 56px;
}
.project-back {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.project-hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.project-cover img {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.project-meta span {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.project-gallery .card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    background: rgba(255, 253, 251, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-hero-grid,
  .hero-metrics,
  .cards.three:not(.lateral-scroll),
  .project-grid:not(.lateral-scroll),
  .project-gallery,
  .split-head,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lateral-scroll.cards.three,
  .lateral-scroll.project-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 82vw);
    gap: 16px;
  }
}

@media (min-width: 981px) {
  .lateral-scroll.cards.three {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 32vw);
    gap: 20px;
  }

  .lateral-scroll.project-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(340px, 36vw);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .card, .project-card div { padding: 20px; }
  .brand span { display: none; }
}
