/* =========================================================
   ISLAMIC CO-OPERATIVE CREDIT UNION
   Main Website Styles
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #07543f;
    --primary-dark: #04382b;
    --primary-light: #0b6b50;

    --gold: #c7a447;
    --gold-light: #e1c56c;

    --white: #ffffff;
    --off-white: #fafbf9;
    --cream: #f5f2e8;

    --text: #26332e;
    --muted: #68756f;

    --border: #dfe6e2;

    --shadow: 0 15px 45px rgba(0, 0, 0, 0.08);

    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(var(--max-width), 92%);
    margin: 0 auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    background: var(--primary-dark);
    color: #dce9e3;

    font-size: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.logo-mark {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--gold);

    border-radius: 50%;

    color: var(--primary);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.logo-text strong {
    color: var(--primary);

    font-size: 15px;
}

.logo-text span {
    color: var(--muted);

    font-size: 12px;

    margin-top: 4px;
}


/* NAVIGATION */

.navigation {
    display: flex;
    align-items: center;

    gap: 23px;
}

.navigation a {
    position: relative;

    color: #34413c;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--primary);
}

.navigation a:not(.login-button)::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.25s ease;
}

.navigation a:not(.login-button):hover::after,
.navigation a.active:not(.login-button)::after {
    width: 100%;
}


/* LOGIN */

.login-button {
    background: var(--primary);

    color: var(--white) !important;

    padding: 12px 19px;

    border-radius: 5px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background: var(--primary-light);

    transform: translateY(-1px);
}


/* MOBILE MENU */

.menu-button {
    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 8px;

    border: 0;

    background: transparent;

    color: var(--primary);

    font-size: 28px;

    cursor: pointer;
}

.menu-button:hover {
    color: var(--primary-light);
}

.menu-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.menu-icon {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 999px;

    background: currentColor;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(199, 164, 71, 0.16),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--white);

    padding: 105px 0 110px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -220px;
    bottom: -250px;

    border: 1px solid rgba(225, 197, 108, 0.2);

    transform: rotate(45deg);
}

.hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -230px;
    top: -200px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transform: rotate(45deg);
}

.hero-content {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);

    align-items: center;

    gap: 80px;
}

.hero-text {
    max-width: 720px;
}

.hero-label {
    display: inline-block;

    color: var(--gold-light);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2.5px;
}

.hero h1 {
    margin-top: 20px;

    font-size: clamp(42px, 5.4vw, 72px);

    line-height: 1.04;

    letter-spacing: -2px;
}

.hero h1 span {
    display: block;

    color: var(--gold-light);
}

.hero p {
    max-width: 650px;

    margin-top: 25px;

    color: #d8e4df;

    font-size: 18px;

    line-height: 1.75;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 35px;
}


/* BUTTONS */

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 23px;

    border-radius: 5px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-button {
    background: var(--gold);

    color: var(--primary-dark);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}

.primary-button:hover {
    background: var(--gold-light);

    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.35);

    color: var(--white);

    background: rgba(255, 255, 255, 0.04);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);

    transform: translateY(-2px);
}


/* =========================================================
   HERO FINANCIAL CARD
   ========================================================= */

.hero-visual {
    display: flex;

    justify-content: flex-end;
}

.finance-card {
    position: relative;

    width: min(100%, 450px);

    min-height: 290px;

    padding: 32px;

    border-radius: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(15px);
}

.finance-card::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    top: -100px;

    border: 1px solid rgba(225, 197, 108, 0.3);

    transform: rotate(45deg);
}

.finance-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -70px;

    border: 1px solid rgba(225, 197, 108, 0.18);

    transform: rotate(45deg);
}

.finance-card-top {
    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    color: var(--gold-light);

    font-weight: 800;

    letter-spacing: 1px;
}

.finance-chip {
    position: relative;

    z-index: 2;

    width: 48px;
    height: 35px;

    margin-top: 65px;

    border-radius: 7px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.17),
            rgba(255,255,255,0.04)
        );
}

