/* =========================================================
   IQRANIX — ABOUT PAGE
   Professional Islamic / Official Document Design
========================================================= */

:root {
    --green: #0B6E4F;
    --green-dark: #07563E;
    --gold: #B08A24;
    --gold-light: #D4B85C;

    --text: #30343B;
    --muted: #72777D;
    --line: #DFE3E1;

    --soft-green: #F5FAF7;
    --soft-gold: #FFFDF7;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--white);
    color: var(--text);

    line-height: 1.85;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.about-page {
    width: 100%;
    min-height: 100vh;
    background: var(--white);
}


/* =========================================================
   NAVIGATION
========================================================= */

.about-nav {
    width: 100%;

    padding: 17px 24px;

    background: var(--white);

    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    color: var(--green);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.back-link:hover {
    color: var(--gold);

    transform: translateX(-3px);
}


/* =========================================================
   HEADER
========================================================= */

.about-header {
    width: min(900px, calc(100% - 40px));

    margin: 0 auto;

    padding: 48px 20px 35px;
}

.brand-mark {
    width: 82px;
    height: 82px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid var(--green);

    border-radius: 50%;

    margin-bottom: 20px;
}

.crescent {
    color: var(--green);

    font-size: 43px;

    line-height: 1;
}

.brand-information h1 {
    color: var(--green);

    font-size: clamp(31px, 7vw, 47px);

    font-weight: 700;

    letter-spacing: -1.5px;

    line-height: 1.2;
}

.brand-information p {
    margin-top: 3px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   OFFICIAL LABEL
========================================================= */

.official-label {
    margin-bottom: 8px;

    color: var(--gold) !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================================
   DECORATIVE DIVIDER
========================================================= */

.ornamental-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;

    color: var(--gold);

    font-size: 16px;
}

.ornamental-divider i {
    flex: 1;

    height: 1px;

    background: var(--line);
}


/* =========================================================
   PAGE TITLE
========================================================= */

.about-header h2 {
    margin-top: 25px;

    color: var(--green);

    font-size: clamp(27px, 6vw, 40px);

    line-height: 1.3;

    font-weight: 700;
}

.header-introduction {
    max-width: 760px;

    margin-top: 18px;

    color: var(--text);

    font-size: 15px;

    line-height: 1.95;
}


/* =========================================================
   BRAND CARD
========================================================= */

.brand-card {
    width: min(820px, calc(100% - 40px));

    margin: 5px auto 48px;

    padding: 25px;

    display: flex;

    align-items: flex-start;

    gap: 20px;

    border: 1px solid #DCE9E2;

    border-left: 4px solid var(--green);

    border-radius: 12px;

    background: var(--soft-green);
}

.brand-card-icon {
    min-width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-size: 21px;
}

.brand-card-content h2 {
    margin-bottom: 10px;

    color: var(--green);

    font-size: 20px;

    line-height: 1.4;
}

.brand-card-content p {
    margin-bottom: 13px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.9;
}

.brand-card-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.about-content {
    width: min(820px, calc(100% - 40px));

    margin: 0 auto;

    padding: 0 20px 65px;
}


/* =========================================================
   SECTIONS
========================================================= */

.about-section {
    margin-bottom: 52px;
}

.about-section h2 {
    position: relative;

    margin-bottom: 22px;

    padding-bottom: 12px;

    color: var(--green);

    font-size: clamp(20px, 5vw, 27px);

    line-height: 1.35;

    font-weight: 700;
}

.about-section h2::before {
    content: "✦";

    margin-right: 8px;

    color: var(--gold);

    font-size: 14px;
}

.about-section h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: var(--line);
}


/* =========================================================
   PARAGRAPHS
========================================================= */

.about-section p {
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 20px;

    color: var(--text);

    font-size: 15px;

    line-height: 1.95;

    text-align: left;
}

.about-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LISTS
========================================================= */

.about-section ul {
    margin: 16px 8px 0 28px;

    padding-left: 18px;
}

.about-section li {
    margin-bottom: 13px;

    padding-left: 5px;

    color: var(--text);

    font-size: 14.5px;

    line-height: 1.85;
}

.about-section li::marker {
    color: var(--gold);
}

.about-section strong {
    color: var(--green-dark);

    font-weight: 600;
}


/* =========================================================
   DOCUMENT LINKS
========================================================= */

.document-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin: 4px 8px 0;

    padding: 11px 17px;

    border: 1px solid var(--green);

    border-radius: 8px;

    color: var(--green);

    background: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: all 0.25s ease;
}

.document-link:hover {
    background: var(--green);

    color: white;

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-box {
    margin: 25px 8px 0;

    padding: 5px 20px;

    border: 1px solid var(--gold-light);

    border-radius: 12px;

    background: var(--soft-gold);
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 18px 0;

    border-bottom: 1px solid #EEE8D8;
}

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

.contact-item > i {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-size: 17px;
}

.contact-item span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-item a {
    display: inline-block;

    margin-top: 2px;

    color: var(--green);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    word-break: break-word;
}

.contact-item a:hover {
    color: var(--gold);
}


/* =========================================================
   CLOSING SECTION
========================================================= */

.closing-section {
    margin: 65px 8px 20px;

    padding: 38px 25px;

    text-align: center;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);

    background: #FCFDFC;
}

.closing-symbol {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border: 1px solid var(--gold);

    border-radius: 50%;

    color: var(--green);

    font-size: 30px;
}

.closing-section h2 {
    margin-bottom: 17px;

    color: var(--green);

    font-size: 23px;

    line-height: 1.4;
}

.closing-section p {
    max-width: 680px;

    margin: 0 auto 18px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.9;
}

.closing-section .arabic-inspired {
    margin-top: 25px;

    color: var(--green-dark);

    font-weight: 500;

    font-style: italic;
}


/* =========================================================
   FOOTER
========================================================= */

.about-footer {
    width: 100%;

    padding: 45px 25px 35px;

    text-align: center;

    background: white;

    border-top: 1px solid var(--line);
}

.footer-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    margin-bottom: 10px;
}

