:root {
  --ink: #172019;
  --forest: #244b32;
  --forest-dark: #173622;
  --sage: #dce7dc;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --clay: #b65f38;
  --gold: #d8ad61;
  --muted: #687069;
  --line: #d9ddd6;
  --shadow: 0 18px 55px rgba(23, 32, 25, .12);
  --radius: 22px;
  --max: 1180px;
}

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

.topbar { background: var(--forest-dark); color: white; font-size: .9rem; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.language-note { color: #dce9df; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.94); border-bottom: 1px solid rgba(217,221,214,.9); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 190px; height: 76px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:not(.button):hover, .nav-links a[aria-current="page"] { color: var(--clay); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 2px solid var(--forest); border-radius: 999px; background: var(--forest); color: white; font-weight: 800; text-decoration: none; transition: .2s ease; cursor: pointer; }
.button:hover { background: var(--forest-dark); border-color: var(--forest-dark); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--forest); }
.button.secondary:hover { color: white; background: var(--forest); }
.button.light { border-color: white; background: white; color: var(--forest-dark); }
.button.light:hover { background: var(--cream); color: var(--forest-dark); }
.button.whatsapp { border-color: #1f8f4d; background: #1f8f4d; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

h1, h2, h3 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 18px; }
.eyebrow { display: block; margin-bottom: 16px; color: var(--clay); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .79rem; }
.lead { max-width: 710px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #4e574f; }
.section { padding: 92px 0; }
.section.compact { padding: 62px 0; }
.section.tint { background: var(--cream); }
.section.dark { background: var(--forest-dark); color: white; }
.section.dark .lead { color: #dce9df; }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-heading p { color: #d5e0d6; }

.hero { overflow: hidden; background: linear-gradient(120deg, var(--cream) 0 58%, var(--sage) 58%); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 58px; }
.hero-copy { padding: 78px 0; }
.hero-copy .lead { max-width: 650px; }
.bilingual-line { margin-top: 22px; font-weight: 750; color: var(--forest); }
.visual-frame { position: relative; min-height: 490px; border-radius: 180px 28px 28px 28px; overflow: hidden; background: #31573d center / cover no-repeat; box-shadow: var(--shadow); }
.visual-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,31,19,.48)); }
.visual-frame.hero-project { background-image: url("../images/projects/aluminum-fence-landscape.webp"); }
.visual-label { position: absolute; left: 28px; bottom: 28px; right: 28px; padding: 18px 20px; border-radius: 14px; color: white; background: rgba(14,34,21,.82); backdrop-filter: blur(6px); }
.visual-label strong { display: block; }

.trust-strip { background: var(--forest); color: white; }
.trust-grid { min-height: 100px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.trust-item { padding: 12px 20px; text-align: center; font-weight: 800; border-right: 1px solid rgba(255,255,255,.18); }
.trust-item:last-child { border: 0; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 32px rgba(23,32,25,.06); }
.card p { color: var(--muted); }
.card-link { color: var(--clay); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.icon-tile { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; background: var(--sage); color: var(--forest); font-weight: 900; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 900; }
.process { counter-reset: steps; }
.process-card { position: relative; padding: 34px 30px 30px; border-top: 4px solid var(--gold); background: white; border-radius: 0 0 var(--radius) var(--radius); }
.process-card::before { counter-increment: steps; content: "0" counter(steps); color: var(--clay); font-weight: 900; letter-spacing: .08em; }

.project-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-auto-rows: 250px; gap: 18px; }
.project-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: #284b34 center / cover no-repeat; }
.project-tile:first-child { grid-row: span 2; }
.project-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(13,31,19,.35)); }
.project-wood { background-image: url("../images/projects/wood-privacy-fence.webp"); }
.project-wood-gate { background-image: url("../images/projects/wood-gate.webp"); }
.project-aluminum { background-image: url("../images/projects/aluminum-fence-garden.webp"); }
.project-chain-link { background-image: url("../images/projects/chain-link-fence.webp"); }
.project-driveway-gate { background-image: url("../images/projects/double-driveway-gate.webp"); }
.project-caption { position: absolute; inset: auto 16px 16px; padding: 14px 16px; border-radius: 12px; color: white; background: rgba(16,34,22,.84); }
.project-caption small { display: block; opacity: .78; }

.page-hero { padding: 88px 0 78px; background: linear-gradient(120deg, var(--cream), var(--sage)); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.service-detail { display: grid; grid-template-columns: .72fr 1.28fr; gap: 38px; padding: 35px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; }
.service-detail p { color: var(--muted); }
.service-detail .text-link { color: var(--clay); font-weight: 800; }

.cta-band { padding: 56px 0; background: var(--clay); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 8px; }
.cta-inner p { margin: 0; color: #fff4ed; }

.contact-panel { padding: 34px; border-radius: var(--radius); background: var(--forest-dark); color: white; }
.contact-panel a { color: white; font-weight: 800; }
.contact-method { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-method:first-of-type { border-top: 0; }
.contact-method span { display: block; color: #c7d7ca; font-size: .88rem; }
.form-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bfc6be; border-radius: 10px; background: #fff; }
.field textarea { min-height: 135px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(182,95,56,.23); border-color: var(--clay); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 5px; }
.form-note, .status-message { font-size: .9rem; color: var(--muted); }
.status-message { display: none; margin-top: 18px; padding: 14px; border-radius: 10px; }
.status-message.show { display: block; background: #e8f4e9; color: #1b5227; }

.site-footer { padding: 64px 0 24px; background: #111a14; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 56px; }
.footer-logo { width: 210px; height: 90px; padding: 8px; object-fit: contain; border-radius: 10px; background: white; }
.footer-copy { color: #bcc8be; max-width: 540px; }
.footer-heading { font-family: inherit; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: white; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #96a499; font-size: .88rem; }

@media (max-width: 960px) {
  .topbar-inner { padding: 9px 0; align-items: flex-start; }
  .language-note { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 86px; left: 0; right: 0; padding: 22px 20px 26px; align-items: stretch; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { background: var(--cream); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; padding-bottom: 58px; }
  .hero-copy { padding: 62px 0 28px; }
  .visual-frame { min-height: 400px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); padding: 14px 0; }
  .trust-item:nth-child(3) { border-right: 0; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-tile:first-child { grid-row: span 1; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar-contact { gap: 5px; flex-direction: column; }
  .brand img { width: 150px; height: 68px; }
  .nav-wrap { min-height: 74px; }
  .nav-links { top: 74px; }
  .section { padding: 70px 0; }
  .grid.three, .grid.two, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.14); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .service-detail { grid-template-columns: 1fr; gap: 6px; }
  .project-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .project-tile:first-child { grid-column: auto; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .form-card, .contact-panel { padding: 26px 22px; }
}

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