/* ============================================================
   FANAVARAN MADAR — Industrial electronics design system
   ============================================================ */

:root {
    --bg-primary: #f4f6f8;
    --bg-secondary: #e8eef4;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-muted: #e4ebf2;
    --color-cream: #e8eef4;
    --color-peach: #d7e4f0;
    --color-peach-light: #edf2f7;

    --text-primary: #0d1b2a;
    --text-secondary: #3d5166;
    --text-muted: #6b7f93;
    --text-inverse: #ffffff;

    --color-primary: #0e7490;
    --color-primary-light: #22d3ee;
    --color-primary-dark: #155e75;
    --color-accent: #c2410c;
    --color-accent-soft: #ea580c;
    --color-accent-glow: rgba(14, 116, 144, 0.18);
    --color-tech: #0b1d36;

    --pastel-green: #d0f0f6;
    --pastel-orange: #fde4d4;
    --pastel-yellow: #f5ead0;
    --pastel-pink: #f0dce6;
    --pastel-blue: #d4e4f4;
    --pastel-purple: #ddd6ee;

    --success: #0f766e;
    --warning: #b45309;
    --danger: #b91c1c;

    --border: rgba(11, 29, 54, 0.12);
    --border-strong: rgba(11, 29, 54, 0.22);
    --shadow-sm: 0 2px 8px rgba(11, 29, 54, 0.06);
    --shadow-md: 0 8px 32px rgba(11, 29, 54, 0.08);
    --shadow-lg: 0 20px 60px rgba(11, 29, 54, 0.12);
    --shadow-glow: 0 0 40px var(--color-accent-glow);

    --container-max: 1280px;
    --container-narrow: 760px;
    --header-h: 78px;
    --header-h-scrolled: 72px;
    --section-gap: clamp(64px, 8vw, 120px);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 4px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 180ms;
    --duration-normal: 320ms;
    --duration-slow: 560ms;

    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Outfit', system-ui, sans-serif;
    --font-rtl: 'Vazirmatn', 'Outfit', system-ui, sans-serif;
    --text-display: clamp(2.5rem, 5.5vw, 4.25rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.15rem, 2vw, 1.4rem);
    --text-body: 1.0625rem;
    --text-small: 0.875rem;
    --text-caption: 0.75rem;
    --leading-tight: 1.15;
    --leading-normal: 1.65;

    --bg: var(--bg-primary);
    --text: var(--text-primary);
    --primary: var(--color-primary);
    --primary-light: var(--color-primary-light);
    --secondary: var(--color-accent);
    --accent: var(--color-accent-soft);
    --accent-glow: var(--color-accent-glow);
    --radius: var(--radius-md);
    --transition: var(--duration-normal) var(--ease-out);
    --font: var(--font-sans);

    --promo-bg: linear-gradient(135deg, #0b1d36 0%, #155e75 48%, #0e7490 100%);
    --promo-tag-bg: rgba(255, 255, 255, 0.12);
    --hero-gradient: linear-gradient(160deg, #071422 0%, #0b1d36 52%, #12304a 100%);
    --page-hero-gradient: linear-gradient(155deg, #0b1d36 0%, #12304a 46%, #155e75 100%);
}

[data-theme="dark"] {
    --bg-primary: #060b12;
    --bg-secondary: #0a1220;
    --surface: #101929;
    --surface-elevated: #162033;
    --surface-muted: #1a2740;
    --color-cream: #0a1220;
    --color-peach: #122033;
    --color-peach-light: #0c1626;

    --text-primary: #e8f1f8;
    --text-secondary: #a8b8c8;
    --text-muted: #6d8094;
    --text-inverse: #060b12;

    --color-primary: #22d3ee;
    --color-primary-light: #67e8f9;
    --color-primary-dark: #0e7490;
    --color-accent: #fb923c;
    --color-accent-soft: #fdba74;
    --color-accent-glow: rgba(34, 211, 238, 0.14);
    --color-tech: #0b1d36;

    --pastel-green: #12303a;
    --pastel-orange: #3a2418;
    --pastel-yellow: #2e2818;
    --pastel-pink: #2e1a22;
    --pastel-blue: #1a2438;
    --pastel-purple: #221a30;

    --promo-bg: linear-gradient(135deg, #0a1628 0%, #12304a 40%, var(--surface-muted) 100%);
    --promo-tag-bg: rgba(255, 255, 255, 0.08);
    --hero-gradient: linear-gradient(160deg, #04080f 0%, #0a1220 70%);
    --page-hero-gradient: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 48%, var(--surface-muted) 100%);

    --border: rgba(34, 211, 238, 0.12);
    --border-strong: rgba(34, 211, 238, 0.22);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
}
[dir="rtl"] body { font-family: var(--font-rtl); }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-primary-light); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-narrow { max-width: var(--container-narrow); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; opacity: 0.6; }

/* Theme transition — radial spread from cursor */
.theme-transition-overlay {
    position: fixed; z-index: 99999; pointer-events: none;
    opacity: 0; transform: scale(0); border-radius: 50%;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-new(root) { z-index: 2147483646; }
::view-transition-old(root) { z-index: 1; }

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition: none !important;
}

/* Toast */
.toast-container {
    position: fixed; top: calc(var(--header-h) + 16px); right: 24px; z-index: 10001;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
[dir="rtl"] .toast-container { right: auto; left: 24px; }
.toast {
    pointer-events: auto; padding: 14px 20px; border-radius: var(--radius-md);
    background: var(--surface-elevated); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); font-size: var(--text-small); font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.4s var(--ease-spring);
    max-width: 360px;
}
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-out { animation: toastOut 0.3s var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   HEADER — two-tier industrial bar
   ============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    overflow: visible;
    transition: height var(--duration-normal) var(--ease-out);
}
.site-header:not(.no-topbar) {
    --header-h: 118px;
    --header-h-scrolled: 72px;
}
.header-topbar {
    background: #071422;
    color: rgba(232, 241, 248, 0.82);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    overflow: hidden;
    max-height: 40px;
    transition: max-height var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out);
}
.header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    padding-block: 6px;
}
.topbar-contacts,
.topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.topbar-chip,
.topbar-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    white-space: nowrap;
}
.topbar-chip svg,
.topbar-city svg {
    width: 13px; height: 13px; flex-shrink: 0; opacity: 0.75;
}
.topbar-chip:hover { color: #22d3ee; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social-link {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    color: rgba(232, 241, 248, 0.7);
}
.topbar-social-link svg { width: 13px; height: 13px; }
.topbar-social-link:hover { color: #22d3ee; }

.site-header .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: 78px;
    gap: 12px;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
    overflow: visible;
    position: relative;
    z-index: 2;
}
.site-header .logo {
    justify-self: start;
    position: relative;
    z-index: 5;
    min-width: 0;
    max-width: min(240px, 28vw);
}
.site-header .logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-header .header-actions { justify-self: end; position: relative; z-index: 5; }
.site-header .header-shell {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: rgba(244, 246, 248, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transition: background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}
.site-header .header-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 0;
    pointer-events: none;
}

/* Interactive circuit boards */
.circuit-board {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    --cx: 50%;
    --cy: 50%;
    color: rgba(14, 116, 144, 0.45);
}
.circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.circuit-svg-base {
    opacity: 0.38;
}
.circuit-svg-lit {
    color: #22d3ee;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.65));
    -webkit-mask-image: radial-gradient(circle 150px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.55) 35%, transparent 70%);
    mask-image: radial-gradient(circle 150px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.55) 35%, transparent 70%);
    transition: opacity 0.25s ease;
}
.circuit-board.is-lit .circuit-svg-lit { opacity: 1; }
.circuit-spot {
    position: absolute;
    width: 180px;
    height: 180px;
    left: var(--cx);
    top: var(--cy);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, rgba(14, 116, 144, 0.08) 40%, transparent 70%);
    transition: opacity 0.25s ease;
    mix-blend-mode: screen;
}
.circuit-board.is-lit .circuit-spot { opacity: 1; }
.header-circuit {
    color: rgba(14, 116, 144, 0.5);
}
.header-circuit .circuit-svg-lit {
    -webkit-mask-image: radial-gradient(circle 120px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.5) 40%, transparent 72%);
    mask-image: radial-gradient(circle 120px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.5) 40%, transparent 72%);
}
[data-theme="dark"] .circuit-board { color: rgba(34, 211, 238, 0.28); }
[data-theme="dark"] .circuit-svg-base { opacity: 0.45; }
[data-theme="dark"] .site-header .header-shell {
    background: rgba(6, 11, 18, 0.92);
    border-bottom-color: rgba(34, 211, 238, 0.1);
}
.site-header.scrolled { height: var(--header-h-scrolled); }
.site-header.scrolled .header-topbar {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.site-header.scrolled .header-inner { height: 72px; }
.site-header.scrolled .header-shell {
    box-shadow: 0 8px 28px rgba(11, 29, 54, 0.1);
}

.logo {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 1.05rem; color: var(--text-primary);
    flex-shrink: 0;
}
.logo-text-stack { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-tag {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logo-mark {
    width: 44px; height: 44px; border-radius: 6px;
    background: #0b1d36;
    display: flex; align-items: center; justify-content: center;
    color: #22d3ee; flex-shrink: 0;
    box-shadow: none;
    border: 1px solid rgba(34, 211, 238, 0.35);
}
.logo-mark svg { width: 26px; height: 26px; }
.logo img { height: 44px; width: auto; }
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(11, 29, 54, 0.1);
    box-shadow: 0 2px 8px rgba(11, 29, 54, 0.12);
}
.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}
.site-header .logo-badge {
    width: 48px;
    height: 48px;
    padding: 5px;
}
[data-theme="dark"] .site-header .logo-badge {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    background: #0e7490;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-cta:hover { background: #155e75; color: #fff; }

.main-nav {
    display: flex;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 4;
}
.nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    max-width: 100%;
}
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 8px;
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
    position: relative; border-radius: 8px;
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    overflow: hidden;
}
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    opacity: 0.72;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-spring),
                opacity var(--duration-fast),
                color var(--duration-fast);
}
.nav-icon svg { width: 15px; height: 15px; }
.nav-label { white-space: nowrap; position: relative; z-index: 1; }
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 116, 144, 0.08);
    opacity: 0;
    transition: opacity var(--duration-fast);
    border-radius: inherit;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 2px;
    inset-inline: 8px; height: 2px;
    background: var(--color-primary);
    border-radius: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-normal) var(--ease-out);
}
.nav-link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: none;
}
.nav-link:hover::before { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover .nav-icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
    color: var(--color-primary-dark);
}
.nav-link.active {
    color: var(--color-primary); font-weight: 700;
    background: none;
    box-shadow: none;
}
.nav-link.active::before { opacity: 1; }
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active .nav-icon { opacity: 1; }

@media (max-width: 1360px) and (min-width: 1025px) {
    .nav-label { display: inline; }
    .nav-link {
        gap: 4px;
        padding: 6px 5px;
        font-size: 0.74rem;
    }
    .nav-icon { width: 14px; height: 14px; }
    .nav-icon svg { width: 13px; height: 13px; }
    .logo-tag { display: none; }
    .site-header .logo { max-width: 168px; }
    .site-header .logo-badge { width: 42px; height: 42px; padding: 4px; }
    .logo-mark { height: 40px; width: 40px; }
    .header-cta { padding: 8px 10px; font-size: 0.72rem; }
    .site-header .header-inner { gap: 8px; }
}

