/*
 2Old2Wife — Premium Visual Style Sheet
 ==================================================
 Curated for mature women. Elegant, sophisticated, and empowering.
 Palette: Burgundy, Rose Gold, Warm Cream, Charcoal Slate
*/

:root {
    --bg-color: #FAF6F5; /* Warm luxury cream */
    --text-color: #2D2525; /* Soft charcoal */
    --text-muted: #6E6262; /* Grey-brown */
    --primary-color: #5E1914; /* Deep Burgundy */
    --secondary-color: #B76E79; /* Rose Gold */
    --accent-color: #8C221A; /* Warm Merlot red */
    --accent-light: #F6EEEE; /* Very soft blush pink */
    --white: #FFFFFF;
    --nav-bg: rgba(250, 246, 245, 0.95);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Inter', system-ui, sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(94, 25, 20, 0.04);
    --shadow-md: 0 12px 36px rgba(94, 25, 20, 0.08);
    --shadow-lg: 0 20px 48px rgba(94, 25, 20, 0.12);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    letter-spacing: 0.015em;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scroll progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 0%;
    z-index: 1002;
    transition: width 0.1s ease-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

/* Nav Styles */
nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(183, 110, 121, 0.15);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-link img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    padding: 2px;
    background: var(--white);
    transition: var(--transition-smooth);
}

.logo-link:hover img {
    transform: rotate(10deg) scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Layout Containers */
.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-wrapper {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.hero-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(94, 25, 20, 0.8) 0%, rgba(94, 25, 20, 0.4) 60%, transparent 100%);
    color: var(--white);
}

.hero-overlay h1 {
    color: var(--white);
    font-size: 3.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white) !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(140, 34, 26, 0.3);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 34, 26, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Article Cards & Grids */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 2.5rem 0;
}

.article-card {
    border: 1px solid rgba(183, 110, 121, 0.15);
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-card a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Featured Section on Homepage */
.featured-magazine-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin: 4rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(183, 110, 121, 0.1);
}

/* Image styling */
.img-luxury {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(183, 110, 121, 0.2);
}

.img-luxury:hover {
    transform: scale(1.02);
}

/* AI Summary BLUF style */
.ai-summary {
    background: var(--accent-light);
    border-left: 5px solid var(--accent-color);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--primary-color);
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    font-weight: 600;
}

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

/* Quiz Styles */
.quiz-container {
    background: var(--white);
    border: 1px solid rgba(183, 110, 121, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.quiz-progress-wrapper {
    margin-bottom: 2rem;
}

.quiz-progress-bar {
    height: 6px;
    background: var(--accent-light);
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
    font-weight: 600;
}

.quiz-question {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-question.active {
    display: block;
}

.quiz-question h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quiz-option {
    display: block;
    padding: 16px 24px;
    background: var(--bg-color);
    border: 2px solid rgba(183, 110, 121, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition-smooth);
    text-align: left;
}

.quiz-option:hover {
    background: var(--accent-light);
    border-color: var(--secondary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.quiz-option.selected {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.quiz-loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.quiz-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-light);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

.quiz-results {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-results-card {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.quiz-results-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.quiz-results-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: left;
}

/* E-E-A-T Author & Bio Blocks */
.author-bio {
    display: flex;
    gap: 24px;
    background: var(--white);
    border: 1px solid rgba(183, 110, 121, 0.15);
    border-left: 6px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 3.5rem 0;
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.author-info p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

.eeat-editorial-disclosure {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    background: var(--white);
    border: 1px solid rgba(183, 110, 121, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Store Module */
.store-module {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 100%);
    border: 2px dashed var(--secondary-color);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 3.5rem 0;
    box-shadow: var(--shadow-md);
}

.store-module img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.store-module h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.store-module p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

/* Newsletter Opt-in form */
.opt-in {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem 0;
    border: 1px solid rgba(183, 110, 121, 0.15);
    border-top: 6px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.opt-in h3 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.opt-in p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.opt-in form {
    display: flex;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
}

.opt-in input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(183, 110, 121, 0.3);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
}

.opt-in input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
}

.opt-in button {
    padding: 14px 28px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.opt-in button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(183, 110, 121, 0.15);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(183, 110, 121, 0.1);
    color: var(--text-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-color);
}

/* FAQ Accordion */
.faq-section {
    margin: 3.5rem 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(183, 110, 121, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--accent-light);
}

.faq-answer-content {
    padding: 24px;
    font-size: 0.98rem;
    color: var(--text-color);
    border-top: 1px solid rgba(183, 110, 121, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* AdSense Placements (24-32px margins) */
.ad-top-banner {
    margin: 28px 0;
    padding: 24px;
    text-align: center;
    background: rgba(183, 110, 121, 0.04);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(183, 110, 121, 0.2);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ad-mid-article {
    margin: 32px 0;
    padding: 24px;
    text-align: center;
    background: rgba(183, 110, 121, 0.04);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(183, 110, 121, 0.2);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-sticky-sidebar {
    margin: 28px 0;
    padding: 20px;
    text-align: center;
    background: rgba(183, 110, 121, 0.04);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(183, 110, 121, 0.2);
    min-height: 250px;
}

.ad-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #231C1C; /* Dark, luxurious cocoa black */
    color: #ECE5E4;
    padding: 4rem 24px 2rem 24px;
    margin-top: 5rem;
    border-top: 4px solid var(--secondary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(183, 110, 121, 0.2);
    padding-bottom: 6px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #C0B4B2;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: #C0B4B2;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.disclaimer {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(183, 110, 121, 0.2);
    text-align: center;
    font-size: 0.85rem;
    color: #A09290;
    line-height: 1.6;
}

.disclaimer p {
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsiveness */
@media (max-width: 900px) {
    h1 {
        font-size: 2.3rem;
    }
    
    .hero-overlay h1 {
        font-size: 2.4rem;
    }
    
    .featured-magazine-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 1.5rem;
    }
    
    .opt-in form {
        flex-direction: column;
    }
    
    .opt-in button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 8px 16px;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .quiz-container {
        padding: 2rem 1.5rem;
    }
    
    .quiz-results-card {
        padding: 1.8rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}