.about-footer h2 {
    color: var(--green);

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 2px;
}

.about-footer > p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.footer-divider {
    width: 80px;
    height: 1px;

    margin: 22px auto;

    background: var(--gold);
}

.about-footer small {
    display: block;

    max-width: 650px;

    margin: 7px auto;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   SOCIAL FOOTER
========================================================= */

.footer-social {
    margin-top: 22px;
}

.footer-social a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--green);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: 0.25s ease;
}

.footer-social a:hover {
    color: var(--gold);
}

.footer-social i {
    font-size: 18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .about-nav {
        padding: 15px 20px;
    }


    .about-header {
        width: calc(100% - 32px);

        padding: 35px 8px 28px;
    }


    .brand-mark {
        width: 68px;
        height: 68px;
    }


    .crescent {
        font-size: 35px;
    }


    .official-label {
        font-size: 10px !important;

        letter-spacing: 2px;
    }


    .brand-information h1 {
        font-size: 32px;
    }


    .brand-information p {
        font-size: 13px;
    }


    .about-header h2 {
        font-size: 25px;
    }


    .header-introduction {
        font-size: 13.5px;

        line-height: 1.9;
    }


    /* Brand card */

    .brand-card {
        width: calc(100% - 32px);

        padding: 20px;

        flex-direction: column;

        gap: 15px;
    }


    .brand-card-icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }


    .brand-card-content h2 {
        font-size: 18px;
    }


    .brand-card-content p {
        font-size: 13.5px;
    }


    /* Main content */

    .about-content {
        width: calc(100% - 32px);

        padding: 0 8px 50px;
    }


    .about-section {
        margin-bottom: 43px;
    }


    .about-section h2 {
        font-size: 20px;

        margin-bottom: 18px;
    }


    /*
       Extra paragraph spacing keeps text
       away from phone edges.
    */

    .about-section p {
        margin-left: 8px;
        margin-right: 8px;

        font-size: 14px;

        line-height: 1.9;
    }


    .about-section ul {
        margin-left: 25px;
        margin-right: 8px;

        padding-left: 14px;
    }


    .about-section li {
        font-size: 13.5px;

        line-height: 1.8;
    }


    /* Links */

    .document-link {
        margin-left: 8px;
        margin-right: 8px;

        font-size: 12.5px;
    }


    /* Contact */

    .contact-box {
        margin-left: 8px;
        margin-right: 8px;

        padding: 4px 16px;
    }


    .contact-item {
        gap: 12px;

        padding: 15px 0;
    }


    .contact-item > i {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }


    .contact-item a {
        font-size: 13px;
    }


    /* Closing */

    .closing-section {
        margin-left: 8px;
        margin-right: 8px;

        padding: 30px 18px;
    }


    .closing-section h2 {
        font-size: 20px;
    }


    .closing-section p {
        font-size: 13px;
    }


    /* Footer */

    .about-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .about-header {
        width: calc(100% - 24px);
    }


    .about-content {
        width: calc(100% - 24px);

        padding-left: 5px;
        padding-right: 5px;
    }


    .brand-card {
        width: calc(100% - 24px);
    }


    .about-section p {
        margin-left: 6px;
        margin-right: 6px;

        font-size: 13px;
    }


    .about-section li {
        font-size: 13px;
    }


    .closing-section {
        margin-left: 6px;
        margin-right: 6px;

        padding-left: 15px;
        padding-right: 15px;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    body {
        background: white;

        color: black;
    }


    .about-nav {
        display: none;
    }


    .about-header,
    .about-content,
    .brand-card {
        width: 100%;

        max-width: none;
    }


    .about-section {
        break-inside: avoid;
    }


    .document-link {
        display: none;
    }


    .about-footer {
        border-top: 1px solid #ccc;
    }

}
/* =========================================================
   ABOUT PAGE SCROLL ANIMATION
========================================================= */

.about-hidden {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.about-visible {
    opacity: 1;
    transform: translateY(0);
}

.link-clicked {
    transform: scale(0.97);
}


/* Respect users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .about-hidden,
    .about-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

}