/* Controls dock — language + theme */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.controls-dock {
    display: flex; align-items: center; gap: 2px;
    padding: 4px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .controls-dock {
    background: rgba(17, 26, 20, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.controls-divider {
    width: 1px; height: 22px;
    background: var(--border);
    margin: 0 2px;
}

/* Language selector */
.lang-selector { position: relative; }
.lang-trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px 7px 10px;
    border: none; border-radius: var(--radius-pill);
    background: transparent; color: var(--text-secondary);
    font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}
.lang-globe {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.15), rgba(194, 65, 12), 0.12));
    color: var(--color-primary);
    transition: transform var(--duration-normal) var(--ease-spring);
}
.lang-globe svg { width: 13px; height: 13px; }
.lang-chevron {
    display: flex; align-items: center;
    opacity: 0.5;
    transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast);
}
.lang-chevron svg { width: 14px; height: 14px; }
.lang-trigger:hover,
.lang-selector.open .lang-trigger {
    color: var(--color-primary);
    background: var(--surface);
}
.lang-trigger:hover .lang-globe,
.lang-selector.open .lang-globe {
    transform: rotate(20deg) scale(1.08);
}
.lang-selector.open .lang-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.lang-panel {
    position: absolute; top: calc(100% + 12px); inset-inline-end: 0;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px; min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}
.lang-panel::before {
    content: '';
    position: absolute; top: -6px; inset-inline-end: 20px;
    width: 12px; height: 12px;
    background: var(--surface-elevated);
    border-inline-start: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.lang-selector.open .lang-panel {
    opacity: 1; visibility: visible; transform: none;
}
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.875rem;
    transition: all var(--duration-fast) var(--ease-out);
}
.lang-flag {
    font-size: 1.25rem; line-height: 1;
    width: 28px; text-align: center; flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-spring);
}
.lang-meta { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.lang-native { font-weight: 600; font-size: 0.875rem; }
.lang-name { font-size: 0.7rem; color: var(--text-muted); }
.lang-check {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    opacity: 0; transform: scale(0.5);
    transition: all var(--duration-fast) var(--ease-spring);
}
.lang-check svg { width: 12px; height: 12px; }
.lang-option:hover {
    background: var(--surface-muted);
    color: var(--color-primary);
}
.lang-option:hover .lang-flag { transform: scale(1.2); }
.lang-option.active {
    background: rgba(14, 116, 144, 0.08);
    color: var(--color-primary);
}
.lang-option.active .lang-check { opacity: 1; transform: scale(1); }

/* Theme orbit toggle */
.theme-orbit {
    display: flex; align-items: center;
    padding: 4px 6px;
    border: none; border-radius: var(--radius-pill);
    background: transparent; cursor: pointer;
    position: relative;
    transition: background var(--duration-fast) var(--ease-out);
}
.theme-orbit:hover { background: var(--surface); }
.theme-track {
    position: relative;
    display: block;
    width: 56px; height: 28px;
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.theme-orbit-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8cc 50%, #d4edda 100%);
    transition: background var(--duration-normal) var(--ease-out);
}
[data-theme="dark"] .theme-orbit-bg {
    background: linear-gradient(135deg, #0a1628 0%, #111a2e 50%, #0c1510 100%);
}
.theme-icon {
    position: absolute; top: 50%;
    display: flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    transform: translateY(-50%);
    z-index: 1;
    transition: opacity var(--duration-fast), color var(--duration-fast);
}
.theme-icon svg { width: 13px; height: 13px; }
.theme-icon-sun { inset-inline-start: 7px; color: #f59e0b; }
.theme-icon-moon { inset-inline-end: 7px; color: #a5b4fc; }
.theme-knob {
    position: absolute; top: 3px;
    inset-inline-start: 3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform var(--duration-normal) var(--ease-spring),
                background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    z-index: 2;
}
[data-theme="dark"] .theme-knob {
  transform: translateX(28px);
  background: #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(165, 180, 252, 0.25);
}
[dir="rtl"] [data-theme="dark"] .theme-knob {
  transform: translateX(-28px);
}
.theme-orbit:hover .theme-knob {
    box-shadow: 0 2px 12px rgba(14, 116, 144, 0.3), 0 0 0 1px rgba(14, 116, 144, 0.15);
}
.theme-orbit.theme-preview .theme-knob {
    transform: scale(1.08);
}
[data-theme="dark"] .theme-orbit.theme-preview .theme-knob {
    transform: translateX(28px) scale(1.08);
}
[dir="rtl"] [data-theme="dark"] .theme-orbit.theme-preview .theme-knob {
    transform: translateX(-28px) scale(1.08);
}

.theme-tooltip {
    position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0;
    padding: 6px 12px; background: var(--text-primary); color: var(--text-inverse);
    font-size: var(--text-caption); font-weight: 500;
    border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity var(--duration-fast), transform var(--duration-fast);
    transform: translateY(6px);
    z-index: 20;
}
.theme-tooltip::after {
    content: '';
    position: absolute; top: 100%; inset-inline-end: 14px;
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}
.theme-orbit:hover .theme-tooltip,
.theme-orbit.theme-preview .theme-tooltip {
    opacity: 1; transform: translateY(0);
}

.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; padding: 8px;
    transition: all var(--duration-fast) var(--ease-out);
}
.mobile-menu-btn:hover {
    border-color: var(--color-primary);
    background: var(--surface);
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out); transform-origin: center;
}
.mobile-menu-backdrop {
    display: none; position: fixed; inset: 0; z-index: 10040;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity var(--duration-normal);
}
.mobile-menu-backdrop.open { display: block; opacity: 1; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 10050; }

#main-content {
    background: var(--bg-primary);
    min-height: calc(100vh - var(--header-h));
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.9375rem; line-height: 1;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff; box-shadow: 0 4px 16px rgba(14, 116, 144, 0.35);
    border-radius: var(--radius-pill);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 116, 144, 0.45); color: #fff; background: var(--color-primary-dark); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: transparent; border-color: rgba(255,255,255,0.5); color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
    border-color: var(--color-primary); color: var(--color-primary); background: transparent;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: var(--surface-muted); color: var(--text-primary); border-color: var(--border); }
.btn.loading { pointer-events: none; opacity: 0.75; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }

/* ============================================================
   TYPOGRAPHY & SECTIONS
   ============================================================ */
.section {
    padding: var(--section-gap) 0;
    position: relative;
    background: var(--bg-primary);
}
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--text-caption); font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 12px;
}
[dir="rtl"] .section-tag { letter-spacing: 0; text-transform: none; font-size: var(--text-small); }
.section-tag::before {
    content: ''; width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}
.section-title {
    font-size: var(--text-h2); font-weight: 800;
    line-height: var(--leading-tight); color: var(--text-primary);
    letter-spacing: -0.02em;
}
.section-title.display { font-size: var(--text-display); }
.section-text { color: var(--text-muted); font-size: var(--text-body); margin-top: 16px; max-width: 56ch; }
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; gap: 16px;
}
.section-header.center { flex-direction: column; align-items: center; text-align: center; }
.section-header.center .section-text { margin-inline: auto; }
.view-all {
    font-weight: 600; font-size: var(--text-small); color: var(--color-primary);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap var(--duration-fast);
}
.view-all:hover { gap: 10px; color: var(--color-primary-light); }

/* Section variants */
.section-surface { background: var(--surface); }
.section-muted { background: var(--surface-muted); }
.section-accent { background: var(--color-peach-light); }
.section-primary { background: var(--bg-primary); }
.section-dark {
    background: linear-gradient(160deg, var(--color-tech) 0%, var(--color-primary-dark) 100%);
    color: var(--text-inverse);
}
.section-dark .section-title, .section-dark .section-tag { color: var(--text-inverse); }
.section-dark .section-tag { color: var(--color-accent-soft); }
.section-curve-top { margin-top: -40px; padding-top: calc(var(--section-gap) + 40px); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.hero-split-content.reveal,
.hero-split-visual.reveal,
.page-hero-inner.reveal {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   HERO — Signature immersive
   ============================================================ */
.hero-slider {
    position: relative; min-height: 92vh; overflow: hidden;
    margin-top: -8px;
}
.slides-wrapper { position: relative; height: 92vh; min-height: 560px; }
.slide {
    position: absolute; inset: 0; opacity: 0;
    background-size: cover; background-position: center;
    transition: opacity 1s var(--ease-out);
    display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-bg-zoom { animation: heroZoom 12s var(--ease-out) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.hero-solar-glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: -10%; inset-inline-end: -5%; z-index: 1; pointer-events: none;
    animation: solarPulse 6s ease-in-out infinite;
}
@keyframes solarPulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }

.slide-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(7,13,9,0.82) 0%, rgba(26,92,56,0.35) 50%, rgba(12,35,64,0.5) 100%);
}
.hero-empty { background: linear-gradient(135deg, #071422 0%, #0e7490 50%, #0b1d36 100%); }

.slide-content {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end;
    width: 100%; padding-bottom: 80px;
}
.hero-text { max-width: 680px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-accent-soft); font-size: var(--text-small); font-weight: 600;
    margin-bottom: 20px;
    animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.slide-title {
    font-size: var(--text-display); font-weight: 800; line-height: var(--leading-tight);
    color: #fff; letter-spacing: -0.03em; margin-bottom: 20px;
    animation: fadeUp 0.8s var(--ease-out) 0.35s both;
}
.slide-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--color-accent-soft);
    font-weight: 500; margin-bottom: 16px;
    animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}
.slide-desc {
    font-size: var(--text-body); color: rgba(255,255,255,0.78); max-width: 52ch; margin-bottom: 32px;
    animation: fadeUp 0.8s var(--ease-out) 0.65s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp 0.8s var(--ease-out) 0.8s both; }

.hero-float-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
    padding: 24px; min-width: 220px; align-self: center;
    animation: fadeUp 0.9s var(--ease-out) 0.9s both;
}
.hero-float-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--color-accent-soft); display: block; }
.hero-float-card .stat-label { font-size: var(--text-small); color: rgba(255,255,255,0.7); margin-top: 4px; }

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

.slider-controls {
    position: absolute; bottom: 36px; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.slider-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}
.slider-btn:hover { background: var(--color-accent); color: var(--color-tech); transform: scale(1.08); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-progress { display: flex; gap: 8px; }
.dot {
    width: 32px; height: 3px; border-radius: 2px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.3); transition: all var(--duration-normal) var(--ease-out);
}
.dot.active { background: var(--color-accent); width: 48px; }

