
/* ============================================================
   IQRANIX — IBAADAH PAGE
   Midnight Navy + Champagne Gold
   ============================================================ */

:root {
    --navy: #050f20;
    --navy-light: #0b1b31;
    --navy-card: rgba(9, 21, 39, 0.88);
    --gold: #e8c987;
    --gold-light: #f6dfa8;
    --gold-dark: #a98245;
    --white: #f7f5ef;
    --muted: #aeb9c8;
    --border: rgba(232, 201, 135, 0.28);
}

/* ============================================================
   RESET
============================================================ */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--navy);
}

body {
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    color: var(--white);
    background: var(--navy);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
}

/* ============================================================
   FULL SCREEN BACKGROUND
============================================================ */

.ibaadah-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 20%,
            #142b46,
            #050f20 75%
        );
}

.ibaadah-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.48;
}

/* Dark navy overlay */

.ibaadah-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(3, 11, 24, 0.76) 0%,
            rgba(4, 14, 29, 0.86) 45%,
            rgba(3, 10, 22, 0.96) 100%
        );
}

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

.ibaadah-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    padding:
        max(34px, env(safe-area-inset-top))
        17px
        calc(115px + env(safe-area-inset-bottom));

    position: relative;
}

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

.ibaadah-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 30px;
}

.ibaadah-heading {
    min-width: 0;
}

.ibaadah-eyebrow {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    margin-bottom: 7px;
}

.ibaadah-heading h1 {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.ibaadah-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.premium-badge {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 5px;

    padding: 8px 12px;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #f8d77d,
        #d99b32
    );

    color: #38260d;
    font-size: 11px;
    font-weight: 800;

    box-shadow: 0 3px 15px rgba(219, 164, 63, 0.2);
}

/* ============================================================
   FEATURED CARDS
============================================================ */

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

.featured-card {
    position: relative;
    min-width: 0;
    height: 190px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #172b43,
        #071323
    );

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

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 0 20px rgba(232, 201, 135, 0.025);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.featured-card:active,
.service-card:active {
    transform: scale(0.97);
}

.card-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-image,
.service-card:hover .card-image {
    transform: scale(1.06);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        180deg,
        rgba(3, 9, 19, 0.08) 0%,
        rgba(3, 9, 19, 0.35) 35%,
        rgba(3, 9, 19, 0.94) 100%
    );
}

.featured-card-content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-icon {
    width: 48px;
    height: 48px;

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

    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #f0d3a5,
        #b88c61
    );

    color: #172033;
    font-size: 20px;

    margin-bottom: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.featured-card h2 {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.featured-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    line-height: 1.5;
}

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

.ibaadah-category {
    margin-bottom: 32px;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.category-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.category-symbol {
    font-size: 17px;
    filter: saturate(0.75);
}

/* ============================================================
   SERVICE CARD GRID
============================================================ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    position: relative;
    min-width: 0;
    height: 78px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    overflow: hidden;
    border-radius: 15px;

    background: linear-gradient(
        135deg,
        rgba(20, 35, 55, 0.96),
        rgba(6, 16, 30, 0.96)
    );

    border: 1px solid rgba(232, 201, 135, 0.17);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.service-card .card-image {
    opacity: 0.35;
}

.service-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(4, 13, 27, 0.35),
        rgba(4, 13, 27, 0.82)
    );
}

.service-icon {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    width: 43px;
    height: 43px;

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

    border-radius: 11px;

    background: linear-gradient(
        145deg,
        #e7c49b,
        #b68a65
    );

    color: #172033;
    font-size: 17px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-card strong {
    position: relative;
    z-index: 2;

    color: #f8f6f0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

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

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    min-height: 82px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;

    padding:
        9px
        8px
        max(10px, env(safe-area-inset-bottom));

    background: rgba(3, 12, 26, 0.96);

    border: 1px solid rgba(232, 201, 135, 0.45);
    border-bottom: none;

    border-radius: 25px 25px 0 0;

    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.3),
        0 -2px 12px rgba(232, 201, 135, 0.06);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    min-width: 0;
    min-height: 62px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #aeb9c8;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item i {
    font-size: 25px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--gold-light);
}

.nav-item.active i {
    filter: drop-shadow(
        0 0 9px rgba(232, 201, 135, 0.45)
    );
}

.nav-item:active {
    transform: scale(0.92);
}

/* ============================================================
   TABLET
============================================================ */

@media (min-width: 600px) {

    .ibaadah-page {
        padding-left: 28px;
        padding-right: 28px;
    }

    .featured-card {
        height: 230px;
    }

    .featured-card h2 {
        font-size: 22px;
    }

    .featured-card p {
        font-size: 13px;
    }

    .service-card {
        height: 88px;
        padding: 15px;
    }

    .service-card strong {
        font-size: 15px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 25px 25px 0 0;
    }
}

/* ============================================================
   LARGE DESKTOP
============================================================ */

@media (min-width: 850px) {

    .ibaadah-page {
        padding-top: 55px;
    }

    .featured-card {
        height: 260px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .service-card {
        height: 92px;
    }
}

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

@media (max-width: 360px) {

    .ibaadah-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .featured-grid {
        gap: 9px;
    }

    .featured-card {
        height: 170px;
        border-radius: 15px;
    }

    .featured-card-content {
        padding: 11px;
    }

    .featured-card h2 {
        font-size: 16px;
    }

    .featured-card p {
        font-size: 10px;
    }

    .service-grid {
        gap: 8px;
    }

    .service-card {
        padding: 9px;
        gap: 8px;
        height: 72px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .service-card strong {
        font-size: 11px;
    }

    .nav-item i {
        font-size: 22px;
    }

    .nav-item span {
        font-size: 10px;
    }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
