/* ==========================================================================
   PCOS Ferticure — Premium Homepage Design (PF-120)
   Visual reference: Approved Women's Healthcare Prototype
   ========================================================================== */

:root {
    --hp-cream: #FAF4F0;
    --hp-ivory: #FDFBF8;
    --hp-plum: #5C1D2E;
    --hp-plum-deep: #441221;
    --hp-plum-light: #F8EBF0;
    --hp-blush: #F9E5EA;
    --hp-blush-subtle: #FDF3F5;
    --hp-text-dark: #241620;
    --hp-text-body: #4A3C46;
    --hp-text-muted: #73616D;
    --hp-border: #EEDEE4;
    --hp-border-card: #F2E5EB;
    --hp-card-bg: #FFFFFF;
    --hp-shadow-sm: 0 3px 12px rgba(92, 29, 46, 0.04);
    --hp-shadow-md: 0 8px 26px rgba(92, 29, 46, 0.07);
    --hp-shadow-hover: 0 14px 36px rgba(92, 29, 46, 0.12);
}

/* --------------------------------------------------------------------------
   Header Patient Welcome / Login Section (Compact & Attractive)
   -------------------------------------------------------------------------- */
.header-patient-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
}

.patient-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.18s ease;
}

.patient-login-link:hover {
    color: var(--hp-plum-deep);
}

.patient-login-link .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: var(--hp-plum);
}

.patient-register-link {
    color: var(--hp-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.patient-register-link:hover {
    color: var(--hp-plum-deep);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-title {
    font-family: var(--font-body), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1A284E;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 7.5px;
    font-weight: 600;
    color: #0284C7;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.brand-clinic-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hp-hero {
    background: linear-gradient(135deg, #FAF4F0 0%, #FAF3F0 45%, #FDF3F5 80%, #F8E3E7 100%);
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}

.hp-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.hp-hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hp-eyebrow-wrapper {
    margin-bottom: 16px;
}

.hp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--hp-plum);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.hp-eyebrow-bar {
    width: 48px;
    height: 3px;
    background: var(--hp-plum);
    border-radius: 2px;
}

.hp-hero-title {
    font-family: var(--font-heading), 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    line-height: 1.14;
    color: var(--hp-text-dark);
    margin: 0 0 18px;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.hp-title-highlight {
    color: var(--hp-plum);
    font-style: italic;
    font-weight: 600;
}

.hp-hero-description {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--hp-text-body);
    max-width: 500px;
    margin: 0 0 24px;
}

/* Doctor Credential Badge */
.hp-doctor-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(92, 29, 46, 0.03);
    backdrop-filter: blur(8px);
}

.hp-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hp-blush);
    color: var(--hp-plum);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hp-doc-icon svg {
    width: 20px;
    height: 20px;
}

.hp-doc-details {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.hp-doc-name {
    font-family: var(--font-heading), Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--hp-text-dark);
}

.hp-doc-cred {
    font-size: 11.5px;
    color: var(--hp-text-muted);
}

.hp-doc-exp {
    font-size: 11px;
    color: var(--hp-plum);
    font-weight: 500;
}

/* Consultation Buttons Grid */
.hp-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 580px;
}

.hp-cta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    min-height: 64px;
}

.hp-cta-primary {
    background: var(--hp-plum);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(92, 29, 46, 0.25);
    border: 1px solid var(--hp-plum);
}

.hp-cta-primary:hover {
    background: var(--hp-plum-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92, 29, 46, 0.32);
    color: #FFFFFF;
}

.hp-cta-secondary {
    background: #FFFFFF;
    color: var(--hp-plum);
    border: 1.5px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
}

.hp-cta-secondary:hover {
    background: var(--hp-blush-subtle);
    border-color: var(--hp-plum);
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-md);
    color: var(--hp-plum);
}

.hp-cta-icon-box {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hp-cta-icon-box svg {
    width: 24px;
    height: 24px;
}

.hp-cta-primary .hp-cta-icon-box svg {
    color: #FFFFFF;
}

.hp-cta-secondary .hp-cta-icon-box svg {
    color: var(--hp-plum);
}

.hp-cta-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hp-cta-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
}

.hp-cta-sub {
    font-size: 11px;
    opacity: 0.82;
    margin-top: 2px;
}

