/* ==========================================================================
   Al-Thiabi Glass — main stylesheet
   Uses CSS logical properties (margin-inline-start, inset-inline-end, …)
   so the same rules render correctly in LTR (English) and RTL (Arabic).
   ========================================================================== */

:root {
    --primary: #1b9ad6;
    --primary-dark: #137ab0;
    --primary-soft: #e6f4fb;
    --dark: #0c1822;
    --dark-2: #13232f;
    --text: #33414d;
    --muted: #6b7a87;
    --line: #e3e8ed;
    --bg-alt: #f4f7fa;
    --white: #fff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(12, 24, 34, .08);
    --shadow-lg: 0 20px 50px rgba(12, 24, 34, .15);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 84px;
}
[dir="rtl"] { --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; inset-inline-start: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.15em; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.6em; border-radius: 50px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 154, 214, .35); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { color: var(--primary); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .95rem; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

.eyebrow {
    display: inline-block; color: var(--primary); font-weight: 700; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .12em; margin-block-end: .6em;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #b9c6d1; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #b9c6d1; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar-contact, .topbar-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lang-switch { background: rgba(255, 255, 255, .08); padding: 4px 12px; border-radius: 30px; font-weight: 600; color: var(--white) !important; }
.lang-switch:hover { background: var(--primary); }
[dir="ltr"] .lang-switch { font-family: 'Cairo', sans-serif; }
[dir="rtl"] .lang-switch { font-family: 'Poppins', sans-serif; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(12, 24, 34, .97);
    backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    white-space: nowrap;
    display: flex; align-items: center; gap: 4px; color: #dfe7ee; font-weight: 500; font-size: .93rem;
    padding: 10px 12px; border-radius: var(--radius-sm);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--white); background: rgba(255, 255, 255, .07); }
.main-nav > ul > li > a.active { color: var(--primary); }
.caret { width: .9em; height: .9em; transition: transform .2s; }
.mega {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 440px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 22px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
    border-block-start: 3px solid var(--primary);
}
.mega-single { min-width: 240px; grid-template-columns: 1fr; }
.mega a { display: block; color: var(--text); padding: 6px 0; font-size: .92rem; }
.mega a:hover { color: var(--primary); padding-inline-start: 4px; }
.mega .mega-title { font-weight: 700; color: var(--dark); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; border-block-end: 1px solid var(--line); margin-block-end: 6px; }
[dir="rtl"] .mega .mega-title { letter-spacing: 0; font-size: .9rem; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .caret { transform: rotate(180deg); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(88vh, 720px); min-height: 500px; overflow: hidden; background: var(--dark); }
.slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    display: flex; align-items: center; opacity: 0; transition: opacity 1s ease; z-index: 1;
}
.slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(12, 24, 34, .9) 0%, rgba(12, 24, 34, .55) 55%, rgba(12, 24, 34, .2) 100%);
}
[dir="rtl"] .slide::before { background: linear-gradient(-90deg, rgba(12, 24, 34, .9) 0%, rgba(12, 24, 34, .55) 55%, rgba(12, 24, 34, .2) 100%); }
.slide.is-active { opacity: 1; z-index: 2; }
.slide-content { position: relative; color: var(--white); max-width: 1200px; }
.slide-content > * { max-width: 640px; }
.slide-title { color: var(--white); text-transform: uppercase; }
[dir="rtl"] .slide-title { text-transform: none; }
.slide-text { font-size: 1.15rem; color: #d4dee6; margin-block-end: 1.8em; }
.slide .eyebrow { color: #7fd0f5; }
.slide.is-active .slide-content > * { animation: rise .8s ease both; }
.slide.is-active .slide-content > *:nth-child(2) { animation-delay: .15s; }
.slide.is-active .slide-content > *:nth-child(3) { animation-delay: .3s; }
.slide.is-active .slide-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; z-index: 5; bottom: 30px; inset-inline: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .3s; padding: 0; }
.hero-dots button.is-active { width: 34px; background: var(--primary); }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; padding: 90px 0 70px; background-size: cover; background-position: center; color: var(--white);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12, 24, 34, .82), rgba(12, 24, 34, .7)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-block-end: .3em; }
.page-hero p { color: #c8d4dd; font-size: 1.1rem; margin: 0; max-width: 720px; }
.breadcrumb { font-size: .88rem; margin-block-end: 14px; color: #9fb2c1; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: #cfe6f3; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #c5d1db; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { margin-block-end: 44px; max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head.with-link { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 20px; flex-wrap: wrap; }
.section-head.with-link h2 { margin: 0; }
.subhead { margin: 60px 0 30px; font-size: 1.4rem; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---------- Stats ---------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stats > div { padding: 28px 20px; text-align: center; border-inline-end: 1px solid var(--line); }
.stats > div:last-child { border-inline-end: 0; }
.stats strong { display: block; font-size: 2.1rem; color: var(--primary); line-height: 1.1; font-weight: 800; }
.stats span { font-size: .9rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-block-end: .5em; }
.card-body h3 a { color: var(--dark); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.product-card.compact .card-body { padding: 18px 20px; }
.product-card.compact h3 { font-size: 1.05rem; }
.feature-card .card-img { aspect-ratio: 16 / 10; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); margin-block-end: 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { color: var(--primary); }

/* ---------- Portfolio teaser ---------- */
.tag-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 10px 0 26px; }
.tag-list li { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; }
.tag-list .icon { color: var(--primary); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.mosaic a:nth-child(1) { margin-block-start: 40px; }
.mosaic a:nth-child(4) { margin-block-start: -40px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.08); }

/* ---------- Process ---------- */
.steps { margin-block-end: 40px; counter-reset: step; }
.step {
    position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px 30px 30px; transition: all .3s;
}
.step:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 18px; inset-inline-end: 24px; font-size: 3rem; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.step-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-block-end: 18px; }
.step-icon .icon { width: 28px; height: 28px; }
.step-label { display: block; color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-block-end: 4px; }
[dir="rtl"] .step-label { letter-spacing: 0; font-size: .9rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { margin: 0; font-size: 1.3rem; font-weight: 600; max-width: 760px; }

/* ---------- Quote band & forms ---------- */
.quote-band { background: var(--dark-2); padding: 90px 0; color: #c5d1db; position: relative; overflow: hidden; }
.quote-band::after {
    content: ""; position: absolute; inset-block-start: -120px; inset-inline-end: -120px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(27, 154, 214, .25), transparent 70%);
}
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.quote-intro h2 { color: var(--white); }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-block-end: 10px; }
.check-list .icon { color: var(--primary); margin-block-start: .3em; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); color: var(--text); }
.form-card h3 { font-size: 1.4rem; margin-block-end: .2em; }
.form-sub { color: var(--muted); font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-block-end: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); margin-block-end: 6px; }
.field input, .field select, .field textarea, .newsletter-form input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; color: var(--dark); background: #fbfcfd; transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter-form input:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(27, 154, 214, .15); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-block-end: 16px; font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.alert ul { padding-inline-start: 18px; list-style: disc; }
.alert-success { background: #e7f7ee; color: #17663a; border: 1px solid #b6e4c8; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #98a8b5; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr 1.2fr; gap: 40px; padding-block: 70px 50px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-block-end: 18px; position: relative; padding-block-end: 12px; }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer-about img { height: 50px; width: auto; margin-block-end: 16px; }
.site-footer a { color: #b6c4cf; }
.site-footer a:hover { color: var(--primary); }
.footer-links li { margin-block-end: 8px; }
.footer-links.two-col { columns: 2; column-gap: 20px; }
.footer-contact li { display: flex; gap: 10px; margin-block-end: 12px; }
.footer-contact .icon { color: var(--primary); margin-block-start: .3em; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: var(--white); transition: all .2s; }
.social a:hover { background: var(--primary); color: var(--white); }
.newsletter-form { display: flex; gap: 8px; margin-block-end: 8px; }
.newsletter-form input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--white); }
.newsletter-form .btn { padding: .7em 1.1em; }
.footer-bottom { border-block-start: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.whatsapp-float, .to-top {
    position: fixed; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    color: var(--white); box-shadow: var(--shadow-lg); transition: all .3s;
}
.whatsapp-float { bottom: 22px; inset-inline-start: 22px; background: #25d366; }
.whatsapp-float .icon { width: 26px; height: 26px; }
.whatsapp-float:hover { color: var(--white); transform: scale(1.08); }
.to-top { bottom: 22px; inset-inline-end: 22px; background: var(--primary); opacity: 0; visibility: hidden; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--white); background: var(--primary-dark); }

/* ---------- About ---------- */
.prose p { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-block-start: 1.4em; }
.prose h2:first-child { margin-block-start: 0; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge-card {
    position: absolute; bottom: -24px; inset-inline-start: -24px; background: var(--primary); color: var(--white);
    padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.badge-card strong { display: block; font-size: 2rem; line-height: 1; }
.badge-card span { font-size: .85rem; }
.info-box { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-box p { color: var(--muted); margin: 0; font-size: .95rem; }
.info-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-block-end: 16px; flex-shrink: 0; }
.info-icon .icon { width: 24px; height: 24px; }

/* ---------- Gallery & filter ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(27, 154, 214, .25); opacity: 0; transition: opacity .3s; }
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after { opacity: 1; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-end: 40px; }
.filter-bar button, .filter-bar a {
    border: 1.5px solid var(--line); background: var(--white); color: var(--text); padding: 8px 18px;
    border-radius: 40px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .2s;
}
.filter-bar button:hover, .filter-bar a:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar .is-active, .filter-bar .is-active:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.project-group { margin-block-end: 50px; }
.project-group[hidden] { display: none; }
.group-title { font-size: 1.35rem; margin-block-end: 18px; }
.group-title small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.result-count { color: var(--muted); font-size: .9rem; margin-block-end: 20px; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; margin-block-end: 50px; }
.main-image { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-block-start: 10px; }
.thumbs a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; transition: border-color .2s; }
.thumbs a:hover { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 14px; }
.chip { background: var(--primary-soft); color: var(--primary-dark); padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.help-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-block-start: 24px; border-inline-start: 4px solid var(--primary); }
.help-box p { color: var(--muted); }
.product-description { max-width: 900px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 30px; }
.feature-list li { display: flex; gap: 14px; background: var(--bg-alt); padding: 18px; border-radius: var(--radius-sm); }
.feature-list .fl-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.feature-list .fl-icon .icon { width: 16px; height: 16px; }
.feature-list strong { display: block; color: var(--dark); margin-block-end: 2px; }
.feature-list span { font-size: .93rem; color: var(--muted); }
.prose .check-list { margin: 10px 0 24px; }

/* ---------- Blog ---------- */
.blog-grid .card-img { aspect-ratio: 16 / 9; }
.with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.post-cover { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; margin-block-end: 30px; box-shadow: var(--shadow); }
.share { display: flex; align-items: center; gap: 10px; margin-block-start: 30px; padding-block-start: 20px; border-block-start: 1px solid var(--line); font-weight: 600; }
.share a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--dark); }
.share a:hover { background: var(--primary); color: var(--white); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.widget { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.widget h3 { font-size: 1.1rem; }
.mini-posts li + li { margin-block-start: 14px; }
.mini-posts a { display: flex; gap: 12px; align-items: center; color: var(--dark); }
.mini-posts img { width: 70px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mini-posts strong { display: block; font-size: .9rem; line-height: 1.4; font-weight: 600; }
.mini-posts small { color: var(--muted); }
.mini-posts a:hover strong { color: var(--primary); }
.widget-links li { border-block-end: 1px solid var(--line); }
.widget-links a { display: block; padding: 8px 0; color: var(--text); font-size: .93rem; }
.widget-links a:hover { color: var(--primary); padding-inline-start: 4px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.info-list li { display: flex; gap: 16px; margin-block-end: 24px; }
.info-list strong { display: block; color: var(--dark); }
.info-list span, .info-list a { display: block; }
.info-list .info-icon { margin: 0; }
.contact-layout .form-card { box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- 404 ---------- */
.big-404 { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--primary-soft); line-height: 1; display: block; -webkit-text-stroke: 2px var(--primary); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 18, .94); display: flex; align-items: center; justify-content: center; padding: 60px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: var(--white); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--primary); }
.lightbox .icon { width: 22px; height: 22px; }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .icon { transform: none; }
.lb-next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lb-next .icon { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav > ul > li > a { padding: 10px 8px; font-size: .88rem; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1150px) {
    :root { --header-h: 72px; }
    .logo img { height: 46px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; inset-inline: 0; height: calc(100vh - var(--header-h)); background: var(--dark);
        flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 30px; overflow-y: auto;
        opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s; visibility: hidden;
    }
    .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
    .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .main-nav > ul > li > a { padding: 14px 4px; font-size: 1rem; border-block-end: 1px solid rgba(255, 255, 255, .06); border-radius: 0; justify-content: space-between; }
    .mega { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; display: none; box-shadow: none; background: rgba(255, 255, 255, .04); border: 0; grid-template-columns: 1fr; padding: 10px 16px; border-radius: var(--radius-sm); margin-block: 6px; }
    .has-sub.open .mega { display: grid; }
    .has-sub.open .caret { transform: rotate(180deg); }
    .mega a { color: #b6c4cf; }
    .mega .mega-title { color: var(--white); border-color: rgba(255, 255, 255, .1); }
    .nav-cta { margin-block-start: 20px; }
}
@media (max-width: 960px) {
    :root { --header-h: 72px; }
    .grid-3, .split, .quote-grid, .product-layout, .contact-layout, .with-sidebar { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split, .quote-grid { gap: 40px; }
    .sidebar { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(2) { border-inline-end: 0; }
    .stats > div:nth-child(-n+2) { border-block-end: 1px solid var(--line); }
    .section { padding: 64px 0; }
    .quote-band { padding: 64px 0; }
    .hide-sm { display: none !important; }
    .badge-card { inset-inline-start: 16px; }
}
@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .grid-2, .grid-3, .grid-4, .feature-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-card.compact .card-body { padding: 14px; }
    .product-card.compact h3 { font-size: .95rem; }
    .topbar-contact a:nth-child(2) { display: none; }
    .topbar-contact, .topbar-actions { gap: 14px; }
    .hero { min-height: 540px; }
    .slide-text { font-size: 1rem; }
    .form-card { padding: 24px 18px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tag-list { grid-template-columns: 1fr; }
    .mosaic a:nth-child(1), .mosaic a:nth-child(4) { margin: 0; }
    .lightbox { padding: 60px 10px; }
    .cta-inner p { font-size: 1.1rem; }
    .page-hero { padding: 60px 0 50px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
