/* ============================================================= */
/* Lemongrass Blog — Shared Stylesheet v2.0                      */
/* Optimized for: PageSpeed 100, CLS 0, LCP < 2.5s, Mobile-First */
/* SEO / GEO / AIO / AEO / AI Search Ready — 2026 Edition        */
/* ============================================================= */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --gold: #D4AF37;
    --gold-light: #F5E6BE;
    --gold-hover: #C4A030;
    --wood: #2C2C2C;
    --wood-light: #3D3D3D;
    --bg: #FDFDFD;
    --bg-warm: #FFFDF5;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --max-width-article: 820px;
    --max-width-page: 1100px;
}

/* --- Base Reset & Box Sizing --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Typography & Body --- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--gold); font-weight: 600; transition: color var(--transition); }
a:hover, a:focus { color: var(--gold-hover); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--wood); line-height: 1.3; }
h1 { color: var(--gold); font-size: 2em; text-transform: uppercase; text-align: center; margin-bottom: 0.6em; letter-spacing: 1px; }
h2 { border-left: 5px solid var(--gold); padding-left: 15px; font-size: 1.6em; margin-top: 2.2em; margin-bottom: 0.8em; scroll-margin-top: 80px; }
h3 { color: var(--gold); font-size: 1.25em; margin-top: 1.8em; margin-bottom: 0.6em; }
h4 { font-size: 1.1em; margin-top: 1.4em; margin-bottom: 0.5em; }
p { margin-bottom: 1.4em; font-size: 1em; text-align: left; }

/* --- Skip to Content (Accessibility) --- */
.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--wood); padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 700; z-index: 9999; transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* --- Header --- */
.site-header {
    background: var(--wood);
    padding: 20px 15px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    position: relative;
}
.site-header a { display: inline-block; }
.site-header img {
    max-width: 260px; width: 100%; height: auto;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

/* --- Navigation Bar --- */
.nav-bar {
    background: #1a1a1a;
    padding: 12px 10px;
    text-align: center;
    position: sticky; top: 0; z-index: 1000;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    backdrop-filter: blur(10px);
}
.nav-bar a {
    color: #ddd; margin: 0 10px;
    font-weight: 600; text-transform: uppercase;
    font-size: 0.75em; letter-spacing: 1.5px;
    display: inline-block; padding: 6px 4px;
    position: relative; transition: color var(--transition);
}
.nav-bar a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold);
    transition: width var(--transition);
}
.nav-bar a:hover { color: var(--gold); }
.nav-bar a:hover::after { width: 100%; }

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 12px 0; font-size: 0.85em; color: var(--text-light);
    margin-bottom: 10px;
}
.breadcrumb a { font-weight: 500; }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

/* --- Container --- */
.container { max-width: var(--max-width-article); margin: 0 auto; padding: 30px 20px; }
.container-wide { max-width: var(--max-width-page); margin: 0 auto; padding: 30px 20px; }

/* --- Article Meta --- */
.article-meta {
    text-align: center; margin-bottom: 2em; padding-bottom: 1.5em;
    border-bottom: 1px solid var(--border);
}
.article-meta .author { font-weight: 600; color: var(--wood); }
.article-meta .date { color: var(--text-muted); font-size: 0.9em; margin-top: 4px; }
.article-meta .reading-time {
    display: inline-block; background: var(--bg-warm);
    padding: 4px 12px; border-radius: 20px; font-size: 0.8em;
    color: var(--gold-hover); font-weight: 600; margin-top: 8px;
    border: 1px solid var(--gold-light);
}

/* --- Hero Image --- */
.hero-image {
    width: 100%; aspect-ratio: 16/9; overflow: hidden;
    border-radius: var(--radius-lg); margin-bottom: 2em;
    box-shadow: var(--shadow-md);
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.03); }

/* --- Table of Contents --- */
.toc-container {
    background: var(--bg); border: 1px solid var(--border);
    padding: 20px; border-radius: var(--radius-md);
    margin: 25px 0; border-top: 4px solid var(--gold);
    position: relative;
}
.toc-title {
    font-family: var(--font-heading); font-size: 1.2em;
    color: var(--wood); margin-bottom: 12px;
    display: block; font-weight: 700;
}
.toc-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.toc-list li { margin-bottom: 8px; padding-left: 18px; position: relative; break-inside: avoid; }
.toc-list li::before { content: "▸"; color: var(--gold); position: absolute; left: 0; font-weight: bold; font-size: 0.9em; }
.toc-list a { color: var(--text); font-weight: 400; font-size: 0.95em; }
.toc-list a:hover { color: var(--gold); }

