/* ------------------------------------------------- Fonts ------------------------------------------------- */

@font-face {
    font-family: "Noto-Medium";
    src: url("/fonts/NotoSansArabic-Medium.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Noto-SemiBold";
    src: url("/fonts/NotoSansArabic-SemiBold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Noto-Bold";
    src: url("/fonts/NotoSansArabic-Bold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Noto-ExtraBold";
    src: url("/fonts/NotoSansArabic-ExtraBold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Montserrat-SemiBold";
    src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Montserrat-Bold";
    src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
    font-display: swap;
}

/* ----------------------------------------------- Variables ----------------------------------------------- */

/*
 * Liquid glass for Mohamed El-Sayed Gallery.
 * A bright silver-fog base with truly clear frosted panels, and the brand's
 * own identity throughout: the logo blue as the working accent, the logo red
 * as the signature mark (echoing the blue/red ring around the emblem).
 */
:root {
    --bg: #d7dce4;
    --bg-deep: #cbd1db;
    --glass: rgba(255, 255, 255, 0.24);
    --glass-strong: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.85);
    --line: rgba(35, 48, 70, 0.12);
    --brand-blue: #1565c0;
    --brand-blue-deep: #0f519d;
    --brand-blue-soft: #4d8dd6;
    --brand-red: #c8102e;
    --brand-red-soft: #d64459;
    --green: #1f9552;
    --text: #1f2735;
    --muted: #5b6577;
    --shadow: 0 18px 40px rgba(48, 62, 90, 0.16);
    --radius: 16px;
    --header-h: 86px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --blur: blur(32px) saturate(1.6);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

::selection {
    background: var(--brand-blue);
    color: #ffffff;
}

.ltr_text {
    direction: ltr;
    unicode-bidi: embed;
}

/* ------------------------------------------------- Body -------------------------------------------------- */

.my_body {
    font-family: "Noto-Medium", "Montserrat-SemiBold", sans-serif;
    direction: rtl;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #e2e6ec 0%, var(--bg) 45%, #cfd5df 100%);
    color: var(--text);
    text-align: right;
    font-size: 17px;
    line-height: 1.85;
}

main {
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

img {
    max-width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, p, figure {
    margin: 0;
}

button {
    font-family: inherit;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #a4adbc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* -------------------------------------------- Ambient light ---------------------------------------------- */

/* Colour drifting behind the glass — the logo's blue and red, softened */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient_blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.ambient_blob_1 {
    width: 640px;
    height: 640px;
    top: -180px;
    inset-inline-start: -120px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.2), transparent 65%);
    animation: drift1 26s ease-in-out infinite alternate;
}

.ambient_blob_2 {
    width: 540px;
    height: 540px;
    top: 34%;
    inset-inline-end: -160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 65%);
    animation: drift2 32s ease-in-out infinite alternate;
}

.ambient_blob_3 {
    width: 480px;
    height: 480px;
    bottom: -140px;
    inset-inline-start: 30%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1), transparent 65%);
    animation: drift3 38s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to { transform: translate(70px, 60px); }
}

@keyframes drift2 {
    to { transform: translate(-60px, -80px); }
}

@keyframes drift3 {
    to { transform: translate(80px, -50px); }
}

/* ---------------------------------------------- Glass system --------------------------------------------- */

.glass_card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
}

/* ---------------------------------------------- Photo rotator -------------------------------------------- */

/* Stacked photos cross-fading: the next photo fades in while the current
   fades out. isolation + border-radius:inherit keep the corners rounded
   while the layers are being composited during the fade. */
.js_rotate {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    border: 0;
}

.js_rotate .rotate_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0;
    border: 0;
    transition: opacity 0.9s ease, transform 0.65s var(--ease);
}

.js_rotate .rotate_img.is_on {
    opacity: 1;
    border: 0;
}

/* ------------------------------------------------ Buttons ------------------------------------------------ */

