/* Homepage layout cleanup for MenstrualGuide.xyz */

/* Header cleanup */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(124, 95, 153, 0.12);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(58, 45, 71, 0.08);
}

.header.hide {
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.header__logo:hover {
    color: var(--color-primary-dark);
}

.header__logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.header__nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
}

.header__nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 650;
    font-size: 0.94rem;
}

.header__nav a:hover,
.header__nav a.active,
.header__nav .dropdown:hover > a {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 240px;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid rgba(124, 95, 153, 0.12);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(64, 48, 83, 0.14);
    display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
}

.nav-lang-mobile {
    display: none;
}

.header__burger {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(124, 95, 153, 0.18);
    border-radius: 14px;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.header__burger span {
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
}

/* Homepage structure */
.home-main {
    background:
        radial-gradient(circle at top left, rgba(232, 155, 147, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(124, 95, 153, 0.14), transparent 30rem),
        var(--color-bg);
}

.home-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 4rem;
    overflow: hidden;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(124, 95, 153, 0.1);
    color: var(--color-primary);
    font-weight: 750;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.home-hero h1 {
    max-width: 820px;
    font-size: clamp(2.55rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: #241f2a;
    margin-bottom: 1.35rem;
}

.home-hero__lead {
    max-width: 660px;
    color: var(--color-text-light);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-soft {
    background: #fff;
    color: var(--color-primary);
    border-color: rgba(124, 95, 153, 0.22);
}

.home-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 680px;
}

.trust-pill {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(124, 95, 153, 0.12);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: 0 12px 30px rgba(86, 64, 104, 0.06);
}

.home-hero__visual {
    position: relative;
}

.visual-card {
    position: relative;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: 34px;
    background: linear-gradient(145deg, #ffffff 0%, #fff7f6 48%, #f8f4fc 100%);
    border: 1px solid rgba(124, 95, 153, 0.12);
    box-shadow: 0 30px 80px rgba(64, 48, 83, 0.16);
}

.visual-card::before {
    content: '';
    position: absolute;
    inset: auto 2rem -1.2rem 2rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(124, 95, 153, 0.18);
    filter: blur(20px);
    z-index: -1;
}

.visual-card img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: contain;
}

.visual-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #fff;
    color: var(--color-text-light);
    box-shadow: 0 12px 30px rgba(64, 48, 83, 0.08);
}

.visual-note strong {
    display: block;
    color: var(--color-primary);
}

.section {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section--soft {
    background: rgba(249, 245, 242, 0.78);
}

.section__intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section__kicker {
    color: var(--color-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.section__intro h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: #251f2d;
}

.section__intro p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.quick-card,
.topic-card,
.path-card,
.safety-card {
    background: #fff;
    border: 1px solid rgba(124, 95, 153, 0.11);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(64, 48, 83, 0.07);
}

.quick-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    min-height: 120px;
}

.quick-card:hover {
    transform: translateY(-5px);
    color: var(--color-text);
    box-shadow: 0 24px 55px rgba(64, 48, 83, 0.12);
}

.quick-card__icon,
.topic-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 95, 153, 0.1);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.quick-card h3,
.topic-card h3,
.path-card h3 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.quick-card p,
.topic-card p,
.path-card p {
    margin-bottom: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.topic-card {
    padding: 1.45rem;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-7px);
    border-color: rgba(124, 95, 153, 0.28);
    box-shadow: 0 26px 65px rgba(64, 48, 83, 0.13);
}

.topic-card__icon {
    margin-bottom: 1rem;
}

.topic-card__link {
    margin-top: auto;
    padding-top: 1.2rem;
    font-weight: 750;
    color: var(--color-primary);
}

.path-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.path-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.path-card--featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, #9a7cb5 100%);
    color: #fff;
}

.path-card--featured h2,
.path-card--featured p {
    color: #fff;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.check-list li {
    display: flex;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.check-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.path-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.path-links a {
    padding: 1.1rem;
    border-radius: 18px;
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 700;
}

.path-links a:hover {
    background: rgba(124, 95, 153, 0.1);
    color: var(--color-primary);
}

.safety-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    border-left: 6px solid var(--color-secondary);
}

.safety-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(232, 155, 147, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.cta-band {
    border-radius: 34px;
    padding: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(135deg, #2e2538 0%, #7c5f99 100%);
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 30px 80px rgba(64, 48, 83, 0.18);
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.cta-band p {
    opacity: 0.88;
    margin-bottom: 0;
}

.cta-band .btn {
    background: #fff;
    color: var(--color-primary);
}

@media (max-width: 1080px) {
    .header__nav .nav-list {
        gap: 0.1rem;
    }

    .header__nav a {
        padding-inline: 0.65rem;
        font-size: 0.9rem;
    }

    .home-hero__grid,
    .path-grid,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        max-width: 560px;
    }

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

@media (max-width: 992px) {
    .header__burger {
        display: inline-flex;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(30, 24, 38, 0.34);
        z-index: 998;
    }

    body.menu-open .mobile-menu-overlay {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999;
        width: min(88vw, 380px);
        height: 100vh;
        padding: 6rem 1.25rem 2rem;
        background: #fff;
        transform: translateX(105%);
        transition: transform 0.28s ease;
        box-shadow: -20px 0 60px rgba(64, 48, 83, 0.16);
        overflow-y: auto;
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__nav .nav-list {
        display: grid;
        gap: 0.35rem;
    }

    .header__nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 0.95rem 1rem;
        border-radius: 14px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0.25rem 0 0.65rem 0.75rem;
        box-shadow: none;
        background: var(--color-bg-soft);
        border-radius: 14px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 720px) {
    .home-hero {
        padding-top: 3rem;
    }

    .home-hero__trust,
    .quick-grid,
    .topic-grid,
    .path-links {
        grid-template-columns: 1fr;
    }

    .quick-card,
    .safety-card {
        grid-template-columns: 1fr;
    }

    .home-hero__actions .btn,
    .cta-band .btn {
        width: 100%;
    }

    .header__logo span {
        font-size: 0.98rem;
    }
}
