/* ============================================================
   FAME — Kitchen & Bathroom Cabinets | c-bn.com
   Modern editorial style (forest green / cream / brass)
   ============================================================ */

:root {
  --green-950: #12241d;
  --green-900: #1c3a2e;
  --green-800: #274b3c;
  --green-700: #335c4b;
  --cream: #faf7f0;
  --paper: #ffffff;
  --sand: #f2ecdf;
  --brass: #c09a5b;
  --brass-dark: #a9834a;
  --ink: #1b211e;
  --muted: #67716b;
  --line: #e5ddcd;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(28, 46, 38, .07);
  --shadow-md: 0 12px 34px rgba(28, 46, 38, .12);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--brass-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--green-900); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .5px;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--green-900); letter-spacing: 1px; }
.brand-tag { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; }

.main-nav ul { display: flex; list-style: none; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brass); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green-800); }

.nav-cta {
  background: var(--green-900); color: var(--cream) !important;
  padding: 10px 20px !important; border-radius: 999px; font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--green-700); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px; position: relative;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 6%; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-cta { border-radius: 8px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px;
  display: flex; align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 36, 29, .88) 0%, rgba(18, 36, 29, .55) 55%, rgba(18, 36, 29, .25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 90px 0; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--brass); font-weight: 700; margin-bottom: 18px;
  border: 1px solid rgba(192, 154, 91, .5); padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; color: var(--cream); }
.hero p { font-size: 17px; color: rgba(250, 247, 240, .85); max-width: 520px; margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--brass); color: var(--green-950); }
.btn-primary:hover { background: var(--brass-dark); color: var(--green-950); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid rgba(250, 247, 240, .7); color: var(--cream); }
.btn-ghost:hover { background: rgba(250, 247, 240, .12); color: var(--cream); transform: translateY(-2px); }
.btn-dark { background: var(--green-900); color: var(--cream); }
.btn-dark:hover { background: var(--green-700); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--paper); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--green-950); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-dark .section-head p { color: rgba(250, 247, 240, .7); }
.rule { width: 64px; height: 3px; background: var(--brass); border-radius: 2px; margin-bottom: 18px; }
.section-head.center .rule { margin-inline: auto; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .thumb img { transform: scale(1.06); }
.cat-card .body { padding: 18px 20px 20px; }
.cat-card h3 { font-size: 19px; margin-bottom: 6px; }
.cat-card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.cat-card .more { font-size: 13.5px; font-weight: 600; color: var(--brass-dark); }
.cat-card .more::after { content: " →"; }

@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Feature / stat rows ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--paper); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-900);
  color: var(--brass); display: grid; place-items: center; font-size: 21px; margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 26px 12px; border: 1px solid rgba(250, 247, 240, .16); border-radius: var(--radius); }
.stat b { font-family: var(--font-display); font-size: 38px; color: var(--brass); display: block; margin-bottom: 6px; }
.stat span { font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; color: rgba(250, 247, 240, .75); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split ul { list-style: none; margin: 18px 0 26px; }
.split li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; color: var(--ink); }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--green-800);
  color: var(--cream); font-size: 11px; display: grid; place-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--green-950); color: var(--cream);
  padding: 84px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1.5px solid rgba(192, 154, 91, .35);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 12px 0 12px; }
.page-hero p { color: rgba(250, 247, 240, .75); max-width: 600px; }
.breadcrumb { font-size: 13px; color: rgba(250, 247, 240, .55); }
.breadcrumb a { color: var(--brass); }

/* ---------- Product list ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prod-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 18px 20px 22px; }
.prod-card h3 { font-size: 17.5px; margin-bottom: 6px; }
.prod-card p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* ---------- Size chips (painting cabinet) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* ---------- Accordion (FAQ) ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  position: relative; color: var(--green-900);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--brass); font-weight: 400; transition: transform .3s;
}
.acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc .a { padding: 0 40px 24px 0; color: var(--muted); font-size: 15.5px; max-width: 860px; }
.faq-wrap { max-width: 900px; }
.faq-wrap .acc:first-child { border-top: 1px solid var(--line); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); font-family: var(--font-body); font-size: 15px; color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brass);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.contact-card {
  background: var(--green-900); color: var(--cream); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 22px;
}
.contact-card h3 { color: var(--cream); font-size: 22px; }
.contact-card .item { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.contact-card .item .k { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brass); display: block; font-weight: 700; }
.contact-card .item a { color: var(--cream); }
.contact-card .item a:hover { color: var(--brass); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-900), var(--green-800));
  color: var(--cream); border-radius: 18px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { color: rgba(250, 247, 240, .75); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(250, 247, 240, .72); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--cream); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(250, 247, 240, .72); font-size: 14.5px; }
.site-footer a:hover { color: var(--brass); }
.footer-brand p { font-size: 14.5px; margin: 14px 0 8px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 240, .12); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-900); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

::selection { background: var(--brass); color: var(--green-950); }
