/* ==================================================
   QROQUENIANS LANDING PAGE
   Independent styling for index.html
   ================================================== */

:root {
    --landing-navy: #102D4E;
    --landing-navy-dark: #091D33;
    --landing-green: #245B91;
    --landing-muted: #718096;
    --landing-border: #E5EAF1;
}


/* HEADER */

.portal-selection-page .landing-header {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 17px 6%;
    background: #ffffff;
    border-bottom: 1px solid #e9edf3;
    box-shadow: 0 3px 15px rgba(16, 45, 78, 0.04);
}

.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--landing-navy);
}

.landing-brand-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    background: transparent;
    border-radius: 50%;
    box-shadow: none;
    flex-shrink: 0;
}

.landing-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .landing-brand-icon {
        width: 44px;
        height: 44px;
    }
}

.landing-brand-text h1 {
    margin: 0;
    color: var(--landing-navy);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.landing-brand-text p {
    margin: 2px 0 0;
    color: #78879a;
    font-size: 11px;
}

.header-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #e5eee9;
    border-radius: 30px;
    background: #f5faf7;
    color: #42675b;
    font-size: 11px;
    font-weight: 700;
}

.status-dot,
.decoration-status {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #16a574;
}


/* MAIN CONTAINER */

.portal-selection-page .landing-main {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 35px;
}


/* HERO SECTION */

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    min-height: 365px;
    margin-top: 38px;
    padding: 48px 55px;
    overflow: hidden;
    border: 1px solid #dfe9f3;
    border-radius: 23px;
    background:
        radial-gradient(circle at 85% 15%, #d7e9f8 0, transparent 38%),
        linear-gradient(120deg, #ffffff, #edf5fc);
    box-shadow: 0 12px 35px rgba(16, 45, 78, 0.06);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 19px;
    color: var(--landing-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--landing-green);
}

.hero-content h2 {
    margin: 0;
    color: var(--landing-navy);
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.7px;
}

.hero-content h2 span {
    color: var(--landing-green);
}

.hero-description {
    max-width: 580px;
    margin: 19px 0 0;
    color: #65768b;
    font-size: 14px;
    line-height: 1.9;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 17px 22px;
    margin-top: 26px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #435a71;
    font-size: 11px;
    font-weight: 700;
}

.highlight-check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #e0f2eb;
    color: #08705b;
    font-size: 12px;
    font-weight: 900;
}


/* HERO DECORATION */

.hero-decoration {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 250px;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 250px;
    height: 250px;
    border: 1px solid rgba(8, 112, 91, 0.14);
}

.circle-two {
    width: 195px;
    height: 195px;
    border: 1px dashed rgba(8, 112, 91, 0.22);
}

.decoration-card {
    position: relative;
    z-index: 1;
    width: 225px;
    padding: 25px;
    border: 1px solid #e1eaf0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 35px rgba(16, 45, 78, 0.12);
    transform: rotate(-3deg);
}

.decoration-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #e3f3ee;
    color: #08705b;
    font-size: 27px;
}

.decoration-title {
    display: block;
    color: var(--landing-navy);
    font-size: 17px;
    font-weight: 800;
}

.decoration-subtitle {
    display: block;
    margin-top: 4px;
    color: #8291a4;
    font-size: 10px;
}

.decoration-divider {
    height: 1px;
    margin: 17px 0;
    background: #e9edf2;
}

.decoration-lines {
    display: grid;
    gap: 8px;
}

.decoration-lines span {
    height: 7px;
    border-radius: 5px;
    background: #edf1f6;
}

.decoration-lines span:nth-child(1) {
    width: 100%;
}

.decoration-lines span:nth-child(2) {
    width: 75%;
}

.decoration-lines span:nth-child(3) {
    width: 88%;
}

.decoration-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #587264;
    font-size: 9px;
    font-weight: 700;
}


/* PORTAL SECTION */