.btn_primary,
.btn_ghost,
.btn_whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 34px;
    border-radius: 12px;
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 16.5px;
    line-height: 1.6;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn_primary {
    background: linear-gradient(180deg, #2e7ad2, var(--brand-blue));
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(21, 101, 192, 0.35);
}

.btn_primary:hover {
    background: linear-gradient(180deg, #2570c7, var(--brand-blue-deep));
    transform: scale(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px rgba(21, 101, 192, 0.45);
    color: #ffffff;
}

.btn_ghost {
    border: 1px solid rgba(35, 48, 70, 0.22);
    color: var(--text);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.btn_ghost:hover {
    transform: scale(1.05);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--glass-strong);
}

.btn_whatsapp {
    background: linear-gradient(180deg, #27a95f, var(--green));
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px rgba(24, 110, 62, 0.3);
}

.btn_whatsapp:hover {
    transform: scale(1.05);
    color: #ffffff;
}

@media (max-width: 640px) {
    .btn_primary,
    .btn_ghost,
    .btn_whatsapp {
        gap: 7px;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 15px;
    }
}

/* --------------------------------------------- Floating navbar ------------------------------------------- */

.site_header {
    position: fixed;
    top: 25px;
    right: 16px;
    left: 16px;
    z-index: 1000;
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.488);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 14px 34px rgba(48, 62, 90, 0.18);
    overflow: hidden;
}

.site_header_inner {
    height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Reading progress in the two brand colours — like the logo ring */
.scroll_progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2.5px;
    width: 0;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
    transition: width 0.15s linear;
}

.brand {
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: start;
    gap: 15px;
    transition: transform 0.3s var(--ease);
}

.brand_logo_name {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--brand-blue);
    white-space: nowrap;
}

.brand_logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s var(--ease);
    filter: drop-shadow(0 0 5px var(--bg))
}

.brand:hover {
    transform: scale(1.05);
}

.desktop_nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav_link {
    position: relative;
    padding: 10px 15px;
    font-family: "Noto-SemiBold", sans-serif;
    font-size: 16px;
    color: var(--muted);
    border-radius: 10px;
    transition: color 0.3s, background 0.3s, transform 0.3s;
}

.nav_link:hover {
    transform: scale(1.05);
    color: var(--text);
    background: rgba(255, 255, 255, 0.675);
}

.nav_link.active {
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 8px rgba(48, 62, 90, 0.1);
}

.nav_cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, #27a95f, var(--green));
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s var(--ease), filter 0.3s;
}

.nav_cta:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    color: #ffffff;
}

/* Hamburger */
.menu_btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
}

.menu_btn_bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s;
}

body.menu_open .menu_btn_bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu_open .menu_btn_bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

body.menu_open .menu_btn_bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile_menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(226, 231, 238, 0.65);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

body.menu_open .mobile_menu {
    opacity: 1;
    visibility: visible;
}

.mobile_menu_links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile_link {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--muted);
    padding: 10px 26px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s, background 0.3s;
    transition-delay: 0s;
}

body.menu_open .mobile_link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.06s + var(--i) * 0.05s);
}

.mobile_link:hover,
.mobile_link.active {
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.22);
}

.mobile_whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #27a95f, var(--green));
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s var(--ease), filter 0.3s;
}

.mobile_whatsapp:hover,
.mobile_whatsapp:active {
    background: linear-gradient(180deg, #27a95f, var(--green));
    transform: scale(1.05);
    filter: brightness(1.1);
    color: #ffffff;
}

/* ------------------------------------------- Hero: glass + mirror ---------------------------------------- */

.hero {
    padding: calc(var(--header-h) + 56px) 24px 84px;
}

.hero_grid {
    position: relative;
    max-width: 1340px;
    padding: 0 30px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
}

/* Clear frosted panel overlapping the mirror image */
.hero_panel {
    position: relative;
    z-index: 2;
    margin-inline-end: -50px;
    padding: 48px 46px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero_kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Noto-SemiBold", sans-serif;
    font-size: 18px;
    color: var(--brand-blue);
}

.hero_kicker::before {
    content: "";
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.hero_title {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 66px);
    line-height: 1.5;
    color: var(--text);
    margin-top: 18px;
}

.hero_title_accent {
    color: var(--brand-red);
}

.hero_sub {
    font-size: clamp(16px, 2vw, 18.5px);
    color: var(--muted);
    max-width: 500px;
    margin-top: 18px;
}

.hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero_stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero_stat_num {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 2.6vw, 31px);
    color: var(--brand-blue);
    line-height: 1.3;
}

