:root {
  --primary: #774F38;
  --secondary: #D08A54;
  --background: #F5EFE8;
  --dark: #2E1E19;
  --accent: #103D7C;
  --neutral: #C5B9AD;
  --white: #ffffff;
  --surface: #fffaf5;
  --shadow: 0 18px 45px rgba(46, 30, 25, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--background);
}

body.nav-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

main {
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-contact {
  color: var(--white);
  background: var(--dark);
  font-size: 0.9rem;
}

.top-contact__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.top-contact a {
  text-decoration: none;
}

.top-contact__whatsapp {
  font-weight: 700;
  color: #fff2e8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 232, 0.96);
  border-bottom: 1px solid rgba(119, 79, 56, 0.16);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 190px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.primary-nav a,
.nav-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.primary-nav a {
  color: var(--dark);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 11px 16px;
  color: var(--white);
  background: var(--primary);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(119, 79, 56, 0.24);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(46, 30, 25, 0.2);
  border-radius: 4px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
}

.section-pad {
  padding: 96px 0;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 42px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0;
  color: var(--white);
  background: var(--dark);
}

.hero.section-pad {
  padding: 112px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 880px;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 58px;
  align-items: center;
}

.hero-copy h1,
.section-head h2,
.split h2,
.contact-grid h2,
.newsletter h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 860px;
  color: var(--white);
  font-size: clamp(3.1rem, 7vw, 7.4rem);
  text-wrap: balance;
}

.hero-lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe8d8;
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 30, 25, 0.16);
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-secondary {
  color: var(--white);
  background: var(--accent);
}

.btn-ghost {
  color: var(--dark);
  border-color: rgba(46, 30, 25, 0.26);
  background: transparent;
}

.btn-light {
  color: var(--dark);
  background: var(--white);
}

.hero .btn-primary {
  background: var(--secondary);
}

.hero .btn-secondary {
  background: var(--accent);
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark);
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 900ms ease;
}