.hp-cta-secondary .hp-cta-sub {
    color: var(--hp-text-muted);
}

.hp-cta-arrow {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.hp-cta-card:hover .hp-cta-arrow {
    transform: translateX(3px);
}

/* Doctor Portrait Column */
.hp-hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hp-doc-portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
}

.hp-doctor-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 28px rgba(92, 29, 46, 0.12));
}

/* --------------------------------------------------------------------------
   4 Quick Pillars Strip (Directly Below Hero)
   -------------------------------------------------------------------------- */
.hp-pillars-section {
    background: #FAF4F0;
    padding: 0 0 28px;
}

.hp-pillars-card {
    background: #FFFFFF;
    border: 1px solid var(--hp-border-card);
    border-radius: 16px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    box-shadow: var(--hp-shadow-sm);
}

.hp-pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.hp-pillar-item:hover {
    background: var(--hp-blush-subtle);
    transform: translateY(-2px);
}

.hp-pillar-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--hp-plum);
}

.hp-pillar-icon svg {
    width: 26px;
    height: 26px;
}

.hp-pillar-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hp-text-dark);
    text-align: center;
    white-space: nowrap;
}

.hp-pillar-divider {
    width: 1px;
    height: 38px;
    background: var(--hp-border);
}

/* --------------------------------------------------------------------------
   "How We Can Help You" Section
   -------------------------------------------------------------------------- */
.hp-services-section {
    background: #FAF4F0;
    padding: 44px 0 54px;
}

.hp-section-header {
    text-align: center;
    margin-bottom: 34px;
}

.hp-section-title {
    font-family: var(--font-heading), 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    color: var(--hp-text-dark);
    font-weight: 500;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.hp-section-bar {
    width: 44px;
    height: 3px;
    background: var(--hp-plum);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.hp-section-subtitle {
    font-size: 15px;
    color: var(--hp-text-muted);
    max-width: 580px;
    margin: 0 auto;
}

.hp-treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hp-treatment-card {
    background: #FFFFFF;
    border: 1px solid var(--hp-border-card);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-treatment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-hover);
    border-color: #E2CDD5;
}

.hp-card-media {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hp-blush);
}

.hp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hp-treatment-card:hover .hp-card-img {
    transform: scale(1.04);
}

.hp-card-info {
    flex: 1;
    min-width: 0;
}

.hp-card-heading {
    font-family: var(--font-heading), 'Playfair Display', Georgia, serif;
    font-size: 17.5px;
    font-weight: 600;
    color: var(--hp-plum);
    margin: 0 0 4px;
    line-height: 1.25;
}

.hp-card-desc {
    font-size: 12.5px;
    color: var(--hp-text-muted);
    margin: 0;
    line-height: 1.45;
}

.hp-card-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hp-blush-subtle);
    border: 1px solid var(--hp-border);
    display: grid;
    place-items: center;
    color: var(--hp-plum);
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hp-treatment-card:hover .hp-card-btn {
    background: var(--hp-plum);
    color: #FFFFFF;
    border-color: var(--hp-plum);
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Safe Positioning (Non-overlapping)
   -------------------------------------------------------------------------- */
.floating-chat {
    bottom: 24px;
    right: 24px;
    z-index: 99;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
}

/* --------------------------------------------------------------------------
   Responsive Adaptations (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hp-hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
    }
    
    .hp-hero-image-col {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hp-cta-grid {
        max-width: 100%;
    }
    
    .hp-pillars-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hp-pillar-divider {
        display: none;
    }
    
    .hp-treatment-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .hp-hero {
        padding: 24px 0 20px;
    }
    
    .hp-hero-image-col {
        max-width: 260px;
    }
    
    .hp-cta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hp-doctor-badge {
        width: 100%;
    }
    
    .hp-card-media {
        width: 72px;
        height: 72px;
    }
    
    .hp-card-heading {
        font-size: 16px;
    }
    
    .hp-card-desc {
        font-size: 12px;
    }
    
    .floating-chat {
        bottom: 18px;
        right: 16px;
        padding: 10px;
    }
    
    /* Ensure content on mobile has breathing space above floating WhatsApp */
    .hp-services-section {
        padding-bottom: 60px;
    }
}
