﻿
/* ==========================================
   MASAR ALMARIFAH - CORPORATE HOME PAGE
   Responsive, RTL, Accessible Design
   ========================================== */

:root {
    --home-navy: #07192f;
    --home-navy-light: #103451;
    --home-teal: #08b8b2;
    --home-teal-dark: #007d82;
    --home-white: #ffffff;
    --home-bg: #f5f9fc;
    --home-text: #102b46;
    --home-muted: #586d80;
    --home-border: #dce8ef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--home-text);
    background: var(--home-white);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.home-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--home-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(7, 25, 47, 0.05);
}

.nav-wrapper {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex-shrink: 0;
}

    .brand img {
        width: 170px;
        max-height: 75px;
        object-fit: contain;
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

    .main-nav a {
        color: var(--home-navy);
        font-size: 14px;
        font-weight: 700;
        transition: color 0.2s ease;
    }

        .main-nav a:hover,
        .main-nav a:focus-visible {
            color: var(--home-teal-dark);
        }

/* BUTTONS */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--home-teal-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .home-btn:hover {
        background: #006a70;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 125, 130, 0.18);
    }

    .home-btn:focus-visible,
    a:focus-visible {
        outline: 3px solid #f4a340;
        outline-offset: 3px;
    }

.home-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #7edbd9;
}

    .home-btn-outline:hover {
        background: rgba(255, 255, 255, 0.12);
    }

/* HERO */

.home-hero {
    background: linear-gradient( 115deg, #07192f 0%, #0b304b 65%, #075e67 100% );
    color: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 55px;
    padding-block: 85px;
    min-height: 550px;
}

.section-tag {
    display: inline-block;
    color: var(--home-teal-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.home-hero .section-tag,
.home-contact .section-tag {
    color: #72e8e1;
}

.hero-content h1 {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.5;
    margin: 12px 0 20px;
}

    .hero-content h1 span {
        display: block;
        color: #69e5dd;
    }

.hero-content p {
    color: #d6e5ee;
    font-size: 17px;
    line-height: 2;
    max-width: 590px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(105, 229, 221, 0.3);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
}

/* SECTIONS */

.home-section {
    padding: 85px 0;
}

.section-soft {
    background: var(--home-bg);
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

    .section-heading h2 {
        font-size: clamp(26px, 3vw, 38px);
        line-height: 1.4;
        color: var(--home-navy);
        margin: 8px 0 15px;
    }

    .section-heading p {
        color: var(--home-muted);
        font-size: 16px;
        line-height: 2;
    }

/* ABOUT */

.about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-box {
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--home-border);
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(7, 25, 47, 0.04);
}

    .feature-box > span {
        color: var(--home-teal-dark);
        font-size: 28px;
        font-weight: 800;
    }

    .feature-box h3 {
        color: var(--home-navy);
        font-size: 20px;
        margin: 12px 0;
    }

    .feature-box p {
        color: var(--home-muted);
        margin: 0;
    }

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(7, 25, 47, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 45px rgba(7, 25, 47, 0.1);
    }

.service-icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--home-navy);
    margin: 0 0 12px;
}

.service-card p {
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.9;
    flex: 1;
}

.service-card a {
    display: inline-block;
    color: var(--home-teal-dark);
    font-weight: 800;
    margin-top: 18px;
}

    .service-card a:hover {
        text-decoration: underline;
    }

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    min-height: 220px;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b2a49, #0c5262);
    color: #ffffff;
}

    .project-card h3 {
        font-size: 21px;
        margin: 0 0 18px;
    }

    .project-card p {
        color: #d7eaf0;
        line-height: 1.9;
    }

.section-note {
    margin-top: 25px;
    color: var(--home-muted);
    text-align: center;
    font-size: 13px;
}

/* PARTNERS & CLIENTS */

.partners-placeholder {
    padding: 45px 25px;
    border: 1px dashed #9dbbc9;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

    .partners-placeholder p {
        color: var(--home-muted);
        margin: 0;
        line-height: 2;
    }

/* CONTACT */

.home-contact {
    padding: 75px 0;
    background: linear-gradient(110deg, #07192f, #0b4654);
    color: #ffffff;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

    .contact-content h2 {
        font-size: clamp(25px, 3vw, 36px);
        margin: 5px 0 15px;
    }

    .contact-content p {
        color: #d4e7ee;
        max-width: 650px;
    }

/* FOOTER */

.home-footer {
    background: #04111f;
    color: #d4e3ec;
    padding: 45px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

    .footer-content strong {
        color: #ffffff;
        font-size: 17px;
    }

    .footer-content p {
        margin: 7px 0;
        font-size: 13px;
    }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .footer-links a {
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #72e8e1;
        }

/* TABLETS */

@media (max-width: 1024px) {
    .nav-wrapper {
        gap: 16px;
    }

    .main-nav {
        gap: 12px;
    }

    .hero-grid {
        gap: 30px;
    }

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

/* MOBILE */

@media (max-width: 767px) {
    .home-container {
        width: min(100% - 28px, 1200px);
    }

    .nav-wrapper {
        flex-direction: column;
        padding-block: 14px;
        gap: 12px;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 12px 16px;
    }

        .main-nav a {
            font-size: 13px;
        }

    .nav-cta {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-block: 45px;
        gap: 32px;
    }

    .hero-content {
        text-align: center;
    }

        .hero-content p {
            font-size: 15px;
        }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual img {
        height: 250px;
    }

    .home-section {
        padding: 55px 0;
    }

    .about-features,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .home-btn {
            width: 100%;
        }

    .feature-box,
    .service-card,
    .project-card {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-btn,
    .service-card,
    .main-nav a {
        transition: none;
    }

        .home-btn:hover,
        .service-card:hover {
            transform: none;
        }
}
