/*
    ============================================================
    SOFT SHIELD WEBSITE
    MAIN STYLESHEET
    ============================================================

    This stylesheet is deliberately written in a simple,
    section-by-section way.

    If you are new to CSS, start with the BRAND COLOURS section.
    Changing those variables changes the colours across the site.
*/


/* ============================================================
   1. BRAND COLOURS & BASIC SETTINGS
   ============================================================ */

:root {
    --purple: #4b12a5;
    --dark-purple: #2d086c;
    --pink: #e51b83;
    --light-pink: #fff0f8;

    --background: #fffafd;
    --white: #ffffff;
    --text: #292133;
    --muted-text: #746c80;
    --border: #eadff2;

    --container-width: 1120px;
}


/* ============================================================
   2. RESET / GENERAL STYLES
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
}


/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 250, 253, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    width: 170px;
    height: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    color: #504959;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--pink);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-size: 28px;
}


/* ============================================================
   4. BUTTONS
   ============================================================ */

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--purple);
    color: var(--white);
}

.button-secondary {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--purple);
}

.button-white {
    background: var(--white);
    color: var(--purple);
}


/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: radial-gradient(
        circle at 80% 45%,
        #f7dced,
        var(--background) 45%,
        var(--white)
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 70px 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-title,
.page-title,
.section-title h2,
.content-title,
.product-title,
.health-article h2,
.contact-title,
.cta-title,
.reading-title {
    color: var(--dark-purple);
    font-family: Georgia, serif;
    line-height: 1.1;
}

.hero-title {
    margin-bottom: 24px;
    font-size: clamp(50px, 6vw, 78px);
}

.hero-title span,
.page-title span,
.section-title h2 span,
.content-title span,
.product-title span,
.cta-title span {
    color: var(--pink);
}

.hero-description {
    max-width: 580px;
    color: var(--muted-text);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-product-image {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.hero-product-image::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: #f2d3e7;
}

.hero-product-image img {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    filter: drop-shadow(0 25px 25px rgba(40, 10, 80, 0.2));
    transition: transform 0.3s ease;
}

.hero-product-image img:hover {
    transform: scale(1.03);
}

.floating-label {
    position: absolute;
    right: 0;
    bottom: 50px;
    z-index: 3;

    padding: 15px 20px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(40, 10, 80, 0.14);
    color: var(--purple);
}

.floating-label strong,
.floating-label small {
    display: block;
}

.floating-label small {
    color: var(--muted-text);
}


/* ============================================================
   6. GENERAL SECTIONS
   ============================================================ */

.section {
    padding: 95px 0;
}

.section-white {
    background: var(--white);
}

.section-title {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 15px;
    font-size: 50px;
}

.section-title > p:last-child {
    color: var(--muted-text);
}


/* ============================================================
   7. BENEFIT CARDS
   ============================================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 45px;
}

.benefit-card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(50, 15, 100, 0.12);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 14px;
    background: var(--light-pink);
    color: var(--pink);
    font-size: 22px;
}

.benefit-card h3 {
    margin-bottom: 8px;
    color: var(--dark-purple);
}

.benefit-card p {
    color: var(--muted-text);
    font-size: 14px;
}


/* ============================================================
   8. ABOUT PREVIEW
   ============================================================ */

.about-section {
    background: #faf1fa;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.purple-panel {
    min-height: 410px;
    display: grid;
    place-items: center;
    border-radius: 35px;
    background: linear-gradient(
        145deg,
        var(--purple),
        #7b25c8,
        var(--pink)
    );
}

.about-card {
    width: 65%;
    padding: 38px;
    border-radius: 25px;
    background: var(--white);
    box-shadow: 0 20px 45px rgba(30, 0, 70, 0.2);
}

.about-card h3 {
    color: var(--dark-purple);
    font: 32px Georgia, serif;
}

.content-title {
    margin-bottom: 20px;
    font-size: 50px;
}

.content-text {
    margin-bottom: 15px;
    color: var(--muted-text);
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--pink);
    font-weight: 700;
}


/* ============================================================
   9. MENSTRUAL HEALTH PREVIEW
   ============================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 45px;
}

.article-card {
    position: relative;
    min-height: 280px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: #fffaff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(50, 15, 100, 0.12);
}

.article-number {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #dcc9e7;
    font: 40px Georgia, serif;
}

.article-category {
    color: var(--pink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.article-card h3 {
    max-width: 80%;
    margin: 20px 0 10px;
    color: var(--dark-purple);
    font-size: 23px;
}

.article-card p {
    color: var(--muted-text);
    font-size: 14px;
}

.article-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--pink);
    font-weight: 700;
}

.center-button {
    margin-top: 30px;
    text-align: center;
}


/* ============================================================
   10. CALL TO ACTION
   ============================================================ */

.cta-section {
    padding: 30px 0 90px;
    background: var(--white);
}

.cta-box {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 35px;
    background: linear-gradient(
        120deg,
        var(--dark-purple),
        var(--purple),
        #8d1bc0
    );
    color: var(--white);
}

.cta-title {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 50px;
}

.cta-title span {
    color: #ffc1e2;
}

.cta-box p:last-child {
    color: #eadff2;
}


/* ============================================================
   11. INNER PAGE HERO
   ============================================================ */

.page-hero {
    padding: 95px 0;
    background: linear-gradient(135deg, #f8e9ff, #fff0f8);
}

.page-title {
    max-width: 800px;
    margin-bottom: 18px;
    font-size: 60px;
}

.page-description {
    max-width: 650px;
    color: var(--muted-text);
    font-size: 17px;
}


/* ============================================================
   12. PRODUCT PAGE
   ============================================================ */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.product-photo {
    padding: 30px;
    border-radius: 30px;
    background: #faf7fc;
}

.product-photo img {
    border-radius: 15px;
}

.product-title {
    margin: 15px 0;
    font-size: 50px;
}

.product-description {
    color: var(--muted-text);
}

.product-features {
    padding: 0;
    margin: 25px 0;
    list-style: none;
}

.product-features li {
    margin: 10px 0;
    color: var(--dark-purple);
    font-weight: 700;
}

.product-note {
    padding: 16px;
    border-left: 3px solid var(--pink);
    border-radius: 8px;
    background: var(--light-pink);
    color: var(--muted-text);
    font-size: 13px;
}


/* ============================================================
   13. MENSTRUAL HEALTH PAGE
   ============================================================ */

.health-content {
    max-width: 850px;
}

.health-article {
    padding: 45px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.health-article h2 {
    margin: 12px 0 20px;
    font-size: 42px;
}

.health-article h3 {
    margin-top: 25px;
    color: var(--purple);
}

.health-article p,
.health-article li {
    color: var(--muted-text);
}

.health-article ul {
    padding-left: 20px;
}

.health-warning {
    margin-top: 30px;
    padding: 18px;
    border-radius: 10px;
    background: #f8f3fa;
    color: var(--muted-text);
}

.ad-banner {
    overflow: hidden;
    padding: 9px 0;
    background: var(--dark-purple);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.ad-banner span,
.ad-banner a {
    display: inline-block;
    animation: banner-roll 18s linear infinite;
}

.ad-banner a {
    color: var(--white);
}

@keyframes banner-roll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

.health-videos {
    padding: 50px 0 20px;
}

.health-videos h2 {
    margin: 12px 0 24px;
    color: var(--dark-purple);
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1.1;
}

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

.health-video-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.health-video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #1d1230;
}

.health-video-card-content {
    padding: 18px;
}

.health-video-card h3 {
    color: var(--dark-purple);
}

.health-video-card p,
.video-status {
    margin-top: 8px;
    color: var(--muted-text);
    font-size: 14px;
}


/* ============================================================
   14. FAQ PAGE
   ============================================================ */

.faq-list {
    max-width: 850px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: var(--dark-purple);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.faq-question span {
    color: var(--pink);
    font-size: 24px;
}

.faq-answer {
    display: none;
    padding: 0 30px 22px 0;
    color: var(--muted-text);
    font-size: 14px;
}

.faq-item.open .faq-answer {
    display: block;
}


/* ============================================================
   15. ABOUT PAGE
   ============================================================ */

.reading-content {
    max-width: 850px;
}

.reading-title {
    margin: 35px 0 12px;
    font-size: 40px;
}

.reading-content p {
    margin-bottom: 15px;
    color: var(--muted-text);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.promise-card {
    padding: 25px;
    border-radius: 20px;
    background: var(--light-pink);
}

.promise-card strong {
    color: var(--purple);
}

.promise-card p {
    margin-top: 8px;
    font-size: 14px;
}


/* ============================================================
   16. CONTACT PAGE
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 25px;
}

.contact-title {
    margin-bottom: 25px;
    font-size: 38px;
}

.contact-card p {
    margin: 18px 0;
    color: var(--muted-text);
}

.contact-card a:not(.button) {
    color: var(--pink);
}

.contact-form label {
    display: block;
    margin-top: 12px;
    color: var(--dark-purple);
    font-size: 14px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--pink);
}

.form-message {
    margin-top: 12px;
    color: var(--purple);
    font-weight: 700;
}

.pink-card {
    background: var(--light-pink);
}


/* ============================================================
   17. ADMIN PAGE
   ============================================================ */

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: var(--white);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: var(--light-pink);
    color: var(--dark-purple);
}

.admin-login {
    max-width: 500px;
}

.admin-login input {
    width: 100%;
    padding: 13px;
    margin: 10px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-content-form {
    max-width: 650px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.admin-content-form label {
    display: block;
    margin-top: 12px;
    color: var(--dark-purple);
    font-size: 14px;
    font-weight: 700;
}

.admin-content-form input:not([type="checkbox"]),
.admin-content-form textarea {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-content-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-content-form input[type="file"] {
    background: var(--light-pink);
}

.admin-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.admin-video-list {
    max-width: 650px;
    margin-top: 18px;
}

.admin-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.admin-video-item strong,
.admin-video-item span {
    display: block;
}

.admin-video-item span {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 12px;
}


/* ============================================================
   18. FOOTER
   ============================================================ */

.site-footer {
    padding: 55px 0 20px;
    background: #1d1230;
    color: #cfc4d9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    width: 175px;
    filter: brightness(0) invert(1);
}

.footer-heading {
    margin-bottom: 10px;
    color: var(--white);
}

.footer-grid a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    font-size: 13px;
}

.footer-text {
    margin-top: 10px;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}


/* ============================================================
   19. ANIMATIONS
   ============================================================ */

.fade-up {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   20. TABLET / MOBILE
   ============================================================ */

@media (max-width: 850px) {

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        background: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

    .main-navigation.show {
        display: flex;
    }

    .hero-content,
    .two-column-layout,
    .product-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-product-image {
        order: -1;
        min-height: 360px;
    }

    .hero-product-image::before {
        width: 280px;
        height: 280px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .health-video-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 45px 30px;
    }

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


/* ============================================================
   21. SMALL PHONES
   ============================================================ */

@media (max-width: 550px) {

    .brand-logo {
        width: 150px;
    }

    .hero-title,
    .page-title {
        font-size: 45px;
    }

    .section-title h2,
    .content-title,
    .product-title,
    .cta-title {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .health-videos h2 {
        font-size: 36px;
    }

    .admin-video-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

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

    .about-card {
        width: 78%;
        padding: 25px;
    }

    .section {
        padding: 70px 0;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

.admin-container {
    max-width: 1150px;
}

.admin-login {
    max-width: 520px;
    margin: 0 auto 70px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: white;
}

.admin-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.admin-section {
    margin-top: 45px;
}

.admin-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: white;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    color: var(--dark-purple);
    background: var(--light-pink);
}

.admin-table td {
    color: var(--gray);
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .admin-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-login {
        padding: 25px;
    }
}
