/* ============================================================
   Veranda Bouwer — global styles
   Warm & approachable · deep red #A31621 + dark navy #16243A
   ============================================================ */

:root {
  /* Brand — overridable by Tweaks via JS-set custom props */
  --navy:      #16243A;
  --navy-800:  #1E3050;
  --navy-900:  #0E1828;
  --red:       #A31621;
  --red-600:   #BC1C2B;
  --red-700:   #82111B;

  /* Warm neutrals */
  --cream:     #FAF7F2;
  --cream-2:   #F3EDE3;
  --surface:   #FFFFFF;
  --ink:       #1B2231;
  --muted:     #5C6573;
  --line:      #E7E0D5;
  --line-soft: #F0EBE2;

  /* Type */
  --font-head: "Schibsted Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Geometry */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow:    0 14px 40px -18px rgba(14,24,40,.30);
  --shadow-lg: 0 40px 80px -32px rgba(14,24,40,.42);
  --maxw:      1200px;
  --nav-h:     74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(60px, 8vw, 116px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.h2 { font-size: clamp(30px, 4vw, 46px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .005em;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,242,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(14,24,40,.4); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--navy); background: rgba(22,36,58,.05); }
.nav-link.active { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Logo wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-footer { background: #fff; padding: 11px 16px; border-radius: 12px; }
.logo-footer .logo-img { height: 34px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 11px; position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.logo-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: var(--red);
}
.logo-mark span {
  position: relative; z-index: 2; color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 18px; letter-spacing: -.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: -.02em; }
.logo-text small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; overflow: hidden; margin: 16px 16px 0; border-radius: var(--radius-lg); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg image-slot { width: 100%; height: 100%; --slot-radius: 0; }
.hero-bg .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(14,24,40,.86) 0%, rgba(14,24,40,.55) 46%, rgba(14,24,40,.18) 100%),
    linear-gradient(0deg, rgba(14,24,40,.5), rgba(14,24,40,0) 40%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 70px); max-width: 14ch; }
.hero .tagline { color: rgba(255,255,255,.86); font-size: clamp(17px, 1.8vw, 21px); max-width: 52ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; }
.hero-badge { display: flex; align-items: center; gap: 11px; color: #fff; }
.hero-badge b { font-family: var(--font-head); font-size: 26px; display: block; line-height: 1; }
.hero-badge small { color: rgba(255,255,255,.72); font-size: 13px; }
.hero-badge .ic { color: var(--red); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{ opacity:.3; transform: scaleY(.6);} 50%{ opacity:1; transform: scaleY(1);} }

/* ---------- Hero stat cards (overlap) ---------- */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 6; margin-top: -74px; }
.stat-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 30px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-card b { font-family: var(--font-head); font-weight: 700; font-size: 42px; line-height: 1; color: var(--red); display: block; }
.stat-card h4 { font-size: 18px; color: var(--navy); margin: 10px 0 8px; }
.stat-card p { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media image-slot { width: 100%; height: 100%; min-height: 440px; }
.about-media .badge-card {
  position: absolute; right: -22px; bottom: -22px; background: #fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; border: 1px solid var(--line-soft);
}
.about-media .badge-card .big { font-family: var(--font-head); font-size: 34px; color: var(--red); line-height: 1; }
.about-media .badge-card small { color: var(--muted); font-size: 13px; max-width: 13ch; display: block; }
.stat-row { display: flex; gap: 38px; margin-top: 34px; flex-wrap: wrap; }
.stat b { font-family: var(--font-head); font-size: 34px; color: var(--navy); display: block; line-height: 1; }
.stat small { color: var(--muted); font-size: 13.5px; }
.about-list { display: grid; gap: 14px; margin-top: 28px; }
.about-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about-list .tick { flex: none; width: 22px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--red) 12%, white); color: var(--red); display: grid; place-items: center; margin-top: 2px; }

/* ---------- Feature cards ---------- */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.feature-card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; background: #fff; }
.feature-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: #fff; margin-bottom: 20px; transition: background .3s ease;
}
.feature-card:hover .feature-ic { background: var(--red); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }
.feature-card .num { font-family: var(--font-head); font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: .1em; }