.hero_stat_label {
    color: var(--muted);
    font-size: 16px;
    margin-top: 2px;
}

/* The mirror: image + cursor-tracked reflection */
.hero_media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    aspect-ratio: 5 / 5;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.3s forwards;
    transform-style: preserve-3d;
}

.hero_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reflection highlight that follows the cursor (JS sets --mx / --my) */
.hero_sheen {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px circle at var(--mx, 72%) var(--my, 24%), rgba(255, 255, 255, 0.4), transparent 62%),
        linear-gradient(215deg, rgba(255, 255, 255, 0.22) 0%, transparent 35%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

@media (max-width: 640px){
    .hero_kicker {
        font-size: 15px;
    }

    .hero_kicker::before {
        content: "";
        width: 30px;
    }

    .hero_stat_label {
        font-size: 15px;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------ Marquee ------------------------------------------------ */

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.marquee_track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marqueeMove 60s linear infinite;
}

.marquee_item {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--muted);
    white-space: nowrap;
}

.marquee_star {
    color: var(--brand-red);
    font-size: 30px;
    margin: 0;
    line-height: 20%;
    opacity: 1;
}

@media (max-width: 640px) {
    .marquee_track {
        gap: 12px;
        animation: marqueeMove 60s linear infinite;
    }

    .marquee_item {
        font-size: 15px;
    }

    .marquee_star {
        font-size: 25px;
    }
}

@keyframes marqueeMove {
    to {
        transform: translateX(50%);
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------- Section header -------------------------------------------- */

.section {
    max-width: 1340px;
    margin: 0 auto;
    padding: 88px 30px 0;
}

.section:last-of-type {
    padding-bottom: 32px;
}

.section_flush {
    padding-top: 52px;
}

.sec_head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.sec_num {
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 15px;
    color: var(--brand-blue);
    letter-spacing: 1px;
}

.sec_title {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(26px, 3.6vw, 38px);
    color: var(--text);
    line-height: 1.5;
}

.sec_rule {
    position: relative;
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Small red point ending each rule — the brand signature */
.sec_rule::after {
    content: "";
    position: absolute;
    top: -2.5px;
    inset-inline-end: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-red);
    opacity: 0.75;
}

.sec_link {
    font-family: "Noto-SemiBold", sans-serif;
    font-size: 15.5px;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.25s;
}

.sec_link:hover {
    color: var(--brand-blue);
}

.sec_note {
    color: var(--muted);
    font-size: 16px;
    max-width: 1000px;
    margin-bottom: 40px;
}

/* ------------------------------------- Services bento (2 featured) --------------------------------------- */

/* 10 services fill a 4-column bento exactly: tiles 1 and 6 are featured
   2x2 squares, the rest are 1x1 — four full rows, no orphan tile. */
.wall_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-auto-rows: 225px; */
    gap: 22px;
}

.wall_item {
    position: relative;
    display: block;
}

.wall_item:nth-child(1)  { order: 1;  }  /* المرايات */
.wall_item:nth-child(2)  { order: 2;  }  /* واجهات السيكوريت */
.wall_item:nth-child(3)  { order: 8;  }  /* كبائن الشاور */
.wall_item:nth-child(4)  { order: 3;  }  /* السلالم الزجاج */
.wall_item:nth-child(5)  { order: 4;  }  /* أبواب الحفر والرسم */
.wall_item:nth-child(6)  { order: 5;  }  /* الأسقف */
.wall_item:nth-child(7)  { order: 6;  }  /* الحفر علي الزجاج */
.wall_item:nth-child(8)  { order: 7;  }  /* الحفر علي الرخام */
.wall_item:nth-child(9)  { order: 9;  }  /* الريليف والرسم */
.wall_item:nth-child(10) { order: 10; }  /* ديكورات مختلفة */

.wall_item:nth-child(1),
.wall_item:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Featured tiles get a larger caption */
.wall_item:nth-child(1) .wall_title,
.wall_item:nth-child(3) .wall_title {
    font-size: 21px;
}

.wall_media {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.wall_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease);
}

.wall_item:hover .wall_media img {
    transform: scale(1.1);
}

/* Clear frosted caption bar floating inside the frame */
.wall_caption {
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.445);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: background 0.3s, transform 0.3s var(--ease);
}

