/* ============================================
   Shared Stylesheet — Dr. Victoire Kotur de Castelbajac
   ============================================ */

:root {
    --bg: #ffffff;
    --white: #ffffff;
    --surface: #ffffff;
    --surface-warm: #F5F0EB;
    --blush: #E8D5D0;
    --border: #e8e2da;
    --border-light: #f0ece6;
    --text: #1B3A4B;
    --text-body: #2D2D2D;
    --text-muted: #6B6B6B;
    --accent: #2A7F7F;
    --accent-dark: #1F5F5F;
    --accent-light: #A3B5A6;
    --rose: #c4918a;
    --rose-light: #E8D5D0;
    --sage: #A3B5A6;
    --sage-light: #dce8de;
    --cream: #F5F0EB;
    --gold: #C4A882;
    --navy: #1B3A4B;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: none;
    box-shadow: 0 1px 8px rgba(27, 58, 75, 0.04);
}

nav.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 20px rgba(27, 58, 75, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.logo-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

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

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-links .btn-nav {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links .btn-nav:hover {
    background: var(--accent-dark);
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ---- Page Header ---- */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(170deg, var(--white) 0%, var(--surface-warm) 100%);
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    max-width: 780px;
    margin: 0 auto;
    padding: 6.5rem 2rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ---- Article Page Header ---- */
.article-page-header {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
}

.article-page-header h1 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

/* ---- Blog Content ---- */
.blog-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ---- Article (single page) ---- */
article {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-light);
}

article:last-child {
    border-bottom: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-tag.menopause { background: var(--rose-light); color: var(--rose); }
.article-tag.endometriosis { background: var(--sage-light); color: var(--sage); }
.article-tag.screening { background: var(--cream); color: var(--accent); }
.article-tag.pcos { background: #e8e0f0; color: #7c6891; }
.article-tag.breast { background: #fde8d8; color: #a67c5b; }
.article-tag.fertility { background: #dce8de; color: #5a7d60; }
.article-tag.contraception { background: #e0edf0; color: #4a7a8a; }
.article-tag.fibroids { background: #f0e4e8; color: #8a5a6a; }
.article-tag.sexual-health { background: #e8e4f0; color: #6a5a8a; }
.article-tag.wellness { background: var(--cream); color: var(--accent); }
.article-tag.hrt { background: var(--rose-light); color: #8a6a5a; }
.article-tag.functional-medicine { background: #1B3A4B; color: #fff; }
.article-tag.community { background: var(--sage-light); color: #4a7a5a; }
.article-tag.ovarian-cancer { background: #d8e8ef; color: #4a6e82; }
.article-tag.womens-health { background: #f5edd8; color: #8a7340; }

.article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}

article h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

article h3 {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

article p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

article ul, article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-body);
}

article li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

article strong {
    color: var(--text);
    font-weight: 600;
}

.article-callout {
    background: var(--surface-warm);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.article-callout p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
    font-style: italic;
}

.article-cta {
    background: var(--surface-warm);
    border: none;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(27, 58, 75, 0.06);
}

.article-cta p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 0;
    font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--sans);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--accent-light);
}

/* ---- Blog Listing Page ---- */
.blog-listing {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.blog-listing-card {
    display: block;
    text-decoration: none;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}

.blog-listing-card:first-child {
    padding-top: 0;
}

.blog-listing-card:last-child {
    border-bottom: none;
}

.blog-listing-card:hover {
    opacity: 0.85;
}

.blog-listing-card:hover h2 {
    color: var(--accent);
}

.blog-listing-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-listing-card h2 {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.blog-listing-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ---- Related Articles ---- */
.related-articles {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.related-articles h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.related-card {
    display: block;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 58, 75, 0.1);
    border-color: var(--border);
}

.related-card .article-tag {
    margin-bottom: 0.75rem;
}

.related-card h3 {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-card .article-date {
    font-size: 0.75rem;
}

/* ---- Back Link ---- */
.back-home {
    text-align: center;
    padding: 2rem;
}

.back-home a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-home a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover { color: #fff; }

/* ---- Language Switcher ---- */
.lang-switch a {
    background: var(--surface-warm);
    color: var(--navy);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: all 0.2s;
}
.lang-switch a:hover {
    background: var(--navy);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border: none;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        box-shadow: 0 8px 30px rgba(27, 58, 75, 0.1);
    }
    .page-header { padding: 8rem 1.25rem 3rem; }
    .blog-content { padding: 3rem 1.25rem 4rem; }
    .blog-listing { padding: 3rem 1.25rem 4rem; }
    .article-page-header { padding: 1.25rem 1.25rem 0; }
    .breadcrumb { padding: 6.5rem 1.25rem 0; }
    .article-cta { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; gap: 1rem; }
    .related-articles { padding: 0 1.25rem 3rem; }
}
