/* Kalameh font family (local) */
@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('assets/TTF/Kalameh-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --fz-hero: clamp(26px, 5vw, 42px);
    --fz-hero-sub: clamp(15px, 2.2vw, 20px);
    --fz-h2: clamp(18px, 2.4vw, 28px);
    --fz-h3: clamp(16px, 2vw, 22px);
    --fz-p: clamp(14px, 1.6vw, 18px);
    --lh-body: 1.75;
    --fz-cta: clamp(14px, 1.8vw, 18px);
    --fz-foot: clamp(12px, 1.3vw, 14px);
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Kalameh', ui-sans-serif, system-ui;
}

.glass {
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .2);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .38) 50%, rgba(0, 0, 0, .55) 100%);
}

.hero-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    object-fit: contain;
    line-height: 1;
}

.watermark {
    pointer-events: none;
    user-select: none;
}

/* Header nav underline */
#navMain .nav-link {
    position: relative;
    padding-bottom: 3px;
}

#navMain .nav-link::after {
    content: '';
    position: absolute;
    inset-inline: 10%;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(209, 250, 229, 0.1), rgba(16, 185, 129, 0.9), rgba(209, 250, 229, 0.1));
    transform-origin: center;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

#navMain .nav-link:hover::after,
#navMain .nav-link:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

[data-lang-switch].is-active {
    background: rgba(46, 122, 80, 0.12);
    color: #1a5d3a !important;
    font-weight: 800;
    border-color: rgba(46, 122, 80, 0.35);
}

/* hide native scrollbars */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* scroll reveal animations */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: none;
}

.will-reveal>* {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

.will-reveal.in-view>* {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .fade-up,
    .will-reveal>* {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* subtle grid watermark */
.bg-grid {
    background-image:
        linear-gradient(to right, rgba(18, 69, 43, .12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(18, 69, 43, .12) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* spacious sections */
.lux-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
}

@media (min-width: 640px) {
    .lux-section {
        padding-top: 8.5rem;
        padding-bottom: 8.5rem;
    }
}

/* Typography */
#hero .hero-title {
    font-size: var(--fz-hero);
}

#hero .hero-title-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.95);
    background:
        radial-gradient(circle at 0% 0%, rgba(187, 247, 208, 0.45), transparent 55%),
        linear-gradient(135deg, #047857, #16a34a);
    box-shadow:
        0 0 0 1px rgba(22, 163, 74, 0.55),
        0 22px 60px rgba(6, 95, 70, 0.95);
    font-size: clamp(18px, 3vw, 22px);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    text-transform: uppercase;
    color: #ecfdf5;
    white-space: nowrap;
    overflow: hidden;
}

.hero-accent-wave {
    display: inline-block;
    animation: heroWave 2.6s ease-in-out infinite;
}

@keyframes heroWave {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}

#hero .hero-sub {
    font-size: var(--fz-hero-sub);
    line-height: var(--lh-body);
}

@media (max-width: 480px) {
    #hero .hero-title {
        font-size: 22px;
    }
}

h2.section-title {
    font-size: var(--fz-h2);
    line-height: 1.35;
}

h3 {
    font-size: var(--fz-h3);
    line-height: 1.4;
}

p {
    line-height: var(--lh-body);
}

.body-text {
    font-size: var(--fz-p);
}

.btn,
button.cta,
a.cta {
    font-size: var(--fz-cta);
    font-weight: 700;
}

footer p,
footer li,
footer a,
footer small {
    font-size: var(--fz-foot);
    line-height: 1.7;
}

/* white sections background */
section.bg-white,
section.bg-gray-50 {
    background:
        radial-gradient(1100px 500px at 0% 0%, #ffffff 0%, #f2f4f7 35%, #e2e5ec 100%);
}

section.bg-white.lux-section,
section.bg-gray-50.lux-section {
    background-color: #eef1f6;
}

/* Use Case Cards */
.usecase-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --opacity: 0;
    --pulse-color: 59, 163, 111;
    position: relative;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 2px solid rgba(46, 122, 80, 0.28);
    overflow: visible;
}

.usecase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .20);
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: radial-gradient(120px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--pulse-color), var(--opacity)) 0%,
            rgba(var(--pulse-color), calc(var(--opacity) * 1.3)) 25%,
            rgba(var(--pulse-color), calc(var(--opacity) * 1.1)) 50%,
            rgba(var(--pulse-color), calc(var(--opacity) * 0.8)) 75%,
            transparent 100%) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.usecase-card:hover::before {
    opacity: 1;
}