.portal-selection-page .portal-section {
    margin-top: 48px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.section-eyebrow {
    margin: 0 0 7px;
    color: var(--landing-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.section-heading h2 {
    margin: 0;
    color: var(--landing-navy);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.section-heading > div > p:last-child {
    margin: 6px 0 0;
    color: var(--landing-muted);
    font-size: 12px;
}

.portal-count {
    padding: 8px 13px;
    border: 1px solid #e1e9f0;
    border-radius: 7px;
    background: #ffffff;
    color: #6b7b8e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* PORTAL GRID */

.landing-portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 21px;
}


/* PORTAL CARDS */

.landing-portal-card {
    --card-accent: #1764d8;
    --card-soft: #edf4ff;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 315px;
    padding: 26px 24px 23px;
    border: 1px solid var(--landing-border);
    border-top: 4px solid var(--card-accent);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(16, 45, 78, 0.045);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.landing-portal-card:hover {
    transform: translateY(-5px);
    border-color: #d7e1ed;
    box-shadow: 0 14px 30px rgba(16, 45, 78, 0.10);
}

.admin-card,
.teacher-card,
.student-card {
    --card-accent: #102D4E;
    --card-soft: #EAF1F8;
}


/* CARD TOP */

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.landing-portal-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: var(--card-soft);
    font-size: 25px;
}

.card-label {
    color: var(--card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: right;
}


/* CARD CONTENT */

.landing-portal-card h3 {
    margin: 0 0 11px;
    color: var(--landing-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.landing-portal-card > p {
    flex: 1;
    margin: 0 0 22px;
    color: #748195;
    font-size: 12px;
    line-height: 1.9;
}


/* CARD BUTTONS */

.landing-portal-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid var(--card-accent);
    border-radius: 9px;
    background: var(--card-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.landing-portal-button:hover {
    background: var(--landing-navy);
    border-color: var(--landing-navy);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(16, 45, 78, 0.15);
    transform: translateY(-1px);
}

.button-arrow {
    font-size: 19px;
    line-height: 1;
}

.portal-button-group {
    display: grid;
    gap: 9px;
}

.student-card .secondary-button {
    border-color: #dcd3f1;
    background: #ffffff;
    color: #7138d4;
}

.student-card .secondary-button:hover {
    border-color: var(--landing-navy);
    background: var(--landing-navy);
    color: #ffffff;
}


/* FOOTER */

.portal-selection-page .landing-footer {
    width: 100%;
    margin: 45px 0 0;
    padding: 0 0 25px;
    color: #77869a;
    font-size: 11px;
    text-align: center;
}

.footer-divider {
    height: 1px;
    margin-bottom: 19px;
    background: #e3e9f0;
}

.landing-footer p {
    margin: 0;
}

.landing-footer strong {
    color: var(--landing-navy);
}

.footer-separator {
    margin: 0 6px;
    color: #b0bac7;
}

.footer-caption {
    display: block;
    margin-top: 6px;
    color: #98a4b3;
    font-size: 10px;
}


/* ACCESSIBILITY */

.landing-portal-button:focus-visible,
.landing-brand:focus-visible {
    outline: 3px solid rgba(23, 100, 216, 0.35);
    outline-offset: 4px;
}


/* TABLETS */

@media (max-width: 950px) {

    .portal-selection-page .landing-main {
        padding: 0 25px;
    }

    .landing-hero {
        grid-template-columns: 1fr 0.65fr;
        gap: 15px;
        padding: 38px 35px;
    }

    .hero-content h2 {
        font-size: 37px;
    }

    .hero-highlights {
        gap: 12px;
    }

    .landing-portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-card {
        grid-column: 1 / -1;
    }

    .student-card .portal-button-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .portal-selection-page .landing-header {
        padding: 14px 18px;
    }

    .landing-brand-icon {
        width: 43px;
        height: 43px;
        font-size: 16px;
    }

    .landing-brand-text h1 {
        font-size: 18px;
    }

    .landing-brand-text p {
        font-size: 9px;
    }

    .header-label {
        display: none;
    }

    .portal-selection-page .landing-main {
        padding: 0 16px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 20px;
        padding: 32px 23px;
        border-radius: 17px;
    }

    .hero-content h2 {
        font-size: 35px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-highlights {
        display: grid;
        gap: 11px;
    }

    .hero-decoration {
        display: none;
    }

    .portal-selection-page .portal-section {
        margin-top: 35px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .portal-count {
        display: none;
    }

    .landing-portal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .landing-portal-card {
        min-height: auto;
        padding: 23px 21px;
    }

    .student-card {
        grid-column: auto;
    }

    .student-card .portal-button-group {
        grid-template-columns: 1fr;
    }

    .portal-selection-page .landing-footer {
        margin-top: 35px;
    }

}


/* SMALL MOBILE */

@media (max-width: 380px) {

    .hero-content h2 {
        font-size: 30px;
    }

    .landing-brand-text p {
        max-width: 205px;
    }

    .landing-portal-card h3 {
        font-size: 18px;
    }

}


/* REDUCED MOTION */

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

    .landing-portal-card,
    .landing-portal-button {
        transition: none;
    }

    .landing-portal-card:hover,
    .landing-portal-button:hover {
        transform: none;
    }

}