/* =========================================================
   Princeton Cabinet Co. — kitchencabinetsprinceton.com
   Plain CSS, no build step. Tokens from 03-structure.md §1.
   ========================================================= */

:root {
  --navy:        #1F2A44;
  --navy-dark:   #151D30;
  --walnut:      #7A5236;   /* primary action / nav bar */
  --walnut-dark: #5E3F29;
  --brass:       #B08D57;   /* hero + estimate CTA (navy text on it) */
  --brass-dark:  #8F7244;
  --sage:        #6B7F6A;
  --ink:         #1E1E24;
  --ink-soft:    #55606B;
  --line:        #E6E1D8;
  --bg:          #FFFFFF;
  --bg-alt:      #F7F4EF;
  --max:         1160px;
  --radius:      6px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
ul, ol { margin: 0 0 1rem 1.25rem; color: var(--ink-soft); }
li { margin-bottom: .35rem; }
strong { color: var(--ink); }
a  { color: var(--walnut); }
a:hover { color: var(--walnut-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons (named by color, per component-library rule) ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  text-align: center;
}
.btn--walnut { background: var(--walnut); color: #fff; }
.btn--walnut:hover { background: var(--walnut-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--brass { background: var(--brass); color: var(--navy); }
.btn--brass:hover { background: var(--brass-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 .4rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-top { background: var(--navy); color: #fff; }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.nav__logo:hover { color: #fff; }
.nav__logo svg { width: 34px; height: 40px; flex: none; }
.nav__logo-text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.nav__logo-text small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #D9C7A6; }
.header-contact { display: flex; gap: 22px; font-size: .92rem; }
.header-contact__item { color: #fff; text-decoration: none; }
.header-contact__item:hover { color: #D9C7A6; }
.header-contact__item span { color: #D9C7A6; margin-right: 6px; }

.site-nav { background: var(--walnut); }
.site-nav .wrap { display: flex; align-items: center; }
.nav__toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav__toggle { display: none; color: #fff; font-weight: 700; padding: 12px 0; cursor: pointer; }
.nav__links { display: flex; align-items: center; list-style: none; margin: 0; width: 100%; }
.nav__links > li { margin: 0; position: relative; }
.nav__links a { display: block; color: #fff; text-decoration: none; padding: 14px 14px; font-weight: 600; font-size: .95rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--walnut-dark); color: #fff; }
.nav__links .nav__estimate { margin-left: auto; }
.nav__links .nav__estimate a { background: var(--brass); color: var(--navy); }
.nav__links .nav__estimate a:hover { background: var(--brass-dark); color: #fff; }
.nav__links a.nav__call { background: var(--navy); }
.nav__links a.nav__call:hover { background: var(--navy-dark); }
.nav__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; list-style: none; margin: 0; box-shadow: 0 10px 24px rgba(0,0,0,.14); border-top: 3px solid var(--brass); }
.nav__sub a { color: var(--navy); font-weight: 500; }
.nav__sub a:hover { background: var(--bg-alt); color: var(--walnut); }
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { display: block; }

/* ---------- breadcrumb ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 10px 0; }
.breadcrumb li { margin: 0; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--brass-dark); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, #F7F4EF 0%, #EDE4D6 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero__eyebrow { display: inline-block; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero__lead { font-size: 1.12rem; color: var(--ink); max-width: 60ch; }
.hero__checklist { list-style: none; margin: 18px 0 8px; }
.hero__checklist li { padding-left: 30px; position: relative; color: var(--ink); font-weight: 600; }
.hero__checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--walnut); font-weight: 800; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__photo img { border-radius: 10px; box-shadow: 0 18px 40px rgba(31,42,68,.18); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 70ch; }
.section__lead--center { margin: 0 auto; text-align: center; }
.section h2 + .grid, .section h2 + table { margin-top: .6rem; }

.grid { display: grid; gap: 22px; margin: 1.4rem 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: var(--radius); padding: 24px; }
.section--alt .card { background: #fff; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-block; margin-top: 8px; font-weight: 700; }
.card ul { margin-bottom: 0; }

.team-card__photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #EDE4D6, #D9C7A6); border-radius: var(--radius); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: var(--walnut-dark); font-family: var(--font-head); font-size: 2rem; }
.team-card__role { color: var(--walnut); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

/* cost table */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.cost-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); min-width: 560px; }
.cost-table th, .cost-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table th { background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem; }
.cost-table td:first-child { font-weight: 700; color: var(--navy); }
.cost-table tr:nth-child(even) td { background: #FBF9F5; }

/* link lists */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 1.2rem 0; }
.linklist li { margin: 0; }
.linklist a { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--walnut); border-radius: var(--radius); color: var(--navy); font-weight: 600; text-decoration: none; }
.linklist a:hover { border-left-color: var(--brass); background: #FBF9F5; }
.linklist a::after { content: " →"; color: var(--brass-dark); }
.more-link { font-weight: 700; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 1.2rem auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--walnut); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; }
.faq-page h2 { font-size: 1.35rem; margin-top: 1.8rem; }

/* image band */
.image-band { padding: 18px 0; }
.image-band img { border-radius: 10px; width: 100%; max-height: 340px; object-fit: cover; }

/* phone strip CTA */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; text-align: center; }
.phone-strip p { max-width: 60ch; margin: 0 auto 1rem; }
.phone-strip .cta-row { justify-content: center; }

/* forms */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--navy); color: #fff; border-radius: 10px; padding: 28px; }
.form-card h2, .form-card h3 { color: #fff; }
.form-card p { color: #D7DCE6; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; color: #fff; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #C9CED8; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .85rem; margin-top: 10px; }
.form-note a { color: #D9C7A6; }
.form-card .btn { width: 100%; }
.field label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.field label.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.nap { list-style: none; margin: 0 0 1rem; }
.nap li { margin-bottom: .5rem; color: var(--ink); }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9CED8; padding: 56px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer p { color: #C9CED8; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer a { color: #E9DFC9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* mobile sticky action bar */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-contact { display: none; }
  .site-nav .wrap { flex-wrap: wrap; }
  .nav__toggle { display: block; }
  .nav__links { display: none; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav__toggle-input:checked ~ .nav__links { display: flex; }
  .nav__links .nav__estimate { margin-left: 0; }
  .nav__sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; min-width: 0; }
  .nav__sub a { color: #F2E9DA; padding-left: 30px; font-size: .9rem; }
  .nav__sub a:hover { background: var(--walnut-dark); color: #fff; }
  .hero__split, .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .linklist { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
  .mobile-bar a { padding: 15px 10px; text-align: center; font-weight: 700; text-decoration: none; }
  .mobile-bar__call { background: var(--walnut); color: #fff; }
  .mobile-bar__estimate { background: var(--brass); color: var(--navy); }
  body { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .grid--2, .grid--3, .linklist, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
