/* ============================================================
   Division Seven Millwork — shared site styles
   Palette + type carried over from the original single-page build.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Division Seven Millwork brand — sampled from the logo (#074267 steel blue + black on white). */
  --navy: #062B43;       /* deep steel blue — dark sections, nav, footer, headings */
  --navy-2: #0A3A59;     /* lighter steel — mobile menu bg, dark hovers */
  --red: #074267;        /* PRIMARY brand blue (exact logo mark) — links, accents, buttons */
  --orange: #C2974F;     /* warm brass/oak — secondary accent: eyebrows, stars, call button */
  --offwhite: #F6F4EF;   /* warm paper white */
  --card: #ffffff;
  --border: #E4DED3;
  --text: #16212B;       /* blue-black */
  --muted: #5d6770;
  --grad: linear-gradient(120deg, #074267, #0E5E8C);
  --shadow: 0 1px 2px rgba(6,43,67,.05), 0 8px 24px rgba(6,43,67,.09);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--offwhite);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link / a11y ---------- */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 80; background: #fff; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 50px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 40px; } }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a, .has-menu > a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.nav-links > a:hover, .has-menu > a:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.nav-cta { background: var(--orange); color: var(--navy) !important; padding: 9px 16px; border-radius: 6px; font-weight: 700; }
.nav-cta:hover { background: #b0843c; }

/* dropdown */
.has-menu { position: relative; }
.has-menu > a::after { content: "▾"; font-size: 10px; margin-left: 5px; opacity: .7; }
.menu { position: absolute; top: 130%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; }
.menu a:hover { background: var(--offwhite); }

/* mobile */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--navy); border-radius: 7px; padding: 7px 10px; font-size: 18px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; border-left: 1px solid var(--border); box-shadow: -8px 0 30px rgba(6,43,67,.12); flex-direction: column; align-items: stretch; gap: 2px; padding: 80px 20px 28px; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a, .has-menu > a, .menu a { padding: 12px 10px; font-size: 16px; }
  .has-menu > a::after { content: ""; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .menu a { color: var(--muted); }
  .menu a:hover { background: var(--offwhite); }
  .nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------- Breadcrumb ---------- */
.crumb { background: #fff; border-bottom: 1px solid var(--border); font-size: 13px; }
.crumb .wrap { padding-top: 11px; padding-bottom: 11px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--red); }
.crumb span { color: var(--navy); }
.crumb .sep { color: var(--border); margin: 0 8px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 76px 0 66px; }
.hero.compact { padding: 56px 0 50px; }
.hero-eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; margin-bottom: 14px; }
.hero h1 { font-weight: 900; font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,.74); font-size: 18px; max-width: 660px; margin-bottom: 28px; }
.hero.compact h1 { font-size: clamp(28px, 4.4vw, 42px); }
.hero-photo { background-image: linear-gradient(100deg, rgba(6,43,67,0.74) 0%, rgba(6,43,67,0.58) 50%, rgba(6,43,67,0.40) 100%), url('/assets/hero-bg.jpg'); background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.hero-photo .hero-eyebrow, .hero-photo .hero-copy h1, .hero-photo .hero-copy p { text-shadow: 0 2px 16px rgba(0,0,0,.55); }

/* hero copy (form now lives in the section below) */
.hero-copy { min-width: 0; max-width: 720px; }
.hero-copy h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; }
.hero-copy p { margin-bottom: 26px; }
.hero-copy .btn-row { margin-bottom: 0; }

