/* Qala İnşaat — light "engineering" design: sharp corners, thin construction lines, numbered sections,
   condensed display font for big headings only, calm sans for everything else, real photography. */

/* Fonts (self-hosted, SIL OFL — see ../fonts/LICENSE.txt) */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/oswald-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/oswald-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: "Oswald";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/oswald-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: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../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-20C4, 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("../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;
}

/* Metric-adjusted local fallbacks, so the font swap does not move the layout much. */
@font-face {
    font-family: "Oswald Fallback";
    src: local("Arial Narrow"), local("Arial"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 82%;
    ascent-override: 145%;
    descent-override: 35%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

:root {
    --bg: #F4F1EC;
    --ink: #22252B;
    --accent: #C2412D;
    --soft: #E3DDD3;
    --on: #FFFFFF;

    --paper: #FBFAF7;
    --accent-dark: #A3321F;
    --accent-light: #F08A78;
    --muted: #5C5F66;
    --line: rgba(34, 37, 43, .12);
    --line-strong: rgba(34, 37, 43, .28);
    --line-on-dark: rgba(255, 255, 255, .16);

    --font-head: "Oswald", "Oswald Fallback", "Arial Narrow", sans-serif;
    --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1280px;
    --gutter: 20px;
    --cols: 2;
    --header-h: 64px;
    --section-y: clamp(72px, 10vw, 140px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) {
    :root { --gutter: 32px; --cols: 4; }
}
@media (min-width: 1100px) {
    :root { --gutter: 48px; --header-h: 80px; }
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 60px; /* room for the fixed mobile call/WhatsApp bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.005em; line-height: 1.08; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
main { position: relative; z-index: 1; outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--on); }

/* Small uppercase label — the only place where all-caps is used. */
.label, .eyebrow, .section-num, .project-card-cat, .spec dt, .contact-item dt, .footer-title, .stat-label, .ba-tag, .person-role, .process-duration, .breadcrumbs {
    font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* Faint construction grid on wide screens: vertical lines aligned with the container columns. */
.grid-lines { display: none; }
@media (min-width: 1100px) {
    .grid-lines {
        display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
        width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    }
    .grid-lines::before {
        content: ""; display: block; height: 100%;
        border-right: 1px solid rgba(34, 37, 43, .05);
        background-image: linear-gradient(to right, rgba(34, 37, 43, .05) 1px, transparent 1px);
        background-size: calc(100% / var(--cols)) 100%;
    }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 48px; padding: .7em 1.4em;
    font-family: var(--font-body); font-weight: 600; font-size: .9375rem; letter-spacing: .005em; line-height: 1.2;
    text-decoration: none; border: 1px solid currentColor; background: transparent; color: var(--ink);
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on); }
.btn-accent::after { content: ""; width: 14px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 0l5 5-5 5-1-1 3.3-3.3H0V4.3h11.3L8 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 0l5 5-5 5-1-1 3.3-3.3H0V4.3h11.3L8 1z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on); }
.btn-accent:hover::after { transform: translateX(3px); }
.btn-ghost { color: var(--on); border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: var(--on); border-color: var(--on); color: var(--ink); }
.btn-outline { border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: var(--on); border-color: var(--ink); }

.more-link { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .9375rem; color: var(--accent-dark); text-decoration: none; }
.more-link::after { content: ""; width: 20px; height: 1px; background: currentColor; transition: width .25s var(--ease); }
a:hover .more-link::after, .more-link:hover::after { width: 36px; }

/* Header — light, sticky, thin rule */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 236, .92); color: var(--ink); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark { color: var(--accent); flex-shrink: 0; width: 36px; height: 36px; }
.logo-text { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.logo img { height: 40px; width: auto; }
.site-footer .logo { color: var(--on); }

.nav-toggle { position: relative; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 13px; width: 20px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
[data-open] .nav-toggle-bars { background: transparent; }
[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 1px); bottom: 0;
    background: var(--bg); padding: 8px var(--gutter) 96px; overflow-y: auto;
    display: none; flex-direction: column; gap: 28px;
}
[data-open] .site-nav { display: flex; }
.no-js .site-nav { position: static; display: flex; padding: 0 0 16px; width: 100%; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }

.nav-list { display: flex; flex-direction: column; }
.nav-link {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-head); font-weight: 400; font-size: 1.75rem; line-height: 1.2; text-decoration: none; color: var(--ink);
}
.nav-link:hover, .nav-link.is-active { color: var(--accent-dark); }
.nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lang-switch { display: flex; }
.lang-switch a { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; color: var(--ink); }
.lang-switch li + li a { border-left: 0; }
.lang-switch a.is-active { background: var(--ink); border-color: var(--ink); color: var(--on); }
.lang-switch a:hover:not(.is-active) { background: var(--soft); color: var(--ink); }
.header-phone { font-weight: 600; font-size: 1.125rem; letter-spacing: .01em; text-decoration: none; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--accent-dark); }

@media (min-width: 1100px) {
    .nav-toggle { display: none; }
    .site-nav, .no-js .site-nav { position: static; display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex: 1; gap: 24px; padding: 0; overflow: visible; background: none; width: auto; }
    .nav-list { flex-direction: row; margin-left: 32px; }
    .nav-link { position: relative; padding: 0 14px; line-height: var(--header-h); border: 0; font-family: var(--font-body); font-weight: 500; font-size: .9375rem; }
    .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
    .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
    .nav-link:hover, .nav-link.is-active { color: var(--ink); }
    .nav-extra { flex-wrap: nowrap; }
    .lang-switch a { min-width: 38px; height: 38px; }
    .header-phone { font-size: .9375rem; }
    .header-cta { min-height: 44px; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
    .header-phone { display: none; }
}

/* Hero (home) — full-bleed photo, soft gradient, refined stats panel */
.hero { position: relative; color: var(--on); background: var(--ink); isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92vh, 860px); min-height: min(92svh, 860px); }
.hero-img, .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before, .page-hero--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to top, rgba(18, 20, 24, .88) 0%, rgba(18, 20, 24, .35) 45%, rgba(18, 20, 24, .1) 75%),
        linear-gradient(90deg, rgba(18, 20, 24, .6) 0%, rgba(18, 20, 24, .15) 65%, rgba(18, 20, 24, 0) 100%);
}
.hero-inner { padding-top: clamp(96px, 16vw, 200px); padding-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; color: rgba(255, 255, 255, .88); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero-title { max-width: 17ch; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.hero-text { max-width: 52ch; margin: 24px 0 0; font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 479px) {
    .hero-actions .btn { flex: 1 1 100%; }
    .eyebrow { align-items: flex-start; }
    .eyebrow::before { margin-top: .6em; }
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 20px 16px 22px; border-top: 1px solid var(--line-on-dark); }
.stat:nth-child(odd) { border-right: 1px solid var(--line-on-dark); padding-left: 0; }
.stat-value { font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-unit { font-family: var(--font-body); font-size: .36em; font-weight: 600; letter-spacing: .02em; color: var(--accent-light); vertical-align: .9em; margin-left: .15em; }
.stat-label { color: rgba(255, 255, 255, .72); line-height: 1.4; font-size: .6875rem; }
.hero .stats { margin-bottom: 8px; }
@media (min-width: 900px) {
    .hero .stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
    .hero .stat { padding: 26px 28px 30px; border-right: 1px solid var(--line-on-dark); }
    .hero .stat:first-child { padding-left: 0; }
    .hero .stat:last-child { border-right: 0; }
}

/* Inner page hero — light band; photo variant for project and service pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-title { max-width: 20ch; font-size: clamp(2.25rem, 5.6vw, 4.25rem); font-weight: 500; text-wrap: balance; }
.page-lead { max-width: 60ch; margin: 20px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero--image { color: var(--on); background: var(--ink); border-bottom: 0; min-height: clamp(440px, 62vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero--image .page-hero-inner { padding-top: clamp(120px, 18vw, 220px); }
.page-hero--image .page-lead { color: rgba(255, 255, 255, .86); }
.error-code { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(4rem, 18vw, 10rem); line-height: 1; color: var(--accent); font-weight: 500; }

.breadcrumbs { margin-bottom: 22px; font-size: .6875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: ""; width: 14px; height: 1px; margin: 0 10px; background: currentColor; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current] { color: var(--ink); }
@media (max-width: 719px) { .breadcrumbs li:last-child { display: none; } }
.page-hero--image .breadcrumbs li, .page-hero--image .breadcrumbs a { color: rgba(255, 255, 255, .78); }
.page-hero--image .breadcrumbs a:hover, .page-hero--image .breadcrumbs [aria-current] { color: var(--on); }

/* Sections */
.section { position: relative; padding: var(--section-y) 0; }
.section--tight { padding-top: clamp(48px, 6vw, 88px); }
.section--soft { background: var(--soft); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on); }
.section + .section:not(.section--soft):not(.section--paper):not(.section--dark):not(.quote) { border-top: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: 1fr; gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-num { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--accent-dark); }
.section-num::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.section--dark .section-num, .quote .section-num { color: var(--accent-light); }
.section-title { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.5rem); text-wrap: balance; }
.section-lead { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.0625rem; }
.section--dark .section-lead, .quote .section-lead { color: rgba(255, 255, 255, .78); }
.section-head .btn { justify-self: start; }
@media (min-width: 900px) {
    .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
    .section-head:not(:has(.section-lead)) { grid-template-columns: 1fr auto; }
    .section-lead { padding-bottom: .4em; }
    .section-head .btn { justify-self: end; }
}

/* Services — photo cards */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; counter-reset: svc; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .service-tile-media img { aspect-ratio: 4 / 3; } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } .service-grid--compact { grid-template-columns: repeat(3, 1fr); } }
.service-tile-link { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.service-tile-link:hover { color: var(--ink); }
.service-tile-media { position: relative; display: block; overflow: hidden; margin-bottom: 22px; background: var(--soft); }
.service-tile-media img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-tile-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-tile-link:hover .service-tile-media img { transform: scale(1.04); }
.service-tile-link:hover .service-tile-media::after { transform: scaleX(1); }
.service-tile-num { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-dark); }
.service-tile-title { font-size: 1.3125rem; margin-bottom: 10px; }
.service-tile-text { flex: 1; color: var(--muted); font-size: .9375rem; }
.service-grid--compact .service-tile-link { padding: 28px 28px 30px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s; }
.service-grid--compact .service-tile-link:hover { border-color: var(--ink); }

