:root {
  --forest: #174a35;
  --forest-2: #276247;
  --gold: #e2a900;
  --gold-dark: #986600;
  --cream: #f6f4ea;
  --paper: #fffefa;
  --muted: #5c6e63;
  --line: rgba(23, 74, 53, .16);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--forest);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 6vw, 6rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.25rem); }
h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .75rem 1rem; color: var(--forest); background: var(--gold); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.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-header { position: sticky; top: 0; z-index: 50; color: var(--forest); background: rgba(255,253,248,.96); backdrop-filter: blur(18px); border-bottom: 3px solid var(--gold); }
.nav-wrap { width: min(var(--max), calc(100% - 3rem)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark-main { font-size: 1.25rem; letter-spacing: .025em; font-weight: 800; }
.wordmark-main strong { color: var(--gold); }
.wordmark-sub { margin-top: .3rem; color: #5f7166; font-family: Georgia, serif; font-size: .72rem; letter-spacing: .16em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.7rem; }
.main-nav a, .services-menu summary { color: #375d49; text-decoration: none; font-size: .9rem; }
.main-nav > a:hover, .main-nav > a:focus-visible, .main-nav > a[aria-current="page"], .services-menu summary:hover, .services-menu summary:focus-visible, .services-menu.current summary { color: var(--gold-dark); }
.services-menu { position: relative; }
.services-menu summary { display: flex; align-items: center; gap: .45rem; cursor: pointer; list-style: none; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.services-menu[open] summary span { transform: rotate(225deg) translate(-1px, -1px); }
.services-submenu { position: absolute; top: calc(100% + 1.15rem); left: 50%; width: 315px; padding: .55rem; background: #fffefa; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 22px 55px rgba(23,74,53,.18); transform: translateX(-50%); }
.services-submenu a { display: block; padding: .72rem .8rem; color: #315441; line-height: 1.3; }
.services-submenu a:hover, .services-submenu a:focus-visible, .services-submenu a[aria-current="page"] { color: var(--forest); background: #eef4e9; }
.services-submenu .services-all { margin-top: .35rem; padding-top: .85rem; color: var(--gold-dark); border-top: 1px solid var(--line); font-weight: 800; }
.nav-cta { padding: .65rem 1rem; color: var(--gold-dark); border: 1px solid var(--gold); text-decoration: none; font-size: .84rem; font-weight: 800; }
.menu-button { display: none; }

.breadcrumbs { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--gold-dark); text-decoration: none; }
.breadcrumbs span::before { content: "/"; margin-right: .45rem; color: #a7ada8; }

.service-hero { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; min-height: 610px; display: grid; grid-template-columns: .95fr 1.05fr; }
.service-hero-copy { padding: 4rem 4.5rem 4rem 0; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-kicker, .card-label { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .17em; font-size: .75rem; font-weight: 850; }
.service-hero h1 { margin: 1rem 0 1.5rem; max-width: 650px; }
.service-hero-lead { max-width: 610px; color: #496454; font-size: 1.12rem; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 50px; padding: .8rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; text-decoration: none; font-size: .91rem; font-weight: 850; transition: transform .2s ease, color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--forest); background: var(--gold); }
.button-primary:hover { background: #f2bd1f; }
.button-secondary { color: var(--forest); border-color: rgba(23,74,53,.45); }
.button-secondary:hover { background: #edf3eb; }
.button-light { color: var(--forest); background: white; }
.button-outline-light { color: white; border-color: rgba(255,255,255,.6); }
.service-hero-media { position: relative; min-height: 610px; overflow: hidden; background: #e8efe8; }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-media::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, rgba(10,46,31,.6)); }
.hero-caption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 2; padding: 1rem 1.1rem; color: white; background: rgba(23,74,53,.9); }
.hero-caption span { display: block; margin-bottom: .25rem; color: #f3c33a; font-size: .68rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-caption small { display: block; margin-top: .25rem; color: #cfddd3; }

.section { padding: 6.5rem max(1.5rem, calc((100% - var(--max))/2)); }
.section-soft { background: var(--cream); }
.section-green { color: white; background: var(--forest); }
.section-green .section-kicker { color: #f3c33a; }
.section-intro { display: grid; grid-template-columns: 1.08fr .92fr; gap: 7vw; align-items: end; }
.section-intro h2 { margin: .7rem 0 0; }
.section-intro > p, .section-intro > div:last-child { color: #56695d; }
.section-green .section-intro > p, .section-green .section-intro > div:last-child { color: #d0ded4; }
.lead-copy { font-size: 1.04rem; }

.portfolio-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portfolio-card { min-height: 470px; display: flex; flex-direction: column; overflow: hidden; color: var(--forest); background: white; border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(23,74,53,.14); }
.portfolio-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.portfolio-card > div { flex: 1; padding: 1.65rem; display: flex; flex-direction: column; }
.portfolio-card h3 { margin: .6rem 0 1rem; }
.portfolio-card p { color: var(--muted); font-size: .92rem; }
.portfolio-link { margin-top: auto; color: var(--gold-dark); font-size: .84rem; font-weight: 850; }
.portfolio-link::after { content: " →"; }

.feature-grid { margin-top: 3.7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature { min-height: 245px; padding: 2rem; color: var(--forest); background: var(--paper); }
.feature:nth-child(even) { background: #eef4e9; }
.feature-number { color: var(--gold-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.feature h3 { margin: 2.7rem 0 .75rem; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.visual-grid { margin-top: 3.6rem; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 260px); gap: 1rem; }
.visual-card { position: relative; min-height: 250px; margin: 0; overflow: hidden; background: var(--forest); }
.visual-card:first-child { grid-row: 1 / 3; }
.visual-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.visual-card:hover img { transform: scale(1.025); filter: brightness(.9); }
.visual-card figcaption { position: absolute; inset: auto 0 0; padding: 3.4rem 1.3rem 1.2rem; color: white; background: linear-gradient(transparent, rgba(15,62,42,.92)); font-family: Georgia, serif; font-size: 1.1rem; line-height: 1.3; }
.visual-card figcaption span { display: block; color: #f3c33a; font-family: Inter, sans-serif; font-size: .67rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.image-note { margin: 1rem 0 0; color: #827d75; font-size: .75rem; text-align: right; }

.process { margin-top: 3.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: process; }
.process article { min-height: 210px; padding: 1.7rem; color: var(--forest); background: white; border-top: 3px solid var(--gold); }
.process article::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 2.8rem; color: var(--gold-dark); font-size: .75rem; font-weight: 850; }
.process h3 { margin-bottom: .7rem; }
.process p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.proof-band { margin-top: 3rem; padding: 2.5rem; display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; align-items: center; color: var(--forest); background: #fff3c6; border-left: 6px solid var(--gold); }
.proof-band h3 { margin: .45rem 0 0; font-size: 2rem; }
.proof-band ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; list-style: none; }
.proof-band li { position: relative; padding-left: 1.1rem; color: #355844; }
.proof-band li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

.metrics { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); }
.metrics article { padding: 2rem; background: rgba(255,255,255,.07); }
.metrics strong { display: block; color: #f3c33a; font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 400; }
.metrics span { display: block; max-width: 260px; color: #d6e3d9; font-size: .9rem; }

.document-panel { padding: 4.5rem max(1.5rem, calc((100% - var(--max))/2)); color: white; background: var(--forest); }
.document-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.document-panel h2 { max-width: 800px; margin: .7rem 0 1rem; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.document-panel p { max-width: 760px; margin-bottom: 0; color: #cad9cf; }
.document-actions { display: flex; flex-direction: column; gap: .75rem; }
.pdf-preview { margin-top: 2rem; color: var(--forest); background: white; }
.pdf-preview summary { padding: 1rem 1.25rem; cursor: pointer; color: var(--forest); background: #fff3c6; font-weight: 850; }
.pdf-preview iframe { width: 100%; height: 720px; display: block; border: 0; background: #f1f1ed; }

.related { background: var(--cream); }
.related h2 { margin: .7rem 0 2.5rem; font-size: clamp(2rem, 4vw, 3.6rem); }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-links a { min-height: 150px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--forest); background: white; border: 1px solid var(--line); text-decoration: none; }
.related-links strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.related-links span { color: var(--gold-dark); font-size: .8rem; font-weight: 850; }

.contact-strip { padding: 5rem max(1.5rem, calc((100% - var(--max))/2)); color: var(--forest); background: var(--gold); }
.contact-strip-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.contact-strip h2 { max-width: 780px; margin-bottom: .8rem; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.contact-strip p { max-width: 750px; margin-bottom: 0; color: #3d513f; }
.contact-options { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.contact-options a { font-weight: 850; }

.footer { min-height: 150px; padding: 2.5rem max(1.5rem, calc((100% - var(--max))/2)); display: flex; align-items: center; gap: 2rem; color: #ddd8cf; background: var(--forest); }
.footer p { margin: 0 0 0 auto; color: #aaa69f; font-size: .82rem; }
.footer p + p { margin-left: 0; }
.floating-whatsapp { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 45; padding: .75rem 1rem; color: white; background: var(--forest); border: 2px solid #f3c33a; box-shadow: 0 12px 30px rgba(5,34,21,.28); font-size: .82rem; font-weight: 850; text-decoration: none; }
.floating-whatsapp:hover, .floating-whatsapp:focus-visible { color: var(--forest); background: #f3c33a; }

@media (max-width: 980px) {
  .nav-wrap { min-height: 70px; }
  .nav-cta { display: none; }
  .menu-button { margin-left: auto; padding: .7rem; display: inline-flex; flex-direction: column; gap: 5px; border: 0; background: transparent; }
  .menu-button span:not(.sr-only) { width: 24px; height: 2px; background: var(--forest); }
  .main-nav { position: absolute; left: 0; right: 0; top: 70px; padding: 1.5rem; display: none; flex-direction: column; align-items: flex-start; background: #fffdf8; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .services-menu { width: 100%; }
  .services-menu summary { width: 100%; min-height: 44px; justify-content: space-between; font-weight: 800; }
  .services-submenu { position: static; width: 100%; margin-top: .25rem; padding: .35rem 0 .35rem .75rem; background: #f6f4ea; border: 0; border-left: 3px solid var(--gold); box-shadow: none; transform: none; }
  .services-submenu a { min-height: 44px; display: flex; align-items: center; padding: .62rem .8rem; }
  .service-hero { grid-template-columns: 1fr; }
  .service-hero-copy { padding: 3rem 0; }
  .service-hero-media { min-height: 470px; }
  .section-intro, .document-inner, .contact-strip-inner, .proof-band { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-grid, .feature-grid, .feature-grid.four { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .document-actions { flex-direction: row; flex-wrap: wrap; }
  .related-links { grid-template-columns: 1fr 1fr; }
  .footer { flex-wrap: wrap; }
  .footer p { margin-left: 0; }
}

@media (max-width: 620px) {
  .nav-wrap, .breadcrumbs, .service-hero { width: min(100% - 2rem, var(--max)); }
  .wordmark-main { font-size: 1.1rem; }
  .service-hero h1 { font-size: clamp(2.7rem, 12vw, 4.25rem); }
  .service-hero-media { min-height: 350px; }
  .hero-actions, .document-actions { flex-direction: column; align-items: stretch; }
  .section { padding-top: 5.25rem; padding-bottom: 5.25rem; }
  .portfolio-grid, .feature-grid, .feature-grid.four, .process, .related-links, .metrics { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 0; }
  .visual-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .visual-card, .visual-card:first-child { grid-row: auto; min-height: 290px; }
  .proof-band ul { grid-template-columns: 1fr; }
  .document-panel, .contact-strip { padding-top: 4rem; padding-bottom: 4rem; }
  .pdf-preview iframe { height: 520px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .floating-whatsapp { right: .8rem; bottom: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
