/* ImmoConsult Freiburg GmbH – styles */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #14263a;
  --ink-2: #22374d;
  --text: #24313e;
  --muted: #5a6774;
  --line: #e2ded6;
  --line-strong: #cfc9bd;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --blue: #2c679f;
  --blue-strong: #1f5283;
  --blue-soft: #e7eff7;
  --sky: #8db6dd;
  --sand: #b98a4b;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 58, .06), 0 2px 8px rgba(20, 38, 58, .05);
  --shadow: 0 2px 4px rgba(20, 38, 58, .05), 0 12px 32px rgba(20, 38, 58, .09);
  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .25em 0; }
li::marker { color: var(--blue); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 1rem;
}

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-strong); color: #fff; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--blue-soft); color: var(--ink); }
.button-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.button-ghost-light:hover { color: #fff; border-color: #fff; }
.button-sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .95rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 38, 58, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-name span { color: var(--muted); font-weight: 700; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .06em; margin-top: .2rem; }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a:not(.button) {
  position: relative; padding: .55rem .8rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 650; font-size: .98rem;
  color: var(--ink-2); text-decoration: none;
}
.site-nav a:not(.button):hover { color: var(--blue); background: var(--blue-soft); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
  height: 2px; background: currentColor; border-radius: 2px;
}
.site-nav .button { margin-left: .6rem; }

.header-actions { display: none; align-items: center; gap: .4rem; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-button:hover { color: var(--blue); border-color: var(--line-strong); }
.icon-button svg { width: 21px; height: 21px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-actions { display: inline-flex; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem var(--gutter) 1.5rem; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 38, 58, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.button) { padding: .85rem .9rem; font-size: 1.08rem; border-radius: var(--radius-sm); }
  .site-nav a[aria-current="page"] { background: var(--blue-soft); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .button { margin: .6rem 0 0; }
  /* without JavaScript the navigation simply stays visible */
  .no-js .site-nav { position: static; transform: none; opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0 0 .8rem; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.section-paper { background: var(--paper); }
/* a white section directly after another white one: the previous one already spaces it */
.section-flush-top { padding-top: 0; }
.section-ink { background: var(--ink); color: #d7e1ec; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 720px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3.5rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-media { position: relative; isolation: isolate; }
/* paper-coloured frame offset behind the photo */
.hero-media::before {
  content: ""; position: absolute; inset: 2.5rem -1.5rem -1.5rem 2.5rem; z-index: -1;
  background: var(--paper); border-radius: 32px;
}
.hero-media picture img {
  width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: clamp(-2rem, -2vw, -1rem); bottom: 2rem;
  display: flex; align-items: center; gap: .9rem; max-width: 300px;
  padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: .95rem; line-height: 1.35; color: var(--ink-2);
}
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); line-height: 1; margin-bottom: .2rem; }
.hero-badge-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.hero-badge-icon svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .hero-media::before { inset: 1.5rem -.75rem -.75rem 1.5rem; border-radius: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-bottom: 1.75rem; }
  .hero-media picture img { aspect-ratio: 4 / 3; border-radius: 22px; }
  .hero-badge { left: 1rem; bottom: -1.75rem; padding: .75rem 1rem; gap: .75rem; font-size: .88rem; }
  .hero-badge strong { font-size: 1.3rem; }
  .hero-badge-icon { width: 38px; height: 38px; }
}

/* ---------- Pillars (Kosten, Termine, Finanzierung) ---------- */
.intro-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar {
  padding: 1.4rem 1.2rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-align: left;
}
.pillar-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: .9rem; }
.pillar-icon svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
@media (max-width: 900px) {
  .intro-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: flex; gap: 1rem; align-items: center; }
  .pillar-icon { margin: 0; flex: none; }
}

/* ---------- Fields of activity ---------- */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.field-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.field-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.field-card::before {
  content: ""; position: absolute; left: 1.75rem; top: 0; width: 48px; height: 4px;
  border-radius: 0 0 4px 4px; background: var(--blue);
}
.field-card:nth-child(2)::before { background: var(--sand); }
.field-card:nth-child(3)::before { background: var(--ink); }
.field-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); margin-bottom: 1.3rem; }
.field-icon svg { width: 27px; height: 27px; }
.field-card h3 { font-size: 1.32rem; }
.field-card p { color: var(--muted); font-size: 1rem; }
.field-card .text-link { margin-top: auto; padding-top: .6rem; }
@media (max-width: 960px) {
  .fields { grid-template-columns: 1fr; max-width: 680px; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.split-media figcaption { margin-top: .75rem; font-size: .88rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin: 0; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: .18rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

/* ---------- Phases ---------- */
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: phase; }
.phase {
  margin: 0; position: relative; counter-increment: phase;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.phase:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.phase a { display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.25rem 1.3rem; color: inherit; text-decoration: none; }
.phase-num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--blue); letter-spacing: .08em; }
.phase-num::before { content: "0" counter(phase); }
.phase h3 { font-size: 1.08rem; margin: .5rem 0 .55rem; }
.phase p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.phase-extra { background: var(--ink); border-color: var(--ink); }
.phase-extra h3 { color: #fff; }
.phase-extra p { color: #b9c8d8; }
.phase-extra .phase-num { color: var(--sky); }
.phase-extra .phase-num::before { content: "+"; }
.phase-extra:hover { border-color: var(--ink); }
@media (max-width: 1080px) { .phases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .phases { grid-template-columns: 1fr; } }

/* ---------- Project / reference cards ---------- */
.project-feature {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.project-feature picture img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.project-feature-body { padding: clamp(1.75rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.project-feature-body h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.project-feature dl { margin: 0 0 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; }
.project-feature dt { color: var(--muted); font-size: .92rem; }
.project-feature dd { margin: 0; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature picture img { min-height: 0; aspect-ratio: 16 / 10; }
}

.tag {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  padding: .3rem .7rem; border-radius: 999px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: var(--blue-soft); color: var(--blue-strong);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-sozial { background: var(--blue-soft); color: var(--blue-strong); }
.tag-gefoerdert { background: #f6eddf; color: #835b24; }
.tag-frei { background: #e7eaee; color: var(--ink); }
.tag-current { background: var(--ink); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  margin: 0 0 2.5rem; padding: .55rem; background: var(--paper);
  border-radius: 999px; width: fit-content; max-width: 100%;
}
.filter-bar[hidden], .no-js .filter-bar { display: none; }
.filter-label { padding: 0 .5rem 0 .75rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 42px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-chip:hover { background: #fff; border-color: var(--line); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter-chip .count { font-size: .78rem; font-weight: 700; opacity: .65; }
@media (max-width: 720px) {
  .filter-bar { border-radius: var(--radius); width: 100%; }
  .filter-label { width: 100%; padding: .25rem .5rem 0; }
}

.ref-group + .ref-group { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.ref-group[hidden] { display: none; }
.ref-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem 3rem; align-items: start; padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.ref-group-head h2 { margin: 0; }
.ref-group-head p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .ref-group-head { grid-template-columns: 1fr; } }

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ref-grid { grid-template-columns: 1fr; } }

.ref-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
}
.ref-card[hidden] { display: none; }
.ref-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ref-media { position: relative; display: block; overflow: hidden; background: var(--paper); }
.ref-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.ref-card:hover .ref-media img { transform: scale(1.03); }
.ref-media .zoom {
  position: absolute; right: .75rem; bottom: .75rem; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
  opacity: 0; transition: opacity .2s;
}
.ref-media .zoom svg { width: 18px; height: 18px; }
.ref-media:hover .zoom, .ref-media:focus-visible .zoom { opacity: 1; }
.ref-media .photo-count {
  position: absolute; left: .75rem; bottom: .75rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(20, 38, 58, .8); color: #fff; font-size: .78rem; font-weight: 600;
}
.ref-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ref-body h3 { margin: .2rem 0 0; font-size: 1.15rem; }
.ref-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.ref-body p:not(.ref-meta) { margin: 0; font-size: .97rem; }
.ref-role { font-size: .88rem; color: var(--muted); margin: 0; }
.ref-role strong { color: var(--ink-2); font-weight: 600; }
.ref-body p.ref-credit, .ref-credit { margin: auto 0 0; padding-top: .35rem; font-size: .78rem; color: var(--muted); }
.project-feature-body .ref-credit { margin-top: 1.25rem; padding-top: 0; }
.project-feature-body > p:not(.ref-credit) { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(141, 182, 221, .08); pointer-events: none;
}
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.cta-grid p { font-size: 1.12rem; color: #c6d3e1; max-width: 40rem; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-phone { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.cta-phone:hover { color: var(--sky); }
.cta-phone small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .85rem; color: #9fb2c6; }
.cta-phone .icon { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.cta-phone svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (sub pages) ---------- */
.page-hero { background: var(--paper); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { max-width: 52rem; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 .45rem; }

/* ---------- Services (accordion) ---------- */
.services-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.services-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.services-toc p { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.services-toc ol { list-style: none; padding: 0; margin: 0 0 1.5rem; border-left: 2px solid var(--line); }
.services-toc li { margin: 0; }
.services-toc li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.services-toc li a:hover, .services-toc li a.is-active { color: var(--blue); border-left-color: var(--blue); }
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-toc { position: static; }
  .services-toc ol { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
  .services-toc li a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; margin: 0; font-size: .9rem; }
}

.accordion { display: grid; gap: 1rem; }
.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.acc[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.acc > summary {
  display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.35rem 1.5rem; border-radius: var(--radius);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover .acc-title { color: var(--blue); }
.acc-num {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.acc-highlight .acc-num { background: var(--ink); color: #fff; }
.acc-heading { flex: 1; min-width: 0; margin: 0; font: inherit; letter-spacing: normal; color: inherit; }
.acc-title { display: block; font-family: var(--font-head); font-weight: 750; font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); color: var(--ink); line-height: 1.25; transition: color .2s; }
.acc-sub { display: block; font-size: .92rem; color: var(--muted); margin-top: .2rem; }
.acc-icon { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: transform .25s, background-color .2s; }
.acc-icon svg { width: 18px; height: 18px; }
.acc[open] .acc-icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.acc-body { padding: 0 1.5rem 1.6rem calc(1.5rem + 44px + 1rem); }
.acc-body h3 { font-size: 1.08rem; margin: 1.6rem 0 .45rem; }
.acc-body h3:first-child { margin-top: .2rem; }
.acc-body p, .acc-body li { color: var(--text); }
.acc-body ul { margin-bottom: .6rem; }
.acc-body ul ul { margin: .3rem 0 .4rem; list-style: "– "; }
@media (max-width: 620px) {
  .acc > summary { padding: 1.1rem 1.1rem; gap: .8rem; }
  .acc-num { width: 38px; height: 38px; }
  .acc-body { padding: 0 1.1rem 1.4rem; }
}
.accordion-tools { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.accordion-tools button { background: none; border: 0; padding: .3rem 0; color: var(--blue); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.accordion-tools button:hover { text-decoration: underline; }
.no-js .accordion-tools { display: none; }
.acc-body .acc-more { margin: 1.1rem 0 0; }
.acc-more a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item > summary { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 { flex: 1; margin: 0; font-size: 1.08rem; line-height: 1.35; transition: color .2s; }
.faq-item > summary:hover h3 { color: var(--blue); }
.faq-item[open] .acc-icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-body { padding: 0 1.35rem 1.25rem; }
.faq-body p { margin: 0 0 .75rem; color: var(--text); }
.faq-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { padding: 1.8rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.contact-card h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.contact-card .big { font-family: var(--font-head); font-weight: 750; font-size: 1.3rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-card .big:hover { color: var(--blue); }
.contact-card p { color: var(--muted); font-size: .97rem; margin: .7rem 0 0; }
.contact-card .card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 1.1rem; }
.contact-card .card-icon svg { width: 24px; height: 24px; }
.contact-card .button { margin-top: auto; align-self: flex-start; }
.contact-card .card-spacer { flex: 1; min-height: 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.directions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.address-card { padding: 2rem; background: var(--ink); color: #d4dfeb; border-radius: 24px; }
.address-card h3 { color: #fff; }
.address-card address { font-style: normal; font-size: 1.15rem; line-height: 1.6; color: #fff; margin-bottom: 1.5rem; }
.address-card .map-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.address-card .note { font-size: .85rem; color: #9fb2c6; margin: 1.1rem 0 0; }
@media (max-width: 860px) { .directions { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 2.6rem; padding-top: .2rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--text); }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal .legal-meta { color: var(--muted); font-size: .92rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal-toc { background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.legal-toc p { margin: 0 0 .5rem; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.legal-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.legal-toc li { break-inside: avoid; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1.25rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: .6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid .footer-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 .5rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); text-decoration: underline; }
.footer-grid address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.footer-brand p { color: var(--muted); max-width: 22rem; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1200px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 18, 28, .9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; border-radius: 10px; }
.lightbox figcaption { font-size: .95rem; color: #d5dfe9; text-align: center; max-width: 60ch; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: .25rem; right: .5rem; }
.lightbox .lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev[hidden], .lightbox .lb-next[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox figure { padding: 3.5rem .5rem 1rem; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: -3.75rem; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 56px); }
  .lightbox .lb-next { right: calc(50% - 56px); }
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.error-page .code { font-family: var(--font-head); font-weight: 800; color: var(--blue); letter-spacing: .14em; font-size: .9rem; }
.error-page p { color: var(--muted); max-width: 34rem; margin: 0 auto 2rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer .footer-grid, .hero-actions, .cta-band, .filter-bar, .accordion-tools, .services-toc, .lightbox { display: none !important; }
  .acc-body { display: block !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