.finance-card-bottom {
    position: absolute;

    left: 32px;
    right: 32px;
    bottom: 30px;

    z-index: 3;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.finance-card-bottom div {
    display: flex;

    flex-direction: column;
}

.finance-card-bottom small {
    color: #b9cbc4;

    font-size: 10px;

    letter-spacing: 2px;
}

.finance-card-bottom strong {
    margin-top: 7px;

    font-size: 23px;
}

.finance-card-bottom > span {
    color: var(--gold-light);

    font-size: 28px;
}


/* =========================================================
   TRUST FEATURES
   ========================================================= */

.trust-section {
    background: var(--white);

    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    padding: 38px 38px;

    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: none;
}

.trust-number {
    color: var(--gold);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;
}

.trust-item h3 {
    margin-top: 8px;

    color: var(--primary);

    font-size: 20px;
}

.trust-item p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 100px 0;
}

.light-section {
    background: var(--off-white);
}

.section-label {
    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;
}

.section h2 {
    color: var(--primary-dark);

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-top: 14px;
}

.section p {
    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   ABOUT
   ========================================================= */

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.two-column > div:first-child > p {
    max-width: 650px;

    margin-top: 20px;
}

.text-link {
    display: inline-block;

    margin-top: 25px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;
}

.text-link:hover {
    color: var(--primary-light);
}


/* ABOUT PANEL */

.about-panel {
    position: relative;

    overflow: hidden;

    padding: 55px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    box-shadow: var(--shadow);
}

.about-panel::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -110px;
    bottom: -130px;

    border: 1px solid rgba(225, 197, 108, 0.25);

    transform: rotate(45deg);
}

.about-symbol {
    color: var(--gold-light);

    font-size: 32px;

    margin-bottom: 15px;
}