/* Typing section */
.typing-section {
    padding: clamp(48px, 6vw, 72px) 0;
    background: var(--surface);
    border-block: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.typing-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, var(--color-accent-glow), transparent);
    opacity: 0.3;
}
.typing-inner { text-align: center; position: relative; }
.typing-label { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 16px; }
[dir="rtl"] .typing-label { letter-spacing: 0; text-transform: none; }
.typing-wrapper {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem); font-weight: 700;
    color: var(--color-primary); min-height: 1.4em;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.typing-cursor { color: var(--color-accent); animation: blink 1s step-end infinite; font-weight: 300; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   ABOUT — Editorial
   ============================================================ */
.about-editorial {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.about-statement { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: var(--leading-tight); margin: 16px 0 24px; letter-spacing: -0.02em; }
.about-visual { position: relative; }
.about-visual img, .about-visual .visual-placeholder {
    border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/5; object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.visual-placeholder {
    background: linear-gradient(145deg, var(--surface-muted), var(--bg-secondary));
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
}
.about-float-badge {
    position: absolute; bottom: -20px; inset-inline-start: -20px;
    background: var(--surface-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
    box-shadow: var(--shadow-md);
}
.about-float-badge strong { display: block; font-size: 1.5rem; color: var(--color-primary); }
.about-float-badge span { font-size: var(--text-small); color: var(--text-muted); }

/* Why choose — asymmetric */
.why-asymmetric {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto;
    gap: 20px;
}
.why-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0); transform-origin: left; transition: transform var(--duration-normal) var(--ease-out);
}
[dir="rtl"] .why-card::before { transform-origin: right; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.why-card:hover::before { transform: scaleX(1); }
.why-card-featured {
    grid-row: span 2; grid-column: 1;
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    color: #fff; border: none;
}
.why-card-featured .why-icon-wrap { background: rgba(255,255,255,0.15); }
.why-card-featured p { color: rgba(255,255,255,0.8); }
.why-card-featured::before { background: var(--color-accent); }
.why-icon-wrap {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--surface-muted); display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: var(--color-primary);
    transition: transform var(--duration-normal) var(--ease-spring);
}
.why-card:hover .why-icon-wrap { transform: scale(1.08) rotate(-3deg); }
.why-icon-wrap svg { width: 26px; height: 26px; }
.why-card h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: var(--text-small); line-height: 1.6; }

/* Service showcase */
.services-showcase { display: flex; flex-direction: column; gap: 16px; }
.service-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--surface);
    transition: all var(--duration-normal) var(--ease-out);
    color: var(--text-primary);
}
.service-row:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateX(4px); }
[dir="rtl"] .service-row:hover { transform: translateX(-4px); }
.service-num { font-size: 2rem; font-weight: 800; color: var(--color-accent); opacity: 0.7; line-height: 1; min-width: 48px; }
.service-row-body h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 6px; }
.service-row-body p { color: var(--text-muted); font-size: var(--text-small); }
.service-row-arrow { color: var(--color-primary); transition: transform var(--duration-fast); }
.service-row:hover .service-row-arrow { transform: translateX(4px); }
[dir="rtl"] .service-row:hover .service-row-arrow { transform: translateX(-4px); }

/* Product cards — premium */
.products-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card-premium {
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out); color: var(--text-primary);
}
.product-card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-card-premium .card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card-premium .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-card-premium:hover .card-media img { transform: scale(1.06); }
.product-card-premium .card-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
    opacity: 0; transition: opacity var(--duration-normal);
}
.product-card-premium:hover .card-media::after { opacity: 1; }
.product-card-premium .card-body { padding: 24px; }
.product-card-premium h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 8px; }
.product-card-premium p { color: var(--text-muted); font-size: var(--text-small); }

/* Gallery masonry */
.gallery-masonry { columns: 3; column-gap: 16px; }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.gallery-masonry .gallery-item img, .gallery-masonry .gallery-item video { width: 100%; display: block; transition: transform 0.5s var(--ease-out); }
.gallery-masonry .gallery-item img.gallery-svg { object-fit: contain; background: var(--surface-muted, #f4f4f5); padding: 16px; min-height: 120px; }
.gallery-masonry .gallery-item:hover img:not(.gallery-svg) { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute; inset: 0; background: rgba(12,35,64,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--duration-normal);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-play-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; }
.gallery-caption {
    position: absolute; bottom: 0; inset-inline: 0; padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff; font-size: var(--text-small); font-weight: 500;
}

/* Gallery studio — filters + bento */
.gallery-studio { padding-top: clamp(28px, 4vw, 48px); }
.gallery-control {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px;
    margin-bottom: 20px;
}
.gallery-search {
    flex: 1 1 280px;
    display: flex; align-items: stretch; gap: 8px;
    min-width: 0;
}
.gallery-search-field {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-height: 48px;
}
.gallery-search-field svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.gallery-search-field input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    color: var(--text-primary); font: inherit; font-size: 0.92rem;
}
.gallery-search-field input:focus { outline: none; }
.gallery-search-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}
.gallery-search-btn {
    flex-shrink: 0;
    padding: 0 18px;
    border: 0; border-radius: 6px;
    background: var(--color-primary); color: #fff;
    font-weight: 700; font-size: 0.84rem; cursor: pointer;
}
.gallery-search-btn:hover { background: var(--color-primary-dark); color: #fff; }

.gallery-type-switch {
    display: inline-flex; align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.gallery-type {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 14px; min-height: 48px;
    color: var(--text-secondary); font-size: 0.82rem; font-weight: 650;
    border-inline-end: 1px solid var(--border);
    text-decoration: none;
}
.gallery-type:last-child { border-inline-end: 0; }
.gallery-type svg { width: 16px; height: 16px; }
.gallery-type em {
    font-style: normal; font-size: 0.72rem; font-weight: 700;
    min-width: 1.4em; text-align: center;
    color: var(--text-muted);
}
.gallery-type:hover { color: var(--color-primary); background: var(--surface-muted); }
.gallery-type.is-on {
    background: #0b1d36; color: #fff;
}
.gallery-type.is-on em { color: #67e8f9; }

.gallery-cats {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 18px;
}
.gallery-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 650;
}
.gallery-chip em {
    font-style: normal; font-size: 0.7rem; font-weight: 700;
    padding: 1px 7px; border-radius: 999px;
    background: var(--surface-muted); color: var(--text-muted);
}
.gallery-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gallery-chip.is-on {
    background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
.gallery-chip.is-on em { background: rgba(255,255,255,0.18); color: #fff; }

.gallery-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 22px;
    color: var(--text-muted); font-size: 0.875rem;
}
.gallery-meta p { margin: 0; }
.gallery-meta strong { color: var(--text-primary); }
.gallery-meta-q { color: var(--color-primary); font-weight: 650; }
.gallery-clear {
    font-size: 0.8rem; font-weight: 700; color: var(--color-accent);
    white-space: nowrap;
}
.gallery-clear:hover { color: var(--color-accent-soft); }

.gallery-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-card {
    position: relative;
    isolation: isolate;
    min-height: 240px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #0b1d36;
    border: 1px solid var(--border);
}
.gallery-card.is-feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
}
.gallery-card-media,
.gallery-card-media img,
.gallery-card-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-card-media {
    position: absolute; inset: 0;
}
.gallery-card-media img.gallery-svg {
    object-fit: cover;
    background: linear-gradient(145deg, #0b1d36, #155e75);
    padding: 0; min-height: 100%;
}
.gallery-card-media .gallery-item-overlay { display: none; }
.gallery-card-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(7, 20, 34, 0.88) 100%);
    pointer-events: none;
}
.gallery-card-body {
    position: absolute; inset-inline: 0; bottom: 0;
    z-index: 2; padding: 18px 18px 16px;
    color: #e8f1f8;
}
.gallery-card-cat {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 9px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(14, 116, 144, 0.22);
    color: #67e8f9;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gallery-card-body h3 {
    margin: 0; font-size: 1.05rem; font-weight: 750; line-height: 1.3; color: #fff;
}
.gallery-card.is-feature .gallery-card-body h3 { font-size: 1.45rem; }
.gallery-card-body p {
    margin: 8px 0 0; font-size: 0.82rem; line-height: 1.55;
    color: rgba(232, 241, 248, 0.7);
    max-width: 42ch;
}
.gallery-card-zoom {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(7, 20, 34, 0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    opacity: 0; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s;
}
.gallery-card-zoom svg { width: 16px; height: 16px; }
.gallery-card:hover .gallery-card-zoom { opacity: 1; transform: none; }
.gallery-card:hover .gallery-card-media img:not(.gallery-svg),
.gallery-card:hover .gallery-card-media video {
    transform: scale(1.06);
}
.gallery-card-media img,
.gallery-card-media video {
    transition: transform 0.55s var(--ease-out);
}

[data-theme="dark"] .gallery-search-field,
[data-theme="dark"] .gallery-type-switch,
[data-theme="dark"] .gallery-chip {
    background: var(--surface);
}
.gallery-caption {
    position: absolute; bottom: 0; inset-inline: 0; padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff; font-size: var(--text-small); font-weight: 500;
}

/* FAQ premium */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    margin-bottom: 10px; overflow: hidden; background: var(--surface);
    transition: border-color var(--duration-fast), box-shadow 0.45s var(--ease-out);
}
.faq-item.open { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; background: none; border: none;
    font-size: var(--text-body); font-weight: 600; color: var(--text-primary);
    cursor: pointer; text-align: inherit;
    transition: color 0.35s var(--ease-out);
}
.faq-num { font-size: var(--text-small); font-weight: 800; color: var(--color-accent); min-width: 28px; }
.faq-arrow {
    width: 20px; height: 20px; margin-inline-start: auto; flex-shrink: 0;
    transition: transform 0.45s var(--ease-out);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none;
    overflow: hidden;
    transition: grid-template-rows 0.5s var(--ease-out);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 0 62px;
    color: var(--text-muted);
    font-size: var(--text-small);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s var(--ease-out),
                transform 0.5s var(--ease-out),
                padding 0.5s var(--ease-out);
}
.faq-item.open .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 20px;
}
[dir="rtl"] .faq-answer-inner { padding: 0 62px 0 24px; }
[dir="rtl"] .faq-item.open .faq-answer-inner { padding-bottom: 20px; }

/* Join Us section — light card style */
.join-section {
    background: var(--color-peach-light);
    padding: clamp(56px, 8vw, 96px) 0;
}
.join-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 48px);
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.join-content h2 {
    font-family: var(--font-serif); font-size: var(--text-h2); font-weight: 700;
    color: var(--text-primary); margin-bottom: 12px;
}
[dir="rtl"] .join-content h2 { font-family: var(--font-rtl); }
.join-content p { color: var(--text-muted); max-width: 42ch; line-height: 1.7; margin-bottom: 20px; }
.join-benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.join-benefits li {
    font-size: var(--text-small); color: var(--text-secondary);
    padding-inline-start: 24px; position: relative;
}
.join-benefits li::before {
    content: '✓'; position: absolute; inset-inline-start: 0;
    color: var(--color-primary); font-weight: 700;
}
.join-form-panel {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 32px);
}
.join-form { display: flex; flex-direction: column; gap: 16px; }
.join-form .form-field label {
    display: block; font-size: var(--text-small); font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.join-form .form-field input {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text-primary); font-size: var(--text-body);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.join-form .form-field input:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}
.join-form .form-field input::placeholder { color: var(--text-muted); }
.join-form .btn-block { width: 100%; margin-top: 4px; }

