@font-face {
  font-family: "Anton Local";
  src: url("./assets/fonts/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Antonio Local";
  src: url("./assets/fonts/Antonio-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Local";
  src: url("./assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Local";
  src: url("./assets/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Local";
  src: url("./assets/fonts/Manrope-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Local";
  src: url("./assets/fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b0d0b;
  --ink-soft: #232723;
  --paper: #f4f3ee;
  --paper-bright: #ffffff;
  --plaster: #e8e6df;
  --muted: #595f59;
  --green: #029f00;
  --green-action: #00720b;
  --green-deep: #004f09;
  --green-pale: #dff1dd;
  --line: #caccc5;
  --line-dark: rgba(255,255,255,.24);
  --error-bg: #fff0ee;
  --error-text: #9f2118;
  --shadow-sm: 0 2px 8px rgba(11,13,11,.12);
  --shadow-lg: 0 24px 64px rgba(11,13,11,.18);
  --max: 1380px;
  --gutter: max(24px, calc((100vw - var(--max)) / 2));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--green); }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Antonio Local", "Arial Narrow", sans-serif; font-weight: 600; line-height: .93; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(3.8rem, 8vw, 6rem); max-width: 12ch; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.7rem, 5.2vw, 5rem); max-width: 13ch; margin-bottom: 1.35rem; }
p { max-width: 70ch; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: var(--green-action); color: #fff; padding: .8rem 1.1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 76px; padding: 0 var(--gutter); background: rgba(255,255,255,.96); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(11,13,11,.16); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-logo { height: clamp(34px, 3.8vw, 44px); width: auto; max-width: min(240px, 58vw); object-fit: contain; display: block; }
.main-menu { display: flex; align-items: center; gap: clamp(.85rem, 1.6vw, 1.55rem); font-size: .86rem; font-weight: 760; }
.main-menu > a, .service-menu summary { position: relative; text-decoration: none; cursor: pointer; }
.main-menu > a:not(.nav-contact)::after, .service-menu summary::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.42rem; height: 2px; background: var(--green); transition: right 180ms var(--ease-out); }
.main-menu > a:hover::after, .main-menu > a[aria-current="page"]::after, .service-menu summary:hover::after, .service-menu summary[aria-current="page"]::after { right: 0; }
.service-menu-panel a[aria-current="page"] { background: var(--green-action); color: #fff; }
.nav-contact { min-height: 44px; display: inline-flex; align-items: center; padding: .65rem 1rem; background: var(--ink); color: #fff; transition: background-color 180ms ease, transform 180ms var(--ease-out); }
.nav-contact:hover { background: var(--green-action); }
.nav-contact:active { transform: scale(.97); }
.service-menu { position: relative; }
.service-menu summary { list-style: none; }
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu-panel { position: absolute; top: calc(100% + 1.35rem); right: -13rem; width: min(720px, 84vw); padding: 1rem; background: var(--ink); color: #fff; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; border-radius: 14px; box-shadow: var(--shadow-lg); transform-origin: 75% 0; }
.service-menu-panel a { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.service-menu-panel a:hover { color: #fff; background: var(--green-action); }
.service-menu-panel .all-services { grid-column: 1 / -1; min-height: 54px; margin-bottom: .35rem; border: 1px solid var(--line-dark); font-weight: 850; }
.menu-toggle { display: none; min-height: 44px; align-items: center; gap: .5rem; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: .55rem .75rem; }

main { overflow: hidden; }
.hero { position: relative; min-height: calc(100svh - 76px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); grid-template-rows: clamp(600px, calc(100svh - 184px), 740px) auto; background: var(--paper); }
.hero-media { grid-area: 1 / 2; min-width: 0; min-height: 0; position: relative; overflow: hidden; background: var(--plaster); }
.hero-material { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; animation: material-settle 900ms var(--ease-out) both; }
.hero-media figcaption { position: absolute; right: 1rem; bottom: 1rem; max-width: 280px; padding: .55rem .7rem; background: rgba(11,13,11,.88); color: #fff; font-size: .7rem; line-height: 1.4; backdrop-filter: blur(8px); }
.hero-copy { grid-area: 1 / 1; z-index: 2; min-height: 100%; padding: clamp(2.7rem, 4.5vw, 5rem) clamp(3rem, 6vw, 7.5rem) clamp(2.7rem, 4.5vw, 5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.hero-copy h1 { max-width: 13ch; margin-bottom: 1.25rem; font-size: clamp(4rem, 5.7vw, 5.25rem); }
.hero-copy > p:not(.hero-availability) { font-size: clamp(1.08rem, 1.42vw, 1.32rem); max-width: 56ch; color: var(--ink-soft); }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 1.5rem; }
.hero-availability { margin: 1.4rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 750; color: var(--muted); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .85rem 1.25rem; border: 0; background: var(--green-action); color: #fff; text-decoration: none; font-weight: 850; cursor: pointer; box-shadow: 0 10px 24px rgba(0,79,9,.18); transition: background-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease; }
.button:hover { background: var(--green-deep); }
.button:active { transform: translateY(1px) scale(.98); box-shadow: var(--shadow-sm); }
.button-dark { background: var(--ink); }
.button-dark:hover { background: var(--green-deep); }
.button-light { background: #fff; color: var(--ink); box-shadow: none; }
.button-light:hover { background: var(--green-pale); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; font-weight: 850; text-decoration-thickness: 1px; }
.text-link svg { transition: transform 180ms var(--ease-out); }
.text-link:hover svg { transform: translateX(5px); }
.text-link.light { color: #fff; }
.trust-strip { grid-area: 2 / 1 / 3 / 3; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr) minmax(260px, 1.08fr); background: var(--ink); color: #fff; }
.trust-strip > div, .trust-strip > a { min-height: 108px; padding: 1.35rem clamp(1.25rem, 2.4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line-dark); }
.trust-strip strong { font-family: "Antonio Local", sans-serif; font-size: clamp(1.45rem, 2.3vw, 2.2rem); line-height: 1; }
.trust-strip span { font-size: .78rem; color: rgba(255,255,255,.66); }
.trust-strip > a { background: var(--green-action); text-decoration: none; font-family: "Antonio Local", sans-serif; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; }
.trust-strip > a span { display: block; position: absolute; margin-top: -3.25rem; font-family: "Avenir Next", sans-serif; }

.surface-anatomy { padding: clamp(5rem, 9vw, 10rem) var(--gutter); background: var(--paper); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 7vw, 8rem); }
.anatomy-intro { position: sticky; top: 120px; align-self: start; }
.anatomy-intro p { font-size: 1.15rem; color: var(--muted); }
.surface-anatomy ol { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.surface-anatomy li { min-height: 138px; display: grid; grid-template-columns: 82px minmax(130px, .65fr) 1fr; gap: 1.5rem; align-items: center; border-top: 1px solid var(--ink); }
.surface-anatomy li > span { align-self: start; padding-top: 1.25rem; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.surface-anatomy li strong { font-family: "Antonio Local", sans-serif; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1; }
.surface-anatomy li p { margin: 0; max-width: 42ch; color: var(--muted); }
.anatomy-link { grid-column: 2; justify-self: start; margin-top: -4rem; }

.services-showcase { padding: clamp(5rem, 9vw, 10rem) var(--gutter); background: #fff; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.28fr); gap: 0 clamp(3rem, 7vw, 8rem); border-top: 1px solid var(--line); }
.section-heading { align-self: start; position: sticky; top: 120px; padding-bottom: 3rem; }
.section-heading p { max-width: 46ch; color: var(--muted); font-size: 1.08rem; }
.service-list { grid-column: 2; border-bottom: 1px solid var(--ink); }
.service-row { min-height: 132px; display: grid; grid-template-columns: 58px minmax(170px, .78fr) minmax(260px, 1.22fr) 28px; gap: 1.25rem; align-items: center; color: var(--ink); text-decoration: none; border-top: 1px solid var(--ink); transition: background-color 220ms ease; }
.service-row > * { transition: transform 220ms var(--ease-out); }
.service-row:hover { background: var(--green-pale); }
.service-row:hover > * { transform: translateX(8px); }
.service-row > span { font-family: "Anton Local", sans-serif; font-size: .74rem; color: var(--muted); }
.service-row strong { font-family: "Antonio Local", sans-serif; font-size: clamp(1.55rem, 2.4vw, 2.2rem); line-height: 1; }
.service-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.service-row svg { justify-self: end; }
.service-photo { grid-column: 1; align-self: end; margin-top: 5rem; position: sticky; bottom: 2rem; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.7) contrast(1.03); }
.service-photo figcaption, .hero-photo figcaption, .work-reference figcaption { padding: .65rem 0; font-size: .72rem; color: var(--muted); border-bottom: 1px solid var(--line); }

.process { padding: clamp(5rem, 8vw, 9rem) var(--gutter); background: var(--ink); color: #fff; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); }
.process-title p { color: rgba(255,255,255,.66); font-size: 1.1rem; }
.process ol { margin: 0; padding: 0; list-style: none; counter-reset: stage; border-top: 1px solid var(--line-dark); }
.process li { counter-increment: stage; min-height: 116px; display: grid; grid-template-columns: 58px .7fr 1.3fr; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line-dark); }
.process li::before { content: counter(stage, decimal-leading-zero); font-family: "Anton Local", sans-serif; color: var(--green); }
.process li strong { font-family: "Antonio Local", sans-serif; font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1; }
.process li span { color: rgba(255,255,255,.7); }
.process.slim { padding-top: 5rem; padding-bottom: 5rem; }

.coverage { min-height: 660px; display: grid; grid-template-columns: 1fr 1fr; background: var(--green); }
.coverage > div:first-child { padding: clamp(5rem, 8vw, 8rem) var(--gutter); padding-right: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.coverage > div:first-child p { font-size: 1.15rem; max-width: 46ch; }
.coverage-map { position: relative; overflow: hidden; padding: 4rem; background: var(--ink); color: #fff; display: grid; place-items: center; }
.coverage-map::before, .coverage-map::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.coverage-map::before { width: 70%; aspect-ratio: 1; }
.coverage-map::after { width: 42%; aspect-ratio: 1; }
.coverage-map span { z-index: 2; font-family: "Antonio Local", sans-serif; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; }
.coverage-map small { position: absolute; z-index: 2; padding: .35rem .55rem; background: #fff; color: var(--ink); font-weight: 800; }
.coverage-map small:nth-of-type(1) { top: 24%; left: 18%; }
.coverage-map small:nth-of-type(2) { top: 18%; right: 16%; }
.coverage-map small:nth-of-type(3) { bottom: 23%; left: 17%; }
.coverage-map small:nth-of-type(4) { bottom: 18%; right: 20%; }
.coverage-map small:nth-of-type(5) { top: 48%; right: 8%; }

.cta-band { padding: clamp(3.5rem, 5vw, 5.5rem) clamp(2rem, 4vw, 4rem); background: var(--green-action); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.cta-band h2 { margin-bottom: 1rem; max-width: 26ch; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 1.08rem; }
.cta-actions { justify-content: flex-end; margin: 0; }

.page-hero { padding: clamp(3.5rem, 5vw, 5.5rem) clamp(2rem, 4vw, 4rem); background: var(--paper); border-bottom: 1px solid var(--ink); }
.page-hero > h1 { max-width: 26ch; }
.page-hero > p:not(.breadcrumb) { max-width: 65ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); }
.breadcrumb { margin-bottom: 2rem; color: var(--muted); font-size: .78rem; font-weight: 750; }
.page-hero-visual { padding: 0; min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--ink); color: #fff; }
.page-hero-visual > div { padding: clamp(3.5rem, 5vw, 6rem) clamp(2rem, 4vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.page-hero-visual > div p:not(.breadcrumb) { color: rgba(255,255,255,.7); }
.page-hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.service-hero { padding-bottom: 0; }
.service-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 4vw, 4.5rem); align-items: stretch; }
.service-hero-grid > div:first-child { min-width: 0; padding-bottom: clamp(3rem, 4vw, 5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.service-hero-grid > div:first-child p { max-width: 58ch; font-size: 1.12rem; color: var(--muted); }
.service-hero-grid h1 { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.1; max-width: 100%; }
.service-visual { position: relative; min-height: 530px; }
.service-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-trust { position: absolute; left: -2rem; bottom: -1px; max-width: 330px; padding: 1.6rem; background: var(--ink); color: #fff; }
.hero-trust span { font-size: .75rem; color: rgba(255,255,255,.62); }
.hero-trust strong { display: block; margin: .6rem 0; font-family: "Antonio Local", sans-serif; font-size: 2.4rem; line-height: 1; }
.hero-trust p { margin: 0; color: rgba(255,255,255,.66); font-size: .9rem; }

.services-section, .detail-layout, .related, .town-grid, .content-note, .work-reference, .placeholder-gallery, .fact-band, .contact-layout, .legal-copy { padding-left: clamp(1.8rem, 4vw, 3.5rem); padding-right: clamp(1.8rem, 4vw, 3.5rem); }
.services-section { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(5rem, 9vw, 10rem); background: #fff; }
.services-section .service-list { grid-column: auto; }
.detail-layout { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.detail-layout h2, .estimate-note h2, .related h2, .content-note h2, .work-reference h2, .direct-contact h2, .legal-copy h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.check-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.check-list li { min-height: 74px; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.check-list svg { color: var(--green-action); }
.estimate-note { padding: 2rem; background: #fff; }
.estimate-note p { color: var(--muted); }
.estimate-note a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 850; }
.related { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(5rem, 8vw, 8rem); background: #fff; }
.related > div { border-top: 1px solid var(--ink); }
.related a { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.related a:hover { color: var(--green-action); }

.town-grid { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(5rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(5, 1fr); }
.town-link { min-height: 230px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); border-right: 0; text-decoration: none; transition: background-color 180ms ease, color 180ms ease; }
.town-link:last-child { border-right: 1px solid var(--ink); }
.town-link:hover { background: var(--ink); color: #fff; }
.town-link strong { font-family: "Antonio Local", sans-serif; font-size: clamp(1.8rem, 2.5vw, 2.6rem); line-height: 1; }
.town-link span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; font-weight: 750; }
.content-note { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); background: var(--green-pale); }
.content-note p { color: var(--muted); font-size: 1.08rem; }

.work-reference { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; background: #fff; }
.work-reference figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-reference p { color: var(--muted); font-size: 1.08rem; }
.placeholder-gallery { padding-top: 0; padding-bottom: clamp(5rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); }
.placeholder-gallery > div { min-height: 360px; padding: 2rem; background: var(--plaster); display: flex; flex-direction: column; justify-content: space-between; }
.placeholder-gallery span { font-family: "Antonio Local", sans-serif; font-size: 3.2rem; }
.placeholder-gallery p { color: var(--muted); }
.fact-band { padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: #fff; }
.fact-band > div { min-height: 230px; padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--line-dark); }
.fact-band strong { font-family: "Antonio Local", sans-serif; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; }
.fact-band span { color: rgba(255,255,255,.65); }

.contact-layout { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.direct-contact { position: sticky; top: 120px; }
.direct-contact > a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--ink); font-weight: 800; }
.direct-contact > a:last-of-type { border-bottom: 1px solid var(--ink); }
.direct-contact strong { font-family: "Antonio Local", sans-serif; font-size: 2rem; }
.direct-contact p { margin-top: 1.5rem; color: var(--muted); }
.contact-form { padding: clamp(2rem, 4vw, 4rem); background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; box-shadow: var(--shadow-lg); }
.contact-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; font-weight: 800; }
.contact-form .wide, .contact-form .form-status { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-height: 52px; padding: .8rem; border: 1px solid var(--line); border-bottom-color: var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); caret-color: var(--green); }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--green-action); outline: 2px solid var(--green-action); outline-offset: 2px; }
.form-status { min-height: 1.5rem; margin: 0; }
.form-status[data-state="error"] { padding: .75rem; background: var(--error-bg); color: var(--error-text); font-weight: 750; }
.form-status[data-state="info"] { padding: .75rem; background: var(--green-pale); color: var(--green-deep); font-weight: 750; }
.legal-copy { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(5rem, 8vw, 8rem); max-width: calc(900px + 2 * var(--gutter)); }
.legal-copy h2 { margin-top: 3.5rem; }
.legal-copy p { color: var(--muted); }

.site-footer { padding: clamp(4rem, 7vw, 7rem) var(--gutter) 2rem; background: var(--ink); color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.45fr .8fr .55fr; gap: clamp(2rem, 6vw, 7rem); padding-bottom: 4rem; }
.brand-footer .brand-logo { width: auto; height: clamp(38px, 4.2vw, 48px); max-width: 250px; background: transparent; padding: 0; }
.footer-main p { max-width: 46ch; color: rgba(255,255,255,.62); }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.footer-main h2 { margin: 0 0 .65rem; font-family: "Avenir Next", sans-serif; font-size: .8rem; letter-spacing: .02em; }
.footer-main a { color: #fff; }
.footer-phone { font-family: "Antonio Local", sans-serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; text-decoration: none; }
.footer-legal { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-dark); font-size: .75rem; color: rgba(255,255,255,.58); }
.footer-legal div { display: flex; gap: 1.25rem; }
.floating-call { display: none; }

@keyframes material-settle {
  from { transform: scale(1.025); filter: saturate(.78) contrast(1.04); }
  to { transform: scale(1); filter: saturate(1) contrast(1); }
}

@media (max-width: 1040px) {
  :root { --gutter: 28px; }
  .site-header { min-height: 72px; }
  .brand-logo { height: 38px; width: auto; max-width: 210px; }
  .menu-toggle { display: inline-flex; }
  .main-menu { position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100svh - 72px); overflow-y: auto; padding: 1rem var(--gutter) 2rem; background: #fff; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 8px solid var(--green); box-shadow: var(--shadow-lg); }
  .main-menu.is-open { display: flex; }
  .main-menu > a, .service-menu summary { min-height: 54px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .main-menu > a::after, .service-menu summary::after { display: none; }
  .nav-contact { margin-top: .8rem; justify-content: center; border-bottom: 0 !important; }
  .service-menu-panel { position: static; width: 100%; padding: .6rem 0 1rem; grid-template-columns: 1fr; background: var(--paper); color: var(--ink); box-shadow: none; border-top: 0; }
  .service-menu-panel .all-services { grid-column: auto; background: var(--ink); color: #fff; padding-inline: .8rem; }
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); grid-template-rows: clamp(600px, calc(100svh - 180px), 700px) auto; }
  .hero-copy { padding-right: 3rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div, .trust-strip > a { border-bottom: 1px solid var(--line-dark); }
  .surface-anatomy, .process, .detail-layout, .work-reference, .contact-layout { grid-template-columns: 1fr; }
  .anatomy-intro, .section-heading, .service-photo, .direct-contact { position: static; }
  .anatomy-link { grid-column: 1; margin-top: 0; }
  .services-showcase { grid-template-columns: 1fr; }
  .service-list, .service-photo { grid-column: 1; }
  .service-photo { order: 2; margin-top: 4rem; }
  .process { gap: 2rem; }
  .coverage { min-height: 560px; }
  .page-hero-visual, .service-hero-grid { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink); }
  .town-link, .town-link:last-child { border: 0; background: var(--paper); }
  .town-link:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; padding-bottom: 66px; }
  h1 { font-size: clamp(3.1rem, 14vw, 4.5rem); }
  h2 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero { grid-template-columns: 1fr; grid-template-rows: 245px auto auto; background: var(--paper); }
  .hero-media { grid-area: 1 / 1; min-height: 245px; }
  .hero-material { min-height: 245px; object-position: center 38%; }
  .hero-media figcaption { right: .75rem; top: .75rem; bottom: auto; max-width: 205px; font-size: .68rem; }
  .hero-copy { grid-area: 2 / 1; width: auto; min-height: auto; margin: -58px var(--gutter) 0; padding: 2.25rem 1.45rem 2.5rem; box-shadow: var(--shadow-lg); }
  .hero-copy h1 { max-width: 11ch; margin-bottom: 1rem; font-size: clamp(2.9rem, 12.5vw, 3.5rem); }
  .hero-copy > p:not(.hero-availability) { font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: .75rem; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: space-between; }
  .hero-availability { margin-top: 1.4rem; }
  .trust-strip { grid-area: 3 / 1; margin-top: 0; grid-template-columns: 1fr 1fr; }
  .trust-strip > div, .trust-strip > a { min-height: 104px; padding: 1rem; }
  .trust-strip > a { grid-column: 1 / -1; min-height: 84px; }
  .surface-anatomy, .services-showcase, .process, .detail-layout, .related, .work-reference, .contact-layout { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .surface-anatomy { gap: 2.5rem; }
  .surface-anatomy li { min-height: 0; padding: 1.35rem 0; grid-template-columns: 54px 1fr; gap: .5rem 1rem; }
  .surface-anatomy li > span { grid-row: 1 / 3; }
  .surface-anatomy li p { grid-column: 2; }
  .service-row { min-height: 0; padding: 1.25rem 0; grid-template-columns: 38px 1fr 24px; gap: .75rem; }
  .service-row strong { font-size: 1.75rem; }
  .service-row p { grid-column: 2 / -1; }
  .service-row:hover > * { transform: translateX(4px); }
  .process li { min-height: 0; padding: 1.25rem 0; grid-template-columns: 44px 1fr; }
  .process li span { grid-column: 2; }
  .coverage, .cta-band, .page-hero-visual, .service-hero-grid, .footer-main { grid-template-columns: 1fr; }
  .coverage { min-height: 0; }
  .coverage > div:first-child { padding: 4.5rem var(--gutter); }
  .coverage-map { min-height: 430px; }
  .cta-band { align-items: start; }
  .cta-actions { justify-content: flex-start; align-items: stretch; }
  .cta-actions .button { width: 100%; }
  .page-hero { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .page-hero-visual > div { padding: 4.5rem var(--gutter); }
  .page-hero-visual > img { min-height: 330px; }
  .service-hero { padding-bottom: 0; }
  .service-hero-grid { gap: 0; }
  .service-hero-grid > div:first-child { padding-bottom: 4rem; }
  .service-hero h1 { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
  .service-hero-grid > div:first-child p { max-width: 100%; overflow-wrap: anywhere; }
  .service-visual { min-height: 360px; margin-inline: calc(var(--gutter) * -1); }
  .hero-trust { left: var(--gutter); right: var(--gutter); max-width: none; }
  .town-grid { grid-template-columns: 1fr; }
  .town-link:last-child { grid-column: auto; }
  .town-link { min-height: 160px; }
  .placeholder-gallery, .fact-band, .contact-form { grid-template-columns: 1fr; }
  .placeholder-gallery > div { min-height: 230px; }
  .fact-band > div { min-height: 170px; padding: 1.5rem var(--gutter); border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .contact-form { margin-inline: calc(var(--gutter) * -1); padding: 2rem var(--gutter); box-shadow: none; }
  .contact-form .wide, .contact-form .form-status { grid-column: auto; }
  .footer-main { gap: 2.5rem; }
  .footer-legal { flex-direction: column; }
  .footer-legal div { flex-wrap: wrap; }
  .floating-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; min-height: 66px; padding: .8rem var(--gutter); background: var(--green-action); color: #fff; display: flex; align-items: center; justify-content: center; gap: .7rem; text-decoration: none; font-weight: 900; box-shadow: 0 -8px 28px rgba(11,13,11,.2); }
}

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

/* Modern service direction — adapted from the user-provided reference */
:root {
  --ink: #172019;
  --ink-soft: #344039;
  --paper: #f3f6f2;
  --paper-bright: #ffffff;
  --plaster: #e9efe8;
  --muted: #667069;
  --green: #15952b;
  --green-action: #147824;
  --green-deep: #0b3f2e;
  --green-pale: #e7f4e7;
  --line: #dce3dc;
  --line-dark: rgba(255,255,255,.17);
  --shadow-sm: 0 5px 18px rgba(23,32,25,.08);
  --shadow-lg: 0 22px 64px rgba(23,32,25,.12);
  --max: 1240px;
  --gutter: max(24px, calc((100vw - var(--max)) / 2));
}

body { background: var(--paper); font-family: "Manrope Local", "Avenir Next", Arial, sans-serif; font-size: 15.5px; line-height: 1.62; }
h1, h2, h3 { font-family: "Manrope Local", "Avenir Next", Arial, sans-serif; font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
h1 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); max-width: 28ch; }
h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); max-width: 28ch; }

.site-header { min-height: 72px; padding-inline: var(--gutter); background: rgba(255,255,255,.96); border-color: var(--line); }
.brand-logo { height: clamp(34px, 3.8vw, 44px); width: auto; max-width: min(240px, 58vw); }
.main-menu { font-size: .82rem; font-weight: 700; }
.nav-contact { min-height: 42px; border-radius: 8px; background: var(--green-action); }
.nav-contact:hover { background: var(--green-deep); }
.service-menu-panel { border-radius: 14px; }
.menu-toggle { border-color: var(--line); border-radius: 8px; background: #fff; }

.button { min-height: 50px; padding: .82rem 1.15rem; border-radius: 9px; font-weight: 800; box-shadow: 0 8px 20px rgba(20,120,36,.16); }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.button-secondary:hover { border-color: var(--green-action); background: var(--green-pale); color: var(--green-deep); }
.text-link { font-weight: 800; }

.home main { padding-top: 22px; }
.home .hero { width: min(calc(100% - 48px), var(--max)); min-height: 0; margin: 0 auto; overflow: hidden; grid-template-columns: 1.04fr .96fr; grid-template-rows: 590px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.home .hero-copy { grid-area: 1 / 1; min-height: 0; padding: clamp(3rem, 5vw, 5rem); background: #fff; }
.home .hero-copy h1 { max-width: 12ch; margin-bottom: 1.25rem; font-size: clamp(3.15rem, 4.8vw, 4.35rem); line-height: 1.02; }
.home .hero-copy > p:not(.hero-availability) { max-width: 52ch; color: var(--muted); font-size: 1.03rem; }
.home .hero-actions { gap: .75rem; margin-top: 1.65rem; }
.home .hero-availability { margin-top: 1.35rem; padding-top: 1rem; border-color: var(--line); color: var(--muted); }
.home .hero-availability a { color: var(--green-deep); font-weight: 800; }
.home .hero-media { grid-area: 1 / 2; margin: 12px 12px 12px 0; overflow: hidden; border-radius: 16px; }
.home .hero-material { object-position: center 43%; }
.home .hero-media figcaption { right: .8rem; bottom: .8rem; max-width: 250px; border-radius: 7px; background: rgba(11,63,46,.88); }
.hero-badge { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; min-width: 155px; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.hero-badge strong { display: block; font-size: 1.45rem; line-height: 1; }
.hero-badge span { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; }
.home .hero-media figcaption + .hero-badge { margin-bottom: 0; }
.home .hero .trust-strip { grid-area: 2 / 1 / 3 / 3; grid-template-columns: repeat(3, 1fr) 1.12fr; background: var(--green-deep); }
.home .trust-strip > div, .home .trust-strip > a { min-height: 104px; padding: 1.25rem 1.6rem; }
.home .trust-strip strong { font-family: "Manrope Local", sans-serif; font-size: 1.45rem; letter-spacing: -.035em; }
.home .trust-strip > a { background: var(--green-action); font-family: "Manrope Local", sans-serif; font-size: 1.35rem; font-weight: 800; }

.quality-section { width: min(calc(100% - 48px), var(--max)); margin: 86px auto 0; padding: 18px; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.quality-photo { position: relative; min-height: 590px; overflow: hidden; border-radius: 16px; }
.quality-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.quality-photo figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .5rem .65rem; border-radius: 7px; background: rgba(11,63,46,.92); color: #fff; font-size: .7rem; }
.quality-copy { padding: clamp(2rem, 5vw, 4.7rem) clamp(1.2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.7rem) 0; align-self: center; }
.quality-copy h2 { margin-bottom: 1.2rem; }
.quality-copy > p { color: var(--muted); font-size: 1.03rem; }
.quality-points { margin: 1.8rem 0 2rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.quality-points li { display: grid; grid-template-columns: 38px 1fr; gap: .85rem; align-items: start; }
.quality-points li > svg { width: 38px; height: 38px; padding: .6rem; border-radius: 50%; background: var(--green-pale); color: var(--green-action); }
.quality-points span { color: var(--muted); font-size: .88rem; }
.quality-points strong { display: block; margin-bottom: .12rem; color: var(--ink); font-size: .94rem; }

.home .services-showcase { width: min(calc(100% - 48px), var(--max)); margin: 100px auto 0; padding: 0; display: block; background: transparent; border: 0; }
.home .services-showcase .section-heading { position: static; max-width: 620px; margin: 0 auto 2.5rem; padding: 0; text-align: center; }
.home .services-showcase .section-heading h2 { max-width: none; }
.home .services-showcase .section-heading p { max-width: none; color: var(--muted); }
.service-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.service-card { min-height: 235px; padding: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease; }
.service-card:hover { transform: translateY(-4px); border-color: #b6c9b8; box-shadow: var(--shadow-sm); }
.service-card-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 1.15rem; border-radius: 10px; background: var(--green-pale); color: var(--green-action); }
.service-card-icon svg { width: 22px; height: 22px; }
.service-card strong { font-size: .98rem; line-height: 1.25; }
.service-card p { margin: .55rem 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.service-card-link { margin-top: auto; display: flex; align-items: center; gap: .4rem; color: var(--green-deep); font-size: .72rem; font-weight: 800; }
.service-card-link svg { width: 16px; }
.service-banner { position: relative; min-height: 300px; margin-top: 14px; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--green-deep); color: #fff; border-radius: 18px; }
.service-banner > div { z-index: 2; padding: clamp(2.2rem, 5vw, 4.5rem); align-self: center; }
.service-banner h3 { max-width: 16ch; margin-bottom: 1.5rem; font-size: clamp(2rem, 3.2vw, 3.1rem); }
.service-banner > div > p { color: rgba(255,255,255,.75); }
.service-banner img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; object-position: center 38%; }
.service-banner small { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .6rem; border-radius: 6px; background: rgba(11,63,46,.92); color: #fff; font-size: .7rem; }

.home .process { width: min(calc(100% - 48px), var(--max)); margin: 100px auto 0; padding: clamp(3rem, 6vw, 5.5rem); display: block; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; }
.home .process-title { max-width: 620px; margin: 0 auto 2.5rem; text-align: center; }
.home .process-title h2 { max-width: none; }
.home .process-title p { color: var(--muted); }
.home .process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border: 0; }
.home .process li { min-height: 210px; padding: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .7rem; background: var(--green-pale); border: 0; border-radius: 13px; }
.home .process li::before { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green-action); color: #fff; font-family: "Manrope Local", sans-serif; font-size: .78rem; font-weight: 800; }
.home .process li strong { margin-top: .3rem; font-family: "Manrope Local", sans-serif; font-size: 1.05rem; line-height: 1.3; }
.home .process li span { color: var(--muted); font-size: .82rem; }

.home .coverage { width: min(calc(100% - 48px), var(--max)); min-height: 520px; margin: 100px auto 0; overflow: hidden; background: var(--green-deep); color: #fff; border-radius: 22px; }
.home .coverage > div:first-child { padding: clamp(3rem, 6vw, 5.5rem); }
.home .coverage h2 { max-width: 14ch; }
.home .coverage > div:first-child p { color: rgba(255,255,255,.72); }
.home .coverage-map { background: #0e4b37; }
.home .coverage .button-dark { background: #fff; color: var(--green-deep); }
.cta-band { width: min(calc(100% - 48px), var(--max)); margin: 24px auto 80px; border-radius: 18px; }
.home .cta-band { margin: 18px auto 100px; }

.page-hero { width: min(calc(100% - 48px), var(--max)); margin: 24px auto 0; padding: clamp(2.8rem, 4.5vw, 4.5rem) clamp(1.8rem, 4vw, 3.5rem); background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.page-hero > h1 { max-width: 26ch; }
.page-hero-visual { min-height: 590px; padding: 0; overflow: hidden; position: relative; background: var(--green-deep); }
.page-hero-visual > div { padding: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero-visual > img { object-position: center 40%; }
.service-hero { overflow: hidden; padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 0; }
.service-hero-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4.5rem); }
.service-hero-grid h1 { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.1; max-width: 100%; }
.service-visual { overflow: hidden; border-radius: 16px 16px 0 0; }
.service-photo-credit, .page-photo-credit { position: absolute; top: .8rem; right: .8rem; z-index: 2; max-width: 250px; padding: .55rem .7rem; border-radius: 6px; background: rgba(11,63,46,.93); color: #fff; font-size: .7rem; line-height: 1.4; }
.service-visual-placeholder { width: 100%; height: 100%; min-height: 530px; padding: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--green-pale); color: var(--green-deep); text-align: center; }
.service-visual-placeholder svg { width: 74px; height: 74px; padding: 1.1rem; border-radius: 18px; background: #fff; color: var(--green-action); box-shadow: var(--shadow-sm); }
.service-visual-placeholder strong { max-width: 20ch; font-size: 1.45rem; line-height: 1.2; }
.service-visual-placeholder span { max-width: 30ch; color: var(--muted); font-size: .78rem; }
.hero-trust { left: 1rem; bottom: 1rem; border-radius: 12px; background: var(--green-deep); }
.services-section, .detail-layout, .related, .town-grid, .content-note, .work-reference, .placeholder-gallery, .fact-band, .contact-layout, .legal-copy { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.services-section, .related, .content-note, .work-reference, .contact-layout { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.services-section .service-row { padding-inline: 1rem; }
.estimate-note, .contact-form { border-radius: 14px; }
.site-footer { margin-top: 80px; background: var(--green-deep); }
.brand-footer .brand-logo { border-radius: 0; background: transparent; }

/* Superficies de apoyo: jerarquía por espacio y profundidad, no por franjas de color. */
:root {
  --surface-shadow: 0 2px 5px rgba(16, 28, 19, .035), 0 14px 34px rgba(16, 28, 19, .075);
  --surface-shadow-hover: 0 4px 10px rgba(16, 28, 19, .045), 0 18px 42px rgba(16, 28, 19, .11);
  --surface-soft: #f8faf8;
}

.service-menu-panel { border-top: 0; border-radius: 14px; }
.hero-copy { border-top: 0; }

.estimate-note,
.content-note,
.contact-form {
  background: #fff;
  border: 0;
  border-top: 0;
  border-radius: 16px;
  box-shadow: var(--surface-shadow);
}

.estimate-note { padding: clamp(1.8rem, 3.25vw, 2.7rem); }
.estimate-note h2,
.content-note h2 { max-width: 13ch; margin-bottom: .8rem; font-size: clamp(1.9rem, 2.9vw, 2.7rem); line-height: .98; }
.estimate-note p,
.content-note p { color: var(--muted); }
.estimate-note a { margin-top: .4rem; color: var(--green-deep); }

.content-note { padding-top: clamp(2.1rem, 4vw, 3.5rem); padding-bottom: clamp(2.1rem, 4vw, 3.5rem); }

/* El formulario es la única superficie elevada de esta zona; evita una tarjeta dentro de otra. */
.contact-layout { background: transparent; border: 0; border-radius: 0; }
.contact-form { padding: clamp(1.6rem, 3.4vw, 3.25rem); }

.service-card { border: 0; box-shadow: 0 1px 3px rgba(16, 28, 19, .045), 0 8px 20px rgba(16, 28, 19, .045); }
.service-card:hover { border-color: transparent; box-shadow: var(--surface-shadow-hover); }

@media (max-width: 720px) {
  .estimate-note,
  .content-note,
  .contact-form { border-radius: 14px; }

  .contact-form { margin-inline: 0; padding: 1.35rem; box-shadow: var(--surface-shadow); }
}

@media (max-width: 1040px) {
  .home .hero { width: min(calc(100% - 32px), var(--max)); grid-template-columns: 1fr .88fr; grid-template-rows: 600px auto; }
  .home .hero-copy { padding: 2.5rem; }
  .home .hero-copy h1 { font-size: clamp(2.8rem, 5.4vw, 3.7rem); }
  .quality-section, .home .services-showcase, .home .process, .home .coverage, .home .cta-band { width: min(calc(100% - 32px), var(--max)); }
  .service-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .process ol { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { padding-bottom: 66px; }
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2.25rem; }
  .site-header { min-height: 68px; }
  .brand-logo { height: clamp(28px, 6.2vw, 34px); width: auto; max-width: min(185px, 52vw); }
  .main-menu { top: 68px; border-bottom-width: 5px; }
  .home main { padding-top: 12px; }
  .home .hero { width: calc(100% - 24px); grid-template-columns: 1fr; grid-template-rows: 200px auto auto; border-radius: 17px; }
  .home .hero-media { grid-area: 1 / 1; min-height: 200px; margin: 8px 8px 0; border-radius: 12px; }
  .home .hero-material { min-height: 200px; object-position: center 43%; }
  .home .hero-media figcaption { top: auto; right: .55rem; bottom: .55rem; max-width: 175px; font-size: .66rem; line-height: 1.35; }
  .hero-badge { left: .6rem; bottom: .6rem; min-width: 128px; padding: .7rem .8rem; border-radius: 9px; }
  .hero-badge strong { font-size: 1.18rem; }
  .hero-badge span { font-size: .62rem; }
  .home .hero-copy { grid-area: 2 / 1; width: auto; min-height: 0; margin: 0; padding: 1.8rem 1.4rem 2.1rem; border: 0; box-shadow: none; }
  .home .hero-copy h1 { max-width: 13ch; font-size: 2.35rem; line-height: 1.04; }
  .home .hero-copy > p:not(.hero-availability) { font-size: .9rem; }
  .home .hero-actions { align-items: stretch; gap: .65rem; margin-top: 1.35rem; }
  .home .hero-actions .button { width: 100%; }
  .home .hero-availability { margin-top: 1.15rem; }
  .home .hero .trust-strip { grid-area: 3 / 1; grid-template-columns: 1fr 1fr; }
  .home .trust-strip > div, .home .trust-strip > a { min-height: 94px; padding: .9rem; }
  .home .trust-strip strong { font-size: 1.05rem; }
  .home .trust-strip > a { grid-column: 1 / -1; min-height: 76px; font-size: 1.15rem; }
  .quality-section { width: calc(100% - 24px); margin-top: 56px; padding: 8px; grid-template-columns: 1fr; gap: 0; border-radius: 17px; }
  .quality-photo { min-height: 310px; border-radius: 12px; }
  .quality-copy { padding: 2.2rem 1.2rem 2.4rem; }
  .quality-points { margin-block: 1.5rem; }
  .home .services-showcase { width: calc(100% - 24px); margin-top: 64px; }
  .home .services-showcase .section-heading { margin-bottom: 1.7rem; }
  .service-card-grid { grid-template-columns: 1fr; gap: 9px; }
  .service-card { min-height: 0; padding: 1.25rem; display: grid; grid-template-columns: 44px 1fr; gap: .25rem 1rem; }
  .service-card-icon { grid-row: 1 / 4; margin: 0; }
  .service-card p { margin: .25rem 0 .5rem; }
  .service-card-link { grid-column: 2; }
  .service-banner { grid-template-columns: 1fr; }
  .service-banner > div { padding: 2.2rem 1.4rem; }
  .service-banner img { max-height: 260px; }
  .home .process { width: calc(100% - 24px); margin-top: 64px; padding: 2.5rem 1.25rem; border-radius: 17px; }
  .home .process ol { grid-template-columns: 1fr; }
  .home .process li { min-height: 0; }
  .home .coverage { width: calc(100% - 24px); min-height: 0; margin-top: 64px; border-radius: 17px; }
  .home .coverage > div:first-child { padding: 2.7rem 1.4rem; }
  .home .cta-band { width: calc(100% - 24px); margin: 12px auto 64px; border-radius: 15px; }
  .page-hero { width: calc(100% - 24px); margin-top: 12px; padding: 2.2rem 1.25rem; border-radius: 17px; }
  .page-hero-visual > img { min-height: 300px; }
  .service-visual { margin-inline: 0; border-radius: 12px 12px 0 0; }
  .service-photo-credit, .page-photo-credit { max-width: 205px; font-size: .68rem; }
  .service-visual-placeholder { min-height: 340px; padding: 2rem; }
  .services-section, .detail-layout, .related, .town-grid, .content-note, .work-reference, .placeholder-gallery, .fact-band, .contact-layout, .legal-copy { width: calc(100% - 24px); padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-footer { margin-top: 56px; }
}

/* Enriched Content Styles (Precios, Trabajos, Zonas, Empresa, Legal) */
.breadcrumb a { text-decoration: none; color: var(--muted); font-weight: 700; transition: color 150ms ease; }
.breadcrumb a:hover { color: var(--green-action); text-decoration: underline; }

.price-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease; }
.price-card:hover { transform: translateY(-4px); border-color: #a4c4a8; box-shadow: var(--surface-shadow-hover); }
.price-card-header { margin-bottom: 1rem; }
.price-card-header h3 { font-size: 1.35rem; margin-bottom: .4rem; line-height: 1.2; }
.price-card-header p { font-size: .88rem; color: var(--muted); margin: 0; }
.price-range-badge { display: inline-flex; align-items: baseline; gap: .4rem; margin: 1rem 0; padding: .65rem 1rem; background: var(--green-pale); border-radius: 10px; color: var(--green-deep); font-weight: 800; font-size: 1.1rem; }
.price-range-badge small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.price-card-features { margin: 0 0 1.5rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .84rem; color: var(--ink-soft); }
.price-card-features li { display: flex; align-items: center; gap: .6rem; }
.price-card-features svg { width: 16px; height: 16px; color: var(--green-action); flex-shrink: 0; }
.price-card-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 800; color: var(--green-deep); border-top: 1px solid var(--line); padding-top: .9rem; }

.price-table-wrap { overflow-x: auto; margin-top: 1.5rem; margin-bottom: 2rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.price-table th { background: var(--plaster); padding: .85rem 1.2rem; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); }
.price-table td { padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--paper); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--surface-shadow-hover); }
.project-header { padding: 1.6rem 1.6rem 1rem; border-bottom: 1px solid var(--line); }
.project-tag { display: inline-block; padding: .25rem .65rem; border-radius: 6px; background: var(--green-pale); color: var(--green-deep); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.project-header h3 { font-size: 1.28rem; margin: 0 0 .4rem; line-height: 1.25; }
.project-loc { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.project-body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; flex-grow: 1; }
.project-section-title { font-size: .75rem; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: .25rem; }
.project-body p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }
.project-meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1rem; background: var(--paper); border-radius: 10px; font-size: .78rem; }
.project-meta-list strong { display: block; color: var(--ink); font-size: .85rem; }
.project-meta-list span { color: var(--muted); }

.town-cluster { margin-top: 2.5rem; }
.town-cluster-title { font-size: 1.4rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green); display: flex; align-items: center; justify-content: space-between; }
.town-cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 2.5rem; }
.town-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; justify-content: space-between; transition: all 180ms ease; }
.town-card:hover { background: var(--green-pale); border-color: var(--green-action); transform: translateX(4px); }
.town-card strong { font-size: 1.05rem; }
.town-card svg { color: var(--green-action); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.value-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-pale); color: var(--green-action); display: grid; place-items: center; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.value-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.legal-copy { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(2rem, 5vw, 4.5rem); margin-top: 24px; box-shadow: var(--shadow-sm); }
.legal-copy h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 2.2rem; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.legal-copy h2:first-of-type { margin-top: 0; }
.legal-copy p, .legal-copy ul { font-size: .92rem; color: var(--ink-soft); line-height: 1.65; }
.legal-copy ul { padding-left: 1.25rem; }
.legal-copy li { margin-bottom: .4rem; }

/* ========================================================
   BEFORE & AFTER (ANTES Y DESPUÉS) INTERACTIVE SLIDER
   ======================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2.5rem; align-items: center; }
.filter-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-size: .84rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: all 180ms ease; }
.filter-btn:hover { border-color: var(--green-action); color: var(--green-deep); background: var(--green-pale); }
.filter-btn.active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

.ba-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
  margin-top: 2rem; 
  width: 100%; 
}
@media (min-width: 600px) {
  .ba-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
  }
}
@media (min-width: 960px) {
  .ba-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
  }
}

.ba-card { 
  background: #fff; 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  display: flex; 
  flex-direction: column; 
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease; 
  width: 100%; 
  aspect-ratio: 4 / 5;
  margin: 0; 
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--surface-shadow-hover); }

/* Slider takes 50% of card height */
.ba-card .ba-slider { 
  position: relative; 
  width: 100%; 
  height: 50%; 
  flex-shrink: 0;
  overflow: hidden; 
  background: #111a13; 
  user-select: none; 
  -webkit-user-select: none; 
  cursor: ew-resize; 
}
.ba-card .ba-slider .ba-img-after { 
  position: absolute; 
  inset: 0; 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  pointer-events: none; 
  z-index: 0; 
}
.ba-card .ba-slider .ba-img-before { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  pointer-events: none; 
  z-index: 1; 
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); 
  will-change: clip-path; 
}

/* Detail page slider keeps full natural height */
.project-detail-section .ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  max-height: 600px;
}
.project-detail-section .ba-slider .ba-img-after {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}
.project-detail-section .ba-slider .ba-img-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; z-index: 3; transform: translateX(-50%); box-shadow: 0 0 8px rgba(0,0,0,0.6); pointer-events: none; }
.ba-handle-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green-deep); box-shadow: 0 3px 12px rgba(0,0,0,0.3); display: grid; place-items: center; font-size: .75rem; border: 2px solid var(--green-action); }
.ba-handle-btn svg { width: 16px; height: 16px; color: var(--green-deep); }

.ba-badge { position: absolute; top: 10px; padding: .25rem .55rem; border-radius: 5px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; z-index: 4; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ba-badge-before { left: 10px; background: rgba(23, 32, 25, 0.85); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.ba-badge-after { right: 10px; background: rgba(20, 120, 36, 0.9); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 5; }

/* Tightly adjusted content container */
.ba-content { 
  padding: .75rem .95rem .85rem; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  flex-grow: 1; 
  min-height: 0;
  gap: .25rem;
}
.ba-meta { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: .3rem; 
}
.ba-meta .project-tag { 
  font-size: .62rem; 
  padding: .15rem .45rem; 
  border-radius: 999px; 
  font-weight: 800; 
  text-transform: uppercase; 
}
.ba-meta .project-loc { 
  font-size: .68rem; 
  color: var(--muted);
  display: inline-flex; 
  align-items: center; 
  gap: .2rem; 
}
.ba-title { 
  font-size: .92rem; 
  line-height: 1.22; 
  margin: .1rem 0 .15rem; 
  color: var(--ink); 
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ba-summary { 
  font-size: .76rem; 
  color: var(--ink-soft); 
  line-height: 1.35; 
  margin: 0; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ba-actions { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: .4rem; 
  margin-top: auto; 
  border-top: 1px solid var(--line); 
  padding-top: .55rem; 
}
.ba-actions .button { 
  font-size: .72rem; 
  padding: .42rem .75rem; 
  border-radius: 7px; 
}
.ba-actions .text-link {
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

/* ========================================================
   WORDPRESS-STYLE PROJECT MANAGER (ADMIN / GESTOR)
   ======================================================== */
.admin-shell { max-width: 1100px; margin: 2rem auto 5rem; padding: 0 1.5rem; }
.admin-header-card { background: linear-gradient(135deg, var(--green-deep), #062b1f); color: #fff; border-radius: 20px; padding: 2.2rem clamp(1.5rem, 4vw, 3rem); margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.admin-header-card h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .5rem; }
.admin-header-card p { color: rgba(255,255,255,0.85); margin: 0; font-size: .95rem; }
.admin-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; gap: .4rem; }

.admin-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .site-header { min-height: 64px; }
  .brand-logo { height: 26px; max-width: 155px; }
  .menu-toggle { padding: .42rem .55rem; font-size: .8rem; }
}

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-sm); }
.admin-card h2 { font-size: 1.35rem; margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }

.admin-form-group { margin-bottom: 1.2rem; }
.admin-form-group label { display: block; font-size: .84rem; font-weight: 800; color: var(--ink); margin-bottom: .4rem; }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { width: 100%; padding: .75rem .95rem; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .9rem; background: var(--paper); color: var(--ink); transition: border-color 150ms ease, background 150ms ease; box-sizing: border-box; }
.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus { outline: none; border-color: var(--green-action); background: #fff; box-shadow: 0 0 0 3px var(--green-pale); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.upload-zone { border: 2px dashed #b7c7b8; border-radius: 14px; padding: 1.2rem; text-align: center; background: #fafcfa; cursor: pointer; transition: all 180ms ease; position: relative; }
.upload-zone:hover { border-color: var(--green-action); background: var(--green-pale); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone svg { width: 32px; height: 32px; color: var(--green-action); margin-bottom: .4rem; }
.upload-zone strong { display: block; font-size: .85rem; color: var(--ink); }
.upload-zone small { font-size: .75rem; color: var(--muted); }
.upload-preview { margin-top: .8rem; border-radius: 10px; overflow: hidden; max-height: 140px; border: 1px solid var(--line); display: none; }
.upload-preview img { width: 100%; height: 140px; object-fit: cover; display: block; }

.admin-project-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.admin-project-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.admin-project-item-header h4 { margin: 0; font-size: 1.05rem; }
.admin-btn-group { display: flex; gap: .5rem; }
.admin-btn-sm { padding: .35rem .75rem; border-radius: 6px; font-size: .75rem; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .3rem; }
.admin-btn-sm:hover { background: var(--plaster); }
.admin-btn-sm.danger { color: #b91c1c; border-color: #fecaca; }
.admin-btn-sm.danger:hover { background: #fee2e2; }

.export-box { background: #1a241c; color: #d4e5d6; padding: 1.2rem; border-radius: 12px; font-family: monospace; font-size: .8rem; max-height: 180px; overflow: auto; margin-top: 1rem; }

/* Contact Form Success State */
.form-success-card { background: #fff; border: 2px solid rgba(20, 120, 36, 0.25); border-radius: 16px; padding: 2.2rem 1.8rem; text-align: center; box-shadow: 0 10px 30px rgba(20, 120, 36, 0.08); animation: fadeIn 300ms ease; }
.form-success-icon { width: 68px; height: 68px; background: var(--green-pale); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success-icon svg { width: 36px; height: 36px; color: var(--green-action); }

/* Leads Management Table (Admin) */
.leads-table-wrap { overflow-x: auto; margin-top: 1rem; }
.leads-table { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
.leads-table th { background: var(--plaster); padding: .75rem 1rem; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.leads-table tr:hover td { background: var(--paper); }
.lead-status-badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.lead-status-nuevo { background: #e0f2fe; color: #0369a1; }
.lead-status-contactado { background: #fef3c7; color: #b45309; }
.lead-status-presupuestado { background: #dcfce7; color: #15803d; }
.lead-status-cerrado { background: #f3f4f6; color: #4b5563; }

/* ========================================================
   ADMIN LOGIN & RECOVERY GATE (MODERN DESIGN)
   ======================================================== */
.admin-login-screen {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  background: radial-gradient(circle at 50% 15%, rgba(20, 120, 36, 0.08) 0%, rgba(244, 243, 238, 0.95) 55%, #e9efe9 100%);
  position: relative;
  box-sizing: border-box;
}
.admin-login-screen::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 120, 36, 0.12) 0%, rgba(20, 120, 36, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}
.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(20, 120, 36, 0.15);
  border-radius: 24px;
  padding: 2.8rem 2.2rem 2.2rem;
  box-shadow: 0 20px 45px -10px rgba(10, 35, 18, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  text-align: center;
}
.admin-login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.4rem;
}
.admin-login-logo {
  height: 38px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.admin-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: var(--green-pale);
  border: 1px solid rgba(20, 120, 36, 0.2);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .8rem;
}
.admin-auth-title {
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 .4rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.admin-auth-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 1.6rem;
  line-height: 1.5;
}
.admin-input-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.admin-input-group label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .45rem;
}
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: .95rem;
  color: #7b887d;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.input-icon-wrap input {
  width: 100%;
  padding: .85rem 2.8rem .85rem 2.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .95rem;
  background: var(--paper);
  color: var(--ink);
  transition: all 180ms ease;
  box-sizing: border-box;
}
.input-icon-wrap input:focus {
  outline: none;
  border-color: var(--green-action);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--green-pale);
}
.btn-toggle-pass {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  color: #7b887d;
  cursor: pointer;
  padding: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 150ms ease;
}
.btn-toggle-pass:hover {
  color: var(--ink);
}
.admin-submit-btn, .admin-login-btn {
  width: 100%;
  padding: .95rem 1.25rem;
  background: linear-gradient(135deg, #189830 0%, #106820 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: .96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-shadow: 0 4px 14px rgba(20, 120, 36, 0.35);
  transition: all 180ms ease;
  margin-top: .6rem;
}
.admin-submit-btn:hover, .admin-login-btn:hover {
  background: linear-gradient(135deg, #1ca735 0%, #127524 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 120, 36, 0.42);
}
.admin-submit-btn:active, .admin-login-btn:active {
  transform: translateY(0);
}
.admin-submit-btn:disabled, .admin-login-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.admin-auth-footer-link {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.btn-text-link {
  background: none;
  border: none;
  color: var(--green-action);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .5rem;
  border-radius: 6px;
  transition: all 150ms ease;
}
.btn-text-link:hover {
  color: var(--green-deep);
  text-decoration: underline;
}
.admin-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.45;
  display: none;
}
.admin-login-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.5;
}
.admin-card-trust-badge {
  margin-top: 1.6rem;
  font-size: .76rem;
  color: #8c978e;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
}
.admin-user-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.admin-user-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.admin-btn-logout {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all 150ms ease;
}
.admin-btn-logout:hover {
  background: #b91c1c;
  border-color: #ef4444;
}

/* ========================================================
   AI PROJECT ASSISTANT (GOOGLE GEMINI)
   ======================================================== */
.ai-assistant-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f4fbf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
}
.ai-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.ai-assistant-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: #065f46;
}
.ai-sparkle {
  font-size: 1.25rem;
  animation: pulseSparkle 2s infinite ease-in-out;
}
@keyframes pulseSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(12deg); }
}
.ai-badge {
  background: #10b981;
  color: #ffffff;
  font-size: .68rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 999px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ai-key-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all 150ms ease;
}
.ai-key-btn:hover {
  background: #ffffff;
  border-color: #059669;
}
.ai-input-wrap {
  display: flex;
  gap: .6rem;
  align-items: center;
}
@media (max-width: 640px) {
  .ai-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }
}
.ai-input-wrap input {
  flex: 1;
  padding: .8rem 1rem;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  font-size: .92rem;
  background: #ffffff;
  color: var(--ink);
  transition: all 180ms ease;
  box-sizing: border-box;
}
.ai-input-wrap input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.ai-generate-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: .8rem 1.3rem;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 180ms ease;
}
.ai-generate-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.32);
}
.ai-generate-btn:active {
  transform: translateY(0);
}
.ai-generate-btn:disabled {
  opacity: .75;
  cursor: wait;
}
.ai-key-drawer {
  margin-top: .9rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  text-align: left;
}
.ai-key-drawer label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: .4rem;
}
.ai-status-banner {
  margin-top: .8rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ai-status-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.ai-status-loading {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.ai-status-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.field-highlight-pulse {
  animation: fieldPulse 1.2s ease-in-out;
}
@keyframes fieldPulse {
  0% { background-color: #ecfdf5; box-shadow: 0 0 0 3px #a7f3d0; }
  100% { background-color: var(--paper); box-shadow: none; }
}