.wall_item:hover .wall_caption {
    background: rgba(255, 255, 255, 0.69);
}

.wall_title {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 17.5px;
    color: var(--text);
}

.wall_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--brand-blue);
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.wall_item:hover .wall_arrow {
    background: var(--brand-blue);
    color: #ffffff;
    transform: scale(1.05);
}

/* ----------------------------------------------- Why band ------------------------------------------------ */

.why_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.why_item {
    padding: 28px;
    background: var(--glass-strong);
    transition: transform 0.3s var(--ease), background 0.3s;
}

.why_num {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3.8vw, 40px);
    color: var(--brand-blue);
    line-height: 1.2;
}

.why_title {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: 19px;
    color: var(--text);
    margin-top: 10px;
}

.why_text {
    color: var(--muted);
    font-size: 15px;
    margin-top: 8px;
    line-height: 2;
}

/* ---------------------------------------------- Visit band ----------------------------------------------- */

.visit_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.visit_info {
    padding: 42px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.visit_lead {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 3vw, 25px);
    color: var(--text);
    line-height: 1.7;
}

.visit_text {
    color: var(--muted);
    font-size: clamp(15px, 3vw, 20px);
    margin-top: 14px;
    line-height: 2;
}

.visit_phone {
    display: inline-block;
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(25px, 3.2vw, 30px);
    color: var(--brand-blue);
    margin-top: 20px;
    transition: color 0.25s;
}

.visit_phone:hover {
    color: var(--brand-blue-deep);
}

.visit_actions {
    margin-top: 26px;
}

.visit_map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    min-height: 380px;
}

.home_map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* ----------------------------------------------- Page head ----------------------------------------------- */

.page_head {
    padding: calc(var(--header-h) + 52px) 24px 44px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}

.page_head_inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 30px;
}

.page_head_kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Noto-SemiBold", sans-serif;
    font-size: 18px;
    color: var(--brand-blue);
}

.page_head_kicker::before {
    content: "";
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.page_head_title {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--text);
    line-height: 1.4;
    margin-top: 10px;
}

.page_head_sub {
    color: var(--muted);
    font-size: 17px;
    max-width: 100%;
    margin-top: 10px;
    line-height: 2;
}

.gallery_count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding: 10px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.gallery_count svg {
    color: var(--brand-blue);
}

.gallery_count span {
    color: var(--text);
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
}

.zoom_hint {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .page_head_inner {
        padding: 0;
    }

    .page_head {
        padding: calc(var(--header-h) + 24px) 24px 24px;
    }

    .page_head_kicker {
        font-size: 16px;
    }

    .page_head_kicker::before {
        width: 30px;
    }

    .page_head_sub {
        font-size: 15px;
        line-height: 1.75;
    }
}

/* -------------------------------------------- Services listing ------------------------------------------- */

.srv_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.srv_item {
    display: grid;
    grid-template-columns: 36px 1fr 250px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s, margin 0.3s var(--ease);
}

/* Slight alternating indent — architectural rhythm */
.srv_item:nth-child(odd) {
    margin-left: 20px;
}

.srv_item:nth-child(even) {
    margin-right: 20px;
}

.srv_item:hover {
    background: var(--glass-strong);
    transform: scale(1.0125);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
}

.srv_num {
    font-family: "Montserrat-Bold", sans-serif;
    color: var(--brand-blue);
    letter-spacing: 1px;
}

/* Desktop: the number is its own column; the inline copy stays hidden */
.srv_num_col {
    font-size: 25px;
}

