/*
Theme Name: The Shade Guide
Theme URI: https://theshadeguide.com
Author: The Shade Guide
Description: A lightweight editorial WordPress theme for independent shade reviews, comparisons, buying guides, and smart-window education.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: the-shade-guide
*/

:root {
  --ink: #16211d;
  --muted: #617069;
  --forest: #173f34;
  --forest-2: #245f4e;
  --sage: #dce8df;
  --cream: #f7f5ef;
  --white: #fff;
  --gold: #d69a46;
  --line: #dce2de;
  --shadow: 0 16px 45px rgba(22, 33, 29, .10);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { color: var(--forest-2); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 750; transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--forest-2); }
.button--light { background: #fff; color: var(--forest); }
.button--ghost { border: 1px solid rgba(255,255,255,.4); background: transparent; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(22,33,29,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--forest); color: #fff; font: 700 19px/1 Georgia, serif; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .91rem; font-weight: 700; }
.primary-nav a:hover { color: var(--forest-2); }
.header-search { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }

.hero { overflow: hidden; padding: 86px 0 76px; background: radial-gradient(circle at 88% 16%, #4c7d6d 0, #244f43 22%, var(--forest) 52%, #102d25 100%); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.hero .eyebrow { color: #bcd8cb; }
.hero h1 { max-width: 760px; margin: 12px 0 22px; font: 700 clamp(2.8rem, 5.6vw, 5.4rem)/.98 Georgia, serif; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 0 0 30px; color: #d9e7e1; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { position: relative; min-height: 430px; padding: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: linear-gradient(155deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.window-demo { position: absolute; inset: 34px; overflow: hidden; border: 13px solid #e8e1d4; border-radius: 6px; background: linear-gradient(#9dc7d4 0 44%, #8aae87 44% 100%); }
.window-demo::before { content: ""; position: absolute; inset: 0 0 44%; background: repeating-linear-gradient(0deg, #e9e1d1 0 20px, #d8cbb7 20px 23px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.window-demo::after { content: "SMART SHADE TESTED"; position: absolute; right: 18px; bottom: 17px; padding: 8px 12px; border-radius: 99px; background: var(--gold); color: #1e2a24; font-size: .66rem; font-weight: 900; letter-spacing: .08em; }

.trustbar { border-bottom: 1px solid var(--line); background: var(--cream); }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: .94rem; }
.trust-item span { color: var(--muted); font-size: .82rem; }

.section { padding: 84px 0; }
.section--soft { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { max-width: 720px; margin: 7px 0 0; font: 700 clamp(2rem, 4vw, 3.25rem)/1.08 Georgia, serif; letter-spacing: -.035em; }
.section-head p { max-width: 480px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(22,33,29,.05); transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: grid; min-height: 190px; place-items: center; background: linear-gradient(135deg, var(--sage), #f1eee5); color: var(--forest); font: 700 1.25rem Georgia, serif; }
.card-body { padding: 24px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--forest-2); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.card h3 { margin: 10px 0 8px; font: 700 1.35rem/1.22 Georgia, serif; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.text-link { display: inline-flex; margin-top: 18px; color: var(--forest-2); font-weight: 800; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic { min-height: 152px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.topic-number { color: var(--gold); font-size: .74rem; font-weight: 900; }
.topic h3 { margin: 20px 0 5px; font: 700 1.18rem Georgia, serif; }
.topic span { color: var(--muted); font-size: .86rem; }

.score-panel { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: 26px; background: var(--forest); color: #fff; }
.score-intro { padding: 52px; background: #112f27; }
.score-intro h2 { margin: 8px 0 15px; font: 700 2.5rem/1.05 Georgia, serif; }
.score-intro p { color: #cce0d7; }
.score-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.score-item { padding: 35px; background: var(--forest); }
.score-item strong { display: block; color: #f0c47e; font-size: 1.8rem; }
.score-item span { color: #d4e4dd; font-size: .9rem; }

.newsletter { padding: 68px 0; background: var(--sage); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter h2 { margin: 0 0 6px; font: 700 2.15rem Georgia, serif; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter-form { display: flex; width: min(100%, 470px); gap: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 0 18px; border: 1px solid #b9c9c0; border-radius: 999px; background: #fff; font: inherit; }

.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; padding: 70px 0; }
.article-header h1 { margin: 10px 0 18px; font: 700 clamp(2.4rem, 5vw, 4.5rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
.article-meta { color: var(--muted); }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { margin-top: 2.2em; font: 700 2rem Georgia, serif; }
.entry-content h3 { margin-top: 1.8em; font: 700 1.45rem Georgia, serif; }
.entry-content a { color: var(--forest-2); text-decoration: underline; }
.disclosure { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--cream); color: var(--muted); font-size: .88rem; }
.sidebar-box { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.sidebar-box h3 { margin-top: 0; font-family: Georgia, serif; }

.site-footer { padding: 56px 0 30px; background: #0f2922; color: #d8e7e0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer h3 { color: #fff; font-size: .9rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 7px 0; color: #b8cdc4; font-size: .88rem; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #9fb8ae; font-size: .8rem; }

@media (max-width: 980px) {
  .primary-nav, .header-search { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .score-panel, .content-wrap { grid-template-columns: 1fr; }
  .hero-card { min-height: 350px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.7rem; }
  .hero-grid { gap: 36px; }
  .hero-card { min-height: 280px; }
  .window-demo { inset: 22px; }
  .section { padding: 62px 0; }
  .section-head, .newsletter-inner { display: block; }
  .section-head p { margin-top: 12px; }
  .card-grid, .topics, .score-list, .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { margin-top: 24px; flex-direction: column; }
  .newsletter-form input { min-height: 48px; }
}
