@font-face {
    font-family: "Noto Sans Arabic";
    src: url("fonts/NotoSansArabic-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Noto Sans Arabic";
    src: url("fonts/NotoSansArabic-Bold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "Estedad";
    src: url("fonts/Estedad-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Estedad";
    src: url("fonts/Estedad-Bold.woff2") format("woff2");
    font-weight: 700;
}

:root {
    --burgundy: #7F0220;
    --cream: #F6EAD0;
    --charcoal: #333333;
    --white: #fffaf2;
    --muted: #766e68;
    --border: rgba(51, 51, 51, 0.15);
    --body-font: "Noto Sans Arabic", sans-serif;
    --heading-font: "Estedad", "Noto Sans Arabic", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: var(--body-font);
    line-height: 1.9;
}

h1,
h2,
h3,
.logo,
button,
.primary-button,
.secondary-button,
.light-button {
    font-family: var(--heading-font);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--burgundy);
    font-size: 28px;
    font-weight: 700;
}

.logo-image {
    display: block;
    width: 70px;
    height: 54px;
    transition: transform 0.3s ease;
}

.logo-name {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
}

.nav-links a,
.language-switcher a {
    transition: 0.3s ease;
}

.nav-links a:hover,
.language-switcher a:hover {
    color: var(--burgundy);
}

.language-switcher {
    color: var(--burgundy);
    font-size: 14px;
    font-weight: 700;
}

.hero {
    min-height: 760px;
    padding: 180px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 90px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--burgundy);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.35;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: var(--burgundy);
}

.hero-content > p {
    max-width: 600px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.light-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.primary-button {
    background: var(--burgundy);
    color: var(--cream);
}

.primary-button:hover {
    background: var(--charcoal);
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid var(--charcoal);
}

.secondary-button:hover {
    background: var(--charcoal);
    color: var(--cream);
}

.hero-card {
    min-height: 430px;
    padding: 34px;
    border-radius: 8px;
    background: var(--burgundy);
    color: var(--cream);
    box-shadow: 25px 25px 0 rgba(127, 2, 32, 0.12);
}

.card-label {
    font-size: 13px;
}

.hero-symbol {
    margin: 90px 0 18px;
    font-size: 76px;
}

.hero-card h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.hero-card p {
    max-width: 280px;
    color: rgba(246, 234, 208, 0.78);
}

.about-section,
.portfolio-section {
    background: var(--white);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.two-column h2,
.section-heading h2,
.contact-box h2 {
    max-width: 600px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.5;
}

.section-text {
    padding-top: 38px;
    color: var(--muted);
}

.section-text p {
    margin-bottom: 20px;
}

.services-section {
    background: var(--cream);
}

.section-heading {
    margin-bottom: 45px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    min-height: 280px;
    padding: 32px;
    border: 1px solid var(--border);
}

.featured-card {
    background: var(--burgundy);
    color: var(--cream);
}

.service-number {
    display: block;
    margin-bottom: 55px;
    color: var(--burgundy);
    font-weight: 700;
}

.featured-card .service-number {
    color: var(--cream);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 23px;
}

.service-card p {
    color: var(--muted);
}

.featured-card p {
    color: rgba(246, 234, 208, 0.78);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.portfolio-card,
.article-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
}

.portfolio-large {
    grid-row: auto;
}

.portfolio-image {
    display: flex;
    align-items: end;
    height: 260px;
    min-height: 260px;
    padding: 26px;
    color: var(--cream);
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
}

.portfolio-large .portfolio-image {
    min-height: 260px;
}

.portfolio-image img,
.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-one {
    background: linear-gradient(135deg, #7F0220, #333333);
}

.image-two {
    background: linear-gradient(135deg, #333333, #7F0220);
}

.image-three {
    background: linear-gradient(135deg, #7F0220, #b99b84);
}

.portfolio-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    min-height: 82px;
}

/* Article cards use the same equal-height layout as portfolio cards. */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.article-card {
    padding: 26px;
}

.article-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.article-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.article-card .project-link {
    align-self: flex-end;
    margin-top: auto;
}

.portfolio-info h3 {
    font-size: 19px;
}

.project-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--burgundy);
    font-size: 20px;
}

.contact-section {
    padding: 0 0 110px;
    background: var(--white);
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
    background: var(--burgundy);
    color: var(--cream);
}

.contact-box .eyebrow {
    color: var(--cream);
}

.contact-box p {
    color: rgba(246, 234, 208, 0.78);
}

.light-button {
    flex-shrink: 0;
    background: var(--cream);
    color: var(--burgundy);
}

.light-button:hover {
    background: var(--charcoal);
    color: var(--cream);
}

.site-footer {
    background: var(--charcoal);
    color: var(--cream);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    color: rgba(246, 234, 208, 0.75);
    font-size: 13px;
}

html[dir="ltr"] .hero,
html[dir="ltr"] .about-section,
html[dir="ltr"] .services-section,
html[dir="ltr"] .portfolio-section,
html[dir="ltr"] .contact-section {
    text-align: left;
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .two-column {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero {
        padding-top: 140px;
    }

    .services-grid,
    .portfolio-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-large {
        grid-row: auto;
    }

    .portfolio-large .portfolio-image {
        min-height: 320px;
    }

    .contact-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 28px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a {
        text-align: center;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
}
@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 720px);
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-grid,
    .two-column {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero h1 {
        max-width: 650px;
        font-size: clamp(38px, 8vw, 62px);
    }

    .hero-card {
        min-height: 330px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-large {
        grid-row: auto;
    }

    .portfolio-large .portfolio-image {
        min-height: 320px;
    }

    .contact-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .navbar {
        min-height: 72px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .logo-image {
        width: 58px;
        height: 45px;
    }

    .logo {
        gap: 0;
        font-size: 23px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.45;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a {
        text-align: center;
    }

    .hero-card {
        min-height: 300px;
        padding: 25px;
    }

    .hero-symbol {
        margin-top: 55px;
        font-size: 60px;
    }

    .section {
        padding: 75px 0;
    }

    .two-column h2,
    .section-heading h2,
    .contact-box h2 {
        font-size: 32px;
    }

    .contact-box {
        padding: 32px 24px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 20px 0;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 35px;
    }

    .hero-card h2 {
        font-size: 24px;
    }

    .language-switcher {
        font-size: 12px;
    }
}
.nav-links a,
.language-switcher a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--burgundy);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--burgundy);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.primary-button,
.secondary-button,
.light-button,
.project-link,
.service-card,
.hero-card,
.portfolio-card {
    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

.primary-button:hover,
.light-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(127, 2, 32, 0.22);
}

.secondary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(51, 51, 51, 0.12);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--burgundy);
    box-shadow: 0 18px 35px rgba(51, 51, 51, 0.12);
}

.featured-card:hover {
    background: #97052b;
    box-shadow: 0 18px 35px rgba(127, 2, 32, 0.25);
}

.hero-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 30px 30px 0 rgba(127, 2, 32, 0.18);
}

.portfolio-card {
    cursor: pointer;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.03);
}

.portfolio-image {
    overflow: hidden;
    transition: transform 0.5s ease;
}

.project-link:hover {
    background: var(--burgundy);
    color: var(--cream);
    transform: rotate(45deg);
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px);
    color: var(--burgundy);
}

.language-switcher a:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Portfolio layout: matches the current home.html classes. */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.portfolio-card,
.portfolio-card.portfolio-large {
    display: flex;
    height: 100%;
    min-height: 320px;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-card .portfolio-image,
.portfolio-card.portfolio-large .portfolio-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.portfolio-card .portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.portfolio-card .portfolio-info {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px;
}

.portfolio-card .portfolio-info h3 {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card.portfolio-large {
        min-height: 300px;
    }

    .portfolio-card .portfolio-info h3 {
        height: 20px;
        line-height: 20px;
    }
}
