/* ============================================
   NUVIVE COSMETICS — BLOG STYLES
   Shared CSS for blog index + individual posts
   ============================================ */

/* --- Variables & Reset --- */
:root {
    --primary: #7A8450;
    --primary-dark: #5e6640;
    --primary-light: #939b6a;
    --secondary: #2C3E50;
    --secondary-light: #3d5166;
    --accent: #F5F0EB;
    --accent-dark: #e8dfd6;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #767676;
    --gold: #C5A47E;
    --gold-light: #d4ba9a;
    --border: #E8E4DF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--secondary);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Skip Link --- */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary); color: #fff;
    padding: 8px 16px; z-index: 10000; font-size: 14px;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 16px 40px; border-radius: 50px;
    font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    transition: var(--transition); border: none; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(122,132,80,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 0.75rem; letter-spacing: 1.5px; }

/* --- Navigation (blog pages start scrolled) --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 0; transition: var(--transition);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar.scrolled { padding: 12px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; z-index: 1001; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--secondary); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--primary); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { padding: 10px 28px; }
.nav-links .btn-primary { color: var(--white) !important; }
.nav-links .btn-primary::after { display: none; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    z-index: 1001; background: none; border: none; padding: 5px;
}
.nav-toggle span { display: block; width: 28px; height: 2px; background: var(--secondary); transition: var(--transition); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 120px 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--border); }
.breadcrumb [aria-current="page"] { color: var(--text-light); margin: 0; }

/* --- Blog Index Page --- */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--accent);
}
.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.blog-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 80px 0;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.blog-card-image {
    height: 220px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-category {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary); margin-bottom: 12px;
}
.blog-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card-content h2 a { color: var(--secondary); }
.blog-card-content h2 a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.blog-card-link {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.blog-card-link:hover { color: var(--primary-dark); gap: 10px; }

/* --- Blog Post Page --- */
.blog-post { padding-bottom: 80px; }

.post-header {
    text-align: center;
    padding: 20px 0 40px;
    max-width: 760px;
    margin: 0 auto;
}
.post-category {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(122, 132, 80, 0.08);
    border-radius: 50px;
}
.post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 20px;
    line-height: 1.25;
}
.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

/* --- Post Content --- */
.post-content {
    max-width: 720px;
    margin: 0 auto;
}
.post-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.85;
}
.post-intro {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: var(--secondary);
    font-weight: 400;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 32px !important;
}
.post-content h2 {
    font-size: 1.6rem;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.post-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
}
.post-content ul, .post-content ol {
    margin: 16px 0 24px 24px;
    list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 8px;
}
.post-content strong { color: var(--secondary); }
.post-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

/* --- Post CTA Box --- */
.post-cta {
    text-align: center;
    padding: 48px 40px;
    margin: 48px 0;
    background: var(--accent);
    border-radius: var(--radius-md);
}
.post-cta h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}
.post-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* --- Post FAQ Section --- */
.post-faq {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.post-faq h2 {
    text-align: center;
    margin-bottom: 32px;
    border: none;
    padding: 0;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-light); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 500;
    gap: 16px;
}
.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-toggle svg {
    width: 100%;
    height: 100%;
    fill: var(--primary);
}
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}
.faq-item.active .faq-answer { max-height: 400px; }

/* --- Related Posts --- */
.related-posts {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.related-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
}
.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.related-category {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}
.related-card h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--secondary);
}

/* --- Footer (matches main site) --- */
.footer { background: var(--secondary); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-style: italic; color: var(--white); margin-bottom: 16px; display: block; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.footer h4 { font-size: 0.8rem; font-family: 'Lato', sans-serif; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links a { display: block; color: rgba(255,255,255,0.55); font-size: 0.9rem; padding: 6px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-contact-item span, .footer-contact-item a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.55); }
.footer-social a:hover svg { fill: var(--white); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
        height: 100vh; background: var(--white); flex-direction: column;
        justify-content: center; gap: 24px; padding: 60px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--secondary) !important; font-size: 0.9rem; }
    .nav-toggle { display: flex; }

    .blog-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .post-header h1 { font-size: 1.6rem; }
    .breadcrumb { padding-top: 100px; }
}

@media (max-width: 480px) {
    .post-cta { padding: 32px 24px; }
    .post-meta { flex-direction: column; gap: 8px; }
}

/* --- Print --- */
@media print {
    .navbar, .footer, .post-cta, .related-posts, .skip-link { display: none !important; }
    .breadcrumb { padding-top: 20px; }
    body { font-size: 12pt; }
}
