/*
Theme Name: HavenHer Theme
Theme URI: https://havenher.org
Author: HavenHer
Author URI: https://havenher.org
Description: A premium, highly polished custom WordPress theme for HavenHer.org, women's health advisory website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: havenher
Tags: custom-colors, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0F766E;
    --primary-hover: #0D5C56;
    --secondary: #14B8A6;
    --secondary-hover: #0F9F8E;
    --accent: #F472B6;
    --accent-hover: #E05A9E;
    --background: #F8FAFC;
    --cards: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --max-width: 1200px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.site-logo {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title span {
    color: var(--accent);
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-menu a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.btn-accent {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.hero-tag {
    background-color: var(--accent);
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(244, 114, 182, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   GRID CARD LAYOUTS
   ========================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--cards);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ==========================================
   ABOUT / EEAT SECTION
   ========================================== */
.about-section {
    background-color: #FFFFFF;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--background);
    border-left: 4px solid var(--secondary);
}

.feature-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================
   MEDICAL REVIEW SECTION
   ========================================== */
.reviewer-section {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.reviewer-card {
    background: linear-gradient(135deg, var(--cards) 0%, #F1F5F9 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 25px rgba(0,0,0,0.02);
    border: 1px solid var(--border);
}

.reviewer-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-shrink: 0;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-photo .doctor-avatar-fallback {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 700;
}

.reviewer-info h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.reviewer-badge {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.reviewer-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.reviewer-text {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-info-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-info-card p, .contact-info-card a {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-map-placeholder {
    height: 100%;
    min-height: 300px;
    background-color: #E2E8F0;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.contact-map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-widget h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-widget p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item span {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    margin-bottom: 0;
}

.footer-bottom-tagline {
    color: var(--secondary);
    font-weight: 600;
}

/* ==========================================
   FLOATING WHATSAPP
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #FFFFFF;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   STANDARD BLOG/ARCHIVE & SINGLE/PAGE STYLES
   ========================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.main-content {
    min-width: 0; /* flex/grid overflow fix */
}

.sidebar {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    align-self: start;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget li a {
    color: var(--text);
}

.widget li a:hover {
    color: var(--secondary);
}

.single-post-header {
    margin-bottom: 2.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-content {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.post-content h2, .post-content h3 {
    margin-top: 2rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-thumbnail {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.post-thumbnail img {
    width: 100%;
}

.disclaimer-box {
    background-color: rgba(15, 118, 110, 0.04);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 600;
}

.pagination .current, .pagination a:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ==========================================
   404 ERROR PAGE
   ========================================== */
.error-404-container {
    text-align: center;
    padding: 6rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumbs {
    padding: 1rem 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* ==========================================
   RESPONSIVE DESIGN INTERPOLATIONS
   ========================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero-title { font-size: 2.75rem; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .site-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        gap: 2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .site-navigation.active {
        left: 0;
    }
    .main-menu {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        text-align: center;
        gap: 1.5rem;
    }
    .main-menu a {
        font-size: 1.15rem;
        display: block;
    }
    .header-container {
        height: 70px;
    }
    .site-navigation {
        top: 70px;
        height: calc(100vh - 70px);
    }
    .hero-section {
        min-height: 600px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-desc {
        font-size: 1.1rem;
    }
    .reviewer-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .post-content {
        padding: 1.5rem;
    }
}
