/* ==========================================================================
   SkinHonestly Master Stylesheet
   This file is the SINGLE SOURCE OF TRUTH for: fonts/variables, header,
   navigation, dropdowns, mobile menu, footer, buttons, and shared article/
   post-page styles. Every page links this file — do not duplicate these
   rules in a page's own <style> block. Page-unique sections (hero layouts,
   shop grids, contact forms, legal boxes) may still live inline per page.
   ========================================================================== */

/* 1. FONTS & VARIABLES
   ========================================================================== */
/* Font loading moved to <link rel="preconnect"> + <link rel="stylesheet"> tags
   in each page's <head> — an @import here would hide the Google Fonts request
   from the browser's initial HTML scan, forcing it to wait until this file is
   fully downloaded and parsed before even starting the font request. */

:root {
  --bg: #FAF7F2;
  --primary: #5E795B;
  --secondary: #D4886B;
  --text: #2B2B2B;
  --text-light: #666;
  --white: #FFFFFF;
  --border: #EAE6DF;
  --highlight: #C9A876;
}

/* 2. GLOBAL RESET & BASICS
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; width: 100%; position: relative; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

body.menu-open { position: fixed; width: 100%; overflow: hidden; }

a { text-decoration: none; color: inherit; transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; font-weight: 500; line-height: 1.2; }

/* Global Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-secondary { background-color: var(--secondary); color: var(--white); }
.btn-outline { background-color: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn:hover { opacity: 0.9; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }

/* 3. MASTER HEADER / NAV / DROPDOWN / MOBILE MENU (canonical, do not duplicate)
   ========================================================================== */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
}

.logo { font-size: 1.8rem; font-weight: 600; color: var(--primary); letter-spacing: -1px; font-family: 'Playfair Display', serif; }

.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; color: var(--text-light); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); padding: 10px; background: none; border: none; line-height: 1; }

.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: block; position: absolute; background-color: var(--white); min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); z-index: 1002; border: 1px solid var(--border);
    top: 100%; left: 50%; transform: translateX(-50%);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.dropdown-content a { color: var(--text-light); padding: 1rem 1.5rem; text-decoration: none; display: block; font-size: 0.7rem; text-transform: uppercase; border-bottom: 1px solid var(--border); letter-spacing: 1px; font-weight: 700; text-align: center; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--bg); color: var(--primary); }
.nav-dropdown:hover .dropdown-content { max-height: 400px; opacity: 1; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: fixed; top: 80px; left: 0; width: 100%;
        max-height: calc(100vh - 80px); overflow-y: auto;
        background-color: var(--white); padding: 2rem; border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); gap: 1.5rem; z-index: 9999;
    }
    .nav-links.active { display: flex; }
    .nav-dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; border: none; padding-left: 1rem; display: block; width: 100%; max-height: 0; opacity: 0; overflow: hidden; transform: none; }
    .nav-dropdown.active .dropdown-content { max-height: 400px; opacity: 1; }
}

/* 4. COMMON LAYOUTS
   ========================================================================== */
.container { max-width: 1400px; margin: 0 auto; padding: 5rem 5%; }

.layout-grid { display: grid; grid-template-columns: 1fr 350px; gap: 5rem; max-width: 1400px; margin: 4rem auto; padding: 0 5%; }
@media (max-width: 1100px) { .layout-grid { grid-template-columns: 1fr; } }

/* 5. MASTER FOOTER (canonical, do not duplicate)
   ========================================================================== */
