/* ==========================================================================
   Hickory Custom Cabinets — DESIGN.md Modern White Theme
   Generated from DESIGN.md tokens. Single --accent variable re-skins for any niche.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #6b5d5a;
  --accent-dark: #544946;
  --accent-soft: #f9f6f4;
  --accent-glow: rgba(107, 93, 90, 0.22);
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-slate: #0f172a;
  --line: #e7ebf0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .18);
  --container: 1160px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4em; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3em; }
li { margin-bottom: 0.5rem; }

/* Layout */
main, .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main { padding-top: 8px; padding-bottom: 8px; }
section { margin: 56px 0; }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}

/* ======================  HEADER / NAV  ===================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner, body > .nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}
.nav-links {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.nav-links > a, .nav-dropdown > a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #3a4759;
  font-size: 0.96rem;
  font-weight: 600;
}
.nav-links > a:hover, .nav-dropdown > a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px var(--accent);
}
.nav-phone:hover { background: var(--accent-dark); color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 230px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  display: block;
  padding: 9px 14px;
  color: #3a4759;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-dropdown-content a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ======================  BUTTONS  ========================================== */
.btn, button[type="submit"] {
  display: inline-block;
  padding: 14px 30px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-primary, button[type="submit"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px var(--accent);
}
.btn-primary:hover, button[type="submit"]:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-large { padding: 18px 40px; font-size: 1.12rem; }
.btn-full { width: 100%; }

/* ======================  HERO (text + form)  =============================== */
.hero-with-form {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  max-width: var(--container);
  padding: 64px 24px 56px;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('images/hickory-real-1.webp') center/cover no-repeat;
}
.hero-left h1 { margin-bottom: 18px; }
.hero-left h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 34em;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-badge {
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}

.hero-form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-form-box > h3 {
  background: var(--bg-slate);
  color: #fff;
  text-align: center;
  padding: 18px 20px 16px;
  font-size: 1.25rem;
  margin: 0;
}
.hero-form-box > h3 + p {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 14px 22px 0;
}
.hero-form-box form { padding: 18px 22px 24px; }
.hero-form-box .form-note {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ======================  FORMS  ============================================ */
.contact-form, .hero-form-box form {
  display: flex; flex-direction: column; gap: 11px;
}
.contact-form { max-width: 520px; margin: 22px auto 0; }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #9aa6b2; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ======================  SECTION HEADINGS  ================================= */
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 36px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* USP / value strip */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.usp-card {
  background: #fff;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.usp-card h3 { color: var(--ink); }
.usp-card p { margin: 0; font-size: 0.96rem; color: var(--muted); }

/* ======================  CARD GRIDS (Services + Areas)  ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #dfe6ee;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}
.card h3 { margin: 18px 20px 6px; }
.card p {
  margin: 0 20px 16px;
  font-size: 0.96rem;
  color: var(--muted);
}
.card .btn, .card a {
  margin: auto 20px 20px;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
}
.card .btn:hover, .card a:hover { color: var(--accent-dark); }

/* ======================  FAQ  ============================================== */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  padding: 18px 52px 18px 22px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--accent-dark); }
.faq-item > p, .faq-item p {
  margin: 0 22px 20px;
  color: var(--body);
}

/* ======================  CTA BAND  ========================================= */
.cta-bottom {
  text-align: center;
  background:
    radial-gradient(900px 400px at 80% -30%, var(--accent-glow), transparent 60%),
    var(--bg-slate);
  color: #fff;
  padding: 64px 30px;
  border-radius: var(--radius);
  max-width: var(--container);
  margin: 64px auto;
}
.cta-bottom h2 { color: #fff; }
.cta-bottom p { color: #cbd5e1; font-size: 1.1rem; max-width: 40em; margin: 0 auto 22px; }
.cta-bottom .cta-phone {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  box-shadow: 0 10px 22px -10px var(--accent);
  transition: transform .12s, background .15s;
}
.cta-bottom .cta-phone:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ======================  FOOTER  =========================================== */
.footer {
  background: var(--footer-bg, var(--bg-slate));
  color: var(--footer-text, #cbd5e1);
  padding: 56px 24px 28px;
  margin-top: 72px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.footer-col strong {
  color: #fff;
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}
.footer-col {
  font-size: 0.92rem;
  line-height: 1.95;
}
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-map iframe {
  border-radius: var(--radius-sm);
  max-width: 100%;
}
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ======================  BLOG CARD  ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.blog-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, var(--line));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 0;
}
.blog-card h3 { margin: 16px 20px 6px; }
.blog-card p { margin: 0 20px 14px; font-size: 0.92rem; color: var(--muted); }
.blog-card .blog-meta {
  margin: 0 20px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ======================  RESPONSIVE  ======================================= */
@media (max-width: 900px) {
  .hero-with-form { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .hero-form-box { max-width: 420px; margin: 0 auto; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.3rem !important; }
  .nav-inner, body > .nav { flex-direction: column; gap: 10px; }
  .nav-links { justify-content: center; gap: 4px; }
  .nav-links > a { font-size: 0.85rem; padding: 6px 10px; }
  .card-grid, .usp-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-map iframe { margin: 0 auto; display: block; }
}
