/* Modern Vision - Main Stylesheet */
:root {
    --primary-color: #1A1A1A;
    --secondary-color: #00BCD4;
    --accent-color: #26C6DA;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    --gradient-secondary: linear-gradient(135deg, #00BCD4 0%, #26C6DA 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Images never overflow their container on any screen size */
img {
    max-width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.logo-text span {
    color: var(--secondary-color);
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 5px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
    border-right-color: var(--secondary-color);
    padding-right: 25px;
}

/* Language Switcher */
.lang-switch {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/riyadh-hero.jpg') center/cover;
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(30px, 4.5vw, 56px);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-text h1 span {
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--light-bg);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* ===== SERVICES ===== */
.services-section {
    background: var(--white);
}

.service-card {
    text-align: center;
    padding: 40px 30px;
}

.service-card .card-icon {
    margin: 0 auto 25px;
}

/* ===== PARTNERS ===== */
.partners-section {
    background: var(--light-bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: center;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-item img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--gradient-primary);
    color: var(--white);
}

.contact-section .section-header h2 {
    color: var(--white);
}

.contact-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item div h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item div p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

/* Phone RTL fix: keep surrounding RTL flow, embed the number as LTR */
.phone-rtl {
    direction: ltr;
    unicode-bidi: embed;
}

/* LTR text embedded in RTL containers (phone numbers, emails) */
[dir="ltr"] {
    unicode-bidi: embed;
}

/* Value spans that must always render LTR (phone/email/website),
   while their container follows the page language alignment */
.ltr-value {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Footer social icons - rendered from site data */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: #0f0f0f;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 6px;
    min-height: 44px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

/* Footer contact rows: consistent icon + text alignment in both directions */
.footer-contact a i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.footer-contact a span {
    flex: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Reveal-on-scroll only applies when JS is active (html.js) so content
   can never be stuck at opacity:0 if scripts fail or are blocked */
html.js .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

html.js .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* any inline 2-col split layout collapses on tablets */
    .split-grid {
        grid-template-columns: 1fr !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 15px;
        gap: 10px;
    }

    .logo img {
        height: 38px !important;
    }

    .logo-text {
        font-size: 18px;
    }

    .lang-switch {
        padding: 6px 14px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* hero experience badge: stop absolute overflow on small screens */
    .hero-image > div {
        position: static !important;
        display: inline-block;
        margin-top: 15px;
        padding: 15px 20px !important;
    }

    .hero-image > div span:first-child {
        font-size: 26px !important;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* overrides inline grid-template-columns on stats */
    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 15px;
    }

    .partner-item {
        padding: 15px;
    }

    .partner-item img {
        max-width: 110px;
        max-height: 60px;
    }

    .contact-content {
        padding: 0 15px;
        gap: 30px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    /* shrink the inline-padded form card */
    .contact-content > div[style] {
        padding: 25px !important;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }

    .footer-links a {
        word-break: break-word;
    }

    /* inner page headers (service pages) */
    .page-header {
        min-height: 40vh !important;
        padding-top: 90px !important;
    }

    .page-header h1 {
        font-size: 30px !important;
    }

    .page-header p {
        font-size: 15px !important;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 26px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== MOBILE SIDE MENU ===== */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #151515;
    z-index: 1002;
    overflow-y: auto;
    padding: 0 0 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .mobile-menu {
    right: 0;
    transform: translateX(105%);
}

html[dir="ltr"] .mobile-menu,
html:not([dir]) .mobile-menu {
    left: 0;
    transform: translateX(-105%);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.mobile-menu-header .logo-text {
    font-size: 20px;
}

.mobile-menu-close {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--secondary-color);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 22px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-inline-start: 3px solid transparent;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--secondary-color);
    background: rgba(255,255,255,0.04);
    border-inline-start-color: var(--secondary-color);
}

.mobile-sub-toggle {
    cursor: pointer;
}

.mobile-sub-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-sub-toggle.open i {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0,0,0,0.25);
}

.mobile-sub-menu.open {
    max-height: 400px;
}

.mobile-sub-menu .mobile-nav-link {
    padding-inline-start: 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.mobile-menu .lang-switch {
    margin: 15px 20px 0;
    display: inline-block;
}

body.menu-open {
    overflow: hidden;
}

/* Homepage services: 5 cards -> 3 on top, 2 below */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 100px;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* ===== ANIMATIONS ===== */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    animation: kenburns 20s ease-in-out infinite alternate;
    z-index: -1;
}

.hero-badge-float {
    animation: float 3s ease-in-out infinite;
}

.card-hover-zoom {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover-zoom:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.partner-bw-color {
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.partner-bw-color:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-overlay-hover {
    position: relative;
    overflow: hidden;
}
.gallery-overlay-hover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,188,212,0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gallery-overlay-hover:hover::after {
    opacity: 1;
}

.contact-align-fix {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== PRICING CARDS (shared, also used by data renderer) ===== */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}
.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}
.pricing-badge {
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}
.pricing-header {
    margin-bottom: 30px;
}
.pricing-header h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.pricing-price {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    color: var(--secondary-color);
}
.pricing-price span {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}
.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}
.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}
.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== UNIVERSAL RESPONSIVE COLLAPSE =====
   Pages use inline grid-template-columns in many places; these rules
   collapse every inline multi-column grid on small screens so no page
   can squeeze or overflow horizontally on phones. */
@media (max-width: 1024px) {
    div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.stats) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.stats) {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* maintenance page split card */
    .service-card-large {
        grid-template-columns: 1fr !important;
    }
    .service-card-large img {
        max-height: 280px;
    }

    /* EN maintenance page split card (inline-styled twin) */
    div[style*="grid-template-columns: 1fr 1fr"] > img {
        max-height: 280px;
    }

    /* contact page info cards: tighter padding on phones */
    .contact-info-card {
        padding: 25px 20px !important;
    }
    .contact-form-container {
        padding: 25px 20px !important;
    }

    /* featured pricing card: no scale overflow on phones */
    .pricing-card {
        padding: 30px 20px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    .hero-image > div span:first-child {
        font-size: 22px !important;
    }
}