.usecase-card * {
    position: relative;
    z-index: 1;
}

/* یکدست کردن آیکون‌های کاربرد محصولات */
.usecase-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(46, 122, 80, 0.08);
    color: #1A5D3A;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

/* Hero + global buttons */
.btn-3d {
    --btn3d-h: 50px;
    --btn3d-px: 24px;
    --btn3d-depth: calc(var(--btn3d-h) / 2);
    position: relative;
    display: inline-block;
    height: var(--btn3d-h);
    min-width: max(200px, 14ch);
    padding-inline: var(--btn3d-px);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.8s;
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(360deg);
}

.btn-3d span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font: inherit;
    color: #12452B;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #12452B;
    border-radius: inherit;
    box-sizing: border-box;
    box-shadow: inset 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.btn-3d:hover span,
.btn-3d:focus-visible span {
    color: #fff;
    background: rgba(59, 163, 111, 0.9);
    border-color: transparent;
}

.btn-3d span:nth-child(1) {
    transform: rotateX(360deg) translateZ(var(--btn3d-depth));
}

.btn-3d span:nth-child(2) {
    transform: rotateX(270deg) translateZ(var(--btn3d-depth));
}

.btn-3d span:nth-child(3) {
    transform: rotateX(180deg) translateZ(var(--btn3d-depth));
}

.btn-3d span:nth-child(4) {
    transform: rotateX(90deg) translateZ(var(--btn3d-depth));
}

@media (prefers-reduced-motion: reduce) {

    .btn-3d,
    .btn-3d:hover {
        transition: none;
        transform: none;
    }
}

/* Portfolio hover overlay */
.portfolio-overlay {
    inset: 12px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(46, 122, 80, 0.94), rgba(26, 93, 58, 0.92));
    box-shadow: 0 18px 46px rgba(26, 93, 58, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.22, .61, .36, 1), opacity 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(4px);
}

.group:hover .portfolio-overlay {
    transform: translateY(0%);
    opacity: 1;
    box-shadow: 0 22px 60px rgba(18, 69, 43, 0.36);
}

#portfolio {
    --pf-color: 59, 163, 111;
    overflow-x: clip;
}

#portfolio .pf-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(600px 260px at 85% 12%, rgba(var(--pf-color), 0.10), transparent),
        radial-gradient(520px 240px at 12% 88%, rgba(var(--pf-color), 0.06), transparent);
    pointer-events: none;
    transition: background 420ms ease;
}

/* Products Panorama */
.products-panorama {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 768px) {
    .products-panorama {
        gap: 32px;
    }
}

.products-carousel-container {
    position: relative;
    height: clamp(320px, 52vh, 440px);
    perspective: 1400px;
}

.products-carousel-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    cursor: grab;
    user-select: none;
}

.products-carousel-track.is-dragging {
    cursor: grabbing;
}

.products-carousel-item {
    position: absolute;
    width: min(60vw, 260px);
    height: min(60vh, 360px);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    overflow: hidden;
    cursor: pointer;
    transition:
        transform .6s cubic-bezier(.4, 0, .2, 1),
        opacity .4s ease,
        box-shadow .4s ease,
        filter .35s ease;
}

@media (min-width: 1024px) {
    .products-carousel-item {
        width: 260px;
        height: 360px;
    }
}

.products-carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 122, 80, .16), rgba(82, 185, 134, .10));
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
}

.products-carousel-item.is-active::before {
    opacity: 1;
}

.products-carousel-media {
    position: relative;
    width: 100%;
    height: 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(82, 185, 134, .16), transparent 55%),
        radial-gradient(circle at 82% 88%, rgba(18, 69, 43, .18), transparent 60%),
        #f3f4f6;
}

.products-carousel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.products-carousel-media-icon {
    font-size: 56px;
}

.products-carousel-body {
    position: relative;
    z-index: 2;
    padding: 14px 16px 16px;
}

.products-carousel-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #12452B;
}

