/* =====================================================================
   Prime Terra Builders — premium stone-cladding theme
   Palette: ink / deep petrol slate / warm gold / sand
   ===================================================================== */

:root {
    --ink: #14181b;
    --ink-2: #1b2126;
    --slate: #1c2f3a;
    --slate-2: #24404e;
    --gold: #c9a15a;
    --gold-soft: #dcc084;
    --gold-deep: #a9823f;
    --sand: #f5f0e8;
    --cream: #fbf8f3;
    --paper: #ffffff;
    --stone: #6f767d;
    --ink-70: rgba(20, 24, 27, .70);
    --line: rgba(20, 24, 27, .10);
    --line-d: rgba(255, 255, 255, .14);
    --wa: #25d366;
    --shadow-sm: 0 10px 30px -18px rgba(20, 24, 27, .45);
    --shadow: 0 34px 70px -32px rgba(20, 24, 27, .40);
    --shadow-gold: 0 20px 45px -18px rgba(169, 130, 63, .55);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1240px;
    --header-h: 84px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --serif: "Playfair Display", "Tajawal", serif;
    --sans: "Tajawal", "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Flex/grid children may otherwise refuse to shrink and force horizontal scroll. */
*, *::before, *::after { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }

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

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.serif { font-family: var(--serif); font-weight: 600; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Reusable section scaffolding ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section.alt { background: var(--sand); }
.section.ink { background: var(--ink); color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 30px; height: 2px;
    background: var(--gold);
    display: inline-block;
}
.ink .eyebrow, .hero .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: inherit;
}
.section-title b { color: var(--gold-deep); font-weight: 800; }
.ink .section-title b { color: var(--gold); }
.section-sub {
    margin-top: 16px;
    color: var(--stone);
    font-size: 17px;
    max-width: 60ch;
}
.ink .section-sub { color: rgba(255, 255, 255, .66); }
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
                background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-gold { background: var(--gold); color: #1a1205; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--slate); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(37, 211, 102, .6); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 44px;
}
.topbar a:hover { color: var(--gold-soft); }
.topbar .spacer { flex: 1; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-item svg { width: 15px; height: 15px; fill: var(--gold); }
@media (max-width: 860px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: transparent;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--slate), var(--slate-2));
    border: 1px solid rgba(201, 161, 90, .4);
    flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .04em;
    color: #fff;
    transition: color .35s var(--ease);
}
.brand-word small {
    font-size: 10.5px;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
    padding-inline-start: 2px;
}
.header.scrolled { background: rgba(251, 248, 243, .92); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.header.scrolled .brand-word b { color: var(--ink); }
.header.scrolled .brand-mark { background: var(--slate); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
    position: relative;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15.5px;
    color: rgba(255, 255, 255, .9);
    border-radius: 8px;
    transition: color .25s;
}
.nav > a::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ease);
}
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a:hover, .nav > a.active { color: #fff; }
.header.scrolled .nav > a { color: var(--ink-70); }
.header.scrolled .nav > a:hover, .header.scrolled .nav > a.active { color: var(--ink); }

.lang-btn {
    margin-inline-start: 8px;
    padding: 8px 14px;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    transition: all .25s;
}
.lang-btn:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }
.header.scrolled .lang-btn { border-color: var(--line); color: var(--ink); }
.header.scrolled .lang-btn:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }

.nav .btn-wa { margin-inline-start: 6px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.menu-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.header.scrolled .menu-toggle span { background: var(--ink); }

/* Header right side: language + call block (distinct contractor-style header) */
.header-side { display: flex; align-items: center; gap: 18px; }
.nav .nav-mobile { display: none; }

.lang-link {
    font-weight: 800; font-size: 14px; letter-spacing: .06em;
    color: #fff; width: 38px; height: 38px; display: grid; place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 50%;
    transition: all .25s;
}
.lang-link:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }
.header.scrolled .lang-link { color: var(--ink); border-color: var(--line); }
.header.scrolled .lang-link:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }

.header-divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .22); }
.header.scrolled .header-divider { background: var(--line); }

