/* ============================================
   Al-Imtiaz Glass - Professional Theme
   Light & Dark Mode with Custom Colors
   ============================================ */

:root {
    /* Light Mode */
    --bg-main: #FEFADF;
    --bg-section: #F5EFCF;
    --color-heading: #073832;
    --color-text: #2C3E3B;
    --color-accent: #0B534A;
    --color-accent-hover: #073832;
    --color-white: #FFFFFF;
    --color-border: rgba(7, 56, 50, 0.12);
    --color-shadow: rgba(7, 56, 50, 0.08);
    --color-overlay: rgba(7, 56, 50, 0.85);
    --color-card: #FFFFFF;
    --color-input-bg: #FFFFFF;
    --color-muted: rgba(44, 62, 59, 0.7);
    --gradient-accent: linear-gradient(135deg, #0B534A 0%, #073832 100%);
    --gradient-hero: linear-gradient(135deg, #073832 0%, #0B534A 50%, #0D6E62 100%);
    --font-primary: 'Cairo', 'Inter', sans-serif;
    --font-secondary: 'Inter', 'Cairo', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 8px 24px var(--color-shadow);
    --shadow-lg: 0 16px 48px var(--color-shadow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

[data-theme="dark"] {
    --bg-main: #041D1A;
    --bg-section: #072B26;
    --color-heading: #FEFADF;
    --color-text: #D1CDB2;
    --color-accent: #0D6E62;
    --color-accent-hover: #12a090;
    --color-border: rgba(254, 250, 223, 0.1);
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-overlay: rgba(4, 29, 26, 0.9);
    --color-card: #072B26;
    --color-input-bg: #041D1A;
    --color-muted: rgba(209, 205, 178, 0.7);
    --gradient-accent: linear-gradient(135deg, #0D6E62 0%, #0B534A 100%);
    --gradient-hero: linear-gradient(135deg, #041D1A 0%, #072B26 50%, #0B534A 100%);
}

/* Logo: beige in dark mode */
[data-theme="dark"] .site-logo {
    filter: brightness(0) saturate(100%) invert(95%) sepia(18%) saturate(420%) hue-rotate(358deg) brightness(104%) contrast(96%);
}

.desktop-only { display: flex; }
.mobile-only { display: none !important; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

[dir="ltr"] body { font-family: var(--font-secondary); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ========== Splash Screen / Preloader ========== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash {
    text-align: center;
    padding: 24px;
    animation: splashFadeIn 0.8s ease;
}

#branchGate,
.branch-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.branch-gate--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.branch-gate--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.branch-gate--visible .branch-gate-bg {
    animation: branchBgReveal 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.branch-gate--visible .branch-gate-card {
    animation: branchGateIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.branch-gate--visible .branch-gate-logo {
    animation: branchLogoReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.branch-gate--visible .branch-gate-title {
    animation: branchRevealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}
.branch-gate--visible .branch-gate-subtitle {
    animation: branchRevealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}
.branch-gate--visible .branch-btn:nth-child(1) {
    animation: branchBtnReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
}
.branch-gate--visible .branch-btn:nth-child(2) {
    animation: branchBtnReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.76s both;
}
.branch-gate--visible .branch-gate-note {
    animation: branchRevealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}
body.branch-lock {
    overflow: hidden;
}
body.branch-lock #siteContent,
.site-content--hidden {
    visibility: hidden;
    pointer-events: none;
}
.branch-gate-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(1000px 400px at 20% 10%, rgba(13, 110, 98, 0.20), transparent 60%),
        radial-gradient(900px 420px at 80% 30%, rgba(11, 83, 74, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(254, 250, 223, 0.88), rgba(245, 239, 207, 0.92)),
        url("../images/hero.jpg");
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .branch-gate-bg {
    background:
        radial-gradient(1000px 400px at 20% 10%, rgba(13, 110, 98, 0.22), transparent 60%),
        radial-gradient(900px 420px at 80% 30%, rgba(11, 83, 74, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(4, 29, 26, 0.90), rgba(7, 43, 38, 0.94)),
        url("../images/hero.jpg");
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center;
}
.branch-gate-card {
    position: relative;
    width: min(760px, 100%);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 34px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
}
.branch-gate-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 20% 20%, rgba(13, 110, 98, 0.16), transparent 60%);
    pointer-events: none;
}
.branch-gate-logo {
    width: 160px;
    margin: 0 auto 18px;
    opacity: 0;
}
.branch-gate-title {
    color: var(--color-heading);
    font-weight: 900;
    font-size: clamp(1.3rem, 3.2vw, 1.8rem);
    margin-bottom: 10px;
    opacity: 0;
}
.branch-gate-subtitle {
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.85;
    margin: 0 auto 26px;
    max-width: 560px;
    opacity: 0;
}
.branch-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.branch-btn {
    position: relative;
    display: block;
    padding: 18px 18px;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--bg-section);
    text-align: right;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    opacity: 0;
}
[dir="ltr"] .branch-btn { text-align: left; }
.branch-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 180px at 20% 20%, rgba(13, 110, 98, 0.16), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}
.branch-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(13, 110, 98, 0.45);
    box-shadow: var(--shadow-md);
}
.branch-btn:hover::after { opacity: 1; }
.branch-btn-title {
    position: relative;
    display: block;
    color: var(--color-heading);
    font-weight: 800;
    font-size: 1.12rem;
    margin-bottom: 6px;
}
.branch-btn-sub {
    position: relative;
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
}
.branch-gate-note {
    color: var(--color-muted);
    font-size: 0.9rem;
    opacity: 0;
}
@keyframes branchBgReveal {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes branchGateIn {
    from { opacity: 0; transform: translateY(36px) scale(0.94); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes branchLogoReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.82); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.04); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes branchRevealUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes branchBtnReveal {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .branch-gate--visible .branch-gate-bg,
    .branch-gate--visible .branch-gate-card,
    .branch-gate--visible .branch-gate-logo,
    .branch-gate--visible .branch-gate-title,
    .branch-gate--visible .branch-gate-subtitle,
    .branch-gate--visible .branch-btn,
    .branch-gate--visible .branch-gate-note {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.splash-logo {
    width: 180px;
    max-width: 70vw;
    margin: 0 auto 24px;
    animation: splashLogoIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(7, 56, 50, 0.15));
}

.splash-name {
    color: var(--color-heading);
    font-weight: 800;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 8px;
    animation: splashTextIn 0.8s ease 0.3s both;
}

.splash-tagline {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    animation: splashTextIn 0.8s ease 0.5s both;
}

.splash-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: splashTextIn 0.8s ease 0.7s both;
}
.splash-loader span {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: splashBounce 1.2s infinite ease-in-out;
}
.splash-loader span:nth-child(1) { animation-delay: 0s; }
.splash-loader span:nth-child(2) { animation-delay: 0.15s; }
.splash-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes splashLogoIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes splashTextIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes splashBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(254, 250, 223, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}
[data-theme="dark"] .header {
    background: rgba(4, 29, 26, 0.92);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: var(--transition);
}
.header.scrolled .navbar { height: 70px; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    max-width: calc(100% - 100px);
}
.logo img { width: auto; height: 48px; max-width: 120px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo-tagline {
    font-size: 0.72rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-call-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #FEFADF;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.nav-call-icon:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.nav-menu-tools {
    display: none;
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.nav-menu-tools .theme-toggle,
.nav-menu-tools .lang-switch {
    width: 100%;
    height: 44px;
}
.nav-menu-tools .btn {
    width: 100%;
    justify-content: center;
}

.branch-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

/* Header branch switcher (desktop) */
.header-branch-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 4px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    flex-shrink: 0;
}
.header-branch-switch .branch-pill {
    height: 32px;
    padding: 0 14px;
    font-size: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    white-space: nowrap;
}
.header-branch-switch .branch-pill:hover {
    background: var(--bg-section);
}
.header-branch-switch .branch-pill.active {
    background: var(--color-accent);
    color: #FEFADF;
    box-shadow: var(--shadow-sm);
}

/* Header branch dropdown (mobile) */
.branch-dropdown {
    position: relative;
    flex-shrink: 0;
}
.branch-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-heading);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.branch-dropdown-btn:hover,
.branch-dropdown-btn[aria-expanded="true"] {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.branch-dropdown-btn i.fa-location-dot {
    color: var(--color-accent);
    font-size: 0.9rem;
}
.branch-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}
.branch-dropdown-btn[aria-expanded="true"] .branch-chevron {
    transform: rotate(180deg);
}
.branch-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1100;
}
[dir="ltr"] .branch-dropdown-menu {
    right: auto;
    left: 0;
}
.branch-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.branch-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.branch-dropdown-menu a:hover {
    background: var(--bg-section);
    color: var(--color-accent);
}
.branch-dropdown-menu a.active {
    background: var(--color-accent);
    color: #FEFADF;
}
.branch-dropdown-menu a i {
    width: 16px;
    text-align: center;
}

.branch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-heading);
    font-weight: 700;
    transition: var(--transition);
}
.branch-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.branch-pill.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FEFADF;
}

.theme-toggle, .lang-switch {
    width: 40px; height: 40px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.theme-toggle:hover, .lang-switch:hover {
    background: var(--color-accent);
    color: #FEFADF;
    border-color: var(--color-accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    flex-shrink: 0;
}
.mobile-toggle:hover {
    border-color: var(--color-accent);
    background: var(--bg-section);
}
.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
}
.mobile-toggle.active span {
    background: #FEFADF;
}
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 29, 26, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-accent);
    color: #FEFADF;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: #FEFADF;
    border-color: rgba(254, 250, 223, 0.5);
}
.btn-outline:hover {
    background: rgba(254, 250, 223, 0.1);
    border-color: #FEFADF;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 29, 26, 0.88) 0%, rgba(7, 43, 38, 0.82) 50%, rgba(11, 83, 74, 0.75) 100%);
    z-index: 1;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 25% 25%, #FEFADF 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
}
.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(13, 110, 98, 0.3) 0%, transparent 70%);
    z-index: 2;
}
.hero .container { position: relative; z-index: 1; }

.hero-content {
    max-width: 800px;
    padding: 60px 0 40px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 250, 223, 0.15);
    border: 1px solid rgba(254, 250, 223, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    color: #FEFADF;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #FEFADF;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(254, 250, 223, 0.85);
    margin-bottom: 32px;
    max-width: 650px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.hero-values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-values span {
    color: rgba(254, 250, 223, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-values i { color: #0D6E62; }

.hero-cards {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-bottom: 40px;
}
.hero-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hero-item-card {
    background: rgba(254, 250, 223, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(254, 250, 223, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.hero-item-card:hover {
    background: rgba(254, 250, 223, 0.18);
    transform: translateY(-4px);
}
.hero-item-card h3 {
    color: #FEFADF;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ========== Sections ========== */
.section {
    padding: 100px 0;
}
.section:nth-child(even) {
    background: var(--bg-section);
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #FEFADF;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-content h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 16px;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}
.about-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.about-content p {
    margin-bottom: 24px;
    line-height: 1.9;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}
[dir="ltr"] .feature-card:hover { transform: translateX(4px); }
.feature-counter {
    width: 72px;
    min-width: 72px;
    height: 72px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.feature-counter .counter-value {
    color: #FEFADF;
    font-size: 1.35rem;
    font-weight: 800;
}
.feature-counter .counter-suffix {
    color: #FEFADF;
    font-size: 1rem;
    font-weight: 700;
}
.feature-text h4 {
    color: var(--color-heading);
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.feature-text p { font-size: 0.9rem; color: var(--color-muted); }

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.service-card--no-image h3 {
    padding-top: 28px;
}
.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.service-card:hover .service-image img { transform: scale(1.08); }
.service-card h3 {
    color: var(--color-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
    padding: 0 24px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.7;
    padding: 0 24px 28px;
}

/* ========== Portfolio ========== */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-accent);
    color: #FEFADF;
    border-color: var(--color-accent);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-placeholder {
    width: 100%; height: 100%;
    background: var(--bg-section);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-muted);
}
.portfolio-placeholder i { font-size: 2.5rem; opacity: 0.4; }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: #FEFADF; font-size: 1.1rem; }
.portfolio-zoom {
    width: 48px; height: 48px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    color: #FEFADF;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.portfolio-zoom:hover { transform: scale(1.1); }
.portfolio-item.hidden { display: none; }

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-icon {
    width: 48px; height: 48px;
    min-width: 48px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.contact-icon i { color: #FEFADF; }
.contact-card h4 {
    color: var(--color-heading);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.contact-card p, .contact-card a {
    font-size: 0.9rem;
    color: var(--color-muted);
}
.contact-card a:hover { color: var(--color-accent); }

.contact-form {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-heading);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-input-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(11, 83, 74, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.alert {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.alert-success {
    background: rgba(13, 110, 98, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(13, 110, 98, 0.3);
}
.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ========== Footer ========== */
.footer {
    background: var(--color-heading);
    color: rgba(254, 250, 223, 0.8);
    padding: 60px 0 0;
}
[data-theme="dark"] .footer {
    background: #021412;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(254, 250, 223, 0.1);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo img { width: auto; height: 44px; max-width: 120px; object-fit: contain; }
.footer-logo .site-logo {
    filter: brightness(0) saturate(100%) invert(95%) sepia(18%) saturate(420%) hue-rotate(358deg) brightness(104%) contrast(96%);
}
.footer-logo span { color: #FEFADF; font-weight: 700; font-size: 1.1rem; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(254, 250, 223, 0.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #FEFADF;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--color-accent); }
.footer-links h4, .footer-contact h4 {
    color: #FEFADF;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a {
    font-size: 0.9rem;
    color: rgba(254, 250, 223, 0.7);
}
.footer-links a:hover { color: #FEFADF; }
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact i { color: var(--color-accent); margin-top: 4px; }
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom strong { color: #FEFADF; }
.footer-brand-alias {
    margin-top: 8px;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-close:hover { background: var(--color-accent); }

/* ========== WhatsApp Float ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}
[dir="ltr"] .whatsapp-float { left: auto; right: 24px; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-items-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .branch-gate-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 68px; }

    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    .logo { max-width: calc(100% - 140px); gap: 8px; flex: 1; }
    .logo img { height: 38px; max-width: 70px; }
    .logo-tagline { display: none; }
    .logo-name {
        font-size: 0.78rem;
        max-width: none;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.35;
    }

    .nav-actions { gap: 8px; }
    .nav-call-icon { width: 40px; height: 40px; font-size: 0.95rem; }

    .nav-menu-tools { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-card);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-height) + 20px) 20px 28px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
        border-left: 1px solid var(--color-border);
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-menu > li {
        width: 100%;
        margin-bottom: 10px;
    }
    .nav-menu > li:last-child {
        margin-bottom: 0;
    }
    [dir="ltr"] .nav-menu {
        right: auto; left: 0;
        transform: translateX(-100%);
        border-left: none;
        border-right: 1px solid var(--color-border);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 18px;
        border-radius: var(--radius-md);
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.5;
        transition: var(--transition);
        box-sizing: border-box;
    }
    .nav-link:hover,
    .nav-link.active {
        background: var(--bg-section);
        color: var(--color-accent);
    }
    .nav-link.active::after { display: none; }
    .nav-menu-tools {
        margin-top: auto;
        margin-bottom: 0 !important;
        padding-top: 24px;
        gap: 12px;
    }
    .nav-menu-tools .theme-toggle,
    .nav-menu-tools .lang-switch {
        width: 100%;
        height: 46px;
        font-size: 0.95rem;
    }
    .mobile-toggle { display: flex; }
    .hero-items-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }

    .splash-logo {
        width: 130px;
        margin-bottom: 18px;
    }
    .splash-name { font-size: 1.05rem; }
    .splash-tagline { font-size: 0.85rem; margin-bottom: 24px; }
}

@media (max-width: 480px) {
    .logo { max-width: calc(100% - 130px); }
    .logo img { height: 34px; max-width: 58px; }
    .logo-name { font-size: 0.68rem; -webkit-line-clamp: 2; }

    .splash-logo {
        width: 95px;
        max-width: 55vw;
        margin-bottom: 14px;
    }
    .splash-name { font-size: 0.95rem; margin-bottom: 6px; }
    .splash-tagline { font-size: 0.8rem; margin-bottom: 20px; }
    .splash-loader span { width: 8px; height: 8px; }

    .hero-items-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .contact-form { padding: 24px; }
}


/* Local SEO content block */
.seo-content-section {
    background: var(--bg-section);
}
.seo-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.section-header.compact {
    margin-bottom: 28px;
}
.seo-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 22px;
}
.seo-content-box,
.seo-use-cases-box,
.faq-list {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.seo-content-box h3,
.seo-use-cases-head h3,
.faq-list h2 {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: 1.25rem;
}
.seo-content-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.seo-content-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.seo-content-box li i {
    color: var(--color-accent);
    margin-top: 7px;
}
.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.seo-tags span {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 600;
}
.seo-use-cases-box {
    margin-bottom: 22px;
}
.seo-use-cases-head {
    margin-bottom: 18px;
}
.seo-use-cases-head p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.9;
}
.seo-use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.seo-use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.seo-use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(212, 175, 55, 0.38);
}
.seo-use-case-card h4 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.05rem;
}
.seo-use-case-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.95rem;
}
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-primary);
}
.faq-item p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.8;
}
@media (max-width: 768px) {
    .seo-content-card { padding: 22px; }
    .seo-content-grid { grid-template-columns: 1fr; }
    .seo-use-cases-grid { grid-template-columns: 1fr; }
}