.srv_num_inline {
    display: none;
    font-size: 0.85em;
    margin-inline-end: 12px;
}

.srv_title {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 2.6vw, 26px);
    color: var(--text);
    transition: color 0.25s;
}

.srv_item:hover .srv_title {
    color: var(--brand-blue);
}

.srv_text {
    color: var(--muted);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 2;
    margin-top: 8px;
    max-width: 600px;
}

.srv_more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: "Noto-SemiBold", sans-serif;
    font-size: 15px;
    color: var(--brand-blue);
}

.srv_more svg {
    transition: transform 0.3s var(--ease);
}

.srv_item:hover .srv_more svg {
    transform: translateX(-10px);
}

.srv_media {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    aspect-ratio: 1 / 1;
}

.srv_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.srv_item:hover .srv_media img {
    transform: scale(1.1);
}

/* --------------------------------------- Full-bleed masonry gallery -------------------------------------- */

.gallery_bleed {
    padding: 44px clamp(20px, 1.6vw, 30px) 88px;
}

.masonry {
    columns: 5 250px;
    column-gap: 15px;
}

.masonry_item {
    position: relative;
    /* inline-block, not block: block margins get carried across column
       breaks in multicol layouts, making some columns start lower. */
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin: 0 0 15px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass);
    cursor: zoom-in;
    break-inside: avoid;
    transition: border-color 0.3s;
}

/* No transforms and no shadow toggling on multicol items: transforms break
   the rounded-corner clip, and adding/removing a box-shadow makes Chrome
   re-composite the tile (image blinks on mouse-leave). Hover feedback is
   paint-only: brighter border + tint + magnifier. */
.masonry_item:hover {
    border-color: var(--brand-blue-soft);
}