/* ---------- Why choose us (image + checklist) ---------- */
.why-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.why-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); align-self: stretch; min-height: 520px; }
.why-media image-slot { width: 100%; height: 100%; min-height: 520px; }
.why-content .h2 { max-width: 16ch; }
.why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: flex-start; }
.why-check { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: 2px; transition: background .25s ease, transform .25s ease; }
.why-item:hover .why-check { background: var(--red); transform: scale(1.06); }
.why-item h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 14.5px; max-width: 48ch; }

/* ---------- Projects teaser & gallery ---------- */
.teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.proj-grid.teaser { grid-template-columns: 1.4fr 1fr 1fr; }
.proj-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy);
  box-shadow: var(--shadow-sm); cursor: pointer; min-height: 300px;
  transition: transform .3s ease, box-shadow .35s ease;
}
.proj-card.tall { grid-row: span 2; min-height: 100%; }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proj-card image-slot { width: 100%; height: 100%; min-height: 300px; --slot-radius: 0; }
.proj-card .proj-img { position: absolute; inset: 0; }
.proj-card .proj-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,18,30,.9) 0%, rgba(10,18,30,.25) 45%, rgba(10,18,30,0) 70%);
  transition: opacity .35s ease;
}
.proj-card:hover .proj-img::after { opacity: .8; }
.proj-card .proj-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px; transition: transform .35s ease; }
.proj-tag { display: inline-block; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.proj-card h3 { color: #fff; font-size: 22px; }
.proj-card .proj-desc { color: rgba(255,255,255,.82); font-size: 14px; margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin .3s ease; }
.proj-card:hover .proj-desc { max-height: 80px; opacity: 1; }
.proj-card .proj-plus { position: absolute; top: 20px; right: 20px; z-index: 3; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.7) rotate(-30deg); transition: all .35s cubic-bezier(.2,.8,.2,1); }
.proj-card:hover .proj-plus { opacity: 1; transform: scale(1) rotate(0); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.chip {
  font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 999px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--line);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .count { opacity: .55; margin-left: 7px; font-size: 12.5px; }

/* Lightbox */
.lb-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,24,.88); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 28px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-card { width: min(960px, 94vw); background: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-img { width: 100%; aspect-ratio: 16/10; }
.lb-img image-slot { width: 100%; height: 100%; --slot-radius: 0; }
.lb-body { padding: 24px 30px 30px; }
.lb-body .proj-tag { margin-bottom: 12px; }
.lb-body h3 { color: #fff; font-size: 26px; }
.lb-body p { color: rgba(255,255,255,.74); margin-top: 10px; font-size: 15px; }
.lb-close { position: absolute; top: 22px; right: 24px; width: 48px; height: 48px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; transition: all .2s ease; }
.lb-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; transition: all .2s ease; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 999px; background: radial-gradient(circle, color-mix(in srgb, var(--red) 55%, transparent), transparent 62%); }
.cta-band::after { content: ""; position: absolute; left: -90px; bottom: -160px; width: 380px; height: 380px; border-radius: 999px; border: 60px solid rgba(255,255,255,.04); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: clamp(48px, 6vw, 78px); padding-bottom: clamp(48px, 6vw, 78px); }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); max-width: 18ch; }
.cta-inner p { color: rgba(255,255,255,.78); margin-top: 14px; max-width: 44ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: clamp(70px,9vw,120px) 0 clamp(56px,7vw,88px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 380px at 78% -10%, color-mix(in srgb, var(--red) 30%, transparent), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); max-width: 16ch; }
.page-hero p { color: rgba(255,255,255,.8); font-size: clamp(16px,1.6vw,19px); max-width: 56ch; margin-top: 18px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
.field select.is-placeholder { color: var(--muted); }
.field-group-label { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 10%, transparent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); background: color-mix(in srgb, var(--red) 5%, white); }
.field .err { color: var(--red); font-size: 13px; margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .check { width: 72px; height: 72px; border-radius: 999px; background: color-mix(in srgb, var(--red) 12%, white); color: var(--red); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; }

.info-stack { display: grid; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: flex-start; transition: transform .2s ease, box-shadow .25s ease; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card .ic-wrap { flex: none; width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.info-card h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.info-card a, .info-card p { color: var(--muted); font-size: 15px; }
.info-card a:hover { color: var(--red); }
.hours-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 28px; }
.hours-card h4 { color: #fff; font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hours-card .ic { color: color-mix(in srgb, var(--red) 100%, white 18%); }
.hours-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14.5px; }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: rgba(255,255,255,.75); }
.hours-row.closed span:last-child { color: rgba(255,255,255,.5); }

.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 44px; }
.map-ph { aspect-ratio: 21/7; min-height: 280px; position: relative; background:
  repeating-linear-gradient(0deg, #EAF0F2 0, #EAF0F2 1px, transparent 1px, transparent 44px),
  repeating-linear-gradient(90deg, #EAF0F2 0, #EAF0F2 1px, transparent 1px, transparent 44px),
  linear-gradient(135deg, #DDE6E9, #EEF3F2);
}
.map-ph .road { position: absolute; background: #fff; }
.map-ph .r1 { left: 0; right: 0; top: 46%; height: 16px; transform: rotate(-3deg); }
.map-ph .r2 { top: 0; bottom: 0; left: 38%; width: 13px; }
.map-ph .r3 { left: 0; right: 0; bottom: 22%; height: 9px; transform: rotate(2deg); background: #F4F1EA; }
.map-pin { position: absolute; left: 42%; top: 40%; transform: translate(-50%,-100%); z-index: 3; display: flex; flex-direction: column; align-items: center; }
.map-pin .dot { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); box-shadow: 0 8px 16px -4px rgba(130,17,27,.6); border: 3px solid #fff; }
.map-pin .pulse { position: absolute; width: 26px; height: 26px; border-radius: 999px; background: var(--red); opacity: .35; animation: ping 2s ease-out infinite; }
@keyframes ping { 0%{ transform: scale(1); opacity:.4;} 100%{ transform: scale(3.4); opacity:0;} }
.map-card { position: absolute; left: 24px; bottom: 24px; z-index: 4; background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.map-card .ic-wrap { width: 42px; height: 42px; border-radius: 11px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.map-card b { color: var(--navy); font-size: 15px; display: block; }
.map-card small { color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: clamp(56px,6vw,80px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.35fr; gap: 40px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text small { color: rgba(255,255,255,.5); }
.footer-about { margin-top: 20px; font-size: 14.5px; max-width: 34ch; line-height: 1.7; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: 15px; letter-spacing: .02em; margin: 0 0 18px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.66); font-size: 14.5px; padding: 6px 0; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-contact .row { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.footer-contact .row a, .footer-contact .row > span { white-space: nowrap; }
.footer-contact .row .ic { display: inline-flex; align-items: center; justify-content: center; height: 1.6em; width: 17px; color: var(--red); flex: none; filter: brightness(1.6); }
.footer-contact .row:nth-of-type(1) .ic,
.footer-contact .row:nth-of-type(2) .ic { margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: all .25s ease; }
.social:hover { background: var(--red); color: #fff; transform: translateY(-3px); border-color: var(--red); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1), filter .8s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* Scroll progress + parallax */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.hero-img { will-change: transform; }

/* Per-card stagger for galleries revealing together */
.proj-grid .reveal:nth-child(2) { transition-delay: .08s; }
.proj-grid .reveal:nth-child(3) { transition-delay: .16s; }
.proj-grid .reveal:nth-child(3n+1) { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 40px; }
}
@media (max-width: 920px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    display: block; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 55;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 14px 28px 24px;
    transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { display: block; padding: 15px 6px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line-soft); color: var(--navy); }
  .mobile-menu a.active { color: var(--red); }
  .mobile-menu .btn { display: flex; width: 100%; margin-top: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media .badge-card { right: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-media { min-height: 360px; }
  .why-media image-slot { min-height: 360px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 24px; gap: 16px; }
  .proj-grid, .proj-grid.teaser { grid-template-columns: repeat(2, 1fr); }
  .proj-card.tall { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-ph { aspect-ratio: 16/10; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { margin: 10px 10px 0; }
  .feature-grid, .proj-grid, .proj-grid.teaser { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .logo-img { height: 30px; }
  .logo-text small { display: none; }
}