.products-carousel-sub {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.products-carousel-price {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2E7A50, #52B986);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.products-carousel-btn {
    pointer-events: all;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(59, 163, 111, .35);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #12452B;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.products-carousel-btn:hover {
    background: rgba(239, 247, 242, .98);
    transform: scale(1.05);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

@media (max-width: 640px) {
    .products-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

.products-detail-card {
    position: relative;
    border-radius: 24px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.96), rgba(229, 231, 235, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    overflow: hidden;
}

.products-detail-card::before {
    content: '';
    position: absolute;
    inset-inline: 22px;
    top: 10px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(209, 213, 219, 0.9), rgba(148, 163, 184, 0.1));
}

.products-detail-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 213, 219, 0.16), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.18), transparent 60%);
    opacity: 0.9;
}

#prodDetailDesc {
    position: relative;
    margin-top: 4px;
    margin-bottom: 14px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(249, 250, 251, 0.92);
    border: 1px solid rgba(209, 213, 219, 0.9);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
    font-size: 0.88rem;
    line-height: 1.9;
    color: #374151;
}

@media (min-width: 768px) {
    .products-detail-card {
        padding: 22px 22px 18px;
    }
}

.products-spec {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.8);
}

.products-spec-label {
    font-size: .72rem;
    color: #6b7280;
    margin-bottom: 3px;
}

.products-spec-value {
    font-size: .88rem;
    font-weight: 700;
    color: #111827;
}

/* Old portfolio/products hidden if موجود باشند */
#portfolio-old {
    display: none;
}

#products-old {
    display: none;
}

/* About image */
#about {
    position: relative;
    isolation: isolate;
    --about-image: url('https://www.fanavaransabz.com/wp-content/uploads/2023/05/IMG-20220623-WA0015.jpg');
}

#about .about-blob {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, 96%);
    height: clamp(420px, 52vw, 560px);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 22px 60px rgba(20, 60, 40, .22);
    border-radius: 28px;
    overflow: hidden;
}

#about .about-blob .about-img {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 69, 43, .55), rgba(18, 69, 43, .55)),
        var(--about-image);
    background-size: cover;
    background-position: center 32%;
    background-attachment: fixed;
    transform: translateY(0);
    will-change: transform;
}

@media (max-width: 640px) {
    #about .about-blob {
        height: clamp(480px, 82vh, 720px);
    }
}

#about .about-on-image {
    position: relative;
    color: #f8fbf9;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
    background: linear-gradient(145deg, rgba(13, 47, 30, 0.88), rgba(46, 122, 80, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 60px rgba(14, 50, 30, 0.32);
    padding: clamp(18px, 3vw, 30px);
    border-radius: 20px;
    overflow: hidden;
}

#about .about-on-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 280px at 12% 10%, rgba(82, 185, 134, 0.22), transparent 60%);
    pointer-events: none;
}

#about .about-on-image>* {
    position: relative;
    z-index: 1;
}

#about .about-on-image .section-title {
    color: #f6fff8;
}

#about .about-on-image .body-text,
#about .about-on-image p,
#about .about-on-image li {
    color: #e8f5ee;
}

#about .about-on-image a.rounded-full.border {
    color: #0D2F1E;
    background: #fff;
    border-color: transparent;
}

#about .about-on-image a.rounded-full.bg-brand-600 {
    background: #3BA36F;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
    #about .about-on-image {
        background: linear-gradient(145deg, rgba(13, 47, 30, 0.92), rgba(46, 122, 80, 0.86));
    }
}

/* Corporate rounding */
.btn,
button.cta,
a.cta,
.portfolio-btn,
.btn-3d,
a.rounded-full,
button.rounded-full {
    border-radius: 12px !important;
}

#promoBannersTrack a {
    border-radius: 18px;
}

/* Logo stamp animation */
.logo-stamp {
    transform-origin: center;
    will-change: transform, box-shadow;
    animation:
        logoStamp 900ms cubic-bezier(.2, .9, .25, 1.3) both,
        logoPulse 900ms 200ms ease-out 1,
        logoSpin 18s 1100ms linear infinite;
}

@keyframes logoStamp {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0) rotate(-360deg);
    }

    55% {
        opacity: 1;
        transform: translateY(0) scale(1.15) rotate(0deg);
    }

    75% {
        transform: translateY(0) scale(0.95) rotate(-6deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes logoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 163, 111, 0.45);
    }

    100% {
        box-shadow: 0 0 0 24px rgba(59, 163, 111, 0);
    }
}

@keyframes logoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-stamp {
        animation: none;
    }
}

