:root {
  --ink: #1f1b19;
  --muted: #6f6863;
  --paper: #fbf9f6;
  --paper-2: #f2ece6;
  --accent: #a95f4b;
  --accent-dark: #7e4032;
  --line: #ddd4cc;
  --white: #fff;
  --max: 1240px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,246,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(31,27,25,.08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 230px; max-height: 42px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--accent-dark); }
.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); background: transparent; padding: 10px 12px; color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--white); text-decoration: none; font-weight: 650; font-size: 14px; transition: .2s ease; }
.button:hover, .button:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--ink); border-color: rgba(31,27,25,.42); }
.button-outline:hover, .button-outline:focus-visible { color: white; }
.button-light { background: white; color: var(--ink); border-color: white; }
.text-link { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 650; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(46px, 6.3vw, 86px); }
h2 { font-size: clamp(38px, 4.8vw, 64px); }
h3 { font-size: clamp(25px, 2.3vw, 35px); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: #504945; }
.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,.7fr); gap: 48px; align-items: end; margin-bottom: 48px; }

.hero { min-height: 720px; color: white; display: grid; align-items: end; position: relative; background: #161310; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; filter: brightness(.58) saturate(.88); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,12,10,.82) 0%, rgba(16,12,10,.48) 48%, rgba(16,12,10,.12) 82%); }
.hero-content { position: relative; z-index: 1; padding: 86px 0; max-width: 780px; }
.hero .eyebrow { color: #e4aa97; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .button-outline { color: white; border-color: rgba(255,255,255,.65); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.7); }

.authority { border-bottom: 1px solid var(--line); }
.authority-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
.metric { font-family: var(--serif); font-size: clamp(58px, 9vw, 116px); line-height: .86; color: var(--accent-dark); }
.metric span { display: block; font: 700 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.split-media { min-height: 560px; }
.split-media img { height: 100%; object-fit: cover; }
.split-copy > p:not(.eyebrow) { color: var(--muted); max-width: 590px; }
.split-copy .button { margin-top: 16px; }

.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); display: flex; flex-direction: column; min-height: 100%; }
.service-card img { aspect-ratio: 4/3; object-fit: cover; }
.service-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 25px 22px 28px; }
.service-body h3 { font-size: 25px; margin-bottom: 12px; }
.service-body p { color: var(--muted); font-size: 14px; }
.service-body .text-link { margin-top: auto; }

.projects { background: #1b1715; color: white; }
.projects .section-head p { color: rgba(255,255,255,.65); }
.project-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; grid-template-rows: 270px 270px; gap: 12px; }
.project-grid figure { margin: 0; overflow: hidden; position: relative; }
.project-grid figure:first-child { grid-row: 1/3; }
.project-grid figure:nth-child(4) { grid-column: 2/4; }
.project-grid img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-grid figure:hover img { transform: scale(1.025); }

.pillars { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 30px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar-number { color: var(--accent); font-size: 13px; letter-spacing: .14em; }
.pillar h3 { margin: 22px 0 12px; font-size: 29px; }
.pillar p { color: var(--muted); font-size: 15px; }

.method { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 48px; }
.step { padding: 30px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step strong { display: block; color: var(--accent); font: 500 37px var(--serif); }
.step h3 { font-size: 27px; margin: 20px 0 10px; }
.step p { color: var(--muted); font-size: 14px; }

.lead-section { background: #191411; color: white; }
.lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.lead-section .lead { color: rgba(255,255,255,.72); }
.form-card { background: white; color: var(--ink); padding: clamp(26px,4vw,46px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cec5be; background: #fff; padding: 13px 14px; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(169,95,75,.2); border-color: var(--accent); }
.consent { font-size: 12px; color: var(--muted); }
.form-card .button { width: 100%; margin-top: 8px; }
.form-feedback { min-height: 24px; font-size: 13px; margin: 10px 0 0; }

.faq-list { max-width: 920px; margin: 48px auto 0; }
.faq-list details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font: 500 24px var(--serif); }
.faq-list details p { color: var(--muted); max-width: 780px; }

.content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.content-card { border-top: 1px solid var(--ink); padding-top: 20px; }
.content-card h3 { font-size: 28px; }
.content-card p { color: var(--muted); }

.page-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 24px; }
.page-hero-actions { margin-top: 28px; }
.page-hero-media { margin-top: 64px; height: min(55vw, 620px); overflow: hidden; }
.page-hero-media img { height: 100%; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 42px; padding: 0; list-style: none; }
.feature-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.feature-list li::before { content: "→"; color: var(--accent); margin-right: 10px; }
.quote { padding: 44px; background: var(--paper-2); }
.quote blockquote { margin: 0; font: 500 clamp(26px,3vw,40px)/1.2 var(--serif); }
.quote cite { display: block; margin-top: 20px; color: var(--muted); font-style: normal; }

.site-footer { background: #151210; color: rgba(255,255,255,.78); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.footer-logo { filter: brightness(0) invert(1); width: 260px; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; background: #1f6f4a; color: white; text-decoration: none; min-height: 52px; padding: 14px 18px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

@media (max-width: 1050px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; max-height: calc(100dvh - 78px); overflow-y: auto; background: var(--paper); padding: 28px 20px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid .service-card:last-child { grid-column: 1/-1; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid figure:first-child { grid-row: auto; }
  .project-grid figure:nth-child(4) { grid-column: auto; }
  .pillars, .steps { grid-template-columns: repeat(2,1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 190px; }
  .nav { top: 68px; max-height: calc(100dvh - 68px); }
  .hero { min-height: 720px; }
  .hero-content { padding: 70px 0 52px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(16,12,10,.9) 10%, rgba(16,12,10,.28) 100%); }
  .section-head, .authority-grid, .split, .lead-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-grid, .project-grid, .pillars, .steps, .content-grid, .footer-grid, .form-grid, .feature-list { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .project-grid { grid-template-rows: none; }
  .project-grid figure { min-height: 280px; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .step, .step:first-child, .step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .field.full { grid-column: auto; }
  .page-hero { padding-top: 72px; }
  .page-hero-media { height: 62vw; min-height: 360px; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { left: 14px; right: 14px; bottom: 12px; text-align: center; }
  body { padding-bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
