/* ===== THE PAD — Scheme A: Confident Editorial ===== */
/* Playfair Display + Source Sans 3 | Parchment + Saddle + Ink */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ===== RESET & TOKENS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #1a1a1a;
    --parchment: #f5f0e8;
    --saddle: #a0714f;
    --saddle-hover: #8b6142;
    --saddle-soft: rgba(160, 113, 79, 0.08);
    --saddle-medium: rgba(160, 113, 79, 0.15);
    --slate: #6b7280;
    --charcoal: #2d2d2d;
    --cream: #faf7f2;
    --border: #e0dbd3;
    --border-light: #ebe6de;
    --white: #ffffff;
    --green: #5a8a5e;
    --green-soft: rgba(90, 138, 94, 0.1);
    --red: #b5453a;
    --red-soft: rgba(181, 69, 58, 0.08);
    --amber: #9a7b2d;
    --amber-soft: rgba(154, 123, 45, 0.1);
    --max-w: 780px;
    --max-w-wide: 1140px;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--parchment);
    color: var(--ink);
    line-height: 1.78;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--saddle); text-decoration: none; transition: color .2s; }
a:hover { color: var(--saddle-hover); }

img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

strong { color: var(--ink); font-weight: 700; }

/* ===== NAVIGATION ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
}
.nav-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.nav-logo {
    font-family: var(--serif);
    font-size: 1.3em;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    color: var(--slate);
    font-size: 0.88em;
    font-weight: 600;
    transition: color .2s;
    padding: 8px 14px;
    border-radius: 5px;
    display: block;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--saddle); }

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 0;
    padding-top: 18px;
    min-width: 260px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    z-index: 200;
}
/* Invisible bridge so hover doesn't break when moving cursor to dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-links > li:hover > .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block;
    padding: 8px 20px;
    color: var(--ink);
    font-size: 0.88em;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
    background: var(--saddle-soft);
    color: var(--saddle);
}
.nav-dropdown .dd-label {
    display: block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    padding: 6px 20px 4px;
    pointer-events: none;
}
.nav-dropdown .dd-label:not(:first-child) {
    border-top: 1px solid var(--border-light);
    margin-top: 6px;
    padding-top: 10px;
}

/* Nav over hero image (homepage only) */
.site-nav.nav-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}
.site-nav.nav-hero .nav-logo { color: #fff; }
.site-nav.nav-hero .nav-links > li > a { color: rgba(255,255,255,0.7); }
.site-nav.nav-hero .nav-links > li > a:hover { color: #fff; }
.site-nav.nav-hero .nav-toggle { color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4em; cursor: pointer; }

/* ===== HERO (Homepage) ===== */
.hero {
    padding: 96px 28px 80px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-family: var(--serif);
    font-size: 3.2em;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    line-height: 1.12;
}
.hero h1 span { color: var(--saddle); }
.hero .tagline {
    font-size: 1.15em;
    color: var(--slate);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.65;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero with background image */
.hero.hero-bg {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    text-align: left;
    padding: 0;
}
.hero.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.08) 100%);
    z-index: 1;
}
.hero.hero-bg .hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    padding: 80px 48px;
}
.hero.hero-bg h1 {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero.hero-bg .tagline {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
    margin: 0 0 32px;
}
.hero.hero-bg .cta-row {
    justify-content: flex-start;
}
.hero.hero-bg .btn-outline {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.hero.hero-bg .btn-outline:hover {
    border-color: var(--saddle);
    color: var(--saddle);
}
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92em;
    font-family: var(--sans);
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--saddle); color: var(--white); }
.btn-primary:hover { background: var(--saddle-hover); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--saddle); color: var(--saddle); }

/* ===== ARTICLE GRID (Homepage) ===== */
.section { padding: 60px 28px; }
.section-inner { max-width: var(--max-w-wide); margin: 0 auto; }
.section-title {
    font-family: var(--serif);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.section-subtitle {
    color: var(--slate);
    margin-bottom: 32px;
    font-size: 1em;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.article-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 0;
}
.article-card-body { padding: 20px 22px 24px; }
.article-card-tag {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--saddle);
    background: var(--saddle-soft);
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-family: var(--sans);
}
.article-card-title {
    font-family: var(--serif);
    font-size: 1.12em;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 8px;
}
.article-card-excerpt {
    font-size: 0.9em;
    color: var(--slate);
    line-height: 1.6;
}
.article-card a { color: inherit; }
.article-card a:hover { color: inherit; }

/* ===== FEATURED SECTION ===== */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 36px;
    transition: box-shadow .25s;
}
.featured-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.featured-card-img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: 0;
}
.featured-card-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-card-body .article-card-tag { margin-bottom: 14px; }
.featured-card-body .article-card-title { font-size: 1.5em; margin-bottom: 14px; }
.featured-card-body .article-card-excerpt { margin-bottom: 22px; }