/* Simple CTA banner (services etc.) */
.cta-section { background: var(--color-peach-light); padding: clamp(48px, 6vw, 72px) 0; }
.cta-section-inner { text-align: center; }
.cta-section-inner h2 {
    font-family: var(--font-serif); font-size: var(--text-h2); font-weight: 700;
    color: var(--text-primary); margin-bottom: 20px;
}

/* Partners */
.partners-section { background: var(--surface-muted); overflow: hidden; }
.partners-slider { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.partners-track { display: flex; gap: 24px; animation: partnerScroll 35s linear infinite; width: max-content; }
.partners-slider:hover .partners-track { animation-play-state: paused; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="rtl"] .partners-track { animation-direction: reverse; }
.partner-card {
    flex: 0 0 240px; text-align: center; padding: 28px 24px;
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); transition: all var(--duration-normal);
}
.partner-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.partner-card img { height: 56px; width: auto; max-width: 140px; margin: 0 auto 14px; object-fit: contain; filter: grayscale(0.3); transition: filter var(--duration-normal); }
.partner-card:hover img { filter: none; }
.partner-card h4 { font-size: var(--text-small); font-weight: 700; margin-bottom: 4px; }
.partner-card p { font-size: var(--text-caption); color: var(--text-muted); }

/* Footer */
.site-footer {
    position: relative;
    margin-top: clamp(64px, 10vw, 100px);
    background: #071422;
    overflow: hidden;
    color: rgba(232, 241, 248, 0.72);
}
.footer-trace {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(34, 211, 238, 0.35);
}
.footer-trace .circuit-svg-base { opacity: 0.32; }
.footer-trace .circuit-svg-lit {
    -webkit-mask-image: radial-gradient(circle 180px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.45) 40%, transparent 72%);
    mask-image: radial-gradient(circle 180px at var(--cx) var(--cy), #000 0%, rgba(0,0,0,0.45) 40%, transparent 72%);
}
.footer-trace .circuit-spot {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, rgba(14, 116, 144, 0.06) 42%, transparent 70%);
}
.site-footer.has-circuit.circuit-active {
    box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.12);
}
.footer-glow { display: none; }

.footer-body {
    position: relative;
    z-index: 1;
    padding: clamp(56px, 8vw, 80px) 0 clamp(48px, 6vw, 64px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

/* Brand */
.footer-brand { max-width: 520px; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 22px);
    margin-bottom: clamp(22px, 3vw, 28px);
    color: var(--text-primary);
    transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.footer-logo { color: #f4f6f8; }
.footer-logo:hover {
    color: #22d3ee;
}
.footer-logo .logo-badge {
    width: clamp(72px, 10vw, 96px);
    height: clamp(72px, 10vw, 96px);
    padding: 8px;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.footer-logo .logo-badge img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}
.footer-logo:hover .logo-badge {
    transform: scale(1.14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.footer-logo .logo-mark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    color: #0e7490;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.28s ease;
}
.footer-logo:hover .logo-mark { transform: scale(1.14); }
.footer-logo .logo-mark svg { width: 52px; height: 52px; }
.footer-logo-text {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 16ch;
}
.footer-desc {
    color: rgba(232, 241, 248, 0.62);
    font-size: var(--text-small);
    line-height: 1.75;
    margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: rgba(232, 241, 248, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}
.footer-social-link svg { width: 17px; height: 17px; }
.footer-social-link:hover {
    background: #0e7490;
    border-color: #0e7490;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* Columns */
.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4f6f8;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
[dir="rtl"] .footer-heading::after {
    background: linear-gradient(270deg, var(--color-primary), var(--color-accent));
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(232, 241, 248, 0.62);
    font-size: var(--text-small);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--duration-fast), transform var(--duration-fast);
}
.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--duration-fast);
}
.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
.footer-links a:hover::before { width: 8px; }

/* Contact */
.footer-contact { list-style: none; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: var(--text-small);
    color: rgba(232, 241, 248, 0.62);
    line-height: 1.5;
}
.footer-contact a {
    color: rgba(232, 241, 248, 0.72);
    transition: color var(--duration-fast);
}
.footer-contact a:hover { color: #22d3ee; }
.footer-contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
}
.footer-contact-icon svg { width: 16px; height: 16px; }

/* Newsletter */
.footer-newsletter-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 32px);
    box-shadow: var(--shadow-sm);
}
.footer-newsletter-desc {
    color: var(--text-muted);
    font-size: var(--text-small);
    line-height: 1.65;
    margin-bottom: 20px;
}
.footer-newsletter-box .footer-heading { margin-bottom: 12px; }
.newsletter-form { margin-top: 0; }
.newsletter-field {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.newsletter-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}
.newsletter-field input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--text-small);
    font-family: inherit;
}
.newsletter-field input::placeholder { color: var(--text-muted); }
.newsletter-field input:focus { outline: none; }
.newsletter-field button {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast);
}
[dir="rtl"] .newsletter-field button svg { transform: scaleX(-1); }
.newsletter-field button:hover { background: var(--color-primary-dark); }
.newsletter-field button svg { width: 18px; height: 18px; }

/* Bottom bar */
.footer-bar {
    position: relative;
    z-index: 1;
    padding: 0 clamp(16px, 4vw, 32px);
}
.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 44px;
    padding: 0;
    font-size: var(--text-caption);
    background: transparent;
    color: rgba(232, 241, 248, 0.55);
    border: none;
    border-top: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 0;
}
.footer-bar-news { min-width: min(280px, 100%); }
.footer-bar-news .newsletter-field {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 211, 238, 0.18);
    border-radius: 4px;
    height: 44px;
}
.footer-bar-news .newsletter-field input {
    padding: 0 14px;
    height: 100%;
}
.footer-bar-news .newsletter-field button {
    width: 44px;
    height: 100%;
}
.footer-copy,
.footer-credit {
    margin: 0;
    line-height: 44px;
    white-space: nowrap;
}
.footer-credit strong { color: var(--color-primary); font-weight: 600; }
.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-legal a {
    color: var(--text-muted);
    transition: color var(--duration-fast);
}
.footer-legal a:hover { color: var(--color-primary); }

[data-theme="dark"] .site-footer {
    background: #04080f;
}
[data-theme="dark"] .footer-glow { display: none; }
[data-theme="dark"] .footer-bar-inner {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: none;
    border-top: 1px solid rgba(34, 211, 238, 0.12);
}
[data-theme="dark"] .footer-legal a {
    color: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .footer-legal a:hover { color: #fff; }
[data-theme="dark"] .footer-credit strong { color: var(--color-primary-light); }
[data-theme="dark"] .footer-newsletter-box {
    background: var(--surface-elevated);
    box-shadow: none;
}
[data-theme="dark"] .footer-social-link,
[data-theme="dark"] .footer-contact-icon,
[data-theme="dark"] .contact-social-link {
    background: var(--surface-elevated);
}
[data-theme="dark"] .info-icon {
    box-shadow: none;
}


/* Page heroes — premium inner-page banner */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(44px, 6vw, 72px)) 0 clamp(64px, 9vw, 96px);
    overflow: hidden;
    background: var(--page-hero-gradient);
    isolation: isolate;
}
.page-hero-bg {
    position: absolute; inset: 0;
    background: var(--page-hero-gradient);
}
.page-hero-bg.has-image {
    background-size: cover; background-position: center;
}
.page-hero-bg.has-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(7,13,9,0.9) 0%, rgba(26,92,56,0.55) 55%, rgba(7,13,9,0.75) 100%);
}
.page-hero-grid {
    position: absolute; inset: 0; z-index: 1; opacity: 0.14;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
[data-theme="dark"] .page-hero-grid { opacity: 0.07; }

/* Floating gradient orbs */
.page-hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.45;
    animation: pageHeroOrb 14s ease-in-out infinite;
}
.page-hero-orb--1 {
    width: clamp(180px, 28vw, 340px); height: clamp(180px, 28vw, 340px);
    top: -8%; inset-inline-end: 8%;
    background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
    animation-delay: 0s;
}
.page-hero-orb--2 {
    width: clamp(140px, 22vw, 260px); height: clamp(140px, 22vw, 260px);
    bottom: 5%; inset-inline-start: -4%;
    background: radial-gradient(circle, rgba(40,167,69,0.25), transparent 70%);
    animation-delay: -4s;
}
.page-hero-orb--3 {
    width: clamp(100px, 14vw, 180px); height: clamp(100px, 14vw, 180px);
    top: 35%; inset-inline-start: 42%;
    background: radial-gradient(circle, rgba(255,179,71,0.18), transparent 70%);
    animation-delay: -8s;
}
@keyframes pageHeroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -16px) scale(1.06); }
    66% { transform: translate(-10px, 10px) scale(0.94); }
}

/* Decorative background icons */
.page-hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero-deco-icon {
    position: absolute; color: var(--color-primary);
    opacity: 0.06; animation: pageHeroFloat 18s ease-in-out infinite;
}
.page-hero-deco-icon svg { width: 100%; height: 100%; }
.page-hero-deco-icon--1 { width: 72px; height: 72px; top: 18%; inset-inline-end: 12%; animation-delay: 0s; }
.page-hero-deco-icon--2 { width: 48px; height: 48px; bottom: 28%; inset-inline-end: 28%; animation-delay: -6s; opacity: 0.05; }
.page-hero-deco-icon--3 { width: 56px; height: 56px; top: 42%; inset-inline-start: 6%; animation-delay: -12s; opacity: 0.04; }
@keyframes pageHeroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

.page-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}
.page-hero-content { max-width: 640px; min-width: 0; }

/* Breadcrumb */
.page-breadcrumb {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-bottom: clamp(16px, 2.5vw, 22px);
    padding: 6px 14px 6px 10px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption); font-weight: 500;
    color: var(--text-muted);
    box-shadow: 0 2px 12px rgba(12,35,64,0.04);
}
[data-theme="dark"] .page-breadcrumb {
    background: rgba(17,26,20,0.65);
    border-color: var(--border);
}
.page-breadcrumb a {
    color: var(--text-secondary); text-decoration: none;
    transition: color var(--duration-fast);
}
.page-breadcrumb a:hover { color: var(--color-primary); }
.page-breadcrumb-home {
    display: inline-flex; align-items: center; gap: 5px;
}
.page-breadcrumb-sep {
    display: inline-flex; color: var(--text-muted); opacity: 0.5;
}
[dir="rtl"] .page-breadcrumb-sep svg { transform: scaleX(-1); }
.page-breadcrumb-current {
    color: var(--text-primary); font-weight: 600;
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Badge tag */
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px 7px 12px;
    margin-bottom: clamp(14px, 2vw, 18px);
    background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption); font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(40,167,69,0.08);
}
[dir="rtl"] .page-hero-badge { letter-spacing: 0; text-transform: none; font-size: var(--text-small); }
[data-theme="dark"] .page-hero-badge {
    background: rgba(22,32,25,0.7);
    border-color: var(--border);
    color: var(--color-primary-light);
}
.page-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
    animation: pageHeroPulse 2.4s ease-in-out infinite;
}
@keyframes pageHeroPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(40,167,69,0.2); transform: scale(1); }
    50% { box-shadow: 0 0 0 6px rgba(40,167,69,0.08); transform: scale(1.15); }
}

