/* Flex Group — site styles (modern minimal) */

:root {
    --bg: #fbfaf7;
    --bg-alt: #f2efe9;
    --ink: #161513;
    --ink-soft: #3d3a35;
    --muted: #6f6a62;
    --line: #e3ded5;
    --gold: #b8892c;
    --gold-dark: #9a7123;
    --white: #ffffff;

    --font: "Manrope", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

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

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    white-space: nowrap;
}
.btn-small { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--gold); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}
.link-arrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: width .3s var(--ease);
}
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { width: 34px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: #f0d9a8; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(251, 250, 247, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
/* Over the hero video the header starts transparent */
.has-hero .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--white);
}
.has-hero .site-header.is-scrolled {
    background: rgba(251, 250, 247, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--line);
    color: var(--ink);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand img { width: 28px; height: auto; }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
    position: relative;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    opacity: .85;
    transition: opacity .2s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-contact-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; gap: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a { padding: 6px 8px; opacity: .5; transition: opacity .2s; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; }

.header-cta { background: var(--ink); color: var(--white); }
.header-cta:hover { background: var(--gold); }
.has-hero .site-header:not(.is-scrolled) .header-cta { background: var(--white); color: var(--ink); }
.has-hero .site-header:not(.is-scrolled) .header-cta:hover { background: var(--gold); color: var(--white); }

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #2a2824;
    color: var(--white);
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 28%),
        linear-gradient(90deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 70%),
        linear-gradient(0deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,.35) 55%, rgba(10,10,10,.15) 100%);
}
.hero-content {
    position: relative;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: clamp(72px, 12vh, 140px);
}
.hero h1 {
    max-width: 14ch;
    font-size: clamp(40px, 7vw, 92px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.hero-lead {
    max-width: 520px;
    margin-top: 24px;
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(255,255,255,.82);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 40px;
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
}
.scroll-cue span {
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--white);
    animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2, .display { font-size: clamp(30px, 4vw, 52px); }
.display { max-width: 15ch; }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}
.about-grid .muted { margin-top: 20px; }
.about-grid .link-arrow { margin-top: 32px; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(64px, 8vw, 110px) 0 0;
    border-top: 1px solid var(--line);
}
.stats > div { padding: 32px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats dd { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.6vw, 32px);
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}
.service-media, .project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--line);
}
.service-media img, .project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}
.service-card:hover img, .project-card:hover img { transform: scale(1.04); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px); }
.service-num { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.service-body h3 { margin-top: 10px; font-size: clamp(22px, 2vw, 26px); }
.service-body p {
    margin: 12px 0 24px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-body .link-arrow { margin-top: auto; }
.service-card:hover .link-arrow { color: var(--gold); }
.service-card:hover .link-arrow::after { width: 34px; }

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.6vw, 32px);
}
.project-grid-2 { grid-template-columns: repeat(2, 1fr); }
.project-card { display: block; }
.project-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.photo-count {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(22,21,19,.65);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}
.project-body { padding-top: 20px; }
.project-body h3 { font-size: 20px; transition: color .2s; }
.project-card:hover h3 { color: var(--gold); }
.project-meta { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .02em; }
.project-desc {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    padding: 56px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}

/* Call to action */
.cta { background: var(--ink); color: var(--white); padding: clamp(72px, 9vw, 120px) 0; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 18ch; font-size: clamp(30px, 4vw, 52px); }

/* ---------- Inner page header ---------- */

.page-hero {
    position: relative;
    min-height: clamp(380px, 62vh, 620px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #2a2824;
    color: var(--white);
}
.page-hero-content {
    position: relative;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: clamp(48px, 8vh, 88px);
}
.page-hero h1 {
    max-width: 18ch;
    font-size: clamp(36px, 5.6vw, 76px);
    letter-spacing: -0.035em;
    line-height: 1.04;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.breadcrumb a:hover { color: var(--white); }

.intro { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Projects page ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn span { font-size: 12px; color: var(--muted); }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-btn.active span { color: rgba(255,255,255,.6); }
.filter-item[hidden] { display: none; }

.load-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.load-more [hidden] { display: none; }

/* ---------- Detail pages (project & service) ---------- */

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.detail-grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gallery-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
    cursor: zoom-in;
}
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.gallery-thumb {
    flex: 0 0 auto;
    width: 96px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
    opacity: .6;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}
.gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--gold); }