/* Global parallax utility */
.parallax-layer {
    will-change: transform;
    transform: translate3d(0, var(--py, 0), 0);
}

@media (prefers-reduced-motion: reduce) {
    .parallax-layer {
        transform: none !important;
    }
}

/* ===== Calculator styling upgrades ===== */
.calc-card {
    position: relative;
    background: radial-gradient(circle at 0 0, rgba(82, 185, 134, 0.12), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(18, 69, 43, 0.12), transparent 60%),
        #ffffff;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(46, 122, 80, 0.08);
    color: #1A5D3A;
    font-size: 11px;
    font-weight: 700;
}

.calc-inline-result {
    border: 1px dashed rgba(46, 122, 80, 0.5);
    font-size: 13px;
}

.calc-copy ul li::marker {
    color: #3BA36F;
}

/* ===== Branches / Representatives Map Section ===== */
#branches {
    background:
        radial-gradient(900px 400px at 0% 0%, #ffffff 0%, #f2f4f7 40%, #e0e5ef 100%);
}

.branches-layout {
    max-width: 1180px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.branches-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.branches-select {
    position: relative;
    min-width: 220px;
    flex: 1;
}

.branches-select select {
    appearance: none;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dce5ee;
    background: #ffffff;
    font-size: 14px;
    color: #1f2330;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(20, 58, 117, 0.08);
}

.branches-select::after {
    content: "▾";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7a89;
    pointer-events: none;
    font-size: 12px;
}

.branches-map-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 48px rgba(0, 30, 60, 0.08);
    overflow: hidden;
    border: 1px solid #dce5ee;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.branches-map-wrapper {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

#map-container svg {
    width: 100%;
    height: auto;
    display: block;
    preserve-aspect-ratio: xMidYMid meet;
}

.map-region {
    cursor: pointer;
    transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
    stroke: #fff;
    stroke-width: 1.2;
}

.map-region:hover {
    filter: drop-shadow(0 0 8px rgba(62, 170, 90, 0.35));
}

.map-region.is-selected {
    fill: #45b649;
    stroke: #2f8b40;
}

.branches-label {
    position: absolute;
    padding: 8px 14px;
    border-radius: 12px;
    background: #45b649;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
    transform: translate(-50%, -110%);
    box-shadow: 0 10px 26px rgba(0, 130, 51, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.branches-label.visible {
    opacity: 1;
}

.branches-hover-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #6c7a89;
}

.branches-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branches-agent-btn {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #2e7a50;
    background: #2e7a50;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(46, 122, 80, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.branches-agent-btn:hover {
    background: #256743;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(37, 103, 67, 0.32);
}

.branches-table-card {
    margin-top: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 34, 68, 0.06);
    overflow: hidden;
    border: 1px solid #dce5ee;
}

.branches-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.branches-table-card thead {
    background: #f1f6fb;
    color: #203f76;
    font-weight: 700;
}

.branches-table-card th,
.branches-table-card td {
    padding: 12px 10px;
    text-align: right;
    border-bottom: 1px solid #eef2f7;
}

.branches-table-card tbody tr:nth-child(odd) {
    background: #fafcfe;
}

.branches-table-card tbody tr:hover {
    background: #f5fbff;
}

.branches-muted {
    color: #6c7a89;
    text-align: center;
}

@media (max-width: 992px) {
    .branches-layout {
        margin-top: 24px;
        grid-template-columns: 1fr;
    }

    .branches-map-card {
        max-width: 100%;
    }

    .branches-map-wrapper {
        max-width: 100%;
    }
}

.branches-layout {
    align-items: start;
}

@media (min-width: 1024px) {
    .branches-layout {
        grid-template-columns: minmax(620px, 1.3fr) minmax(380px, 0.7fr);
        gap: 28px;
    }

    .branches-map-card {
        max-width: none;
        padding: 22px;
    }

    .branches-map-wrapper {
        max-width: 880px;
    }

    #map-container svg {
        max-height: 620px;
    }
}

#about .about-on-image {
    background: linear-gradient(135deg, rgba(13, 47, 30, 0.82), rgba(18, 69, 43, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    padding: 22px;
    border-radius: 18px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .branches-layout {
        margin-top: 24px;
    }

    .branches-map-wrapper {
        max-width: 420px;
    }

    .branches-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .branches-agent-btn {
        width: 100%;
    }

    .branches-select {
        width: 100%;
    }
}

/* Representative request modal */
.agent-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.agent-dialog {
    position: relative;
    width: min(520px, 92vw);
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 30, 60, 0.18);
    border: 1px solid #e5e7eb;
    z-index: 2;
}

