/* Custom CSS for PowerGen Services */

:root {
    --primary-color: #10b981;
    --primary-dark: #047857;
    --secondary-color: #34d399;
    --accent-color: #6ee7b7;
    --dark-color: #064e3b;
    --light-color: #f0fdf4;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --border-color: #d1fae5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --grey-light: #f3f4f6;
    --grey-medium: #9ca3af;
    --grey-dark: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 76px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4,
.display-5 {
    font-weight: 700;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-switcher .dropdown-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .dropdown-toggle:hover,
.language-switcher .dropdown-toggle:focus {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-switcher .dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.language-switcher .dropdown-item {
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

.language-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.flag-en {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23012169"/><g stroke="%23fff" stroke-width="6"><path d="m0,0 60,30M60,0 0,30"/></g><g stroke="%23C8102E" stroke-width="4"><path d="m0,0 60,30M60,0 0,30"/></g><g stroke="%23fff" stroke-width="10"><path d="M30,0v30M0,15h60"/></g><g stroke="%23C8102E" stroke-width="6"><path d="M30,0v30M0,15h60"/></g></svg>');
}

.flag-ar {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23000"/><rect width="60" height="20" y="5" fill="%23fff"/><rect width="60" height="10" y="10" fill="%23CE1126"/></svg>');
}

.flag-tr {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23E30A17"/><circle cx="18" cy="15" r="6" fill="none" stroke="%23fff" stroke-width="1.5"/><polygon points="24,9 26.5,14 22,11.5 25.5,11.5 22,14" fill="%23fff"/></svg>');
}

.flag-de {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="10" fill="%23000"/><rect width="60" height="10" y="10" fill="%23DD0000"/><rect width="60" height="10" y="20" fill="%23FFCE00"/></svg>');
}

.flag-fa {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="10" fill="%23239F40"/><rect width="60" height="10" y="10" fill="%23fff"/><rect width="60" height="10" y="20" fill="%23DA0000"/></svg>');
}

.flag-ku {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="10" fill="%23ED1C24"/><rect width="60" height="10" y="10" fill="%23fff"/><rect width="60" height="10" y="20" fill="%23046C39"/><polygon points="20,8 25,18 15,13 25,13 15,18" fill="%23F4D03F"/></svg>');
}

.flag-az {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="10" fill="%2300B3E6"/><rect width="60" height="10" y="10" fill="%23E4002B"/><rect width="60" height="10" y="20" fill="%2300AB5B"/><circle cx="24" cy="15" r="4" fill="%23fff"/><polygon points="26,11 28,13 25,15 28,17 26,19 23,16 26,15 23,14" fill="%23E4002B"/></svg>');
}

.flag-fr {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="20" height="30" fill="%23002395"/><rect width="20" height="30" x="20" fill="%23fff"/><rect width="20" height="30" x="40" fill="%23ED2939"/></svg>');
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--glass-bg);
    /* semi‑transparent */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px) saturate(150%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.4rem 0.2rem;
    transition: color 0.3s ease;
}


.nav-links a:hover {
    color: var(--primary-color);
}

/* removed stray duplicate navbar style */

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}



.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f766e 50%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(16,185,129,0.15)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-graphic {
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}


/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    color: var(--dark-color);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--dark-color);
}

.btn-outline-light {
    border: 2px solid var(--grey-light);
    color: var(--grey-light);
    font-weight: 600;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 244, 246, 0.3);
    background: var(--grey-light);
    color: var(--dark-color);
    border-color: var(--grey-light);
}

/* Feature Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Service Cards */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.05);
    border: 1px solid var(--glass-border);
    height: 100%;
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--glass-border);
    height: 100%;
    display: flex;
    gap: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(16, 185, 129, 0.12);
        border-color: var(--primary-color);
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.service-content h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-content ul li {
    padding: 0.25rem 0;
    color: var(--text-muted);
}

