:root {
    --primary: #7A0F1D;
    --primary-dark: #5e0b16;
    --primary-light: #9d2030;
    --text-dark: #161616;
    --text-soft: #4b4b4b;
    --white: #ffffff;
    --bg-1: #f7f1f3;
    --bg-2: #fdfbfc;
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-strong: rgba(255, 255, 255, 0.24);
    --glass-border: rgba(255, 255, 255, 0.34);
    --shadow-soft: 0 10px 30px rgba(49, 15, 24, 0.08);
    --shadow-strong: 0 20px 60px rgba(49, 15, 24, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1200px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(122, 15, 29, 0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(122, 15, 29, 0.08), transparent 30%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
}

body.lang-ar {
    direction: rtl;
    text-align: right;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(122, 15, 29, 0.08), transparent 20%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.55), transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(122, 15, 29, 0.06), transparent 24%);
    z-index: 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.site-header {
    padding: 18px 0 0;
}

.header-inner {
    border-radius: 999px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(122, 15, 29, 0.12);
}

.brand-logo {
    width: 112px;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: left center;
    flex-shrink: 0;
}

.brand-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    color: var(--primary);
}

.brand-subtitle {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    letter-spacing: 1.2px;
}

.lang-toggle {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-soft);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hero-section {
    padding: 38px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr;
    gap: 24px;
}

.hero-content,
.hero-side {
    border-radius: var(--radius-xl);
    padding: 34px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(122, 15, 29, 0.10);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.12;
    color: var(--text-dark);
}

.hero-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.9;
    max-width: 860px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn {
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    font-weight: 700;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.45);
    color: var(--primary);
    border: 1px solid rgba(122, 15, 29, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hero-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.hero-side-top {
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(122, 15, 29, 0.10);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.hero-side-top strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
    margin-top: 8px;
}

.mini-label {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.hero-side-box {
    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(122, 15, 29, 0.10);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.hero-side-box p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.hero-main-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(122, 15, 29, 0.10);
}

section {
    padding: 24px 0;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h3 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    color: var(--text-dark);
}

.content-grid,
.dual-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.content-card,
.feature-card,
.contact-card {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.content-card p,
.feature-card p,
.contact-card p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.95;
    font-size: 16px;
}

.content-card p:last-child,
.feature-card p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.feature-card h4,
.contact-card h4,
.service-card h4,
.reason-card h4,
.project-card h4 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 22px;
}

.services-grid,
.reasons-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card,
.reason-card,
.project-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.reason-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(122, 15, 29, 0.22);
}

.service-card p,
.reason-card p,
.project-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 15px;
}

.styled-list {
    margin: 0;
    padding-inline-start: 20px;
}

body.lang-ar .styled-list {
    padding-inline-start: 0;
    padding-inline-end: 20px;
}

.styled-list li {
    margin-bottom: 12px;
    color: var(--text-soft);
    line-height: 1.8;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(122, 15, 29, 0.10);
}

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

.contact-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.contact-item a,
.footer-contact a {
    color: var(--text-dark);
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.site-footer {
    padding: 24px 0 16px;
}

.copyright-bar {
    padding: 12px 0 22px;
    text-align: center !important;
    direction: ltr;
}

.copyright-bar a {
    color: #999 !important;
    font-size: 13px;
    text-decoration: none !important;
}

.copyright-bar a:hover {
    color: #666 !important;
}

.footer-inner {
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand h4 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 18px;
}

.footer-brand p,
.footer-contact span {
    margin: 0;
    color: var(--text-soft);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

body.lang-ar .footer-contact {
    align-items: flex-start;
}

@media (max-width: 1100px) {

    .hero-grid,
    .content-grid,
    .dual-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .reasons-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        border-radius: 999px;
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
    }

    .header-actions {
        width: auto;
        flex-shrink: 0;
    }

    .lang-toggle {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 13px;
        font-weight: 700;
        border-radius: 7px;
    }

    .brand-block {
        align-items: center;
    }

    .hero-content,
    .hero-side,
    .content-card,
    .feature-card,
    .contact-card,
    .service-card,
    .reason-card,
    .project-card,
    .footer-inner {
        padding: 22px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        text-align: center;
        width: 100%;
    }

    .services-grid,
    .reasons-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-logo-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 30px;
    }

.hero-text,
    .content-card p,
    .feature-card p,
    .contact-card p,
    .service-card p,
    .reason-card p,
    .project-card p,
    .styled-list li {
        font-size: 15px;
    }
}

.featured-projects-section {
    padding: 72px 0;
    background: #f8f4f5;
}

.featured-projects-heading {
    text-align: center;
    margin-bottom: 36px;
}

.featured-projects-heading .section-badge {
    margin-bottom: 12px;
}

.featured-projects-heading h3 {
    color: #7A0F1D;
}

/* Bento-style 3-column grid */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.featured-project-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(122, 15, 29, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Wide cards span 2 columns */
.featured-project-card.featured-wide {
    grid-column: span 2;
}

.featured-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* Image wrapper holds img + overlay */
.featured-project-img-wrap {
    position: relative;
    overflow: hidden;
}

.featured-project-img-wrap img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    cursor: zoom-in;
}

.featured-project-card:hover .featured-project-img-wrap img {
    transform: scale(1.05);
}

/* Wide cards → 16:9, narrow cards → 4:3 */
.featured-project-card.featured-wide .featured-project-img-wrap img {
    aspect-ratio: 16 / 9;
}

.featured-project-card:not(.featured-wide) .featured-project-img-wrap img {
    aspect-ratio: 4 / 3;
}

/* Gradient overlay with title */
.featured-project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px 20px 16px;
    background: linear-gradient(
        to top,
        rgba(80, 6, 15, 0.80) 0%,
        rgba(80, 6, 15, 0.18) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.featured-project-overlay h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.featured-project-card.featured-wide .featured-project-overlay h4 {
    font-size: 20px;
}

@media (max-width: 1100px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-project-card.featured-wide {
        grid-column: span 1;
    }

    .featured-project-card .featured-project-img-wrap img,
    .featured-project-card.featured-wide .featured-project-img-wrap img {
        aspect-ratio: 4 / 3;
    }

    .featured-project-overlay h4,
    .featured-project-card.featured-wide .featured-project-overlay h4 {
        font-size: 17px;
    }
}

@media (max-width: 760px) {
    .featured-projects-section {
        padding: 52px 0;
    }

    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .featured-project-card.featured-wide {
        grid-column: span 1;
    }

    .featured-project-card .featured-project-img-wrap img,
    .featured-project-card.featured-wide .featured-project-img-wrap img {
        aspect-ratio: 16 / 9;
    }

    .featured-projects-heading {
        margin-bottom: 22px;
    }
}

.project-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    box-sizing: border-box;
    cursor: zoom-out;
}

/* Image + close button container */
.project-lightbox-inner {
    position: relative;
    display: block;
    width: fit-content;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    cursor: default;
    line-height: 0;
}

.project-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* Close button at top-right corner of the image */
.project-lightbox-close {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    z-index: 1;
}

.project-lightbox-close:hover {
    transform: scale(1.12);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .project-lightbox {
        padding: 16px;
    }

    .project-lightbox-image {
        max-width: 100%;
        max-height: 82vh;
        border-radius: 14px;
    }

    .project-lightbox-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
}