.call-block { display: flex; align-items: center; gap: 12px; }
.call-block .cb-ico {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    border: 1.5px solid rgba(201, 161, 90, .6);
    transition: all .3s var(--ease);
}
.call-block .cb-ico svg { width: 20px; height: 20px; fill: var(--gold); }
.call-block .cb-text { display: flex; flex-direction: column; line-height: 1.25; }
.call-block .cb-text small { font-size: 11px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.call-block .cb-text b { font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.header.scrolled .call-block .cb-text small { color: var(--stone); }
.header.scrolled .call-block .cb-text b { color: var(--ink); }
.call-block:hover .cb-ico { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.call-block:hover .cb-ico svg { fill: #1a1205; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: calc(-1 * var(--header-h));
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero-bg .slide.on { opacity: 1; transform: scale(1); }
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 19, 22, .92) 0%, rgba(15, 19, 22, .70) 45%, rgba(15, 19, 22, .30) 100%),
        linear-gradient(0deg, rgba(15, 19, 22, .85), rgba(15, 19, 22, 0) 55%);
}
html[dir="ltr"] .hero-bg::after {
    background:
        linear-gradient(270deg, rgba(15, 19, 22, .92) 0%, rgba(15, 19, 22, .70) 45%, rgba(15, 19, 22, .30) 100%),
        linear-gradient(0deg, rgba(15, 19, 22, .85), rgba(15, 19, 22, 0) 55%);
}
.hero .container { position: relative; z-index: 2; padding-block: 60px; }
.hero-content { max-width: 680px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px;
    border: 1px solid rgba(201, 161, 90, .5);
    border-radius: 999px;
    background: rgba(201, 161, 90, .12);
    font-size: 13.5px; font-weight: 700; letter-spacing: .12em;
    color: var(--gold-soft);
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .3);
}
.hero h1 b { color: var(--gold); font-weight: 800; }
.hero-sub {
    margin-top: 24px;
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, .82);
    max-width: 55ch;
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hero-points svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.4; flex: none; }
.hero-scroll {
    position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
    z-index: 2; color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrolldot 2s infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats strip ---------- */
.stats {
    position: relative;
    z-index: 5;
    background: var(--ink);
    border-top: 1px solid rgba(201, 161, 90, .22);
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; text-align: center; color: #fff; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: var(--gold); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .66); }
@media (max-width: 720px) { .stats .container { grid-template-columns: 1fr 1fr; } .stat { border-top: 1px solid rgba(255,255,255,.08); } .stat:nth-child(odd) { border-inline-start: 0; } }

/* ---------- Features / why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.feature-ico {
    width: 58px; height: 58px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--slate), var(--slate-2));
    margin-bottom: 22px;
}
.feature-ico svg { width: 28px; height: 28px; fill: var(--gold); }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--stone); font-size: 15px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.service-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 19, 22, .92) 8%, rgba(15, 19, 22, .30) 55%, rgba(15, 19, 22, .08) 100%); transition: background .4s; }
.service-card:hover .bg { transform: scale(1.08); }
.service-body { position: relative; z-index: 2; padding: 30px; width: 100%; }
.service-body h3 { font-size: 23px; font-weight: 800; }
.service-body p { color: rgba(255, 255, 255, .8); font-size: 14.5px; margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: all .45s var(--ease); }
.service-card:hover .service-body p { max-height: 90px; opacity: 1; margin-top: 12px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold-soft); font-weight: 700; font-size: 14px; }
.service-link svg { width: 16px; height: 16px; fill: currentColor; transition: transform .3s; }
.service-card:hover .service-link svg { transform: translateX(-5px); }
html[dir="ltr"] .service-card:hover .service-link svg { transform: translateX(5px); }
.service-tag { position: absolute; z-index: 2; top: 20px; inset-inline-start: 20px; background: rgba(201, 161, 90, .95); color: #1a1205; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; }

/* ---------- Projects grid ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.07); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 19, 22, .5), transparent 45%); opacity: 0; transition: opacity .4s; }
.project-card:hover .project-media::after { opacity: 1; }
.project-cat { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; background: rgba(20, 24, 27, .78); backdrop-filter: blur(6px); color: var(--gold-soft); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.project-body { padding: 22px 24px 24px; }
.project-body h3 { font-size: 18.5px; font-weight: 800; line-height: 1.35; }
.project-body p { color: var(--stone); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-foot .quote { font-weight: 700; font-size: 13.5px; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; }
.project-foot .quote svg { width: 16px; height: 16px; stroke: var(--gold-deep); fill: none; stroke-width: 2; }
.wa-mini { display: inline-flex; align-items: center; gap: 7px; background: var(--wa); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 15px; border-radius: 999px; transition: .3s; }
.wa-mini:hover { background: #1ebe5a; }
.wa-mini svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pstep { position: relative; padding: 34px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.pstep b.num { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--gold); opacity: .55; line-height: 1; display: block; }
.pstep h3 { font-size: 19px; font-weight: 800; margin: 16px 0 10px; color: #fff; }
.pstep p { color: rgba(255, 255, 255, .62); font-size: 14.5px; }
.pstep::after { content: ""; position: absolute; top: 50px; inset-inline-end: -13px; width: 26px; height: 1px; background: rgba(201, 161, 90, .4); }
.pstep:last-child::after { display: none; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } .pstep::after { display: none; } }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.about-figure { position: relative; }
.about-figure .main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.about-figure .main img { width: 100%; height: 100%; object-fit: cover; }
.about-figure .badge {
    position: absolute; inset-block-end: -26px; inset-inline-end: -18px;
    background: var(--ink); color: #fff; border-radius: var(--radius);
    padding: 24px 28px; box-shadow: var(--shadow); border: 1px solid rgba(201, 161, 90, .3);
}
.about-figure .badge b { font-family: var(--serif); font-size: 34px; color: var(--gold); display: block; line-height: 1; }
.about-figure .badge span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.about-lead { font-size: 19px; font-weight: 600; color: var(--ink); margin: 6px 0 18px; }
.about-text p { color: var(--stone); margin-bottom: 14px; }
.check-list { margin: 26px 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; font-weight: 600; color: var(--ink); }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(201, 161, 90, .16); display: grid; place-items: center; margin-top: 2px; }
.check-list .tick svg { width: 15px; height: 15px; stroke: var(--gold-deep); fill: none; stroke-width: 2.6; }

/* ---------- Clients ---------- */
.clients-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.client {
    display: grid; place-items: center; text-align: center;
    min-height: 96px; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper);
    font-weight: 700; color: var(--stone); font-size: 14.5px;
    transition: .35s var(--ease);
}
.client:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.client img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.client:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .clients-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry a { display: block; margin-bottom: 18px; border-radius: var(--radius-sm); overflow: hidden; position: relative; break-inside: avoid; box-shadow: var(--shadow-sm); }
.masonry img { width: 100%; transition: transform .6s var(--ease); }
.masonry a::after { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 27, 0); transition: background .35s; }
.masonry a:hover::after { background: rgba(20, 24, 27, .28); }
.masonry a .zoom { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; z-index: 2; transition: opacity .35s; }
.masonry a .zoom svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 1.6; }
.masonry a:hover .zoom { opacity: 1; }
.masonry a:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 110px 0; color: #fff; text-align: center; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15, 19, 22, .88), rgba(28, 47, 58, .9)); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; }
.cta-band p { margin: 18px auto 34px; font-size: 18px; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 60px; margin-top: calc(-1 * var(--header-h)); color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15, 19, 22, .78), rgba(15, 19, 22, .88)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
.page-hero .lead { margin-top: 14px; color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 60ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { color: var(--gold-soft); }

/* ---------- Filters / toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-70); background: var(--paper); transition: .25s; }
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; }
.search-box input { border: 0; outline: 0; font-family: var(--sans); font-size: 15px; background: transparent; min-width: 180px; color: var(--ink); }
.search-box button { border: 0; background: var(--gold); color: #1a1205; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.search-box button svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Project detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: flex-start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 84px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .service-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(201, 161, 90, .14); color: var(--gold-deep); font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.detail-info h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.25; }
.detail-desc { margin: 22px 0; color: var(--stone); font-size: 16px; }
.detail-box { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 26px 0; }
.detail-box .q { font-size: 14px; color: var(--stone); }
.detail-box .a { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 700; margin-top: 4px; }
.detail-actions { display: grid; gap: 12px; }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; }
.stars .on { fill: var(--gold); }
.stars .off { fill: #d9d4ca; }

/* ---------- Reviews ---------- */
.reviews-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.review { padding: 24px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.review-head b { font-weight: 800; }
.review p { color: var(--stone); }
.review-form { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 15px; background: var(--paper); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; }
.rating-input label svg { width: 30px; height: 30px; fill: #d9d4ca; transition: fill .15s; }
.rating-input label:hover svg, .rating-input label:hover ~ label svg,
.rating-input input:checked ~ label svg { fill: var(--gold); }
.alert-ok { background: rgba(37, 211, 102, .12); color: #12703a; border: 1px solid rgba(37, 211, 102, .3); padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.ccard { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: .3s; }
.ccard:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.ccard .ico { flex: none; width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(150deg, var(--slate), var(--slate-2)); display: grid; place-items: center; }
.ccard .ico svg { width: 24px; height: 24px; fill: var(--gold); }
.ccard b { display: block; font-size: 15px; margin-bottom: 3px; }
.ccard a, .ccard span { color: var(--stone); font-size: 15px; }
.ccard a:hover { color: var(--gold-deep); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 420px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Article (pages) ---------- */
.article { max-width: 820px; margin-inline: auto; }
.article p { margin-bottom: 18px; color: #33383d; font-size: 16.5px; }
.article h2, .article h3 { margin: 30px 0 12px; color: var(--ink); }
.article h2 { font-size: 24px; }
.article ul { margin: 0 0 18px; display: grid; gap: 10px; }
.article ul li { position: relative; padding-inline-start: 26px; color: #33383d; }
.article ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 10px; height: 10px; background: var(--gold); border-radius: 3px; transform: rotate(45deg); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 74px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; }
.footer .brand-word b { color: #fff; }
.footer .fbrand p { margin: 20px 0; max-width: 42ch; font-size: 15px; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer ul { display: grid; gap: 12px; }
.footer ul a:hover, .footer ul li a:hover { color: var(--gold-soft); }
.footer .contact-li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.footer .contact-li svg { width: 18px; height: 18px; fill: var(--gold); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 700; font-size: 13px; transition: .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.footer-bottom .legal { color: rgba(255,255,255,.5); }
.footer-bottom .legal:hover { color: var(--gold-soft); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6); animation: wapulse 2.4s infinite; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12, 14, 16, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.lb-close { top: 22px; inset-inline-end: 22px; width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav svg, .lb-close svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.lb-prev { inset-inline-start: 22px; }
.lb-next { inset-inline-end: 22px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #1a1205; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--stone); }
.empty-state svg { width: 60px; height: 60px; stroke: var(--gold); fill: none; stroke-width: 1.4; margin-bottom: 18px; }

/* pagination */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; background: var(--paper); padding: 0 12px; }
.pager a:hover { border-color: var(--gold); color: var(--gold-deep); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .feature-grid, .services-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
    .about-split, .detail-grid, .contact-grid, .reviews-wrap { grid-template-columns: 1fr; gap: 40px; }
    .about-figure { max-width: 460px; }
}
@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
        background: var(--ink); flex-direction: column; align-items: stretch;
        padding: 90px 24px 30px; gap: 4px; z-index: 65;
        box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .3s var(--ease), visibility .3s var(--ease);
    }
    html[dir="ltr"] .nav { inset: 0 auto 0 0; }
    .nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav > a { color: rgba(255, 255, 255, .85); padding: 14px 12px; border-radius: 10px; }
    .nav > a::after { display: none; }
    .nav > a:hover, .nav > a.active { background: rgba(255, 255, 255, .06); color: #fff; }
    .header.scrolled .nav > a { color: rgba(255, 255, 255, .85); }
    .nav-desktop { display: none !important; }
    .nav .nav-mobile { display: block; }
    .lang-link.nav-mobile {
        width: auto; height: auto; border-radius: 10px; border: 0;
        padding: 14px 12px; place-items: start; text-align: start;
        color: rgba(255, 255, 255, .85); letter-spacing: normal; font-weight: 700;
    }
    .lang-link.nav-mobile:hover { background: rgba(255, 255, 255, .06); color: #fff; }
    .nav .btn-gold.nav-mobile { margin-top: 12px; }
}
@media (max-width: 640px) {
    .section { padding: 68px 0; }
    .feature-grid, .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-block: 130px 90px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { justify-content: space-between; }
    .about-figure .badge { inset-inline-end: 12px; }
}
@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .hero-sub { font-size: 16px; }
    .section-title { font-size: clamp(24px, 7vw, 32px); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .cta-actions .btn { width: 100%; }
    .hero-points { gap: 10px 18px; }
    .stat { padding: 30px 14px; }
    .stat b { font-size: 34px; }
    .feature, .pstep { padding: 26px 22px; }
    .review-form { padding: 22px; }
    .detail-actions .btn, .btn-block { width: 100%; }
    .footer-grid { gap: 34px; }
}