footer { padding: 8rem 5% 4rem; background: var(--white); border-top: 1px solid var(--border); margin-top: 5rem; }
.f-logo { font-size: 2.5rem; font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 3rem; display: block; text-align: center; text-decoration: none; }
.f-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem; border-bottom: 1px solid var(--border); padding-bottom: 6rem; text-align: left; }
.f-col h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2.5rem; color: var(--primary); font-weight: 700; }
.f-col a { display: block; margin-bottom: 1.2rem; font-size: 0.9rem; color: var(--text-light); transition: 0.3s; border: none; font-weight: 400; }
.f-col a:hover { color: var(--primary); }
.f-social-link { display: flex; align-items: center; gap: 0.7rem; }
.f-social-link svg { flex-shrink: 0; }
.f-bottom { padding-top: 4rem; text-align: center; font-size: 0.75rem; color: #999; letter-spacing: 2px; text-transform: uppercase; }

@media (max-width: 992px) {
  .f-container { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
@media (max-width: 768px) {
  .f-container { text-align: center; }
  .f-social-link { justify-content: center; }
}
@media (max-width: 480px) {
  .f-container { grid-template-columns: 1fr; }
}

/* 6. MICRO-INTERACTIONS & ANIMATION CLASSES
   ========================================================================== */
.scroll-reveal { opacity: 0; transform: translateY(12px); transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

.stagger-item { opacity: 0; transform: translateY(15px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.stagger-item.revealed { opacity: 1; transform: translateY(0); }

.card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }

@media (prefers-reduced-motion: reduce) {
  * { animation-delay: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .scroll-reveal, .stagger-item { opacity: 1 !important; transform: none !important; }
  .card-lift:hover, .btn:hover, .f-col a:hover { transform: none !important; }
}

/* 7. ARTICLE / POST PAGE STYLES (shared by every post*.html)
   ========================================================================== */
#reading-progress { position: fixed; top: 80px; left: 0; width: 0%; height: 4px; background: var(--primary); z-index: 1001; transition: width 0.1s ease; }

.breadcrumbs { max-width: 1300px; margin: 2rem auto 0; padding: 0 5%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumbs a { color: var(--text-light); font-weight: 600; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span.sep { color: var(--border); }
.breadcrumbs span.current { color: var(--primary); font-weight: 700; }

.article-layout { max-width: 1300px; margin: 2rem auto 4rem; padding: 0 5%; display: grid; grid-template-columns: 1fr 350px; gap: 6rem; }
.cat-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--secondary); font-weight: 700; margin-bottom: 1rem; display: block; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.5rem; line-height: 1.1; color: var(--primary); }
.article-meta { display: flex; gap: 20px; font-size: 0.85rem; color: #999; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 3rem; }

.main-img { width: 100%; height: 550px; object-fit: cover; margin-bottom: 4rem; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); }

.article-content p { font-size: 1.15rem; color: #444; margin-bottom: 2rem; }
.article-content p:first-of-type::first-letter { font-family: 'Playfair Display'; font-size: 4.5rem; float: left; margin-top: 0.5rem; margin-right: 0.8rem; line-height: 1; color: var(--primary); font-weight: 600; }
.article-content h2 { font-size: 2.2rem; margin: 4rem 0 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; color: var(--primary); }
.article-content ul { padding-left: 1.5rem; margin-bottom: 2rem; }
.article-content li { margin-bottom: 1rem; font-size: 1.1rem; color: #444; }
.article-content a { color: var(--primary); border-bottom: 1px solid var(--highlight); font-weight: 600; }

.sidebar { display: flex; flex-direction: column; gap: 5rem; border-left: 1px solid var(--border); padding-left: 3rem; }
.widget-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 2rem; }
.shop-widget-item { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.shop-widget-item img { height: 80px; width: 80px; object-fit: cover; border-radius: 4px; }
.shop-btn { font-size: 0.7rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--secondary); }

.newsletter-cta { background: var(--primary); color: white; padding: 6rem 5%; text-align: center; margin-top: 6rem; border-radius: 4px; }
.newsletter-cta h2 { color: white; font-size: 2.8rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; max-width: 600px; margin: 2.5rem auto 0; }
.newsletter-form input { flex: 1; padding: 1.2rem; border-radius: 4px; border: none; font-size: 1rem; outline: none; }
.newsletter-form button { background: var(--secondary); color: white; border: none; padding: 0 3rem; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; border-radius: 4px; cursor: pointer; }

.related-posts { max-width: 1300px; margin: 6rem auto; padding: 4rem 5% 0; border-top: 1px solid var(--border); }
.related-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.related-header h3 { font-size: 2.2rem; color: var(--primary); margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.post-card { display: flex; flex-direction: column; transition: transform 0.3s ease; text-decoration: none; color: inherit; }
.post-card:hover { transform: translateY(-5px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
.post-meta { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; letter-spacing: 1px; }
.post-title { font-size: 1.4rem; color: var(--primary); margin-bottom: 1rem; line-height: 1.3; }
.post-excerpt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.5; }
.btn-read { font-weight: bold; text-transform: uppercase; font-size: 0.75rem; border-bottom: 2px solid var(--highlight); padding-bottom: 3px; color: var(--text); text-decoration: none; }
.btn-read:hover { color: var(--primary); border-color: var(--primary); }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 4rem; }
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 1.2rem; }
  .main-img { height: 350px; }
}

/* 8. EDITOR'S CHOICE / SHOP CALLOUT (used inline within article bodies)
   ========================================================================== */
.shop-callout { background: var(--white); border: 1px solid var(--border); padding: 2.5rem; margin: 4rem 0; position: relative; display: flex; align-items: center; gap: 2.5rem; transition: transform 0.3s ease; border-radius: 4px; }
.shop-callout:hover { transform: translateY(-5px); }
.shop-callout::before { content: "EDITOR'S CHOICE"; position: absolute; top: -12px; left: 2.5rem; background: var(--secondary); color: white; font-size: 0.6rem; font-weight: 700; padding: 4px 12px; letter-spacing: 2px; }
.shop-callout img { width: 120px; height: 120px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.shop-callout-content { flex: 1; }
.shop-callout-content h4 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--text); }
.shop-callout-content p { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--text-light); line-height: 1.5; border: none; font-weight: 400; }
.shop-callout-btn { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 4px; text-decoration: none; }

@media (max-width: 768px) {
  .shop-callout { flex-direction: column; text-align: center; }
  .shop-callout img { width: 100%; max-width: 220px; height: 220px; margin: 0 auto; }
}

/* 9. NEWSLETTER POPUP MODAL (triggered by script.js)
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 3000; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg); width: 90%; max-width: 600px; padding: 4rem 3rem; border-radius: 8px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.2); text-align: center; transform: translateY(20px); transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; color: var(--text-light); transition: color 0.3s ease; line-height: 1; }
.modal-close:hover { color: var(--primary); }
.modal-content h2 { font-size: 2.8rem; color: var(--primary); margin-bottom: 1rem; }
.modal-content p { color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.6; }
@media (max-width: 768px) {
  .modal-content { padding: 3rem 1.5rem; }
  .modal-content h2 { font-size: 2rem; }
}