.about-panel > span {
    color: var(--gold-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.about-panel h3 {
    position: relative;

    z-index: 2;

    margin-top: 14px;

    font-size: 29px;

    line-height: 1.3;
}

.about-panel p {
    position: relative;

    z-index: 2;

    margin-top: 18px;

    color: #d7e3de;
}


/* =========================================================
   SAVINGS / SERVICE CARDS
   ========================================================= */

.section-heading {
    max-width: 720px;

    margin-bottom: 48px;
}

.section-heading p {
    margin-top: 18px;
}

.cards-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    position: relative;

    min-height: 300px;

    padding: 35px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(7, 84, 63, 0.25);

    box-shadow: var(--shadow);
}

.service-number {
    color: var(--gold);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}

.service-card h3 {
    margin-top: 15px;

    color: var(--primary);

    font-size: 23px;
}

.service-card p {
    margin-top: 13px;

    font-size: 14px;
}

.service-card a {
    position: absolute;

    left: 35px;
    bottom: 30px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   FINANCING
   ========================================================= */

.financing-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.financing-panel {
    position: relative;

    overflow: hidden;

    padding: 55px;

    border-radius: 14px;

    background: var(--primary-dark);

    color: white;

    box-shadow: var(--shadow);
}

.financing-panel::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -130px;
    bottom: -150px;

    border: 1px solid rgba(225, 197, 108, 0.25);

    transform: rotate(45deg);
}

.financing-panel > span {
    position: relative;

    z-index: 2;

    color: var(--gold-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.financing-panel h2 {
    position: relative;

    z-index: 2;

    color: white;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.1;

    margin-top: 15px;
}

.financing-panel p {
    position: relative;

    z-index: 2;

    margin: 20px 0 30px;

    color: #d4e1dc;
}

.financing-text h2 {
    max-width: 560px;
}

.financing-text > p {
    max-width: 600px;

    margin-top: 20px;
}

.check-list {
    margin-top: 28px;
}

.check-list div {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 12px 0;

    color: var(--primary);

    font-weight: 700;

    font-size: 14px;
}

.check-list span {
    color: var(--gold);

    font-size: 18px;
}


/* =========================================================
   MEMBERSHIP CTA
   ========================================================= */

.membership-section {
    position: relative;

    overflow: hidden;

    padding: 105px 0;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: white;

    text-align: center;
}

.membership-section::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -220px;
    bottom: -260px;

    border: 1px solid rgba(225, 197, 108, 0.2);

    transform: rotate(45deg);
}

.membership-section::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -170px;
    top: -200px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transform: rotate(45deg);
}

.membership-content {
    position: relative;

    z-index: 2;

    max-width: 850px;

    text-align: center;
}

.membership-content > span {
    color: var(--gold-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;
}

.membership-content h2 {
    margin-top: 15px;

    color: white;

    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.membership-content p {
    max-width: 680px;

    margin: 20px auto 32px;

    color: #d6e3de;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    max-width: 900px;
}

.faq-item {
    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}

.faq-item h3 {
    color: var(--primary);

    font-size: 18px;
}

.faq-item p {
    margin-top: 8px;

    font-size: 14px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.contact-layout > div:first-child p {
    max-width: 600px;

    margin-top: 20px;
}

.contact-card {
    padding: 32px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.contact-card > div {
    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.contact-card > div:first-child {
    padding-top: 0;
}

.contact-card > div:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.contact-card strong {
    color: var(--primary);

    font-size: 14px;
}

.contact-card p {
    margin-top: 5px;

    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #061f18;

    color: white;

    padding-top: 65px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 55px;
}

.footer-logo .logo-mark {
    color: white;
}

.footer-logo .logo-text strong {
    color: white;
}

.footer-logo .logo-text span {
    color: #9fb3aa;
}

.footer-grid > div:first-child > p {
    max-width: 300px;

    margin-top: 18px;

    color: #9fb3aa;

    font-size: 14px;
}

.footer h4 {
    margin-bottom: 18px;

    font-size: 15px;
}

.footer-grid > div:not(:first-child) a {
    display: block;

    margin: 10px 0;

    color: #aebdb7;

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-grid > div:not(:first-child) a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);

    padding: 22px 0;
}

.footer-bottom p {
    margin: 0;

    color: #879a92;

    font-size: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 13px;
    }

    .hero-content {
        gap: 50px;
    }

    .hero h1 {
        font-size: 55px;
    }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

    .menu-button {
        display: inline-flex;
        position: relative;
        z-index: 1001;
    }

    .navigation {
        position: absolute;

        left: 0;
        right: 0;

        top: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 18px 4% 25px;

        background: white;

        border-bottom: 1px solid var(--border);

        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.08);

        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
    }

    .navigation.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navigation a {
        padding: 13px 0;

        border-bottom: 1px solid #edf0ee;
    }

    .navigation a:not(.login-button)::after {
        display: none;
    }

    .navigation .login-button {
        margin-top: 12px;

        text-align: center;

        border-bottom: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .two-column,
    .financing-layout,
    .contact-layout {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .top-bar-content {
        min-height: 34px;

        font-size: 10px;
    }

    .top-bar-content span:last-child {
        display: none;
    }

    .nav-container {
        min-height: 72px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
    }

    .logo-text strong {
        font-size: 13px;
    }

    .logo-text span {
        font-size: 11px;
    }

    .hero {
        padding: 75px 0 80px;
    }

    .hero h1 {
        font-size: 43px;

        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;

        text-align: center;
    }

    .finance-card {
        min-height: 270px;

        padding: 25px;
    }

    .finance-card-bottom {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .finance-card-bottom strong {
        font-size: 19px;
    }

    .section {
        padding: 75px 0;
    }

    .section h2 {
        font-size: 38px;
    }

    .about-panel,
    .financing-panel {
        padding: 35px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 275px;
    }

    .membership-section {
        padding: 80px 0;
    }

    .membership-content h2 {
        font-size: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}

/* ICCU BUSINESS CONTACT LINKS */
.contact-phone { margin-bottom: 12px; }
.contact-phone a { color: var(--primary); font-weight: 700; text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }
.contact-whatsapp { color: #fff; background: #168c4b; }
.contact-whatsapp:hover { color: #fff; background: #0f6f3b; }
.contact-call { color: var(--primary); border: 1px solid var(--primary); }
.contact-call:hover { color: var(--primary); background: #eef7f1; }
.footer-contact a { display: block; margin: 10px 0; color: #aebdb7; font-size: 14px; transition: color 0.2s ease; }
.footer-contact a:hover { color: white; }