.page-hero h1 {
    font-size: var(--text-h1); font-weight: 800;
    font-family: var(--font-serif); color: var(--text-primary);
    letter-spacing: -0.025em; line-height: 1.12;
    margin-bottom: clamp(10px, 1.5vw, 14px);
}
.page-hero-desc {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 52ch;
    line-height: 1.7;
    margin: 0;
}

/* Hero visual — icon showcase */
.page-hero-visual {
    position: relative;
    width: clamp(130px, 16vw, 190px);
    height: clamp(130px, 16vw, 190px);
    flex-shrink: 0;
}
.page-hero-icon-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(40,167,69,0.18);
    animation: pageHeroRingSpin 24s linear infinite;
}
.page-hero-icon-ring--outer {
    inset: 0;
    border-style: dashed;
    opacity: 0.55;
}
.page-hero-icon-ring--inner {
    inset: 14px;
    border-color: rgba(255,159,67,0.22);
    animation-direction: reverse;
    animation-duration: 18s;
}
@keyframes pageHeroRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.page-hero-icon-wrap {
    position: absolute; inset: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,248,240,0.75));
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--color-primary);
    box-shadow:
        0 8px 32px rgba(40,167,69,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    animation: pageHeroIconBob 5s ease-in-out infinite;
}
[data-theme="dark"] .page-hero-icon-wrap {
    background: linear-gradient(145deg, var(--surface-elevated), var(--surface-muted));
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.page-hero-icon-wrap svg { width: 42%; height: 42%; }
@keyframes pageHeroIconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.page-hero-spark {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.7;
    animation: pageHeroSpark 3s ease-in-out infinite;
}
.page-hero-spark--1 { top: 8%; inset-inline-end: 18%; animation-delay: 0s; }
.page-hero-spark--2 { bottom: 14%; inset-inline-start: 10%; animation-delay: -1s; background: var(--color-primary); }
.page-hero-spark--3 { top: 42%; inset-inline-end: 4%; width: 4px; height: 4px; animation-delay: -2s; opacity: 0.5; }
@keyframes pageHeroSpark {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.6); opacity: 0.35; }
}

/* Bottom curve transition */
.page-hero-arc {
    position: absolute; bottom: -1px; left: 50%; z-index: 3;
    width: 110%; height: clamp(32px, 4vw, 52px);
    transform: translateX(-50%);
    background: var(--bg-primary);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 -8px 24px rgba(12,35,64,0.03);
}

/* Image overlay variant */
.page-hero.has-image .page-breadcrumb,
.page-hero.has-image .page-hero-badge {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}
.page-hero.has-image .page-breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero.has-image .page-breadcrumb a:hover { color: var(--color-accent-soft); }
.page-hero.has-image .page-breadcrumb-current { color: #fff; }
.page-hero.has-image .page-breadcrumb-sep { color: rgba(255,255,255,0.5); }
.page-hero.has-image .page-hero-badge { color: var(--color-accent-soft); }
.page-hero.has-image .page-hero-badge-dot {
    background: var(--color-accent-soft);
    box-shadow: 0 0 0 3px rgba(255,200,87,0.25);
}
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image .page-hero-desc { color: rgba(255,255,255,0.82); }
.page-hero.has-image .page-hero-deco-icon { opacity: 0.04; color: #fff; }
.page-hero.has-image .page-hero-orb { opacity: 0.25; }
.page-hero.has-image .page-hero-icon-wrap {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    backdrop-filter: blur(8px);
}
.page-hero.has-image .page-hero-icon-ring { border-color: rgba(255,255,255,0.15); }

.page-hero + .section,
.page-hero + .article-reading {
    padding-top: clamp(40px, 5vw, 72px);
}

/* Pages without a hero banner */
.content-below-header,
.section.content-below-header {
    padding-top: calc(var(--header-h) + clamp(32px, 5vw, 48px));
    padding-bottom: var(--section-gap);
    background: var(--bg-primary);
}

/* Stats counter */
.stats-section { background: var(--surface-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card {
    text-align: center; padding: clamp(28px, 4vw, 40px);
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); transition: all var(--duration-normal);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--color-primary); display: block; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: var(--text-small); margin-top: 8px; display: block; }

/* Mission / Vision */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
    text-align: center; padding: clamp(32px, 4vw, 48px) 24px;
    background: var(--surface); border-radius: var(--radius-xl);
    border: 1px solid var(--border); position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.mvv-ring {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    border: 2px solid var(--color-accent); display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); transition: all var(--duration-normal) var(--ease-spring);
}
.mvv-card:hover .mvv-ring { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: rotate(15deg); }
.mvv-card h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 12px; }
.mvv-card p { color: var(--text-muted); font-size: var(--text-small); line-height: 1.7; }

/* Story timeline */
.story-timeline { position: relative; padding-inline-start: 32px; }
.story-timeline::before {
    content: ''; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}
.story-item { position: relative; padding-bottom: 40px; padding-inline-start: 32px; }
.story-item::before {
    content: ''; position: absolute; inset-inline-start: -28px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-accent); border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px var(--color-primary);
}
.story-item h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 8px; }
.story-item p { color: var(--text-muted); font-size: var(--text-small); }

/* Team */
.section-team-v2 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 50%, var(--surface) 100%);
}
.team-section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 15% 30%, rgba(14, 116, 144, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 85% 70%, rgba(194, 65, 12), 0.06) 0%, transparent 50%);
}
.team-section-header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 56px);
    position: relative;
    z-index: 1;
}
.team-section-header .section-lead {
    color: var(--text-muted);
    font-size: var(--text-small);
    margin-top: 12px;
    max-width: 48ch;
    margin-inline: auto;
    line-height: 1.6;
}

.team-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    position: relative;
    z-index: 1;
}
.team-showcase .team-card-premium.reveal {
    transition-delay: calc(var(--i, 0) * 0.07s);
}
.team-card-premium {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
    text-align: center;
}
.team-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(12, 35, 64, 0.1);
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.team-card-premium.featured {
    grid-column: span 1;
}
@media (min-width: 900px) {
    .team-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-card-premium.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    .team-card-premium.featured .team-photo-ring {
        padding: 28px 28px 0;
    }
    .team-card-premium.featured .team-photo {
        aspect-ratio: 4/3;
        border-radius: var(--radius-lg);
    }
}

.team-photo-ring {
    padding: 24px 24px 0;
    position: relative;
}
.team-photo-ring::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    height: calc(100% - 8px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-orange));
    opacity: 0.35;
    z-index: 0;
}
.team-photo {
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-muted);
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.team-card-premium:hover .team-photo img { transform: scale(1.08); }
.team-avatar-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    background: linear-gradient(145deg, var(--pastel-green), var(--surface-muted));
}
.team-info { padding: 20px 22px 24px; }
.team-info h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
[dir="rtl"] .team-info h3 { font-family: var(--font-rtl); }
.team-position {
    color: var(--color-accent);
    font-size: var(--text-small);
    font-weight: 600;
    margin-top: 4px;
}
.team-bio {
    color: var(--text-muted);
    font-size: var(--text-caption);
    margin-top: 10px;
    line-height: 1.6;
}

/* Organization chart — About page */
.org-studio {
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--surface);
    overflow: hidden;
}
.org-studio-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(14, 116, 144, 0.1), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(194, 65, 12, 0.07), transparent 40%),
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-muted) 65%, transparent));
}
.org-studio-head {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(28px, 4vw, 40px);
}
.org-studio-head .section-title { margin: 10px 0 12px; }
.org-studio-lead {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--text-secondary);
    line-height: 1.7;
}
.org-scroll-hint {
    display: none;
    position: relative;
    margin: 0 0 12px;
    text-align: center;
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--text-muted);
}
.org-chart-canvas {
    position: relative;
    overflow-x: auto;
    padding: 12px 8px 28px;
    -webkit-overflow-scrolling: touch;
    direction: ltr;
}
.org-tree,
.org-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.org-tree {
    display: flex;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}