.agent-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a5d3a;
}

.agent-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #4b5563;
}

.agent-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-weight: 700;
    color: #1f2937;
}

.agent-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.agent-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.agent-form input,
.agent-form textarea {
    width: 100%;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fbfd;
}

.agent-form textarea {
    resize: vertical;
    min-height: 90px;
}

.agent-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    background: #2e7a50;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(46, 122, 80, 0.25);
    transition: transform 0.15s ease, background 0.2s ease;
}

.agent-submit:hover {
    background: #256743;
    transform: translateY(-1px);
}

/* Partners */
.partners-section {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.partners-wrap {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.partners-row {
    position: relative;
    overflow: hidden;
    height: 104px;
    transform: rotate(-1deg);
}

.partners-row.reverse {
    transform: rotate(1deg);
}

.partners-track {
    display: flex;
    gap: 14px;
    align-items: center;
    animation: partner-scroll 28s linear infinite;
}

.partners-row.reverse .partners-track {
    animation-direction: reverse;
    animation-duration: 32s;
}

.partner-tile {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dce5ee;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(13, 63, 116, 0.08);
}

.partner-tile img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: saturate(1.05) contrast(1.02);
}

.partners-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

@keyframes partner-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Contact */
.contact-grid {
    margin-top: 22px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 30, 60, 0.08);
}

.contact-card.cta {
    background: linear-gradient(135deg, #e6f4ed, #f6fffb);
    border-color: #d1e8dc;
    box-shadow: 0 16px 38px rgba(46, 122, 80, 0.18);
}

.contact-number {
    font-size: 22px;
    font-weight: 800;
    color: #1a5d3a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
}

.contact-chip.secondary {
    background: #f6f9ff;
    border-color: #dce5ee;
    color: #1a5d3a;
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #1a5d3a;
}

.ltr-num {
    direction: ltr;
    unicode-bidi: bidi-override;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

/* Footer tweaks */
#footerDesigner {
    color: #6ee7b7;
    text-decoration: underline;
    text-decoration-color: rgba(110, 231, 183, 0.55);
}

#footerDesigner:hover {
    color: #b7fbdc;
}

#footerCerts li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(82, 185, 134, 0.12));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    gap: 10px;
}

#footerCerts li svg {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #b7fbdc;
}

/* Page loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(46, 122, 80, 0.16), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(82, 185, 134, 0.12), transparent 30%),
        radial-gradient(circle at 50% 70%, rgba(7, 23, 14, 0.85), rgba(4, 16, 10, 0.92));
    color: #e8f3ee;
    backdrop-filter: blur(12px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader .loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.loader-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(82, 185, 134, 0.9), rgba(46, 122, 80, 0.25), rgba(18, 69, 43, 0.4), rgba(82, 185, 134, 0.9));
    mask: radial-gradient(circle at center, transparent 56%, #000 60%);
    animation: loader-spin 1.8s linear infinite;
    opacity: 0.95;
}

.loader-ring {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(46, 122, 80, 0.25);
    animation: loader-pulse 1.6s ease-in-out infinite;
}

.loader-logo {
    position: absolute;
    inset: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(145deg, rgba(8, 20, 12, 0.95), rgba(22, 45, 33, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.32),
        0 0 0 8px rgba(46, 122, 80, 0.08);
    animation: loader-spin 6s linear infinite;
}

.loader-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.loader-text {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.loader-hint {
    font-size: 12px;
    color: rgba(232, 243, 238, 0.7);
}

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

@keyframes loader-pulse {
    0% {
        transform: scale(0.98);
        box-shadow: inset 0 0 0 1px rgba(82, 185, 134, 0.15);
    }

    50% {
        transform: scale(1.02);
        box-shadow: inset 0 0 0 2px rgba(82, 185, 134, 0.3);
    }

    100% {
        transform: scale(0.98);
        box-shadow: inset 0 0 0 1px rgba(82, 185, 134, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .loader-orbit,
    .loader-ring,
    .loader-logo {
        animation: none;
    }
}
