:root {
  --brand-primary: #123c69;
  --brand-primary-dark: #0b2747;
  --brand-accent: #f3a712;
  --surface: #f5f7fb;
  --surface-2: #eef2f7;
  --text: #132033;
  --muted: #64748b;
  --white: #ffffff;
  --line: #dfe5ee;
  --success: #147a55;
  --warning: #9a6500;
  --danger: #b42318;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 35, 62, .10);
  --shadow-sm: 0 8px 24px rgba(15, 35, 62, .08);
  --container: 1180px;
  --section: clamp(4rem, 8vw, 7rem);
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 70%, white); outline-offset: 3px; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 780px); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section--soft { background: var(--surface); }
.section--dark { background: var(--brand-primary-dark); color: var(--white); }
.section--compact { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  color: var(--brand-primary);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section--dark .eyebrow { color: color-mix(in srgb, var(--brand-accent) 85%, white); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }

h1, h2, h3 { margin: 0 0 .85rem; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); max-width: 14ch; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); max-width: 18ch; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
p { margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); max-width: 64ch; }
.section--dark .lead { color: rgba(255,255,255,.74); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: white; background: var(--brand-primary); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 26%, transparent); }
.btn--primary:hover { background: var(--brand-primary-dark); }
.btn--accent { color: #1b2430; background: var(--brand-accent); }
.btn--ghost { border-color: var(--line); background: white; }
.btn--ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--light { background: white; color: var(--brand-primary-dark); }
.btn--link { min-height: auto; padding: .2rem 0; border-radius: 0; color: var(--brand-primary); }
.btn--link:hover { transform: none; text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 9%, white);
  color: var(--brand-primary-dark);
  font-size: .85rem;
  font-weight: 800;
}
.badge-dot { width: .48rem; height: .48rem; border-radius: 50%; background: var(--brand-accent); }

.skip-link { position: fixed; left: 1rem; top: -60px; z-index: 9999; padding: .75rem 1rem; background: var(--brand-primary-dark); color: white; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(15,35,62,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-copy { line-height: 1.15; }
.brand-name { display: block; font-weight: 900; letter-spacing: -.025em; }
.brand-sub { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: #344256; font-size: .93rem; font-weight: 750; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-primary); }
.nav .btn { color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); transition: .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 30%),
    linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--surface) 80%, white) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy .lead { margin-top: 1.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.4rem; color: var(--muted); font-size: .92rem; font-weight: 700; }
.hero-meta span::before { content: '✓'; margin-right: .4rem; color: var(--brand-primary); font-weight: 900; }
.hero-visual { position: relative; min-height: 450px; }
.hero-photo {
  position: absolute; inset: 0 0 32px 42px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 76%, black), var(--brand-primary-dark));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.24), transparent 32%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.hero-card { position: absolute; left: 0; bottom: 0; z-index: 2; width: min(330px, 88%); padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; }
.hero-card p { margin: 0; color: var(--muted); font-size: .92rem; }

html[data-site-mode="emergency"] .hero { background: linear-gradient(155deg, #fff 0%, color-mix(in srgb, var(--brand-accent) 8%, white) 100%); }
html[data-site-mode="emergency"] .hero h1 { max-width: 12ch; }
html[data-site-mode="project"] .hero-photo { inset: 18px 0 10px 36px; }
html[data-site-mode="general"] .hero { background: linear-gradient(145deg, #fff, var(--surface)); }

.trust-strip { border-block: 1px solid var(--line); background: white; }
.trust-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: center; }
.trust-item { display: flex; align-items: center; gap: .75rem; color: #3c4a5f; font-size: .9rem; font-weight: 800; }
.trust-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: color-mix(in srgb, var(--brand-primary) 9%, white); color: var(--brand-primary); font-size: 1rem; }

.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.3rem; }
.section-head > div:first-child { flex: 1; }
.section-head .lead { max-width: 52ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 14px; background: color-mix(in srgb, var(--brand-primary) 9%, white); color: var(--brand-primary); font-weight: 900; }
.card p:last-child { margin-bottom: 0; }

.service-card { position: relative; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; justify-content: end; padding: 1.5rem; border-radius: var(--radius); color: white; background: linear-gradient(150deg, var(--brand-primary), var(--brand-primary-dark)); box-shadow: var(--shadow-sm); }
.service-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 5%, rgba(255,255,255,.2), transparent 30%); }
.service-card > * { position: relative; z-index: 1; }
.service-card p { color: rgba(255,255,255,.76); }
.service-card .btn--link { color: white; }

