* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #14213d;
    --accent: #e4573d;
    --accent-dark: #d94a31;
    --blue: #0d5ca6;
    --text: #222;
    --bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --radius: 16px;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: min(92%, 1240px);
    margin: 0 auto;
}

/* RTL */
body.rtl {
    direction: rtl;
}

body.rtl .topbar,
body.rtl .navbar,
body.rtl .topbar-container,
body.rtl .nav-container,
body.rtl .nav-links {
    direction: ltr;
}

body.rtl .section,
body.rtl .about-text,
body.rtl .card,
body.rtl .gallery-content,
body.rtl .contact-info,
body.rtl .contact-form-box,
body.rtl .site-footer,
body.rtl .cta-box {
    text-align: right;
}

body.rtl input,
body.rtl textarea,
body.rtl select {
    direction: rtl;
    text-align: right;
}

/* TOPBAR */
.topbar {
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    position: relative;
    z-index: 5000;
    overflow: visible;
}

.topbar-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    min-height: 50px;
    overflow: visible;
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.topbar-left {
    justify-content: flex-start;
}

.topbar-center {
    justify-content: center;
}

.topbar-right {
    justify-content: flex-end;
}

.topbar a,
.topbar span {
    color: #fff;
}

.topbar-hours {
    font-weight: 700;
}

.phone {
    color: #000;
    margin-right: 5px;
}

.email {
    color: #dbeafe;
    margin-right: 5px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 13px;
}

.mini.fb { background: #1877f2; }
.mini.x { background: #000; }

/* LANGUAGE DROPDOWN */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 99999;
}

.lang-toggle {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 23px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.lang-dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 150px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    padding: 8px;
    display: none;
    z-index: 999999;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-dropdown-menu a {
    display: block;
    color: #14213d !important;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.lang-dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--accent) !important;
}

/* NAVBAR */
.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 92px;
    gap: 20px;
}

.nav-col {
    display: flex;
    align-items: center;
}

.nav-col-left {
    justify-content: flex-start;
}

.nav-col-center {
    justify-content: center;
}

.nav-col-right {
    justify-content: flex-end;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    background: #fff;
}

.nav-mobile-top {
    display: none;
}

.desktop-logo {
    display: flex;
}

.nav-mobile-wrapper {
    display: contents;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.navbar-toggle {
    display: none;
    border: none;
    background: linear-gradient(135deg, #14213d, #0d5ca6);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 26px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* HERO */
.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30);
    z-index: 2;
}

.hero-slider-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
}

.hero-slider-content .container {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider-content h1 {
    font-size: 64px;
    line-height: 1.08;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero-slider-content p {
    font-size: 24px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 30px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

/* PAGE HERO */
.page-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-hero-content h1 {
    font-size: 54px;
    margin-bottom: 16px;
}

.page-hero-content p {
    font-size: 20px;
    max-width: 760px;
    margin: 0 auto;
}

/* GENERAL */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 48px;
    margin-bottom: 28px;
    color: var(--primary);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 25px;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 18px;
}

.about-image img {
    width: 100%;
    max-width: 520px;
    height: 380px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.about-text {
    max-width: 560px;
}

.about-badge {
    display: inline-block;
    background: rgba(228,87,61,0.10);
    color: var(--accent);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 14px;
}

.about-text h2 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 28px;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 28px;
}

.about-values span {
    display: inline-block;
    background: rgba(228,87,61,0.10);
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-box {
    background: #fff;
    padding: 24px 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box h3 {
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-box p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

/* CARDS */
.card {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--primary);
}

.card p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* PROJECTS */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.gallery-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.gallery-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
    padding: 30px;
}

.lightbox.show {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 14px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 16px;
    font-size: 18px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

/* CONTACT */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.contact-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-item strong {
    color: var(--primary);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.btn:hover {
    background: var(--accent-dark);
}

/* FOOTER */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding-top: 60px;
    margin-top: 60px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.site-footer .footer-col h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #fff;
}

.site-footer .footer-col p,
.site-footer .footer-col li,
.site-footer .footer-col a {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 2;
}

.site-footer .footer-col ul {
    list-style: none;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: rgba(255,255,255,0.75);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social.fb { background: #1877f2; }
.social.ig { background: #e4405f; }
.social.wa { background: #25d366; }
.social.x { background: #000; }
.social.msg { background: #0084ff; }
.social.yt { background: #ff0000; }

/* CTA */
.cta-section {
    padding: 70px 0;
    background: #f5f5f5;
}

.cta-box {
    max-width: 900px;
}

.cta-box h2 {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    z-index: 9999;
}

/* TABLET */
@media (max-width: 992px) {
    .about-grid,
    .about-stats,
    .grid-3,
    .projects-gallery,
    .contact-layout,
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-slider-content .container {
        min-height: 500px;
    }

    .hero-slider-content h1 {
        font-size: 42px;
    }

    .hero-slider-content p {
        font-size: 18px;
    }

    .section h2,
    .about-text h2,
    .cta-box h2 {
        font-size: 34px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .container {
        width: 94%;
    }

    .topbar {
        font-size: 12px;
    }

    .topbar-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
        text-align: center;
        min-height: auto;
    }

    .topbar-left,
    .topbar-center,
    .topbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-social {
        flex-direction: column;
        gap: 6px;
    }

    .lang-dropdown-menu {
        right: 50%;
        transform: translateX(50%);
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        gap: 14px;
    }

    .desktop-logo {
        display: none !important;
    }

    .nav-mobile-top {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .nav-mobile-wrapper {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding-top: 8px;
    }

    .nav-mobile-wrapper.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        width: 100%;
    }

    .hero-slider,
    .hero-slider-content .container {
        min-height: 420px;
    }

    .hero-slider-content h1 {
        font-size: 32px;
    }

    .hero-slider-content p {
        font-size: 17px;
    }

    .section {
        padding: 55px 0;
    }

    .section h2,
    .about-text h2,
    .cta-box h2 {
        font-size: 30px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 24px;
        right: 14px;
        bottom: 14px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .logo img {
        width: 68px;
        height: 68px;
    }

    .hero-slider,
    .hero-slider-content .container {
        min-height: 360px;
    }

    .hero-slider-content h1 {
        font-size: 28px;
    }

    .hero-slider-content p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .section h2,
    .about-text h2,
    .cta-box h2 {
        font-size: 26px;
    }
}