.masonry_img {
    display: block;
    width: 100%;
    min-height: 140px;
    background: linear-gradient(110deg, rgba(140, 155, 180, 0.14) 8%, rgba(140, 155, 180, 0.26) 18%, rgba(140, 155, 180, 0.14) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

/* When the real aspect-ratio is known (inline style from Drive metadata),
   the placeholder already has the photo's exact final size — the min-height
   fallback would only distort it. */
.masonry_img.has_ratio {
    min-height: 0;
    height: auto;
}

.masonry_img.loaded {
    min-height: 0;
    background: none;
    animation: none;
    opacity: 1;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.masonry_zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Plain tint only — backdrop-filter renders unreliably inside
       multicol fragments and can white-out the photo on some items. */
    background: rgba(31, 39, 53, 0.22);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s;
}

.masonry_zoom svg {
    width: 32px;
    height: 32px;
}

.masonry_item:hover .masonry_zoom {
    opacity: 1;
}

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

/* The viewer stays dim so the photos glow against it */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 34, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lightbox_stage {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox_img {
    /* Force the height so every photo fills the viewer (max-height alone
       never upscales a photo whose natural size is smaller than the box). */
    height: 90vh;
    width: auto;
    max-width: 90vw;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    cursor: zoom-in;
}

/* Narrow screens: size the photo naturally (fill the width) — forcing the
   height would letterbox it inside a taller box, pushing the rounded
   corners and shadow onto the invisible letterbox instead of the photo. */
@media (max-width: 760px) {
    .lightbox_img {
        width: 85vw;
        height: auto;
        max-height: 90vh;
    }
}

.lightbox.open .lightbox_img.ready {
    opacity: 1;
    transform: scale(1);
}

/* Zoom & explore: click to magnify, move to pan (transform-origin follows the cursor) */
.lightbox.open .lightbox_img.ready.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
    transition: transform 0.35s var(--ease);
}

.lightbox_spinner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    opacity: 0;
    transition: opacity 0.2s;
}

.lightbox.loading .lightbox_spinner {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox_close,
.lightbox_nav {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.lightbox_nav:hover {
    background: var(--brand-blue);
    color: #ffffff;
    transform: scale(1.05);
}

.lightbox_close:hover {
    background: var(--brand-red);
    color: #ffffff;
    transform: scale(1.05);
}

.lightbox_close {
    top: 22px;
    inset-inline-end: 22px;
}

/* Physical arrows: prev goes to previous photo, shown on the right in RTL */
.lightbox_prev {
    right: 18px;
    top: 50%;
    margin-top: -25px;
}

.lightbox_next {
    left: 18px;
    top: 50%;
    margin-top: -25px;
}

.lightbox_counter {
    position: absolute;
    z-index: 3;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 7px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    direction: ltr;
}

.lightbox_counter span {
    color: #ffffff;
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
}

body.lightbox_open {
    overflow: hidden;
}

/* The photo viewer takes the whole stage — tuck the floating bar away */
body.lightbox_open .site_header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

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

.contact_split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    align-items: stretch;
}

.contact_call {
    padding: 40px 38px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
    display: grid;
    justify-content: space-between;
}

.contact_call_label {
    font-family: "Noto-SemiBold", sans-serif;
    color: var(--muted);
    font-size: 15px;
}

.contact_call_label.mt {
    margin-top: 28px;
}

.contact_phone {
    display: inline-block;
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(25px, 3.2vw, 30px);
    color: var(--brand-blue);
    margin-top: 4px;
    transition: color 0.25s;
}

.contact_phone:hover {
    color: var(--brand-blue-deep);
}

.contact_call .btn_whatsapp {
    margin-top: 34px;
}

.contact_channels {
    padding: 14px 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
}

.channel_row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
    transition: color 0.3s var(--ease);
}

.channel_row:last-of-type {
    border-bottom: 0;
}

.channel_label {
    font-family: "Noto-SemiBold", sans-serif;
    color: var(--muted);
    font-size: 15px;
    min-width: 150px;
}

.channel_value {
    flex: 1;
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 16.5px;
    line-height: 1.8;
    text-align: right;
    transition: color 0.3s var(--ease);
}

.ltr_text.channel_value {
    text-align: left;
}

.channel_row:hover .channel_value {
    color: var(--brand-blue);
}

.channel_note {
    color: var(--muted);
    font-size: 15px;
    padding: 16px 4px;
}

.contact_map {
    margin-top: 26px;
    min-height: 420px;
}

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

.about_wrap {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.about_lead {
    border-inline-start: 3px solid var(--brand-blue);
    padding-inline-start: 26px;
}

.about_lead_text {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 2.8vw, 25px);
    color: var(--text);
    line-height: 1.9;
}

.about_lead .about_text {
    margin-top: 16px;
}

.about_text {
    color: var(--muted);
    font-size: clamp(13px, 1.5vw, 17px);
    line-height: 2.1;
}

.about_text b {
    color: var(--text);
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
}

.about_heading {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.5;
}

.about_cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.about_card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
    padding: 34px;
}

.about_card_num {
    display: block;
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--brand-blue);
    margin-bottom: 14px;
}

/* Zigzag timeline */
.zigline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 0 4px;
}

.zigline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 1px;
    background: rgba(35, 48, 70, 0.2);
}

.zig_item {
    position: relative;
    width: 50%;
    padding: 0 36px 28px;
}

.zig_item::before {
    content: "";
    position: absolute;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--brand-blue);
}

.zig_right::before {
    left: -7px;
}

.zig_left {
    margin-inline-start: 50%;
}

.zig_left::before {
    right: -7px;
}

.zig_item:last-child::before {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.zig_card {
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    padding: 20px 24px;
    transition: background 0.3s, transform 0.3s var(--ease);
}

.zig_year {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    color: var(--brand-blue);
    font-size: 19px;
}

.zig_text {
    color: var(--muted);
    font-size: 15.5px;
    margin-top: 4px;
    line-height: 2;
}

/* Features */
.features_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature_card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    padding: 26px;
    transition: transform 0.3s var(--ease), background 0.3s;
}