/* Quality Section */
.certification-badge {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.certification-badge i {
    font-size: 2rem;
}

.certification-badge h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stars i {
    font-size: 1rem;
}

.testimonial-author h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Case Study Section */
.case-study-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.case-metric h4 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.contact-item h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact CTA + Static Map */
.contact-cta {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-cta .btn {
    min-width: 210px;
}

.map-embed {
    width: 100%;
}

.static-map {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Lightweight motion: no scroll-triggered transforms. */
.fade-in-up {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .feature-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }


    .case-metric h4 {
        font-size: 2rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .feature-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .case-study-section {
        padding: 1.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .hero-section,
    #contact {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        max-width: none;
        width: 100%;
        padding: 0;
    }
}

/* Mobile navigation: keep the original collapse behavior legible on the green/glass header. */
@media (max-width: 991.98px) {
    .navbar {
        border-radius: 0 0 12px 12px;
    }

    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 12px;
        background: rgba(6, 78, 59, 0.96);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .nav-links .nav-link {
        color: white !important;
        padding: 0.7rem 0.9rem;
    }

    .language-switcher {
        margin: 0.5rem 0 0;
    }

    .static-map {
        height: 380px;
    }
}


/* Final performance/layout refinements */
.contact-map {
    width: 100%;
    margin-top: 1.5rem;
}

.contact-map .static-map {
    min-height: 420px;
}

.contact-map figcaption {
    margin-top: .5rem !important;
}

footer {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

footer .row {
    row-gap: .75rem;
}

@media (pointer: coarse) {
    .service-card,
    .feature-card,
    .testimonial-card,
    .stat-card,
    .certification-badge {
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    .static-map { height: 460px; }
}

@media (max-width: 576px) {
    .static-map { height: 400px; }
}

body[lang="fa"],
body[lang="ku"],
body[dir="rtl"] {
    text-rendering: optimizeLegibility;
    font-variant-numeric: proportional-nums;
}

/* Mixed RTL content: keep phone, email, IDs and Latin brand strings visually stable. */
[dir="rtl"] .contact-item p,
[dir="rtl"] .contact-item a,
[dir="rtl"] .website-info,
[dir="rtl"] .stat-card h3,
[dir="rtl"] .case-metric h4 {
    unicode-bidi: plaintext;
}

[dir="rtl"] .contact-item .me-3,
[dir="rtl"] .service-content .me-2,
[dir="rtl"] .btn .me-2,
[dir="rtl"] .navbar-brand .me-2 {
    margin-left: .75rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .navbar-nav .dropdown-menu {
    text-align: right;
}


/* Keep below-the-fold rendering inexpensive on long pages. */
#what-we-do, #services, #quality, #testimonials {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}


/* Refined premium footer: compact, dark, calm, and information-dense. */
.site-footer {
    background: #07130f;
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(110, 231, 183, 0.16);
    padding: 3rem 0 1rem;
}
.site-footer .container { position: relative; }
.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(145px, .75fr)) minmax(250px, 1.25fr);
    gap: 2.25rem;
    align-items: start;
}
.footer-brand, .footer-column, .footer-action { min-width: 0; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.footer-logo i { color: var(--primary-color); }
.footer-tagline {
    color: rgba(255,255,255,.58);
    font-size: .9rem;
    line-height: 1.65;
    max-width: 300px;
    margin: .85rem 0 .9rem;
}
.footer-email, .footer-column a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .16s ease;
}
.footer-email { font-size: .84rem; }
.footer-column { display: flex; flex-direction: column; gap: .52rem; }
.footer-column h6 {
    color: rgba(255,255,255,.95);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: .15rem 0 .35rem;
}
.footer-column a, .footer-column span { font-size: .84rem; line-height: 1.55; }
.footer-column span { color: rgba(255,255,255,.52); }
.footer-email:hover, .footer-column a:hover { color: var(--secondary-color); }
.footer-action {
    border-left: 1px solid rgba(255,255,255,.1);
    padding-left: 1.65rem;
}
.footer-kicker {
    display: block;
    color: var(--secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}
.footer-action p {
    color: rgba(255,255,255,.6);
    font-size: .84rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    max-width: 310px;
}
.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .62rem .9rem;
    border: 1px solid rgba(110,231,183,.38);
    color: #eafff5;
    background: rgba(16,185,129,.08);
    border-radius: 7px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.footer-cta:hover { color:#fff; background:rgba(16,185,129,.16); border-color:rgba(110,231,183,.58); transform:translateY(-1px); }
.footer-cta i { font-size: .7rem; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2rem;
    padding-top: .9rem;
    color: rgba(255,255,255,.38);
    font-size: .72rem;
}

@media (max-width: 991.98px) {
    .footer-main { grid-template-columns: 1.25fr 1fr 1fr; gap: 1.7rem; }
    .footer-action { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 0; }
}
@media (max-width: 575.98px) {
    .site-footer { padding: 2.2rem 0 .85rem; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-action { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .3rem; margin-top: 1.4rem; }
}

.footer-note { display:block; color:rgba(255,255,255,.5); font-size:.77rem; line-height:1.5; margin-top:.52rem; }
.footer-note i { color:rgba(110,231,183,.78); width:1rem; margin-right:.3rem; }
[dir="rtl"] .footer-note i { margin-right:0; margin-left:.3rem; }

/* Meet the Team — restrained, premium, and intentionally static for fast rendering. */
.team-section {
    background: #f7faf8;
    padding: 5.25rem 0 5rem;
    border-top: 1px solid rgba(15, 118, 110, 0.08);
}
.team-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
    gap: 3rem;
    align-items: end;
    margin-bottom: 2.7rem;
}
.section-eyebrow {
    display: inline-block;
    color: #0f766e;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .65rem;
}
.team-heading h2 {
    margin: 0 0 .8rem;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -.025em;
}
.team-heading > div:first-child > p {
    max-width: 720px;
    margin: 0;
    color: #5d6a66;
    font-size: 1.05rem;
    line-height: 1.8;
}
.team-principle {
    padding-left: 1.35rem;
    border-left: 2px solid rgba(16, 185, 129, .55);
}
.team-principle > span {
    display: block;
    color: var(--dark-color);
    font-weight: 800;
    margin-bottom: .4rem;
}
.team-principle p {
    margin: 0;
    color: #68746f;
    font-size: .92rem;
    line-height: 1.75;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.team-card {
    display: flex;
    gap: 1rem;
    min-width: 0;
    padding: 1.45rem;
    background: #fff;
    border: 1px solid rgba(19, 47, 38, .09);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(11, 41, 31, .055);
}
.team-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f766e;
    color: #ecfff8;
    font-weight: 800;
    letter-spacing: .02em;
}
.team-card-body { min-width: 0; }
.team-role {
    display: block;
    color: #0f766e;
    font-size: .72rem;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.team-card h3 {
    margin: 0 0 .55rem;
    color: #15372d;
    font-size: 1.15rem;
    font-weight: 800;
}
.team-bio {
    margin: 0;
    color: #65726d;
    font-size: .9rem;
    line-height: 1.72;
}
.team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin-top: .95rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(19,47,38,.07);
    color: #78847f;
    font-size: .74rem;
    line-height: 1.5;
}
[dir="rtl"] .team-principle { padding-left: 0; padding-right: 1.35rem; border-left: 0; border-right: 2px solid rgba(16,185,129,.55); }
[dir="rtl"] .team-card { text-align: right; }
[dir="rtl"] .team-role { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .team-meta { justify-content: flex-start; }

/* Footer: let the contact section own contact details; footer owns orientation only. */
.site-footer { padding-top: 2.75rem; }
.footer-main { grid-template-columns: minmax(240px, 1.45fr) minmax(160px, .8fr) minmax(220px, .9fr); }
.footer-action { display: none; }
.footer-column { gap: .48rem; }
.footer-column .footer-cta { margin-top: .4rem; width: fit-content; }
.footer-company-note, .footer-note { color: rgba(255,255,255,.52); font-size: .8rem; line-height: 1.6; }
[dir="rtl"] .footer-main { text-align: right; }

@media (max-width: 991.98px) {
    .team-heading { grid-template-columns: 1fr; gap: 1.5rem; }
    .team-principle { max-width: 720px; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .team-section { padding: 4rem 0 3.75rem; }
    .team-heading { margin-bottom: 2rem; }
    .team-card { padding: 1.2rem; }
    .team-main { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-column .footer-cta { width: auto; }
}


/* Final navigation integrity: brand, order, locale placement, and mobile collapse. */
.navbar .container { min-width: 0; }
.navbar-brand { flex-shrink: 0; }
.navbar-toggler { flex-shrink: 0; }
.nav-links { gap: .15rem; }
.nav-links > .nav-item:last-child { margin-left: .35rem; }
[dir="rtl"] .nav-links > .nav-item:last-child { margin-left: 0; margin-right: .35rem; }
@media (max-width: 991.98px) {
  .navbar-brand { font-size: 1.15rem; }
  .navbar .container { flex-wrap: wrap; }
  .navbar-collapse { flex-basis: 100%; }
  .nav-links > .nav-item:last-child { margin-left: 0; }
  [dir="rtl"] .nav-links > .nav-item:last-child { margin-right: 0; }
}
