/* public/css/site.css */
:root {
    --primary: #2a316a;
    --accent: #b2262d;
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --section-bg: #f3f4f6;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.container {
    width: min(1100px, 100% - 32px);
    margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
    background-color: var(--primary);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.nav-toggle-bar {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease,
        width 0.2s ease;
}

.nav-toggle-bar:nth-child(1) {
    top: 14px;
}

.nav-toggle-bar:nth-child(2) {
    top: 19px;
    width: 16px;
}

.nav-toggle-bar:nth-child(3) {
    top: 24px;
}

.nav-toggle--open .nav-toggle-bar:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle--open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle--open .nav-toggle-bar:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo img {
    max-height: 38px;
    width: auto;
    height: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    padding-block: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    opacity: 1;
    border-bottom-color: var(--accent);
}

/* ===== Hero ===== */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 0;
}

.hero-inner {
    padding-block: 72px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 24px auto;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Sections ===== */

.section {
    padding-block: 56px;
}

.section-alt {
    background-color: var(--section-bg);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 18px;
    text-align: center;
    color: var(--primary);
}

.section-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Sections About ===== */
.section-about {
    background-color: #ffffff;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.about-media img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.section-title--right {
    text-align: right;
}

.section-text--right {
    text-align: right;
    margin-inline: 0;
}

/* ===== Sections Services ===== */

.section-services .section-title {
    margin-bottom: 24px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 8px;
}

.service-group {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: right;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 16px;
}

.service-group:last-child {
    border-bottom: none;
}

.service-group-title {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.service-group-text {
    margin: 0 0 16px 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.service-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px 10px 14px 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.service-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
}

.service-item h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--primary);
}

.service-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== Mission & Vision ===== */

.section-mission .mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.section-mission .mission-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-inline-start: 4px solid var(--primary);
    text-align: right;
}

.section-mission .mission-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.05rem;
}

.section-mission .mission-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.section-mission .mission-extra {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
    align-items: flex-end;
}

.mission-subtitle {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: var(--primary);
    text-align: right;
}

.mission-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-features-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    text-align: right;
}

.mission-features-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: var(--accent);
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.mission-stat {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    margin: 0 auto 6px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(178, 38, 45, 0.08);
    font-size: 0.9rem;
}

.stat-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .section-mission .mission-extra {
        grid-template-columns: 1fr;
    }
}

/* ===== Grids ===== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.card-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-values .value-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border-inline-start: 4px solid var(--accent);
}

.section-values .value-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary);
}

/* ===== Contact ===== */

.section-contact .contact-layout {
    display: grid;
    /* 3 أعمدة: 40% للفورم، و 30% + 30% للصناديق */
    grid-template-columns: 0.5fr 0.25fr 0.25fr;
    gap: 24px;
    margin-top: 28px;
    align-items: flex-start;
}

.contact-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 20px 22px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    text-align: right;
}

.contact-form-header {
    margin-bottom: 16px;
}

.contact-form-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-form-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

.form-row {
    margin-bottom: 14px;
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.8rem;
    background-color: #ffffff;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    text-align: right;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(178, 38, 45, 0.08);
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-info-title {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    color: var(--primary);
}

.contact-info-main {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.contact-info-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.btn-primary-submit {
    gap: 8px;
}

.btn-primary-submit .btn-icon-svg {
    /* transform: rotate(-45deg); */
    transition: transform 0.2s ease;
}

.btn-primary-submit:hover .btn-icon-svg {
    transform: translate(2px, -2px);
}

@media (max-width: 768px) {
    .section-contact .contact-layout {
        grid-template-columns: 1fr;
    }
    .form-row-inline {
        grid-template-columns: 1fr;
    }
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.95;
}

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

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* ===== Footer ===== */

.site-footer {
    background-color: #0b1120;
    color: #e5e7eb;
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-main {
    padding-block: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(
            0,
            1.4fr
        );
    gap: 24px;
}

.footer-logo img {
    max-height: 45px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-text {
    margin: 0 0 16px 0;
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #e5e7eb;
    transition: background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-col {
    font-size: 0.9rem;
}

.footer-heading {
    margin: 0 0 10px 0;
    font-size: 0.98rem;
    color: #f9fafb;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-contact-info {
    margin-bottom: 14px;
}

.footer-contact-item {
    margin: 0 0 4px 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.footer-contact-note {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-cta {
    margin-top: 12px;
    padding: 14px 14px 16px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(178, 38, 45, 0.1),
        rgba(15, 23, 42, 0.9)
    );
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-cta-title {
    margin: 0 0 6px 0;
    font-size: 0.96rem;
    color: #f9fafb;
}

.footer-cta-text {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-cta-btn {
    width: 100%;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background-color: #020617;
}

.footer-bottom-inner {
    padding-block: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.footer-sub {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-col.footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .site-header {
        height: auto;
    }

    .header-inner {
        height: var(--header-h);
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: var(--header-h);
        background-color: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        display: none;
    }

    .main-nav--open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 12px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.15);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .section-contact .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-block: 48px;
    }

    .logo img {
        max-height: 40px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-col.footer-brand,
    .footer-col.footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}