.org-tree ul {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 36px;
}
.org-tree ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 36px;
    background: color-mix(in srgb, var(--color-primary) 55%, var(--border));
    transform: translateX(-50%);
}
.org-tree-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 12px 0;
    text-align: center;
}
.org-tree > .org-tree-node { padding-top: 0; }
.org-tree-node::before,
.org-tree-node::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 36px;
    border-top: 2px solid color-mix(in srgb, var(--color-primary) 55%, var(--border));
}
.org-tree-node::before {
    right: 50%;
    border-right: 2px solid color-mix(in srgb, var(--color-primary) 55%, var(--border));
    border-radius: 0 12px 0 0;
}
.org-tree-node::after {
    left: 50%;
    border-left: 2px solid color-mix(in srgb, var(--color-primary) 55%, var(--border));
    border-radius: 12px 0 0 0;
}
.org-tree-node:only-child { padding-top: 0; }
.org-tree-node:only-child::before,
.org-tree-node:only-child::after { display: none; }
.org-tree-node:first-child::before { border: none; }
.org-tree-node:last-child::after { border: none; }
.org-tree-node:last-child::before {
    border-right: 2px solid color-mix(in srgb, var(--color-primary) 55%, var(--border));
}
.org-tree-node:first-child::after {
    border-radius: 12px 0 0 0;
}
.org-tree > .org-tree-node::before,
.org-tree > .org-tree-node::after { display: none; }
.org-node-card {
    position: relative;
    z-index: 1;
    width: 210px;
    padding: 18px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(11, 29, 54, 0.06);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
}
.org-node-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--border));
    box-shadow: 0 18px 40px rgba(11, 29, 54, 0.12);
}
.org-tree > .org-tree-node > .org-node-card {
    width: 240px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 10%, var(--surface)), var(--surface) 42%);
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--border));
    box-shadow: 0 16px 40px rgba(14, 116, 144, 0.12);
}
.org-node-photo {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    padding: 3px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-soft));
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.18);
}
.org-tree > .org-tree-node > .org-node-card .org-node-photo {
    width: 104px;
    height: 104px;
}
.org-node-photo img,
.org-node-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-muted);
    border: 2px solid var(--surface);
}
.org-node-avatar {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
}
.org-node-card:hover .org-node-photo img { transform: scale(1.04); }
.org-node-photo img { transition: transform 0.5s var(--ease-out); }
html[dir="rtl"] .org-node-info { direction: rtl; }
.org-node-name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}
.org-node-role {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
[data-theme="dark"] .org-node-role { color: var(--color-primary-light); }
.org-node-bio {
    margin: 10px 0 0;
    font-size: var(--text-caption);
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact */
.contact-section-wrap { margin-top: -24px; position: relative; z-index: 2; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px);
    align-items: stretch;
}
.contact-panel {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--surface); border-radius: var(--radius-xl);
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
    overflow: hidden; min-height: 520px;
    transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.contact-panel:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.contact-panel-accent {
    height: 4px; flex-shrink: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-soft));
}
.contact-panel-body {
    flex: 1; display: flex; flex-direction: column;
    padding: clamp(28px, 4vw, 40px); min-height: 0;
}
.contact-panel h2 {
    font-size: var(--text-h3); font-weight: 700; margin-bottom: 28px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.contact-info-list { flex: 1; min-height: 0; }
.info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.info-item:last-child { margin-bottom: 0; }
.info-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(26, 92, 56, 0.08);
}
.info-icon svg { width: 22px; height: 22px; }
.info-icon--phone {
    background: linear-gradient(135deg, rgba(26, 92, 56, 0.14), rgba(14, 116, 144, 0.08));
    color: var(--color-primary); border-color: rgba(26, 92, 56, 0.12);
}
.info-icon--user {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.06));
    color: #2563eb; border-color: rgba(59, 130, 246, 0.12);
}
.info-icon--email {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.14), rgba(234, 88, 12, 0.06));
    color: #ea580c; border-color: rgba(234, 88, 12, 0.12);
}
.info-icon--location {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(220, 38, 38, 0.06));
    color: #dc2626; border-color: rgba(220, 38, 38, 0.12);
}
.info-icon--clock {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(124, 58, 237, 0.06));
    color: #7c3aed; border-color: rgba(124, 58, 237, 0.12);
}
.info-item strong {
    display: block; font-size: var(--text-caption); color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.info-item a, .info-item span { color: var(--text-primary); font-weight: 500; line-height: 1.5; }
.hours-summary { display: block; }
.info-item a:hover { color: var(--color-primary); }
.contact-social {
    margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.contact-social-title {
    font-size: var(--text-caption); font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.contact-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social-link {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--surface-muted); border: 1px solid var(--border);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}
.contact-social-link svg { width: 18px; height: 18px; }
.contact-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.2);
    color: #fff; border-color: transparent;
}
.contact-social-link--facebook:hover { background: #1877f2; }
.contact-social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-link--whatsapp:hover { background: #25d366; }
.contact-social-link--linkedin:hover { background: #0a66c2; }
.contact-social-link--twitter:hover,
.contact-social-link--x:hover { background: #000; }
.contact-social-link--telegram:hover { background: #0088cc; }
.contact-social-link--youtube:hover { background: #ff0000; }
.contact-form {
    flex: 1; display: flex; flex-direction: column; gap: 20px; min-height: 0;
}
.contact-form-fields {
    flex: 1; display: flex; flex-direction: column; gap: 18px; min-height: 0;
}
.contact-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-form .form-group { position: relative; min-width: 0; }
.contact-form .form-group-grow {
    flex: 1; display: flex; flex-direction: column; min-height: 140px;
}
.contact-form .form-group-grow textarea { flex: 1; min-height: 140px; resize: vertical; }
.contact-form label {
    display: block; font-size: var(--text-caption); font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--bg-primary);
    color: var(--text-primary); font-family: inherit; font-size: var(--text-body);
    transition: all var(--duration-fast);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 92, 56, 0.12);
}
.contact-submit-btn { width: 100%; margin-top: auto; flex-shrink: 0; }
.contact-map-section { margin-top: clamp(48px, 6vw, 72px); }
.contact-map-header { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.contact-map-header h2 { font-size: var(--text-h2); font-weight: 800; margin: 8px 0 12px; }
.contact-map-header p { color: var(--text-muted); font-size: var(--text-body); line-height: 1.6; }
.map-wrapper {
    border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-md); position: relative;
}
.map-wrapper iframe { width: 100%; height: clamp(320px, 45vw, 480px); border: 0; display: block; }

/* Articles editorial */
.articles-page { background: var(--bg-primary); }

.articles-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 48px);
}
.articles-toolbar-text h2 {
    font-size: var(--text-h3); font-weight: 700; margin-bottom: 4px;
}
.articles-toolbar-text p { color: var(--text-muted); font-size: var(--text-small); }

.articles-filter-bar {
    display: inline-flex; gap: 4px; padding: 5px;
    background: var(--surface-muted); border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}
.articles-filter-bar .filter-btn {
    border: none; background: transparent; padding: 10px 22px;
}
.articles-filter-bar .filter-btn:hover,
.articles-filter-bar .filter-btn.active {
    background: var(--color-primary); color: #fff;
    box-shadow: var(--shadow-sm);
}

.articles-featured {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.article-featured-card {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    min-height: 420px; display: flex; align-items: flex-end;
    color: #fff; text-decoration: none;
    border: 1px solid var(--border);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}
.article-featured-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.article-featured-card img,
.article-img-fallback {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.article-img-fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-orange));
    color: var(--color-primary);
}
.article-img-fallback svg { width: 64px; height: 64px; opacity: 0.45; }
.article-img-fallback.sm svg { width: 40px; height: 40px; }
.article-featured-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,13,9,0.92) 0%, rgba(7,13,9,0.35) 55%, transparent 100%);
    transition: opacity var(--duration-normal);
}
.article-featured-card:hover::after { opacity: 0.95; }
.article-featured-body {
    position: relative; z-index: 1; padding: clamp(28px, 4vw, 40px);
    width: 100%;
}
.article-featured-body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
    margin: 12px 0; line-height: var(--leading-tight);
    font-family: var(--font-serif);
}
.article-featured-body p {
    font-size: var(--text-body); opacity: 0.88; line-height: 1.65;
    margin-bottom: 20px; max-width: 52ch;
}

.articles-featured-side {
    display: flex; flex-direction: column; gap: 20px;
}
.article-side-card {
    flex: 1; display: grid; grid-template-columns: 120px 1fr; gap: 16px;
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    color: var(--text-primary); text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 0;
}
.article-side-card:hover {
    border-color: var(--color-primary); box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
[dir="rtl"] .article-side-card:hover { transform: translateX(-4px); }
.article-side-thumb { overflow: hidden; }
.article-side-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.article-side-card:hover .article-side-thumb img { transform: scale(1.06); }
.article-side-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: 16px 20px 16px 0;
}
[dir="rtl"] .article-side-body { padding: 16px 0 16px 20px; }
.article-side-body h3 {
    font-size: var(--text-body); font-weight: 700; line-height: 1.4;
    margin: 8px 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-type-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: var(--text-caption); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(255,255,255,0.2); color: #fff;
    backdrop-filter: blur(4px);
}
.article-type-badge.sm { font-size: 0.65rem; padding: 3px 10px; }
.article-type-badge.is-news {
    background: rgba(14, 116, 144, 0.15); color: var(--color-primary);
}
.article-type-badge.is-blog {
    background: rgba(194, 65, 12), 0.15); color: var(--color-accent);
}
.article-featured-card .article-type-badge {
    background: rgba(255,255,255,0.18); color: #fff;
}
.article-card-editorial .thumb .article-type-badge {
    position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1;
}

