* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #F5F2EA;
    color: #252525;
    font-family: "Cairo", sans-serif;
}

a {
    color: inherit;
}

.home-shell {
    min-height: 100vh;
    overflow: hidden;
}

.site-header {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand strong {
    font-size: 1.2rem;
    color: #17263A;
}

.brand small {
    color: #7A746A;
    margin-top: 0.2rem;
}

.header-login,
.primary-action {
    background: #C4A574;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.25rem;
    border-radius: 0.8rem;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease;
}

.header-login:hover,
.primary-action:hover {
    background: #B08A4A;
    transform: translateY(-1px);
}

.hero {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 3rem auto 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy {
    max-width: 650px;
}

.eyebrow,
.section-heading > span,
.portal-cta > div > span {
    display: inline-flex;
    color: #A77F3B;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.hero h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.hero-copy > p {
    margin: 1.35rem 0 0;
    color: #716B61;
    font-size: 1.08rem;
    line-height: 2;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.secondary-action {
    color: #2B2B2B;
    text-decoration: none;
    padding: 0.8rem 1.25rem;
    border: 1px solid #DCD4C6;
    border-radius: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.45);
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.45rem;
    color: #827A6E;
    font-size: 0.9rem;
}

.trust-line span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #C4A574;
    box-shadow: 0 0 0 5px rgba(196, 165, 116, 0.14);
}

.hero-card {
    position: relative;
    background: #fff;
    padding: 2.3rem;
    border-radius: 1.8rem;
    border: 1px solid #EBE5DA;
    box-shadow: 0 24px 60px rgba(44, 37, 28, 0.08);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(196, 165, 116, 0.14);
    top: -70px;
    left: -60px;
    filter: blur(8px);
    z-index: -1;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
}

.hero-logo-wrap img {
    height: 92px;
    width: auto;
    object-fit: contain;
}

.hero-card h2 {
    text-align: center;
    color: #17263A;
    font-size: 1.8rem;
    margin: 0.7rem 0 0;
}

.hero-card > p {
    text-align: center;
    color: #837C71;
    line-height: 1.8;
    margin: 0.55rem auto 1.8rem;
    max-width: 360px;
}

.hero-points {
    display: grid;
    gap: 0.75rem;
}

.hero-points div {
    border: 1px solid #ECE6DB;
    background: #FCFBF8;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.hero-points strong,
.hero-points span {
    display: block;
}

.hero-points strong {
    color: #2F2B26;
    margin-bottom: 0.2rem;
}

.hero-points span {
    color: #8A8276;
    font-size: 0.88rem;
}

.features,
.contact {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto 5rem;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    color: #222;
    line-height: 1.4;
}

.section-heading p {
    color: #7A746A;
    line-height: 1.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-grid article {
    background: #fff;
    border: 1px solid #E9E2D7;
    border-radius: 1.3rem;
    padding: 1.6rem;
    min-height: 210px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #F5EEE1;
    color: #A77F3B;
    border-radius: 0.85rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.feature-grid h3 {
    margin: 1rem 0 0.6rem;
    color: #27231E;
    font-size: 1.05rem;
}

.feature-grid p {
    margin: 0;
    color: #817A6F;
    line-height: 1.9;
    font-size: 0.92rem;
}

.portal-cta {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto 5rem;
    padding: 2.3rem 2.5rem;
    border-radius: 1.7rem;
    background: #17263A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.portal-cta h2 {
    margin: 0;
    font-size: 1.7rem;
}

.portal-cta p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.portal-cta a {
    flex: 0 0 auto;
    background: #C4A574;
    color: #fff;
    text-decoration: none;
    border-radius: 0.8rem;
    padding: 0.85rem 1.5rem;
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-grid a {
    text-decoration: none;
    background: #fff;
    border: 1px solid #E8E1D5;
    border-radius: 1.15rem;
    padding: 1.35rem 1.5rem;
    transition: transform 160ms ease, border-color 160ms ease;
}

.contact-grid a:hover {
    transform: translateY(-2px);
    border-color: #C4A574;
}

.contact-label {
    display: block;
    color: #8A8276;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.contact-grid strong {
    color: #28241F;
    direction: ltr;
    display: inline-block;
}

footer {
    border-top: 1px solid #E2DBCF;
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.4rem 0 2.8rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    color: #7A746A;
    font-size: 0.84rem;
}

.footer-brand,
.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand img {
    height: 46px;
    width: auto;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #17263A;
}

.footer-credit img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

footer > p {
    margin: 0;
    text-align: left;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }

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

    .portal-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-credit {
        justify-content: center;
    }

    footer > p {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-header {
        min-height: 78px;
    }

    .brand span {
        display: none;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .header-login {
        font-size: 0.78rem;
        padding: 0.68rem 0.85rem;
    }

    .hero,
    .features,
    .contact,
    .portal-cta,
    footer,
    .site-header {
        width: min(100% - 1.25rem, 1180px);
    }

    .hero {
        margin-bottom: 3.5rem;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-copy > p {
        font-size: 0.98rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

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

    .portal-cta {
        padding: 1.6rem;
    }
}