/* --- Key Takeaways Box --- */
.takeaways {
    background: var(--bg-warm); border: 2px solid var(--gold-light);
    padding: 25px 20px; border-radius: var(--radius-lg);
    margin: 30px 0; position: relative;
}
.takeaways::before {
    content: "✦"; position: absolute; top: -14px; left: 20px;
    background: var(--bg-warm); padding: 0 8px; font-size: 1.2em; color: var(--gold);
}
.takeaways h2 { margin-top: 0; font-size: 1.4em; border: none; padding: 0; color: var(--gold); }
.takeaways ul { list-style: none; padding: 0; }
.takeaways li {
    font-weight: 500; margin-bottom: 14px; font-size: 0.95em;
    color: #444; text-align: left; position: relative; padding-left: 28px;
    line-height: 1.6;
}
.takeaways li::before { content: "⚜"; color: var(--gold); position: absolute; left: 0; }

/* --- In-Article Image --- */
.article-image {
    margin: 2em 0; border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-image img { width: 100%; height: auto; display: block; }
.image-caption {
    font-size: 0.85em; color: var(--text-muted); text-align: center;
    padding: 10px 15px; background: #f9f9f9; font-style: italic;
}

/* --- FAQ Section --- */
.faq-section {
    background: #F8F8F8; padding: 25px 20px;
    border-radius: var(--radius-xl); margin-top: 40px;
    border-left: 6px solid var(--wood);
}
.faq-section h2 { border: none; padding: 0; margin-top: 0; margin-bottom: 1em; }
.faq-section h3 { color: var(--wood); font-size: 1.1em; margin-top: 1.2em; }
.faq-section p { font-size: 0.95em; color: var(--text-light); }

/* --- Summary Box --- */
.summary-box {
    background: var(--wood); color: #FFF;
    padding: 25px 20px; border-radius: var(--radius-md);
    margin-top: 40px;
}
.summary-box h2 { color: var(--gold); border: none; padding: 0; margin-bottom: 15px; margin-top: 0; }
.summary-box ul { list-style: none; padding: 0; }
.summary-box li { margin-bottom: 12px; padding-left: 20px; position: relative; font-size: 0.95em; }
.summary-box li::before { content: "★"; color: var(--gold); position: absolute; left: 0; }

/* --- Customer Reviews Section --- */
.reviews-section {
    margin: 40px 0; padding: 30px 0;
    border-top: 2px solid var(--gold-light);
}
.reviews-section h2 { border: none; padding: 0; text-align: center; margin-bottom: 1.2em; color: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review-card {
    background: #FFF; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px;
    box-shadow: var(--shadow-sm); position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card::before {
    content: """; font-family: Georgia, serif; font-size: 3em;
    color: var(--gold-light); position: absolute; top: 8px; left: 15px;
    line-height: 1;
}
.review-stars { color: var(--gold); font-size: 1.1em; margin-bottom: 8px; letter-spacing: 2px; }
.review-text { font-size: 0.95em; color: var(--text); line-height: 1.7; font-style: italic; padding-top: 10px; }
.review-author { margin-top: 12px; font-size: 0.85em; color: var(--text-muted); font-weight: 600; }
.review-author span { color: var(--gold); }
.review-source { font-size: 0.8em; color: var(--text-muted); }

/* --- CTA (Call to Action) Box --- */
.cta-box {
    background: linear-gradient(135deg, var(--wood) 0%, var(--wood-light) 100%);
    color: #FFF; padding: 30px 25px;
    border-radius: var(--radius-lg); margin: 40px 0;
    text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.cta-box h2 { color: var(--gold); border: none; padding: 0; margin-top: 0; margin-bottom: 0.5em; font-size: 1.5em; }
.cta-box p { color: #ccc; margin-bottom: 1.2em; font-size: 1em; }
.cta-box .cta-details { text-align: left; max-width: 400px; margin: 0 auto 1.5em; }
.cta-box .cta-details p { margin-bottom: 6px; font-size: 0.9em; }
.cta-btn {
    display: inline-block; background: var(--gold);
    color: var(--wood); padding: 14px 36px;
    border-radius: 50px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.9em; transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.cta-btn:hover {
    background: var(--gold-hover); color: var(--wood);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

/* --- Internal Links Section --- */
.related-articles {
    margin: 40px 0; padding: 25px 0;
    border-top: 1px solid var(--border);
}
.related-articles h2 { border: none; padding: 0; text-align: center; margin-bottom: 1.2em; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.related-card {
    display: flex; align-items: center; gap: 15px;
    background: #FFF; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 15px;
    transition: all var(--transition);
}
.related-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.related-card .related-icon { font-size: 1.5em; flex-shrink: 0; }
.related-card .related-text h4 { margin: 0 0 4px; font-size: 0.95em; color: var(--wood); }
.related-card .related-text p { margin: 0; font-size: 0.8em; color: var(--text-muted); }

/* --- Gallery Section --- */
.gallery-section { margin: 50px 0 30px; text-align: center; }
.gallery-section h2 {
    border: none; padding: 0; margin-bottom: 25px;
    color: var(--gold); display: inline-block;
    border-bottom: 2px solid var(--gold); padding-bottom: 8px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item {
    overflow: hidden; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Blog Index Grid (for index.html) --- */
.about-box {
    background: var(--bg-warm); border: 1px solid var(--gold-light);
    padding: 25px 20px; border-radius: var(--radius-lg);
    text-align: center; margin-bottom: 35px;
}
.about-box p { font-size: 1em; margin-bottom: 15px; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
.service-card {
    background: #FFF; padding: 25px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); text-align: center;
}
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
.blog-card {
    background: #FFF; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column; border: 1px solid #eee;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image { aspect-ratio: 16/9; 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: 20px; flex-grow: 1;
    display: flex; flex-direction: column; justify-content: space-between;
}
.blog-card-content h3 { margin-top: 0; color: var(--wood); font-size: 1.15em; }
.blog-card-content p { color: var(--text-light); font-size: 0.9em; margin-bottom: 15px; }
.blog-card-meta { font-size: 0.8em; color: var(--text-muted); margin-bottom: 10px; }
.btn-read {
    color: var(--gold); font-weight: 700; text-transform: uppercase;
    font-size: 0.8em; letter-spacing: 1.5px; align-self: flex-start;
    transition: color var(--transition);
}
.btn-read:hover { color: var(--gold-hover); }

/* --- Contact Section --- */
.contact-section {
    display: grid; grid-template-columns: 1fr;
    gap: 30px; margin-top: 50px; padding-top: 30px;
    border-top: 1px solid var(--border);
}
.map-container {
    position: relative; padding-bottom: 75%;
    height: 0; overflow: hidden; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.map-container iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* --- Footer --- */
.site-footer {
    background: var(--wood); color: var(--text-muted);
    text-align: center; padding: 35px 20px;
    font-size: 0.85em; border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--gold); }
.footer-links { margin-top: 10px; }
.footer-links a { margin: 0 8px; font-size: 0.9em; }

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed; bottom: 25px; right: 25px;
    width: 44px; height: 44px;
    background: var(--gold); color: var(--wood);
    border: none; border-radius: 50%; cursor: pointer;
    font-size: 1.2em; display: none; align-items: center;
    justify-content: center; z-index: 999;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.back-to-top:hover { background: var(--gold-hover); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* --- Utility Classes --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Print Styles --- */
@media print {
    .nav-bar, .back-to-top, .cta-box, .site-header { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* ============================================================= */
/* RESPONSIVE BREAKPOINTS — Desktop Overrides                    */
/* ============================================================= */
@media (min-width: 480px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .toc-list { columns: 2; }
}

@media (min-width: 768px) {
    body { font-size: 17px; line-height: 1.95; }
    .site-header { padding: 35px 20px; }
    .site-header img { max-width: 320px; }
    .nav-bar { padding: 16px 20px; }
    .nav-bar a { margin: 0 18px; font-size: 0.82em; }
    .container { padding: 50px 30px; }
    .container-wide { padding: 50px 30px; }
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; border-left-width: 7px; padding-left: 20px; }
    h3 { font-size: 1.4em; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
    .blog-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
    .contact-section { grid-template-columns: 1fr 1fr; gap: 40px; }
    .map-container { padding-bottom: 56.25%; }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .about-box { padding: 40px; }
    .cta-box { padding: 40px 35px; }
}

@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 3.2em; }
}