/* Projects — photo on top, caption below */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 48px 24px; }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; } }
.project-card { position: relative; }
.project-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.project-card-link:hover { color: var(--ink); }
.project-card-media { position: relative; display: block; overflow: hidden; background: var(--soft); }
.project-card-media img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* Accent stripe drawn across the photo on hover */
.project-card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.project-card-link:hover .project-card-media img, .project-card-link:focus-visible .project-card-media img { transform: scale(1.04); }
.project-card-link:hover .project-card-media::after, .project-card-link:focus-visible .project-card-media::after { transform: scaleX(1); }
.project-card-cat { position: absolute; left: 0; top: 0; padding: 7px 12px; background: var(--paper); color: var(--ink); font-size: .6875rem; }
.project-card-body { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.project-card-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; font-size: 1.25rem; line-height: 1.3; transition: color .2s; }
.project-card-link:hover .project-card-title { color: var(--accent-dark); }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-card-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px; background: var(--accent); vertical-align: 2px; }
.section--dark .project-card-link, .section--dark .project-card-link:hover { color: var(--on); }
.section--dark .project-card-meta { color: rgba(255, 255, 255, .7); }

/* Project filter */
.filter { margin-bottom: clamp(32px, 4vw, 48px); }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-strong); font-weight: 500; font-size: .9375rem; text-decoration: none; background: transparent; transition: background-color .2s, border-color .2s; }
.filter-link:hover { border-color: var(--ink); color: var(--ink); }
.filter-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--on); }
.filter-count { font-size: .75rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-link.is-active .filter-count { color: var(--accent-light); }
.empty { padding: 40px 0; color: var(--muted); }

/* Project / service detail */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.spec { padding: 18px 12px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec:first-child { padding-left: 0; }
.spec:nth-child(3), .spec--wide { border-right: 0; }
.spec--wide { grid-column: 1 / -1; padding-left: 0; }
.spec dt { color: var(--muted); font-size: .625rem; margin-bottom: 8px; }
.spec dd { font-family: var(--font-head); font-size: clamp(1.4rem, 3.6vw, 2.25rem); font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spec dd span { font-family: var(--font-body); font-size: .45em; font-weight: 600; color: var(--accent-dark); }
.spec dd.spec-text { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
@media (min-width: 900px) {
    .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .spec, .spec--wide { grid-column: auto; padding: 24px 28px 26px; border-bottom: 0; border-right: 1px solid var(--line); }
    .spec:first-child { padding-left: 0; }
    .spec:last-child { border-right: 0; }
    .spec dt { font-size: .6875rem; }
}

.article-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .article-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 80px; } }
.prose { max-width: 66ch; font-size: 1.0625rem; line-height: 1.75; color: #33363C; }
.prose--lead p:first-child { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.55; color: var(--ink); }
.prose--narrow { margin: 0 auto; }
.article-aside { align-self: start; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.aside-title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.aside-row { margin: 0 0 10px; }
.aside-row span { display: inline-block; padding: 5px 12px; background: var(--ink); color: var(--on); font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.num-list li:last-child { border-bottom: 0; }
.num-list li::before { content: counter(n, decimal-leading-zero); font-size: .8125rem; font-weight: 600; color: var(--accent-dark); padding-top: .15em; }
.check-list { margin: 0 0 24px; }
.check-list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.stats--stacked { grid-template-columns: 1fr; }
.stats--stacked .stat, .stats--stacked .stat:nth-child(odd) { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.stats--stacked .stat:last-child { border-bottom: 0; }
.stats--stacked .stat-label { color: var(--muted); }
.stats--stacked .stat-unit { color: var(--accent-dark); }

/* Before / after slider */
.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); user-select: none; }
.ba-img { width: 100%; height: 100%; object-fit: cover; }
.ba > .ba-img { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--on); pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6l-6 6 6 6V6zm6 0v12l6-6-6-6z'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; background: rgba(34, 37, 43, .78); color: var(--on); font-size: .6875rem; }
.ba-tag--before { left: 16px; }
.ba-tag--after { right: 16px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Gallery — first photo large, the rest fill the grid */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery li:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--soft); }
.gallery img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:hover::after { transform: scaleX(1); }

.lightbox { max-width: min(1280px, 94vw); max-height: 92vh; padding: 0; border: 0; background: var(--ink); }
.lightbox::backdrop { background: rgba(18, 20, 24, .92); }
.lightbox img { max-height: calc(92vh - 52px); width: auto; margin: 0 auto; }
.lightbox-close { display: block; width: 100%; min-height: 52px; border: 0; background: var(--ink); color: var(--on); font: 600 .9375rem var(--font-body); cursor: pointer; }
.lightbox-close:hover { background: var(--accent); }

/* Services list page */
.service-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.service-row { display: grid; gap: 28px; align-items: center; }
.service-row-media { position: relative; display: block; overflow: hidden; background: var(--soft); }
.service-row-media img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-row-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-row-media:hover img { transform: scale(1.03); }
.service-row-media:hover::after { transform: scaleX(1); }
.service-row-body .section-num { margin-bottom: 14px; }
.service-row-body .section-num::before { content: attr(data-num); }
.service-row-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.service-row-title a { text-decoration: none; }
.service-row-body > p { color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }
@media (min-width: 900px) {
    .service-row { grid-template-columns: 1.15fr 1fr; gap: 72px; }
    .service-row:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
    .service-row:nth-child(even) .service-row-media { order: 2; }
}

/* Process */
.process { display: grid; grid-template-columns: 1fr; counter-reset: step; }
.process-step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 26px 0 28px; border-top: 1px solid var(--line-strong); }
.process-step > :not(.process-num) { grid-column: 2; }
.process-num { grid-row: 1 / span 3; font-family: var(--font-head); font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--accent); }
.process-title { font-size: 1.125rem; margin-bottom: 8px; }
.process-text { color: var(--muted); margin-bottom: 14px; font-size: .9375rem; }
.process-duration { justify-self: start; display: inline-block; margin: 0; padding: 5px 10px; background: var(--paper); border: 1px solid var(--line); font-size: .6875rem; color: var(--ink); }
.section--soft .process-duration { background: var(--bg); }
@media (min-width: 1100px) {
    .process { grid-template-columns: repeat(5, 1fr); gap: 28px; }
    .process-step { display: block; padding: 28px 0 0; border-top: 2px solid var(--ink); }
    .process-step::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 2px; background: var(--accent); }
    .process-num { display: block; margin-bottom: 28px; font-size: 2.75rem; }
}