/* services section with estimate form rail */
.split-form { display: grid; grid-template-columns: 1fr; gap: 34px; }
.split-main { min-width: 0; }
.form-rail { width: 100%; max-width: 600px; }
@media (min-width: 1000px) {
  .split-form { grid-template-columns: minmax(0, 1fr) 500px; gap: 34px; align-items: start; }
  .split-main { order: -1; }
  .split-main .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .form-rail { max-width: none; position: sticky; top: 86px; }
}
.hero-iframe { display: block; width: 100%; min-height: 300px; background: transparent; }
.form-heading { font-weight: 800; font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -0.01em; color: var(--navy); text-align: center; margin-bottom: 14px; }
.form-heading::after { content: ""; display: block; width: 54px; height: 3px; background: var(--orange); border-radius: 2px; margin: 10px auto 0; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 15px; cursor: pointer; border: none; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.32); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Trust bar ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.trust-inner { max-width: 1040px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 600; color: var(--navy); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .dot { color: var(--orange); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
.section-eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 10px; }
h2.section-title { font-weight: 900; font-size: clamp(24px, 3.4vw, 36px); color: var(--navy); margin-bottom: 16px; }
h3.sub-title { font-size: 20px; color: var(--navy); margin: 28px 0 10px; }
.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* prose */
.prose p { margin-bottom: 16px; color: #333; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: #333; }
.prose h2 { margin-top: 8px; }

/* ---------- Card grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .grid-2up { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card.link { text-decoration: none; color: inherit; transition: .14s ease; display: block; }
.card.link:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .more { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 600; font-size: 14px; }
.card .ico { font-size: 22px; margin-bottom: 12px; display: block; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 30px; padding: 8px 16px; font-size: 14px; color: #fff; text-decoration: none; }
.chip:hover { background: rgba(255,255,255,.16); }
.chip-light { background: var(--offwhite); border: 1px solid var(--border); color: var(--navy); }
.chip-light:hover { border-color: var(--red); }

/* ---------- Navy section variant ---------- */
.dark { background: var(--navy); color: #fff; }
.dark h2.section-title { color: #fff; }
.dark .section-eyebrow { color: var(--orange); }
.dark .lead { color: rgba(255,255,255,.74); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 22px; }
.contact-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.contact-card .value { font-size: 17px; font-weight: 600; color: var(--navy); }
.contact-card a { text-decoration: none; }

/* ---------- Stats / proof strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 22px; text-align: center; }
.stat .n { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 30px; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; }
.dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .stat .n { color: #fff; }
.dark .stat .l { color: rgba(255,255,255,.7); }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 24px; }
.review .stars { color: var(--orange); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.review p { font-size: 15.5px; color: #2a2a2a; font-style: italic; margin-bottom: 14px; }
.review .who { font-weight: 700; color: var(--navy); font-size: 14px; font-style: normal; }
.review .who small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: 16px; padding: 40px; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-bottom: 10px; }
.cta-band p { max-width: 560px; margin: 0 auto 22px; opacity: .95; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }

/* ---------- FAQ (CSS-only accordion) ---------- */
.faq details { background: #fff; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--navy); font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .a { padding: 16px 0; color: #333; font-size: 15px; }

/* ---------- Callout ---------- */
.callout { background: var(--offwhite); border-left: 3px solid var(--red); border-radius: 6px; padding: 16px 18px; margin: 18px 0; font-size: 14.5px; }
.legal h3 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.legal p { font-size: 15px; color: #333; margin-bottom: 12px; }
.updated { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 52px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer a { color: rgba(255,255,255,.78); text-decoration: none; }
footer a:hover { color: #fff; }
footer .brand-sm { font-family: 'Inter', sans-serif; font-weight: 800; color: #fff; font-size: 16px; margin-bottom: 10px; letter-spacing: -0.01em; }
footer .brand-sm span { color: var(--orange); }
.foot-h { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.foot-col a { display: block; padding: 4px 0; font-size: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* spacing helpers */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px){ .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Project photos / gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 6px; }
.gallery-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 270px; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 13px 16px; font-size: 13px; font-weight: 600; color: var(--navy); }
.gallery-grid figcaption span { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.lead-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); margin: 6px 0 26px; }
.lead-img.portrait { max-height: 560px; object-position: center; }

/* ---------- Team / staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: start; }
.staff-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.staff-card img { width: 100%; height: 320px; object-fit: cover; object-position: top center; display: block; }
.staff-body { padding: 20px 22px 24px; }
.staff-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 3px; }
.staff-card .role { color: var(--orange); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.staff-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