.process { counter-reset: step; }
.process-card { position: relative; padding-top: 4.1rem; }
.process-card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1.2rem; left: 1.5rem; color: var(--brand-primary); font-size: .82rem; font-weight: 900; letter-spacing: .12em; }

.project-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 240px; gap: 1rem; }
.project-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark)); }
.project-tile:first-child { grid-row: span 2; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .35s ease; }
.project-tile:hover img { transform: scale(1.035); }
.project-label { position: absolute; left: 1rem; bottom: 1rem; padding: .48rem .7rem; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .82rem; font-weight: 850; }

.review { display: flex; flex-direction: column; min-height: 270px; }
.review-stars { color: #d99000; letter-spacing: .12em; font-size: .95rem; }
.review blockquote { margin: 1rem 0; font-size: 1.05rem; }
.review footer { margin-top: auto; color: var(--muted); font-size: .88rem; font-weight: 700; }

.area-list { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.area-pill { padding: .58rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: #415168; font-size: .9rem; font-weight: 750; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border: 0; background: none; color: var(--text); text-align: left; font-weight: 850; }
.faq-question span:last-child { color: var(--brand-primary); transition: transform .2s ease; }
.faq-item.is-open .faq-question span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.25rem; color: var(--muted); }

.cta-band { display: grid; grid-template-columns: 1.2fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 4vw, 3.3rem); border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); color: white; box-shadow: var(--shadow); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.74); max-width: 58ch; }
.cta-band .button-row { margin: 0; justify-content: flex-end; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: start; }
.contact-item-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--brand-primary) 9%, white); color: var(--brand-primary); font-weight: 900; }

.form-card { padding: clamp(1.3rem, 4vw, 2.1rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .42rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: #344256; font-size: .86rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cdd6e3; border-radius: 12px; background: #fff; padding: .82rem .9rem; color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-primary); outline: 3px solid color-mix(in srgb, var(--brand-primary) 10%, transparent); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.5rem; margin-top: .8rem; font-size: .9rem; font-weight: 700; }
.form-status.is-success { color: var(--success); }
.form-status.is-warning { color: var(--warning); }
.form-status.is-error { color: var(--danger); }

.page-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(145deg, white, var(--surface)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.breadcrumbs { margin-bottom: 1.2rem; color: var(--muted); font-size: .86rem; font-weight: 750; }
.breadcrumbs a { color: var(--brand-primary); }
.content-prose { font-size: 1.04rem; }
.content-prose h2 { margin-top: 2.3rem; }
.content-prose h3 { margin-top: 1.8rem; }
.content-prose ul { padding-left: 1.2rem; }
.content-prose li + li { margin-top: .45rem; }

.site-footer { padding: 4rem 0 6.5rem; background: #0b1728; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: rgba(255,255,255,.62); max-width: 36ch; }
.footer-title { margin-bottom: .8rem; color: rgba(255,255,255,.95); font-size: .86rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: .55rem; color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: .82rem; }

.mobile-actions { display: none; }

@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); padding: 1rem 0; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-tile:first-child { grid-row: auto; grid-column: span 2; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .button-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  body { padding-bottom: 68px; }
  .brand-sub { display: none; }
  .brand img { width: 42px; height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: white;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .nav.is-open { max-height: calc(100dvh - var(--header-height)); opacity: 1; visibility: visible; overflow: auto; }
  .nav a { padding: 1rem; border-top: 1px solid var(--line); }
  .nav .btn { margin: 1rem; border: 0; }
  .hero { padding-top: 3.2rem; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-visual { min-height: 340px; }
  .hero-photo { inset: 0 0 24px 20px; }
  .hero-card { padding: 1rem; }
  .section-head { display: block; }
  .section-head .button-row { margin-top: 1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .project-tile:first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: .4rem; }

  .mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 68px;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(15,35,62,.08);
  }
  .mobile-action { display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 900; }
  .mobile-action--call { color: white; background: var(--brand-primary); }
  .mobile-action--wa { color: #0a4028; background: #d9f8e8; }
}

@media (max-width: 520px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--container)); }
  .grid-4, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 310px; }
  .hero-photo { inset: 0 0 28px 8px; }
  .hero-card { left: 8px; }
}

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