/* ===== COMMON STYLES FOR ALL PAGES ===== */
/* This file contains shared styles used across all Beflore pages */

/* ===== CSS VARIABLES ===== */
:root {
    /* Refined color palette - botanical editorial */
    --bg-warm: #FAF7F2;
    --bg-cream: #F5F0E8;
    --bg-card: #FFFFFF;
    --green-deep: #1B4332;
    --green-primary: #2D5A45;
    --green-medium: #52796F;
    --green-soft: #84A98C;
    --green-light: #A7C4A0;
    --green-pale: #CAD9C5;
    --green-mist: #E8F0E5;
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #6B6B6B;
    --border-soft: rgba(27, 67, 50, 0.08);
    --border-warm: rgba(27, 67, 50, 0.12);
    --shadow-soft: 0 2px 20px rgba(27, 67, 50, 0.06);
    --shadow-medium: 0 8px 40px rgba(27, 67, 50, 0.1);
    --shadow-large: 0 20px 60px rgba(27, 67, 50, 0.15);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.025;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.25;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--green-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    background: var(--green-deep);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.2);
}

.nav-cta:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.25);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-medium);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-soft);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Desktop navigation */
@media (min-width: 768px) {
    nav {
        padding: 0.75rem 2rem;
    }

    .logo-img {
        height: 160px;
    }

    .nav-links {
        display: flex;
    }

    .nav-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ===== COMMON ELEMENTS ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: gap 0.2s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--green-deep);
    color: white;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.25);
}

.btn-primary:hover {
    background: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-dark);
    border: 2px solid var(--border-warm);
}

.btn-secondary:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

/* ===== CTA BOX (used in blog articles) ===== */
.cta-box {
    background: linear-gradient(135deg, var(--green-mist), var(--bg-cream));
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    margin: 2.5rem 0;
    border: 1px solid var(--green-pale);
}

.cta-box h3 {
    margin-bottom: 0.75rem;
    color: var(--green-deep);
}

.cta-box p {
    margin-bottom: 1.5rem;
    color: var(--text-body);
}

.cta-box .btn {
    background: var(--green-deep);
    color: white;
}

.cta-box .btn:hover {
    background: var(--green-primary);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ===== FOOTER ===== */
footer {
    padding: 2.5rem 1rem 1.5rem;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-soft);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand .logo-img {
    height: 60px;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 300px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: block;
    padding: 0.25rem 0;
}

.footer-column a:hover {
    color: var(--green-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-2px);
}

/* Desktop footer */
@media (min-width: 768px) {
    footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        text-align: left;
        margin-bottom: 0;
    }

    .footer-brand .logo-img {
        height: 80px;
    }

    .footer-brand p {
        margin: 0;
        max-width: none;
    }

    .footer-links {
        display: contents;
    }

    .footer-column {
        text-align: left;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-copyright {
        margin-bottom: 0;
    }
}