.hero-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(46, 30, 25, 0.9) 0%, rgba(46, 30, 25, 0.68) 44%, rgba(16, 61, 124, 0.32) 100%),
    linear-gradient(180deg, rgba(46, 30, 25, 0.48), rgba(46, 30, 25, 0.68));
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  width: min(430px, 100%);
  margin-top: 34px;
  padding: 18px;
  color: var(--white);
  background: rgba(46, 30, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-slider-dots {
  position: static;
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.hero-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-slider-dots button.is-active {
  transform: scale(1.25);
  background: var(--white);
}

.stats {
  padding: 28px 0;
  background: var(--dark);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 16px 0;
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: #ffe8d8;
}

.stat span {
  display: block;
  margin-top: 8px;
}

.split h2,
.section-head h2,
.contact-grid h2,
.newsletter h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.split p {
  font-size: 1.05rem;
  color: rgba(46, 30, 25, 0.82);
}

.muted {
  background: var(--surface);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.card-grid,
.service-grid,
.project-grid,
.process-grid {
  display: grid;
  gap: 20px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.service-card,
.quote-card,
.process-step,
.faq-item {
  border: 1px solid rgba(119, 79, 56, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(46, 30, 25, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.project-card:hover,
.quote-card:hover,
.info-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 138, 84, 0.55);
  box-shadow: 0 18px 38px rgba(46, 30, 25, 0.12);
}

.info-card,
.service-card,
.quote-card,
.process-step {
  padding: 24px;
}

.info-card span,
.service-icon,
.process-step span,
.project-card span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card h3,
.service-card h3,
.process-step h3,
.project-card h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.info-card p,
.service-card p,
.process-step p,
.quote-card p {
  margin: 0;
  color: rgba(46, 30, 25, 0.78);
}

.service-icon {
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  letter-spacing: 0;
  text-transform: none;
}

.accent-band {
  color: var(--white);
  background: var(--accent);
}

.accent-band .eyebrow,
.accent-band .check-list p {
  color: #f5efe8;
}

.accent-band .split p {
  color: #f5efe8;
}

.accent-band h2 {
  margin-bottom: 28px;
}

.accent-band .btn {
  margin-top: 0;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-list p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--secondary);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-lightbox-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 61, 124, 0), rgba(16, 61, 124, 0.72));
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card img {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
  transition: transform 420ms ease;
}

.project-card:hover img,
.project-lightbox-trigger:focus-visible img {
  transform: scale(1.025);
}

.project-card:hover .project-lightbox-trigger::after,
.project-lightbox-trigger:focus-visible::after,
.project-card:hover .project-view-cue,
.project-lightbox-trigger:focus-visible .project-view-cue {
  opacity: 1;
}

.project-lightbox-trigger:focus-visible {
  outline: 4px solid rgba(16, 61, 124, 0.28);
  outline-offset: -4px;
}

.project-view-cue {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--dark);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card div {
  padding: 20px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(46, 30, 25, 0.84);
  cursor: zoom-out;
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.image-lightbox__dialog img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: var(--dark);
}

.image-lightbox__caption {
  padding: 18px 20px;
}

.image-lightbox__caption span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-lightbox__caption h3 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.image-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.quote-card {
  margin: 0;
}

.quote-card p {
  font-size: 1.03rem;
}

.quote-card cite {
  display: block;
  margin-top: 18px;
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: rgba(46, 30, 25, 0.78);
}

.contact-section {
  background: linear-gradient(180deg, var(--background), var(--surface));
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(119, 79, 56, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form label,
.newsletter-form {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.lead-form .full {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(46, 30, 25, 0.22);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--dark);
  background: #fffdfb;
}

.lead-form button {
  grid-column: 1 / -1;
  width: fit-content;
}

.newsletter {
  padding: 52px 0;
  color: var(--white);
  background: var(--primary);
}

.newsletter .eyebrow {
  color: #ffe8d8;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.newsletter-form {
  grid-template-columns: 1fr auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  padding: 54px 0 24px;
  color: var(--white);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #ffe8d8;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-cookie-link {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  padding: 0;
  margin: 7px 0;
  color: #ffe8d8;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.legal-page {
  background: var(--background);
}

.legal-wrap {
  max-width: 860px;
  padding: 42px;
  background: var(--white);
  border: 1px solid rgba(197, 185, 173, 0.62);
  border-radius: 6px;
  box-shadow: 0 20px 52px rgba(46, 30, 25, 0.08);
}

.legal-wrap h1 {
  max-width: 760px;
  margin: 0;
  color: var(--dark);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.legal-updated {
  margin: 18px 0 34px;
  color: rgba(46, 30, 25, 0.68);
  font-weight: 700;
}

.legal-wrap h2 {
  margin: 30px 0 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

.legal-wrap p {
  color: rgba(46, 30, 25, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  padding: 18px;
  margin: 0 auto;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(208, 138, 84, 0.36);
  border-top: 4px solid var(--secondary);
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(46, 30, 25, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cookie-banner p {
  margin: 0;
  color: rgba(46, 30, 25, 0.72);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--white);
  background: #167a45;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(22, 122, 69, 0.34);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .info-card,
  .service-card,
  .quote-card,
  .process-step,
  .faq-item,
  .project-card,
  .project-card img,
  .project-lightbox-trigger::after,
  .project-view-cue,
  .hero-slides img,
  .hero-slider-dots button,
  .cookie-banner {
    transform: none;
    transition: none;
  }
}

@media (max-width: 1050px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 124px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(119, 79, 56, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px;
  }

  .nav-cta {
    display: none;
  }

  .split,
  .contact-grid,
  .newsletter-inner,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .three,
  .service-grid,
  .project-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .top-contact__inner {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .top-contact span {
    display: none;
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand img {
    width: 165px;
  }

  .primary-nav {
    top: 122px;
    right: 14px;
    left: 14px;
  }

  .section-pad {
    padding: 66px 0;
  }

  .hero {
    min-height: 720px;
    padding: 76px 0;
  }

  .hero.section-pad {
    padding: 76px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-buttons {
    display: grid;
  }

  .btn,
  .lead-form button {
    width: 100%;
  }

  .hero-note {
    width: 100%;
    margin-top: 24px;
  }

  .legal-wrap {
    padding: 26px 20px;
  }

  .stats-grid,
  .three,
  .service-grid,
  .project-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    left: 14px;
    border-radius: 4px;
  }

  .site-footer {
    padding-bottom: 78px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 76px;
    left: 12px;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