.article-read-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--text-small); font-weight: 600;
    color: var(--color-accent-soft); transition: gap var(--duration-fast);
}
.article-featured-card .article-read-link { color: #fff; }
.article-card-editorial .article-read-link { color: var(--color-primary); margin-top: 12px; }
.article-read-link svg { transition: transform var(--duration-fast); }
.article-featured-card:hover .article-read-link,
.article-card-editorial:hover .article-read-link { gap: 12px; }
.article-featured-card:hover .article-read-link svg,
.article-card-editorial:hover .article-read-link svg { transform: translateX(4px); }
[dir="rtl"] .article-featured-card:hover .article-read-link svg,
[dir="rtl"] .article-card-editorial:hover .article-read-link svg { transform: translateX(-4px); }

.articles-section-label {
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.articles-section-label h2 {
    font-size: var(--text-h3); font-weight: 700;
}

.articles-grid-editorial {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.article-card-editorial {
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    color: var(--text-primary); text-decoration: none;
    display: flex; flex-direction: column;
}
.article-card-editorial:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.article-card-editorial .thumb {
    aspect-ratio: 16/10; overflow: hidden; position: relative;
    background: var(--surface-muted);
}
.article-card-editorial .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.article-card-editorial:hover .thumb img { transform: scale(1.06); }
.article-card-editorial .body {
    padding: 24px; flex: 1; display: flex; flex-direction: column;
}
.article-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: var(--text-caption); color: var(--text-muted); margin-bottom: 10px;
}
.article-meta .article-author::before {
    content: '·'; margin-inline-end: 10px;
}
.article-card-editorial h3 {
    font-size: var(--text-h3); font-weight: 700; line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-editorial p {
    font-size: var(--text-small); color: var(--text-muted); line-height: 1.65;
    flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Article detail */
.article-detail-hero .page-hero-inner { color: #fff; }
.article-detail-hero h1 {
    color: #fff; font-family: var(--font-serif);
}
.article-detail-hero .article-hero-excerpt {
    color: rgba(255,255,255,0.88); font-size: 1.1rem;
    max-width: 58ch; line-height: 1.7;
}
.article-hero-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: clamp(14px, 2vw, 18px);
}
.article-meta-date, .article-meta-author {
    font-size: var(--text-small); color: rgba(255,255,255,0.8);
}
.article-meta-author::before { content: '·'; margin-inline-end: 14px; }

.article-reading {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) 24px var(--section-gap);
    background: var(--bg-primary);
}
.article-content {
    font-size: 1.0625rem; line-height: 1.85; color: var(--text-secondary);
}
.article-content p { margin-bottom: 1.35em; }
.article-content h2, .article-content h3 {
    color: var(--text-primary); font-weight: 700;
    margin: 1.6em 0 0.75em; line-height: var(--leading-tight);
}
.article-content h2 { font-size: var(--text-h2); }
.article-content h3 { font-size: var(--text-h3); }
.article-content ul, .article-content ol {
    margin: 0 0 1.35em; padding-inline-start: 1.5em;
}
.article-content li { margin-bottom: 0.5em; }
.article-content img {
    max-width: 100%; height: auto; border-radius: var(--radius-md);
    margin: 1.5em 0; box-shadow: var(--shadow-sm);
}
.article-content blockquote {
    margin: 1.5em 0; padding: 20px 24px;
    border-inline-start: 4px solid var(--color-primary);
    background: var(--surface-muted); border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic; color: var(--text-secondary);
}
.article-footer {
    margin-top: clamp(40px, 6vw, 56px);
    padding-top: 32px; border-top: 1px solid var(--border);
}
.article-back-btn {
    display: inline-flex; align-items: center; gap: 10px;
}
[dir="rtl"] .article-back-btn svg { transform: scaleX(-1); }

/* Product detail */
.product-detail-page {
    padding: calc(var(--header-h) + 24px) 0 clamp(56px, 8vw, 96px);
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(217, 119, 6, 0.06), transparent 50%),
        var(--surface-muted);
}
.product-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: var(--text-caption); color: var(--text-muted);
    margin-bottom: clamp(20px, 3vw, 32px);
}
.product-crumb a { color: var(--text-secondary); transition: color var(--duration-fast); }
.product-crumb a:hover { color: var(--color-primary); }
.product-crumb-current { color: var(--text-primary); font-weight: 600; }
.product-detail-shell {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 48px); align-items: start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-md);
}
.product-detail-gallery { display: grid; gap: 14px; }
.product-gallery-stage {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 320px;
}
.product-gallery-stage img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
    transition: transform 0.5s var(--ease-out);
}
.product-gallery-stage img.is-svg { object-fit: contain; padding: 28px; background: #0f172a; }
.product-gallery-stage:hover img:not(.is-svg) { transform: scale(1.03); }
.product-gallery-empty {
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35);
}
.product-gallery-empty svg { width: 64px; height: 64px; }
.product-gallery-badge {
    position: absolute; top: 16px; inset-inline-start: 16px;
    padding: 6px 12px; border-radius: 100px;
    background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(8px);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #99f6e4; font-size: var(--text-caption); font-weight: 600;
}
.product-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-thumb {
    padding: 0; border: 2px solid transparent; border-radius: var(--radius-md);
    overflow: hidden; cursor: pointer; background: var(--surface-muted);
    width: 76px; height: 76px; transition: border-color var(--duration-fast), transform var(--duration-fast);
}
.product-thumb:hover, .product-thumb.is-active { border-color: var(--color-primary); }
.product-thumb.is-active { transform: translateY(-2px); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info-card { display: grid; gap: 18px; }
.product-info-card h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.02em;
}
.product-lead {
    color: var(--text-secondary); font-size: var(--text-body);
    line-height: 1.7; max-width: 52ch;
}
.product-category-tag {
    display: inline-flex; align-items: center; width: fit-content;
    padding: 6px 14px; background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 100px; font-size: var(--text-caption); font-weight: 700;
    color: var(--color-primary);
}
.product-spec-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.product-spec-chip {
    padding: 8px 14px; border-radius: var(--radius-md);
    background: var(--surface-muted); border: 1px solid var(--border);
    font-size: var(--text-small); font-weight: 600; color: var(--text-secondary);
}
.product-trust-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.product-trust-item {
    display: grid; gap: 6px; padding: 12px;
    border-radius: var(--radius-md); background: var(--surface-muted);
    border: 1px solid var(--border); font-size: var(--text-caption); color: var(--text-secondary);
}
.product-trust-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(45, 212, 191, 0.15); color: var(--color-primary);
    font-size: 0.85rem; font-weight: 700;
}
.product-cta-panel {
    display: grid; gap: 16px; padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    border: 1px solid rgba(255,255,255,0.08); color: #e2e8f0;
}
.product-cta-panel strong { font-size: var(--text-body); color: #fff; }
.product-cta-panel p { margin: 6px 0 0; font-size: var(--text-small); color: #94a3b8; line-height: 1.6; }
.product-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-call-btn { border-color: rgba(255,255,255,0.2) !important; color: #fff !important; }
.product-files { margin-top: clamp(28px, 4vw, 40px); }
.product-file-list { display: grid; gap: 12px; }
.product-file-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}
.product-file-preview {
    width: 72px; height: 72px; border-radius: var(--radius-md);
    overflow: hidden; background: var(--surface); border: 1px solid var(--border);
}
.product-file-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-file-badge {
    width: 72px; height: 72px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; color: #fff;
}
.product-file-badge.is-pdf { background: #b91c1c; }
.product-file-badge.is-excel { background: #15803d; }
.product-file-meta { display: grid; gap: 4px; min-width: 0; }
.product-file-meta strong {
    font-size: var(--text-body); color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-file-meta span { font-size: var(--text-caption); color: var(--text-muted); font-weight: 600; }
.product-file-download { white-space: nowrap; }
.product-detail-body { margin-top: clamp(28px, 4vw, 40px); }
.product-detail-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}
.product-block-head { margin-bottom: 20px; }
.product-block-head h2 { font-size: var(--text-h3); font-weight: 800; margin-top: 8px; }
.product-rich-text { color: var(--text-secondary); line-height: 1.85; }
.product-related { margin-top: clamp(40px, 6vw, 64px); }
.product-related-grid { margin-top: 24px; }

/* Legacy aliases */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.product-gallery-main { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.product-gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info-panel { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info-panel h1 { font-size: var(--text-h2); font-weight: 800; margin-bottom: 12px; }
.specifications-box { margin-top: 24px; padding: 24px; background: var(--surface-muted); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.specifications-box h3 { font-size: var(--text-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; color: var(--text-muted); }

/* Service detail flow */
.service-flow { counter-reset: flow; }
.service-flow-step {
    display: grid; grid-template-columns: auto 1fr; gap: 32px;
    padding: clamp(32px, 5vw, 48px) 0;
    border-bottom: 1px solid var(--border);
}
.service-flow-step::before {
    counter-increment: flow; content: counter(flow, decimal-leading-zero);
    font-size: 3rem; font-weight: 800; color: var(--color-accent); opacity: 0.5; line-height: 1;
}

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn, .filter-chip {
    padding: 9px 20px; border-radius: 100px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-secondary); font-size: var(--text-small); font-weight: 500;
    transition: all var(--duration-fast); cursor: pointer;
}
.filter-btn:hover, .filter-btn.active, .filter-chip:hover, .filter-chip.active {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-form input, .filter-form select {
    padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text-primary); font-size: var(--text-small);
}
.filter-form input:focus, .filter-form select:focus { outline: none; border-color: var(--color-primary); }

/* Empty state */
.empty-state {
    text-align: center; padding: clamp(48px, 8vw, 80px) 24px;
    background: var(--surface); border-radius: var(--radius-xl);
    border: 2px dashed var(--border);
}
.empty-visual {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--surface-muted); display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
}
.empty-visual svg { width: 36px; height: 36px; opacity: 0.6; }
.empty-state h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: var(--text-small); max-width: 36ch; margin: 0 auto; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(7,13,9,0.92); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--duration-normal);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.5rem; transition: all var(--duration-fast);
}
.lightbox-close { top: 24px; inset-inline-end: 24px; }
.lightbox-prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--color-accent); color: var(--color-tech); }
.lightbox-caption { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.9); font-size: var(--text-small); text-align: center; max-width: 80%; }
.lightbox-count {
    position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em;
}

/* Flash */
.flash-messages {
    padding: calc(var(--header-h) + 12px) 0 0;
    background: var(--bg-primary);
}
.flash { padding: 12px 20px; border-radius: var(--radius-md); margin-bottom: 8px; font-size: var(--text-small); font-weight: 500; }
.flash-success { background: rgba(30,138,74,0.12); color: var(--success); border: 1px solid rgba(30,138,74,0.2); }
.flash-error { background: rgba(192,57,43,0.12); color: var(--danger); border: 1px solid rgba(192,57,43,0.2); }

/* Error pages */
.error-page {
    padding: calc(var(--header-h) + clamp(80px, 15vw, 160px)) 0 clamp(80px, 10vw, 120px);
    text-align: center;
    background: var(--bg-primary);
}
.error-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-page p { font-size: var(--text-body); color: var(--text-muted); margin: 16px 0 32px; }

/* ---- Workshop banner (home CTA) ---- */
.workshop-banner-section {
    margin: clamp(40px, 6vw, 72px) 0;
}
.workshop-banner {
    position: relative;
    border-radius: calc(var(--radius-xl) + 4px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(45, 212, 191, 0.18);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.12),
        0 32px 80px rgba(15, 23, 42, 0.18);
}
.workshop-banner-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(135deg, #0a1628 0%, #0f2744 38%, #134e4a 100%);
}
.workshop-banner-mesh {
    position: absolute; inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
}
.workshop-banner-circuit {
    position: absolute; inset: 0;
    opacity: 0.35;
    background:
        radial-gradient(circle at 18% 55%, rgba(45, 212, 191, 0.2) 0, transparent 28%),
        radial-gradient(circle at 82% 30%, rgba(217, 119, 6, 0.15) 0, transparent 32%);
}
.workshop-banner-glow {
    position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.workshop-banner-glow-a {
    width: 320px; height: 320px; top: -80px; inset-inline-end: -60px;
    background: rgba(45, 212, 191, 0.22);
    animation: workshopGlowDrift 9s ease-in-out infinite;
}
.workshop-banner-glow-b {
    width: 240px; height: 240px; bottom: -60px; inset-inline-start: 8%;
    background: rgba(217, 119, 6, 0.16);
    animation: workshopGlowDrift 9s ease-in-out infinite reverse;
}
@keyframes workshopGlowDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(14px, -12px); }
}
.workshop-banner-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(32px, 5vw, 52px) clamp(28px, 4vw, 48px);
}
.workshop-banner-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px 7px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #99f6e4;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
[dir="rtl"] .workshop-banner-tag { padding: 7px 12px 7px 16px; }
.workshop-banner-tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
    animation: workshopTagPulse 2.2s ease-out infinite;
}
@keyframes workshopTagPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.workshop-banner-title {
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
    font-weight: 800; line-height: 1.18;
    letter-spacing: -0.025em;
    color: #f8fafc;
    margin-bottom: 14px;
}
[dir="rtl"] .workshop-banner-title { font-family: var(--font-rtl); }
.workshop-banner-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 55%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.workshop-banner-lead {
    color: #94a3b8; font-size: 0.9375rem;
    margin-bottom: clamp(22px, 3vw, 28px); line-height: 1.6;
}
.workshop-banner-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin-bottom: clamp(24px, 3vw, 32px);
}
.workshop-step {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
    padding: 14px 14px 14px 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.workshop-step:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.workshop-step-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4; flex-shrink: 0;
}
.workshop-step-icon svg { width: 18px; height: 18px; }
.workshop-step strong {
    display: block; font-size: 0.78rem; font-weight: 700;
    color: #e2e8f0; line-height: 1.35; margin-bottom: 3px;
}
.workshop-step span {
    display: block; font-size: 0.68rem; color: #64748b; line-height: 1.4;
}
.workshop-banner-actions {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.workshop-banner-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 100px;
    font-size: 0.9375rem; font-weight: 700;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, gap 0.35s;
}
.workshop-banner-btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 10px 32px rgba(13, 148, 136, 0.4);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.workshop-banner-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(13, 148, 136, 0.5);
    gap: 14px; color: #fff;
}
.workshop-banner-btn-primary svg { transition: transform 0.35s var(--ease-out); }
.workshop-banner-btn-primary:hover svg { transform: translateX(4px); }
[dir="rtl"] .workshop-banner-btn-primary:hover svg { transform: translateX(-4px); }
.workshop-banner-btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.workshop-banner-btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.workshop-banner-aside {
    position: relative;
    display: grid; place-items: center;
    min-height: 280px;
}
.workshop-banner-visual {
    position: relative;
    width: min(240px, 70vw); height: min(240px, 70vw);
    display: grid; place-items: center;
}
.workshop-visual-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px dashed rgba(45, 212, 191, 0.22);
}
.workshop-visual-ring-1 { animation: workshopRingSpin 16s linear infinite; }
.workshop-visual-ring-2 {
    inset: -18px;
    border-color: rgba(217, 119, 6, 0.18);
    animation: workshopRingSpin 22s linear infinite reverse;
}
@keyframes workshopRingSpin { to { transform: rotate(360deg); } }
.workshop-visual-core {
    width: 120px; height: 120px;
    animation: workshopCoreFloat 5s ease-in-out infinite;
}
@keyframes workshopCoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.workshop-visual-core svg { width: 100%; height: 100%; }
.workshop-phone-card {
    position: absolute;
    bottom: 0; inset-inline-start: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    min-width: 168px;
    color: inherit;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
    overflow: hidden;
}
.workshop-phone-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    color: inherit;
}
.workshop-phone-badge {
    display: inline-block;
    padding: 4px 12px; border-radius: 100px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #fff;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 10px;
}
.workshop-phone-number {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #0f766e, #0e7490);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
[dir="rtl"] .workshop-phone-number { font-family: var(--font-rtl); }
.workshop-phone-label {
    font-size: 0.75rem; font-weight: 600; color: #64748b;
}
.workshop-phone-pulse {
    position: absolute; inset: -30%;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.25);
    animation: workshopPhonePulse 3s ease-out infinite;
    pointer-events: none;
}
@keyframes workshopPhonePulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* ---- Brands showcase (home) ---- */
.brands-showcase-section {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0;
    overflow: hidden;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}
