/* Crafted Furniture Co — main stylesheet */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #5c665f;
  --line: #dcdcd2;
  --accent: #2f5d46;
  --accent-dark: #22443a;
  --sage: #b07d3c;
  --sand: #e9e5da;
  --error: #b3261e;
  --success: #2e6b3a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 34, 0.08);
  --max: 1140px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--alt { background: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--sage); font-weight: 700; margin-bottom: .6rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.nav-list { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-dark); }
.nav-list .btn { color: #fff; border-bottom: 2px solid var(--accent); padding: .55rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav-list li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-list .btn { margin-top: .8rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: 5.5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-art { aspect-ratio: 4 / 4.3; border-radius: 24px; background: linear-gradient(160deg, #e9dccb, #d7c2a8); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }

.page-hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); background: var(--sand); }
.page-hero p { max-width: 680px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 600; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: 1rem; color: var(--accent); font-size: 1.4rem; }
.post-card .thumb { height: 170px; border-radius: 10px; margin: -0.6rem -0.6rem 1.2rem; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.thumb--1 { background: linear-gradient(135deg, #d9c6ad, #a98b6c); }
.thumb--2 { background: linear-gradient(135deg, #c9d1c1, #7d8b74); }
.thumb--3 { background: linear-gradient(135deg, #ead7c7, #c08a67); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; margin-bottom: 1.8rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: #f4ede4; border-radius: 22px; padding: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #d8cfc4; }

.note { background: var(--sand); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 8px; font-size: .95rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: .6rem; }

/* Article / legal */
.prose { padding: 3.5rem 0 4.5rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--sand); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.5rem; margin-bottom: 2rem; }
.toc ol { margin: 0; }
.updated { color: var(--muted); font-size: .9rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(47, 93, 70, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .86rem; margin-top: .3rem; min-height: 1em; }
.field-hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -5000px; }
.form-status { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; display: none; }
.form-status.is-success { display: block; background: #e5f2e7; color: var(--success); }
.form-status.is-error { display: block; background: #fbe9e7; color: var(--error); }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }

/* Newsletter */
.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 200px; padding: .75rem .95rem; border-radius: 999px; border: 1.5px solid #5b524b; background: #3a332e; color: #fff; font: inherit; }
.newsletter input[type="email"]::placeholder { color: #b8aea4; }
.newsletter-wrap .check { color: #cfc5ba; font-size: .85rem; margin-top: .6rem; }
.newsletter-wrap .check a { color: #f0d9c4; }
.newsletter-wrap .form-status { margin-top: .7rem; }
.newsletter-wrap .field-error { color: #ffb4a9; }

/* Footer */
.site-footer { background: var(--ink); color: #d8cfc4; padding: 4rem 0 2rem; margin-top: 0; }
.site-footer a { color: #f0d9c4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid #4a423c; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.link-btn { background: none; border: none; padding: 0; color: #f0d9c4; font: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; color: #fff; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 760px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  padding: 1.5rem; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-prefs { display: none; border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1rem; }
.cookie-prefs.is-open { display: block; }
.cookie-prefs .check { margin-bottom: .7rem; }
.cookie-prefs .check small { display: block; color: var(--muted); }

/* Back to top */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Blog filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; align-items: center; }
.filter-bar button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; font: 500 .93rem var(--sans); color: var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-bar input { margin-left: auto; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; min-width: 220px; }
.empty-state { display: none; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== Crafted Furniture Co theme overrides ===== */
h1, h2, h3, h4 { font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; letter-spacing: -.01em; }
.btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; }
.btn--small { font-size: .8rem; }
.site-header { background: rgba(31, 42, 36, .97); border-bottom-color: #33423a; }
.logo { color: #f5f3ee; }
.logo-mark { background: var(--sage); border-radius: 50%; }
.nav-list a { color: #e7e4da; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--sage); }
.nav-list .btn { background: var(--sage); border-color: var(--sage); border-bottom: 2px solid var(--sage); }
.nav-list .btn:hover { background: #95692f; border-color: #95692f; }
.nav-toggle { border-color: #4a5a51; }
.nav-toggle span { background: #f5f3ee; }
@media (max-width: 860px) {
  .site-nav { background: #1f2a24; }
  .nav-list li a { border-bottom-color: #33423a; }
}
.hero { background: #1f2a24; color: #f0ede4; padding-bottom: 4.5rem; }
.hero .lead { color: #c9cdc3; }
.hero .eyebrow { color: #d9a65e; }
.hero .btn--ghost { color: #f0ede4; border-color: #f0ede4; }
.hero .btn--ghost:hover { background: #f0ede4; color: var(--ink); }
.hero-art { background: linear-gradient(160deg, #d8c3a0, #b8925f); border-radius: 8px; }
.card { border-radius: 8px; border-top: 4px solid var(--accent); }
.post-card { border-top-color: var(--sage); }
.icon { border-radius: 50%; background: #e3ebe5; }
.cta-band { background: var(--accent); border-radius: 8px; }
.steps li::before { background: var(--sage); border-radius: 6px; }
.page-hero { background: #1f2a24; color: #f0ede4; border-bottom: none; }
.page-hero .lead, .page-hero .breadcrumb, .page-hero .breadcrumb a { color: #c9cdc3; }
.page-hero a { color: #e8c48f; }
.thumb--1 { background: linear-gradient(135deg, #c8a77a, #7a5a32); }
.thumb--2 { background: linear-gradient(135deg, #a9bfb1, #2f5d46); }
.thumb--3 { background: linear-gradient(135deg, #e2d2b8, #b07d3c); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stats div { border-left: 3px solid var(--sage); padding-left: 1rem; }
.stats strong { display: block; font-family: "Palatino Linotype", Georgia, serif; font-size: 1.25rem; }
.wood-list { columns: 2; }
@media (max-width: 600px) { .wood-list { columns: 1; } }
