/* =========================================
   WOMEN'S HEALTH / HEALTHCARE WEBSITE CSS
========================================= */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');


/* =========================================
   Global Styles
========================================= */

:root {
    --primary: #a64d79;
    --primary-dark: #7f365b;
    --secondary: #f8e8f0;
    --accent: #e6a4bd;
    --soft-pink: #fff5f8;
    --soft-purple: #f6f1fa;
    --dark: #2f2530;
    --text: #5f555e;
    --white: #ffffff;
    --border: #eadde4;
    --focus: #7f365b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   Container
========================================= */

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================
   Header & Navigation
========================================= */

.header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary);
    left: 0;
    bottom: 3px;
}


/* =========================================
   Hero Section
========================================= */

.hero {
    position: relative;
    padding: 125px 0;
    text-align: center;
    background:
        radial-gradient(circle at top left, #f7dce7 0%, transparent 35%),
        linear-gradient(135deg, #fff7fa 0%, #f8f2fb 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(230, 164, 189, 0.18);
    right: -120px;
    bottom: -180px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(166, 77, 121, 0.18);
    left: -80px;
    top: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    margin-bottom: 18px;
    color: var(--primary-dark);
}

.hero h2 {
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 1.08rem;
}


/* =========================================
   Buttons
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid var(--primary);
    cursor: pointer;
    background: var(--primary);
    color: var(--white);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 30px;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(127, 54, 91, 0.2);
}

.btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}


/* =========================================
   Sections
========================================= */

.section {
    padding: 95px 0;
}

.light-bg {
    background: linear-gradient(
        135deg,
        var(--soft-pink),
        var(--soft-purple)
    );
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 18px auto 0;
    border-radius: 10px;
}

.section-heading p {
    margin-top: 20px;
}


/* =========================================
   About Section
========================================= */

.about-content {
    max-width: 900px;
    margin: auto;
    padding: 35px;
    text-align: center;
    font-size: 1.06rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(87, 51, 70, 0.06);
}


/* =========================================
   Service Cards
========================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    position: relative;
    padding: 35px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--soft-pink);
    border-radius: 50%;
    top: -35px;
    right: -25px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(87, 51, 70, 0.1);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 1.7rem;
    border-radius: 50%;
}


/* =========================================
   Benefits
========================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit {
    padding: 30px 20px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(87, 51, 70, 0.08);
}

.benefit h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
}


/* =========================================
   Contact Information
========================================= */

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.contact-info div {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: 0.3s ease;
}

.contact-info div:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(87, 51, 70, 0.08);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}


/* =========================================
   Forms
========================================= */

.contact-form {
    max-width: 750px;
    margin: 35px auto 0;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(87, 51, 70, 0.08);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid #d8c7d0;
    border-radius: 10px;
    background: #fffdfd;
    color: var(--dark);
    font-size: 1rem;
    font-family: inherit;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a7c84;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--accent);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(166, 77, 121, 0.13);
}


/* =========================================
   Contact Page
========================================= */

.page-banner {
    padding: 100px 0;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(255, 245, 248, 0.96),
            rgba(246, 241, 250, 0.96)
        );
}

.page-banner h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-details {
    padding: 35px;
    background: var(--soft-pink);
    border-radius: 22px;
}

.contact-details h2 {
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.contact-details p {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-details p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


/* =========================================
   Privacy Policy & Terms
========================================= */

.policy-content {
    max-width: 900px;
    margin: auto;
    padding: 45px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.policy-content h2 {
    color: var(--primary-dark);
    margin-top: 38px;
    margin-bottom: 14px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 18px;
}


/* =========================================
   Footer
========================================= */

.footer {
    background: #3b2834;
    color: #f9f4f6;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 55px;
    padding-bottom: 50px;
}

.footer h3 {
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    margin-bottom: 18px;
}

.footer p {
    color: #eadfe4;
    margin-bottom: 12px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #eadfe4;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding: 22px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* =========================================
   Accessibility
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}


/* =========================================
   Smooth Animation
========================================= */

.card,
.benefit,
.contact-info div,
.contact-form,
.about-content {
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   Tablet Responsive
========================================= */

@media (max-width: 950px) {

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   Mobile Responsive
========================================= */

@media (max-width: 700px) {

    .navbar {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 85px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .section {
        padding: 70px 0;
    }

    .card-grid,
    .benefit-grid,
    .contact-info,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        padding: 75px 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contact-details {
        padding: 25px;
    }

    .policy-content {
        padding: 28px 20px;
    }

}