:root {
    --primary: #d4b166;
    --primary-dark: #a68845;
    --text: #0f2032;
    --muted: #5d6b7a;
    --bg: #f2f6fb;
    --white: #fff;
    --border: #d7e1ec;
    --shadow: 0 16px 36px rgba(10, 31, 54, 0.12);
    --deep-blue: #10263d;
    --deep-blue-soft: #173551;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1240px, 93%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(16, 38, 61, 0.94), rgba(16, 38, 61, 0.9));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    color: #fff;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    font-size: 0.95rem;
}

.logo-image {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 177, 102, 0.45);
    padding: 0.22rem;
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.1px;
}

.nav-menu {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.nav-menu a {
    color: #e7eff8;
    font-weight: 700;
    padding: 0.46rem 0.78rem;
    border-radius: 10px;
    transition: 0.25s ease;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: #0f2032;
    background: linear-gradient(130deg, #e5c985, #c8a965);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.3rem;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    background: #f4dca3;
}

.hero {
    padding: 92px 0 64px;
    background: radial-gradient(circle at 10% 20%, #203f5e 0%, #142d47 60%);
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    transform: scale(1.05);
}

.slide-layer.is-active {
    opacity: 1;
    animation: slideDrift 8s ease-in-out forwards;
}

@keyframes slideDrift {
    0% {
        transform: scale(1.05) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.1) translate3d(1.2%, -1%, 0);
    }
    100% {
        transform: scale(1.13) translate3d(-1.4%, 1.3%, 0);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, 0.52);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    margin-bottom: 14px;
    background: linear-gradient(120deg, #f0db9e, #cda95e);
    color: #15283f;
    padding: 0.32rem 0.82rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.25;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero p {
    color: var(--muted);
    max-width: 64ch;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(130deg, #e6ca84, #bb9550);
    color: #162a42;
    box-shadow: 0 10px 24px rgba(212, 177, 102, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(130deg, #f1d58f, #c8a15b);
}

.btn-outline {
    border-color: #c8b9a8;
    color: #5e4630;
    background: transparent;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 177, 102, 0.55);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(9, 27, 46, 0.24);
    padding: 1.3rem 1.15rem;
    backdrop-filter: blur(2px);
}

.hero.has-slides .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero.has-slides h1,
.hero.has-slides p {
    color: #fff;
}

.hero.has-slides .btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.hero-card h3 {
    margin-top: 0;
}

.hero-card ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.stats {
    padding: 18px 0 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 0.95rem;
}

.stat-item h2 {
    margin: 0;
    color: var(--primary-dark);
}

.section {
    padding: 78px 0;
}

.section.alt {
    background: #11273f;
}

.section.alt .section-head h2,
.section.alt .section-head p {
    color: #e8f0f9;
}

.section-slideshow {
    position: relative;
    overflow: hidden;
}

.section-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 8, 0.62);
    z-index: 1;
}

.section-slideshow .container {
    position: relative;
    z-index: 2;
}

.section-slideshow.has-slides .section-head h2,
.section-slideshow.has-slides .section-head p {
    color: #fff;
}

.section-head {
    margin-bottom: 1.3rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2.3rem);
    color: #10263d;
}

.section-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.card {
    background: #fff;
    border: 1px solid #d9e4ef;
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 14px 30px rgba(13, 37, 61, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(13, 37, 61, 0.14);
}

.card h3 {
    margin: 0.1rem 0 0.5rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-media {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    border: 1px solid #eadfd4;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.portfolio-item {
    min-height: 130px;
    border-radius: 15px;
    border: 1px solid #d5e1ed;
    display: grid;
    place-items: center;
    background: #fff;
    color: #23374b;
    font-weight: 700;
    text-align: center;
    padding: 0.7rem;
}

.media-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    text-align: right;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-media {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    border: 1px solid #e3d5c6;
    background: #f2ece4;
    object-fit: cover;
}

.portfolio-item span {
    color: #655441;
    font-size: 0.95rem;
    font-weight: 500;
}

.cta {
    padding: 34px 0 66px;
}

.cta-box {
    border-radius: 18px;
    border: 1px solid rgba(212, 177, 102, 0.5);
    background: linear-gradient(130deg, #122d49, #1b3e62);
    padding: 1.7rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 38px rgba(9, 27, 46, 0.2);
}

.cta-box h2 {
    margin: 0;
}

.cta-box p {
    color: #dde7f3;
}

.page-hero {
    padding: 56px 0 10px;
}

.page-hero h1 {
    margin: 0;
}

.page-hero p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1rem;
    align-items: start;
}

.contact-card,
.contact-form-wrap {
    background: #fff;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 25px rgba(12, 34, 56, 0.08);
}

.contact-card ul {
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-form {
    display: grid;
    gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #d3c6b8;
    border-radius: 9px;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.7rem;
}

.about-content p {
    margin: 0 0 0.8rem;
}

.branches-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.branches-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
}

.branches-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 27, 43, 0.8), rgba(11, 27, 43, 0.48));
}

.branches-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem 0;
}

.branches-hero-content h1 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(2rem, 4.1vw, 3.3rem);
}

.branches-hero-content p {
    color: #e8eff8;
    max-width: 68ch;
}

.branches-section {
    background: linear-gradient(180deg, #f2f6fb 0%, #ebf2fb 100%);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.branch-card {
    background: #fff;
    border: 1px solid #d4dfeb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 14px 30px rgba(12, 34, 56, 0.08);
    display: grid;
    gap: 0.75rem;
}

.branch-media {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe5f0;
}

.branch-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.branch-card-head h3 {
    margin: 0;
}

.branch-city {
    background: #ecf3fa;
    color: #21384f;
    border: 1px solid #d1deec;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.branch-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #385168;
}

.branch-meta li {
    margin-bottom: 0.23rem;
}

.branch-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #e7d7c8;
    border-color: #bc9a77;
}

.alert {
    border-radius: 9px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.8rem;
}

.alert.success {
    background: #e8f6ea;
    color: #1f6a2f;
    border: 1px solid #b6ddbc;
}

.alert.error {
    background: #fff0f0;
    color: #982525;
    border: 1px solid #f0c1c1;
}

.alert ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.site-footer {
    border-top: 1px solid rgba(212, 177, 102, 0.45);
    background: linear-gradient(160deg, #0f2134, #173551);
    margin-top: 36px;
    color: #eef4fb;
}

.footer-grid {
    padding: 34px 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    color: #e4c57f;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 0.35rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.copyright p {
    margin: 0;
    padding: 0.8rem 0;
    color: #c9d8e8;
    font-size: 0.92rem;
}

.footer-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 177, 102, 0.45);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem;
}

@media (max-width: 920px) {
    .hero-grid,
    .cards-grid,
    .branches-grid,
    .portfolio-grid,
    .content-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 76px;
        left: 4%;
        right: 4%;
        background: #14304d;
        border: 1px solid rgba(212, 177, 102, 0.35);
        border-radius: 10px;
        box-shadow: var(--shadow);
        padding: 0.65rem;
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }
}

@media (max-width: 540px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 0.92rem;
    }
}