/* ===== ARTICLE PAGE ===== */
.article-hero {
    padding: 76px 28px 36px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.article-hero .article-card-tag { margin-bottom: 14px; }
.article-hero h1 {
    font-family: var(--serif);
    font-size: 2.5em;
    font-weight: 900;
    color: var(--ink);
    max-width: 760px;
    margin: 0 auto 14px;
    line-height: 1.18;
    letter-spacing: -0.015em;
}
.article-hero .article-meta {
    color: var(--slate);
    font-size: 0.92em;
}

.article-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 44px 28px 80px;
}
.article-content h2 {
    font-family: var(--serif);
    font-size: 1.55em;
    font-weight: 700;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content h3 {
    font-family: var(--serif);
    font-size: 1.15em;
    font-weight: 700;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 10px;
}
.article-content p {
    margin-bottom: 18px;
    color: #333;
}
.article-content ul, .article-content ol {
    margin: 10px 0 20px 26px;
    color: #333;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 3px solid var(--saddle);
    background: var(--saddle-soft);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #444;
}
.article-content .tip-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}
.article-content .tip-box strong { color: var(--saddle); }

/* Article images */
.article-img {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}
.article-img img { border-radius: 0; width: 100%; }
.article-img figcaption {
    font-size: 0.82em;
    color: var(--slate);
    padding: 10px 0 0;
    text-align: center;
}
.article-img-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 28px 0;
}
.article-img-row img { border-radius: 6px; width: 100%; height: 210px; object-fit: cover; }

/* Numbered mistake items */
.mistake-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 20px 0;
}
.mistake-item h3 {
    margin-top: 0;
    font-family: var(--serif);
    color: var(--ink);
    font-size: 1.15em;
}
.mistake-item h3 .num {
    display: inline-block;
    background: var(--saddle);
    color: var(--white);
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 700;
    font-family: var(--sans);
    margin-right: 10px;
    vertical-align: middle;
}
.mistake-item p { color: #333; }

/* Store cards */
.store-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 16px 0;
}
.store-card.good { border-left: 4px solid var(--green); }
.store-card.bad { border-left: 4px solid var(--red); }
.store-card.ugly { border-left: 4px solid var(--amber); }
.store-card h3 { margin-top: 0; font-family: var(--serif); }
.store-card .pros { color: var(--green); font-weight: 700; }
.store-card .cons { color: var(--red); font-weight: 700; }
.store-card p { color: #333; }

/* Tables in articles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 0.9em;
}
.article-content th {
    background: var(--cream);
    color: var(--saddle);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--white);
    color: #333;
}
.table-wrap { overflow-x: auto; }

/* ===== BUDGET TIER BADGES ===== */
.budget-badge {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--saddle);
    margin-bottom: 8px;
}

/* ===== PLANT CARDS ===== */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.plant-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px;
}
.plant-card h3 { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 1.05em; }
.plant-card .rating { color: var(--saddle); font-weight: 700; font-size: 0.83em; }
.plant-card p { color: #444; }

/* ===== CHECKLIST ===== */
.checklist-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--saddle);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85em;
    font-family: var(--sans);
}
.checklist-item h3 { font-family: var(--serif); }
.checklist-item p { color: #333; }

/* ===== "COMING SOON" ===== */
.coming-soon {
    background: var(--cream);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 36px 24px;
    text-align: center;
    color: var(--slate);
    margin: 24px 0;
}
.coming-soon strong { color: var(--saddle); }

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 28px;
    text-align: center;
    color: var(--slate);
    font-size: 0.84em;
    background: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.1em; }
    .hero .tagline { font-size: 1em; }
    .hero.hero-bg { min-height: 420px; }
    .hero.hero-bg .hero-content { padding: 80px 24px 40px; }
    .hero.hero-bg::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
    }
    .site-nav.nav-hero .nav-links.open {
        background: rgba(0,0,0,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .site-nav.nav-hero .nav-links.open a { color: rgba(255,255,255,0.7); }
    .site-nav.nav-hero .nav-links.open a:hover { color: #fff; }
    .article-hero h1 { font-size: 1.7em; }
    .article-grid { grid-template-columns: 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-img { min-height: 220px; }
    .featured-card-body { padding: 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px 28px;
        gap: 4px;
    }
    .nav-links.open > li > a { padding: 8px 0; }
    .nav-dropdown {
        display: block !important;
        position: static !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 4px 16px !important;
        min-width: 0 !important;
    }
    .nav-dropdown .dd-label { padding: 4px 0 2px; }
    .nav-dropdown a { padding: 6px 0; }
    .article-img-row { grid-template-columns: 1fr; }
    .plant-grid { grid-template-columns: 1fr; }
}