.detail-info { position: sticky; top: calc(var(--header-h) + 24px); }
.detail-info h2, .detail-title { font-size: clamp(26px, 2.6vw, 36px); }
.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.detail-text { margin-top: 24px; color: var(--ink-soft); white-space: pre-line; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.detail-title { margin-bottom: 20px; }

.detail-image { border-radius: var(--radius); overflow: hidden; background: var(--line); }
.detail-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.rich-text p { color: var(--ink-soft); }
.rich-text p + p, .rich-text ul + p { margin-top: 14px; }
.check-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.feature-grid {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.feature-grid li {
    padding: 18px 18px 18px 46px;
    position: relative;
    background: var(--bg);
    font-size: 14px;
    font-weight: 600;
}
.feature-grid li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 12px;
    height: 7px;
    margin-top: -6px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

/* Services list page: alternating image / text rows */
.service-rows { display: grid; gap: clamp(64px, 8vw, 120px); }
.service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.service-row-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .9s var(--ease); }
.service-row-media:hover img { transform: scale(1.04); }
.service-row h2 { margin: 10px 0 20px; font-size: clamp(28px, 3vw, 40px); }
.service-row h2 a:hover { color: var(--gold); }
.service-row .link-arrow { margin-top: 28px; }

/* Smaller service cards ("Other services") */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.mini-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.mini-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mini-card:hover img { transform: scale(1.04); }
.mini-body { padding: 22px 24px 26px; }
.mini-body h3 { font-size: 20px; margin-bottom: 14px; }
.mini-card:hover .link-arrow { color: var(--gold); }

/* ---------- About page ---------- */

.quote-band { background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; }
.quote-band p { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.quote-band footer { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.6vw, 32px);
    counter-reset: step;
}
.steps li { padding-top: 24px; border-top: 1px solid var(--ink); counter-increment: step; }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .08em;
}
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Contact page ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}
.contact-note { margin-top: 20px; max-width: 460px; }
.contact-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 4vw, 48px);
    background: var(--white);
    border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 16px; /* 16px stops iOS from zooming into the field */
    transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.notice {
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    background: var(--bg-alt);
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 11, 10, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; cursor: pointer; color: var(--white); }
.lightbox-close { top: 16px; right: 16px; width: 48px; height: 48px; }
.lightbox-close::before, .lightbox-close::after {
    content: ""; position: absolute; left: 12px; top: 23px; width: 24px; height: 1.5px; background: currentColor;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }
.lightbox-nav { top: 50%; width: 64px; height: 64px; margin-top: -32px; }
.lightbox-nav::before {
    content: ""; position: absolute; left: 26px; top: 26px; width: 12px; height: 12px;
    border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
}
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.prev::before { transform: rotate(45deg); }
.lightbox-nav.next { right: 12px; }
.lightbox-nav.next::before { left: 20px; transform: rotate(-135deg); }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: #0f0e0d; color: rgba(255,255,255,.7); padding-top: 72px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 340px; margin-top: 18px; }
.site-footer h4 {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
    padding-top: 24px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    color: rgba(255,255,255,.45);
}

/* Georgian words run longer — scale the largest headings down a little */
html:lang(ka) .hero h1 { font-size: clamp(34px, 5.6vw, 76px); max-width: 16ch; }
html:lang(ka) .page-hero h1 { font-size: clamp(30px, 4.6vw, 62px); }
html:lang(ka) .display { max-width: 22ch; }
html:lang(ka) .quote-band p { font-size: clamp(24px, 3.2vw, 42px); }
html:lang(ka) .display,
html:lang(ka) .section-head h2,
html:lang(ka) .cta h2 { font-size: clamp(26px, 3.3vw, 44px); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .main-nav { gap: 26px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }

    .menu-toggle { display: block; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        gap: 0;
        padding: 24px var(--gutter);
        background: var(--bg);
        color: var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .main-nav a {
        padding: 18px 0;
        border-bottom: 1px solid var(--line);
        font-size: 22px;
        font-weight: 600;
        opacity: 1;
    }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--gold); }
    .main-nav .nav-contact-mobile { display: block; }
    .nav-open { overflow: hidden; }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    /* Solid header while the menu is open, even over the hero.
       backdrop-filter must be off: it would turn the header into the containing block
       for the fixed menu panel and squash the panel to the header's height. */
    .nav-open .site-header,
    .has-hero.nav-open .site-header {
        background: var(--bg);
        color: var(--ink);
        border-color: var(--line);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div { padding: 28px 16px 28px 0; }
    .stats > div + div { padding-left: 0; border-left: 0; }
    .stats > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }

    .service-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }

    .detail-grid, .detail-grid-even, .contact-grid { grid-template-columns: 1fr; }
    .detail-info { position: static; }
    .service-row { grid-template-columns: 1fr; gap: 28px; }
    .service-row:nth-child(even) .service-row-media { order: 0; }
    .mini-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .project-grid, .project-grid-2 { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { flex: 1 1 auto; }
    .scroll-cue { display: none; }
    .lang-switch a { padding: 6px 6px; }

    .mini-grid, .steps, .field-row, .feature-grid { grid-template-columns: 1fr; }
    .page-hero { min-height: 340px; }
    .gallery-thumb { width: 76px; }
    /* Form runs edge to edge; inner padding matches the page gutter so fields line up with the text above */
    .contact-form { padding: 28px var(--gutter); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
    .contact-form .btn { justify-self: stretch; }
    .detail-actions .btn { flex: 1 1 100%; }
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
    .lightbox-nav { top: auto; bottom: 8px; margin-top: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