/* Warranty */
.warranty { border-top: 1px solid var(--ink); }
.warranty-row { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.section--dark .warranty, .section--dark .warranty-row { border-color: var(--line-on-dark); }
.warranty-term { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; line-height: 1; color: var(--accent); white-space: nowrap; }
.section--dark .warranty-term { color: var(--accent-light); }
.warranty-title { font-size: 1.125rem; align-self: center; }
.warranty-text { margin: 0; color: var(--muted); align-self: center; font-size: .9375rem; }
.section--dark .warranty-text { color: rgba(255, 255, 255, .75); }
@media (min-width: 900px) { .warranty-row { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; padding: 30px 0; } }

/* Certificates */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 900px) { .cert-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 28px; } }
.cert-link { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--paper); padding: 14px; transition: border-color .2s; }
.cert-link:hover { border-color: var(--ink); }
.cert-link img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; box-shadow: 0 10px 30px rgba(34, 37, 43, .08); }
.cert-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cert-link:hover::after { transform: scaleX(1); }
.cert-title { margin-top: 16px; font-size: 1rem; line-height: 1.4; }
.cert-meta { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }

/* Timeline */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.timeline-item { position: relative; display: grid; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.timeline-year { margin-bottom: 8px; font-family: var(--font-head); font-size: 2.25rem; font-weight: 400; line-height: 1; color: var(--accent-dark); }
.timeline-title { font-size: 1.125rem; margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .timeline-item { grid-template-columns: 200px 1fr; align-items: baseline; } }
@media (min-width: 1100px) {
    .timeline { grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
    .timeline-item { display: block; padding: 28px 0 36px; border-top: 2px solid var(--ink); border-bottom: 0; }
    .timeline-item::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 2px; background: var(--accent); }
    .timeline-year { display: block; margin-bottom: 18px; font-size: 2.75rem; }
}

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
@media (min-width: 720px) { .people { gap: 48px 24px; } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(4, 1fr); gap: 56px 28px; } }
.person-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--soft); filter: grayscale(1) contrast(1.02); transition: filter .5s; }
.person:hover .person-photo { filter: grayscale(0); }
.person-name { margin-top: 16px; font-size: clamp(1rem, 2.4vw, 1.1875rem); }
.person-role { margin: 6px 0 10px; color: var(--accent-dark); font-size: .6875rem; line-height: 1.5; }
.person-bio { margin: 0; font-size: clamp(.8125rem, 1.8vw, .9375rem); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.contact-list { border-top: 1px solid var(--ink); }
.contact-item { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.contact-item dt { font-size: .6875rem; color: var(--muted); }
.contact-item dd { font-size: 1.0625rem; }
.contact-big { font-family: var(--font-head); font-size: clamp(1.75rem, 5vw, 2.4rem); font-weight: 400; text-decoration: none; font-variant-numeric: tabular-nums; }
.map { position: relative; min-height: 380px; background: var(--soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.02); }
.map-link { position: absolute; left: 0; bottom: 0; padding: 12px 18px; background: var(--ink); color: var(--on); font-weight: 600; font-size: .875rem; text-decoration: none; }
.map-link:hover { background: var(--accent); color: var(--on); }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.contact-item .social-links { margin-top: 6px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); text-decoration: none; transition: background-color .2s, border-color .2s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--on); }
.site-footer .social-links a { border-color: var(--line-on-dark); }