.brands-showcase-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.14), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(217, 119, 6, 0.12), transparent 40%);
}
.brands-showcase-head .section-tag { color: #5eead4; margin-bottom: 12px; }
.brands-showcase-head .section-tag::before { background: linear-gradient(90deg, #2dd4bf, transparent); }
.brands-showcase-head {
    position: relative; z-index: 1; text-align: center;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.brands-showcase-head h2 {
    font-size: var(--text-h2); font-weight: 800; color: #f8fafc;
    margin-bottom: 10px; letter-spacing: -0.02em;
}
.brands-showcase-head p {
    color: #94a3b8; font-size: var(--text-small);
    max-width: 52ch; margin: 0 auto; line-height: 1.65;
}
.brands-bento {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: clamp(14px, 2vw, 20px);
}
.brand-card {
    position: relative; grid-column: span 12;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
    padding: clamp(18px, 2.5vw, 26px);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
    animation: brandFadeUp 0.6s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 0.08s);
}
@keyframes brandFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}
.brand-card-glow {
    position: absolute; inset: -40% auto auto -20%;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 70%);
    pointer-events: none;
}
.brand-card-logo {
    width: 76px; height: 76px; flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    display: grid; place-items: center; padding: 14px;
    transition: transform 0.35s var(--ease-out);
}
.brand-card:hover .brand-card-logo { transform: scale(1.06); }
.brand-card-logo img {
    max-width: 100%; max-height: 44px; object-fit: contain;
    filter: brightness(1.1);
}
.brand-logo-fallback {
    font-size: 1.75rem; font-weight: 800; color: #5eead4;
}
.brand-card-body { min-width: 0; }
.brand-card-type {
    display: inline-block; margin-bottom: 6px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #67e8f9;
}
.brand-card-body h3 {
    font-size: 1.05rem; font-weight: 750; color: #f1f5f9;
    margin-bottom: 6px; line-height: 1.3;
}
.brand-card-body p {
    margin: 0; font-size: 0.82rem; line-height: 1.55; color: #94a3b8;
}
.brand-card.is-featured {
    grid-column: span 12;
    grid-template-columns: 1fr;
    text-align: center; padding: clamp(28px, 4vw, 40px);
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(255,255,255,0.03));
    border-color: rgba(45, 212, 191, 0.28);
}
.brand-card.is-featured .brand-card-logo {
    width: 96px; height: 96px; margin: 0 auto 16px;
}
.brand-card.is-featured .brand-card-logo img { max-height: 52px; }
.brands-trust-strip {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: clamp(28px, 4vw, 40px);
}
.brands-trust-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1; font-size: 0.8125rem; font-weight: 600;
}
.brands-trust-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #d97706);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}
@media (min-width: 768px) {
    .brand-card { grid-column: span 6; }
    .brand-card.is-featured {
        grid-column: span 6; grid-row: span 2;
        align-content: center;
    }
}
@media (min-width: 1024px) {
    .brand-card { grid-column: span 4; }
    .brand-card.is-featured { grid-column: span 6; grid-row: span 2; }
    .brand-card:not(.is-featured):nth-child(3) { grid-column: 7 / span 3; }
    .brand-card:not(.is-featured):nth-child(4) { grid-column: 10 / span 3; }
    .brand-card:not(.is-featured):nth-child(2) { grid-column: 7 / span 6; }
}

/* ---- About: What we do ---- */
.about-work-studio {
    position: relative; padding: clamp(56px, 7vw, 88px) 0;
    background: var(--surface-muted); overflow: hidden;
}
.about-work-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.1), transparent 45%);
}
.about-work-head {
    position: relative; max-width: 640px; margin-bottom: clamp(28px, 4vw, 40px);
}
.about-work-lead {
    margin-top: 12px; color: var(--text-secondary);
    font-size: var(--text-body); line-height: 1.7;
}
.about-work-grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 3vw, 32px); align-items: stretch;
}
.about-work-panel {
    padding: clamp(24px, 3vw, 32px);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #0f172a, #1e3a5f);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e2e8f0;
    display: grid; align-content: start; gap: 14px;
}
.about-work-panel-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
}
.about-work-panel-icon svg { width: 26px; height: 26px; }
.about-work-panel h3 { font-size: 1.25rem; font-weight: 800; color: #fff; }
.about-work-panel p { margin: 0; color: #94a3b8; line-height: 1.65; font-size: var(--text-small); }
.about-rich-list ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.about-rich-list li {
    position: relative; margin: 0;
    padding: 18px 18px 18px 52px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600; color: var(--text-primary);
    line-height: 1.5; font-size: var(--text-small);
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.about-rich-list li:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.about-rich-list li::before {
    content: '';
    position: absolute; inset-inline-start: 18px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 7px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.05));
    border: 1px solid rgba(45, 212, 191, 0.35);
}
.about-rich-list li::after {
    content: '→';
    position: absolute; inset-inline-start: 23px; top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem; font-weight: 800; color: var(--color-primary);
}
[dir="rtl"] .about-rich-list li::after { content: '←'; }

/* ---- About: Advantages ---- */
.about-advantages-studio {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--surface);
}
.about-advantages-shell {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 48px); align-items: center;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.08), transparent 40%),
        linear-gradient(225deg, rgba(45, 212, 191, 0.1), transparent 45%),
        var(--surface-muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.about-advantages-intro .section-tag-light {
    padding: 6px 14px; border-radius: 100px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
}
.about-advantages-intro .section-tag-light::before { display: none; }
.about-advantages-intro h2 { margin: 10px 0 12px; }
.about-advantages-intro p {
    color: var(--text-secondary); line-height: 1.7; margin: 0;
    max-width: 38ch;
}
.about-advantage-list ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 12px;
    counter-reset: adv;
}
.about-advantage-list li {
    counter-increment: adv;
    display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600; color: var(--text-primary);
    line-height: 1.55; font-size: var(--text-small);
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.about-advantage-list li:hover {
    border-color: rgba(217, 119, 6, 0.45);
    transform: translateX(4px);
}
[dir="rtl"] .about-advantage-list li:hover { transform: translateX(-4px); }
.about-advantage-list li::before {
    content: counter(adv, decimal-leading-zero);
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    font-size: 0.78rem; font-weight: 800;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

/* ---- FAQ studio (about) ---- */
.faq-studio {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--surface-muted);
    overflow: hidden;
}
.faq-studio-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 0% 50%, rgba(45, 212, 191, 0.08), transparent 50%);
}
.faq-studio-grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 56px); align-items: start;
}
.faq-studio-intro .section-title { margin: 10px 0 14px; }
.faq-studio-intro p {
    color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 24px; max-width: 36ch;
}
.faq-studio-cta { width: fit-content; }
.faq-studio-list { max-width: none; margin: 0; }
.faq-card {
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    background: var(--surface);
}
.faq-card .faq-question {
    padding: 18px 20px; gap: 12px;
}
.faq-card-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(45, 212, 191, 0.12);
    color: var(--color-primary);
}
.faq-card-icon svg { width: 18px; height: 18px; }
.faq-card-text { flex: 1; text-align: inherit; font-size: var(--text-small); }
.faq-toggle {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%; position: relative;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}
.faq-toggle span {
    position: absolute; top: 50%; left: 50%;
    width: 12px; height: 2px; background: var(--text-secondary);
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--ease-out), background 0.3s;
}
.faq-toggle span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-toggle {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.faq-item.open .faq-toggle span { background: #fff; }
.faq-item.open .faq-toggle span:last-child { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-card .faq-answer-inner {
    padding: 0 20px 0 70px;
    color: var(--text-secondary); line-height: 1.75;
}
.faq-card.open .faq-answer-inner { padding-bottom: 20px; }
[dir="rtl"] .faq-card .faq-answer-inner { padding: 0 70px 0 20px; }
.faq-card .faq-num, .faq-card .faq-arrow { display: none; }

/* Legacy compat */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all var(--duration-normal); color: var(--text-primary); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-image { aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: var(--text-body); font-weight: 700; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: var(--text-small); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img.gallery-svg { object-fit: contain; background: var(--surface-muted, #f4f4f5); padding: 12px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.social-links a { padding: 8px 16px; background: var(--surface-muted); border-radius: var(--radius-sm); font-size: var(--text-small); font-weight: 600; color: var(--color-primary); transition: all var(--duration-fast); }
.social-links a:hover { background: var(--color-primary); color: #fff; }
.hours-list { list-style: none; margin-top: 12px; }
.hours-list li { padding: 6px 0; font-size: var(--text-small); color: var(--text-muted); border-bottom: 1px solid var(--border); }

/* ============================================================
   CURSOR EFFECT + WHATSAPP FLOAT
   ============================================================ */
body.has-cursor-fx,
body.has-cursor-fx a,
body.has-cursor-fx button,
body.has-cursor-fx input,
body.has-cursor-fx textarea,
body.has-cursor-fx select,
body.has-cursor-fx label {
    cursor: none !important;
}
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #0e7490;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(14, 116, 144, 0.55);
    background: rgba(34, 211, 238, 0.06);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
}
.cursor-dot.is-hover {
    width: 10px;
    height: 10px;
    background: #22d3ee;
}
.cursor-ring.is-hover {
    width: 48px;
    height: 48px;
    border-color: rgba(34, 211, 238, 0.85);
    background: rgba(34, 211, 238, 0.1);
}
.cursor-dot.is-press,
.cursor-ring.is-press {
    transform: translate(-50%, -50%) scale(0.88);
}
[data-theme="dark"] .cursor-dot { background: #22d3ee; }
[data-theme="dark"] .cursor-ring { border-color: rgba(34, 211, 238, 0.7); }

.whatsapp-float {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.whatsapp-float-label { position: relative; z-index: 1; }
.whatsapp-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25d366;
    animation: waPulse 2.2s ease-out infinite;
    z-index: 0;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.35); opacity: 0; }
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
    color: #fff;
}
@media (max-width: 640px) {
    .whatsapp-float-label { display: none; }
    .whatsapp-float {
        padding: 14px;
        inset-inline-end: 16px;
        bottom: 16px;
    }
}
@media (pointer: coarse) {
    body.has-cursor-fx,
    body.has-cursor-fx * { cursor: auto !important; }
    .cursor-dot,
    .cursor-ring { display: none !important; }
}