.feature_num {
    display: block;
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.feature_title {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 17px;
    margin-bottom: 8px;
}

.feature_text {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.95;
}

/* ------------------------------------------------ CTA band ----------------------------------------------- */

.cta_band {
    width: 100%;
    padding: 30px 0 0;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.cta_band_outer {
    width: 100%;
    max-width: 1340px;
    padding: 0 30px;
    margin: 0 auto;
}

.cta_band_inner {
    padding: 72px 24px;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
}

.cta_title {
    font-family: "Noto-ExtraBold", sans-serif;
    font-weight: 500;
    font-size: clamp(23px, 4.4vw, 42px);
    color: var(--text);
    line-height: 1.5;
}

.cta_sub {
    color: var(--muted);
    font-size: clamp(15px, 2vw, 17px);
    max-width: 620px;
    margin: 14px auto 0;
    line-height: 2;
}

.cta_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

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

.site_footer {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.footer_inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 60px 30px 42px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 42px;
    text-align: right;
}

.footer_logo_chip {
    display: inline-block;
}

.footer_logo {
    width: 170px;
    height: auto;
}

.footer_about {
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
    margin-top: 5px;
    max-width: 350px;
}

.footer_title {
    font-family: "Noto-Bold", sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 17.5px;
    margin-bottom: 16px;
}

.footer_link {
    font-family: "Noto-SemiBold", sans-serif;
    display: block;
    color: var(--muted);
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.25s;
}

.footer_link:hover {
    color: var(--brand-blue);
}

.footer_socials {
    display: flex;
    gap: 10px;
}

.footer_social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--muted);
    transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.footer_social:hover {
    color: #ffffff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.025);
}

.footer_bottom {
    border-top: 1px solid var(--line);
    padding: 20px 24px;
    text-align: center;
}

.footer_rights {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

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

@media (max-width: 1080px) {
    .footer_inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero_panel {
        margin-inline-end: -40px;
        padding: 24px;
    }
}

@media (max-width: 940px) {
    .desktop_nav,
    .nav_cta {
        display: none;
    }

    .menu_btn {
        display: flex;
    }

    .hero_grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero_panel {
        margin: 0;
        order: 2;
    }

    .hero_media {
        order: 1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
        aspect-ratio: 5 / 5;
        margin-bottom: -60px;
    }

    .hero_stats {
        gap: 30px;
    }

    /* Bento collapses to 2 columns: featured tiles span the full width */
    .wall_grid {
        grid-template-columns: repeat(2, 1fr);
        /* grid-auto-rows: 180px; */
        gap: 18px;
    }

    .wall_item:nth-child(1),
    .wall_item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .wall_item:nth-child(1) .wall_title,
    .wall_item:nth-child(3) .wall_title {
        font-size: 17.5px;
    }

    /* Mobile display order. Left = DOM position (fixed, from main.pug);
       right (order:) = where the tile appears on the phone. Change the
       order values to re-sequence — HTML and desktop bento are untouched. */
    .wall_item:nth-child(1)  { order: 1;  }  /* المرايات */
    .wall_item:nth-child(2)  { order: 2;  }  /* واجهات السيكوريت */
    .wall_item:nth-child(3)  { order: 3;  }  /* كبائن الشاور */
    .wall_item:nth-child(4)  { order: 4;  }  /* السلالم الزجاج */
    .wall_item:nth-child(5)  { order: 5;  }  /* أبواب الحفر والرسم */
    .wall_item:nth-child(6)  { order: 6;  }  /* الأسقف */
    .wall_item:nth-child(7)  { order: 7;  }  /* الحفر علي الزجاج */
    .wall_item:nth-child(8)  { order: 8;  }  /* الحفر علي الرخام */
    .wall_item:nth-child(9)  { order: 9;  }  /* الريليف والرسم */
    .wall_item:nth-child(10) { order: 10; }  /* ديكورات مختلفة */

    .why_grid {
        grid-template-columns: 1fr;
    }

    .visit_grid,
    .contact_split {
        grid-template-columns: 1fr;
    }

    /* One column: number + title centred on one line, description below
       at full width, photo spans the full card. */
    .srv_item {
        display: block;
        padding: 18px;
        margin: 0;
    }

    .srv_item:nth-child(odd) {
        margin-inline-end: 0;
    }

    .srv_item:nth-child(even) {
        margin-inline-start: 0;
    }

    /* Mobile: number joins the title line, centred together */
    .srv_num_col {
        display: none;
    }

    .srv_num_inline {
        display: inline;
    }

    .srv_media {
        margin-top: 16px;
        aspect-ratio: 1 / 1;
        max-width: none;
    }

    .features_grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Zigzag collapses to a single rail */
    .zigline::before {
        right: 5px;
    }

    .zig_item,
    .zig_left {
        width: 100%;
        margin-inline-start: 0;
        padding: 0 30px 26px 0;
    }

    .zig_right::before,
    .zig_left::before {
        left: auto;
        right: 1px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 78px;
    }

    .site_header {
        top: 20px;
        right: 30px;
        left: 30px;
    }

    .site_header_inner {
        height: 65px;
        padding: 0 15px;
    }

    .brand_logo {
        height: 38px;
    }

    .brand {
        gap: 10px;
    }

    .brand_logo_name {
        font-size: 16px;
    }

    .section {
        padding: 60px 16px 0;
    }

    .section_flush {
        padding-top: 40px;
    }

    .hero {
        padding: calc(var(--header-h) + 36px) 16px 64px;
    }

    .hero_media {
        margin-bottom: -30px;
    }

    .hero_stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .sec_head {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Phones: uniform grid — every tile is a normal 1x1 cell.
       (The selectors must repeat :nth-child to out-rank the desktop
       featured rule; a bare .wall_item would lose on specificity.) */
    .wall_grid {
        /* grid-auto-rows: 170px; */
        gap: 12px;
    }

    .wall_caption {
        right: 8px;
        left: 8px;
        bottom: 8px;
        padding: 8px 10px;
    }

    .wall_title {
        font-size: 12px;
    }

    .wall_item:nth-child(1) .wall_title,
    .wall_item:nth-child(3) .wall_title {
        font-size: 12px;
    }

    .wall_arrow {
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }

    .about_cards,
    .features_grid {
        grid-template-columns: 1fr;
    }

    /* Feature cards: number sits beside the title, vertically centred
       with it; the description takes the full width below. */
    .feature_card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 10px;
        padding: 18px;
    }

    .feature_num {
        display: inline;
        margin-bottom: 0;
    }

    .feature_title {
        flex: 1;
        margin-bottom: 0;
    }

    .feature_text {
        flex-basis: 100%;
        margin-top: 8px;
    }

    .about_card {
        padding: 24px;
    }

    .about_lead {
        padding-inline-start: 12px;
    }

    .cta_band {
        padding: 30px 0 10px;
    }

    .cta_band_outer {
        padding: 0;
    }

    .cta_band_inner {
        padding: 36px 30px;
    }

    .site_footer {
        margin-top: 20px;
    }

    .footer_inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 42px 24px 42px;
        gap: 30px;
    }

    .footer_rights {
        font-size: 12px;
    }

    .masonry {
        columns: 2 150px;
        column-gap: 8px;
    }

    .masonry_item {
        margin-bottom: 8px;
    }

    .lightbox_close,
    .lightbox_nav {
        width: 44px;
        height: 44px;
    }

    .lightbox_prev {
        right: 8px;
    }

    .lightbox_next {
        left: 8px;
    }

    .cta_band {
        margin: 0;
    }

    .cta_band_outer {
        padding: 0 15px 10px;
    }

    .footer_logo_chip {
        display: flex;
        width: 100%;
        justify-items: center;
    }

    .footer_logo {
        width: 200px;
        height: auto;
        margin: 0 auto 18px;
    }

    .footer_about {
        text-align: center;
    }

    .channel_label {
        min-width: 0;
    }

    .channel_row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .channel_value {
        flex-basis: 100%;
    }

    .gallery_bleed {
        padding: 24px clamp(15px, 1.6vw, 30px) 48px;
    }
}

/* ------------------------------------------- Reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .hero_panel,
    .hero_media {
        opacity: 1;
        transform: none;
    }

    .marquee_track {
        animation: none;
    }

    .ambient_blob {
        animation: none;
    }
}