/* Quote form — the one dark block on the page */
.quote { background: var(--ink); color: var(--on); }
.quote-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: 1fr 1.35fr; gap: 80px; } }
.quote .section-head { grid-template-columns: 1fr; margin-bottom: 24px; }
.quote-lead { color: rgba(255, 255, 255, .8); font-size: 1.0625rem; max-width: 44ch; }
.quote-contacts { margin-top: 32px; border-top: 1px solid var(--line-on-dark); }
.quote-contacts li { padding: 14px 0; border-bottom: 1px solid var(--line-on-dark); color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.quote-contacts a { color: var(--on); }
.quote-contacts a:hover { color: var(--accent-light); }
.quote-phone { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400; text-decoration: none; font-variant-numeric: tabular-nums; }

.quote-form { display: grid; grid-template-columns: 1fr; gap: 20px; align-content: start; padding: clamp(24px, 4vw, 48px); background: var(--paper); color: var(--ink); }
@media (min-width: 640px) { .quote-form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide, .form-alert, .form-foot { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--on); color: var(--ink);
    font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8A8D93; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322252B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.field [aria-invalid="true"] { border-color: var(--accent); background: #FBEDEA; }
.field-error { margin: 0; color: var(--accent-dark); font-size: .875rem; font-weight: 600; }
.form-alert { margin: 0; padding: 12px 16px; background: var(--accent); color: var(--on); font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 4px; }
.form-note { flex: 1 1 260px; margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 479px) { .form-foot .btn { width: 100%; } }

/* Footer */
.site-footer { position: relative; z-index: 1; background: #1B1D22; color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 56px; } }
.footer-text { margin: 20px 0 0; max-width: 40ch; font-size: .9375rem; }
.footer-title { margin-bottom: 16px; font-size: .6875rem; color: var(--on); }
.footer-list li { padding: 5px 0; font-size: .9375rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--on); }
.site-footer .social-links a { color: var(--on); }
.footer-bottom { padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line-on-dark); font-size: .8125rem; color: rgba(255, 255, 255, .55); }

/* Fixed mobile actions: call + WhatsApp */
.mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); }
.mobile-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--on); }
.mobile-action:hover { color: var(--on); }
.mobile-action--call { background: var(--accent); }
.mobile-action--wa { background: #1D7A4D; }
@media (min-width: 900px) { .mobile-actions { display: none; } }

@media print {
    .site-header, .mobile-actions, .grid-lines, .quote { display: none; }
    body { background: #fff; padding: 0; }
}
