/* =============================================================
   Charlotte Commercial Door Service — charlottecommercialdoorservice.com

   Single editorial column. One type family, two weights.
   Zero border radius, no shadows, no gradients, no blur.
   Elevation is expressed with rules and spacing only.

   Do not add a display face, a serif, or a monospace stack.
   Do not add border radius. The restraint is the identity.
   ============================================================= */

:root {
  /* palette — deep aubergine on cool paper, antique brass for links only */
  --primary:      #4A2B45;
  --primary-dark: #3A2036;
  --primary-tint: #F2ECF1;
  --ink:          #1C1A1F;
  --body:         #4B4750;
  --surface:      #FAFAFB;
  --surface-alt:  #E7E3E8;
  --border:       #D3CDD4;
  --accent:       #7E6014;   /* text links and inline emphasis ONLY.
                                never a button fill, never a band fill */

  /* measure */
  --col:   720px;   /* editorial column */
  --bar:   940px;   /* header / footer chrome */
  --gut:   22px;
  --spine: 30px;    /* distance from spine rule to text */

  /* one family, two weights */
  --f: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
       "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; border-radius: 0; }

/* ---------------------------------------------------------------
   Type — neo-grotesque, 700 for headings, sentence case throughout.
   No uppercase headings at any level.
   --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: .7em; }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; margin-bottom: .35em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin-bottom: 1.05rem; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

strong { font-weight: 700; color: var(--ink); }

/* standards + code references: NFPA 80, ANSI/BHMA A156.4, ASTM E283 */
.std {
  font-size: .9em;
  letter-spacing: .06em;
  color: var(--ink);
  font-weight: 400;
}

.lede { font-size: 1.12rem; color: var(--body); }
.note {
  font-size: .93rem;
  color: var(--body);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-top: 22px;
}

/* ---------------------------------------------------------------
   Bands and the spine
   Section bands alternate surface / surface-alt. At most one
   full-bleed aubergine band per page.
   --------------------------------------------------------------- */
.band { padding: 58px 0; background: var(--surface); }
.band--alt { background: var(--surface-alt); }
.band--tint { background: var(--primary-tint); }
.band--deep { background: var(--primary); color: #fff; }
.band--deep h1, .band--deep h2, .band--deep h3 { color: #fff; }
.band--deep p { color: rgba(255,255,255,.88); }
.band--deep a { color: #fff; }
.band--flush { padding: 0; }

/* the content column, with the 2px spine down its left edge */
.col {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gut) 0 calc(var(--gut) + var(--spine));
  position: relative;
}
.band > .col::before {
  content: "";
  position: absolute;
  left: var(--gut);
  top: -58px;
  bottom: -58px;
  width: 2px;
  background: var(--primary);
}
.band--deep > .col::before { background: rgba(255,255,255,.45); }

/* square section markers sit on the spine at each H2 */
.col h2 { position: relative; }
.col h2::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--spine) - 4px);
  top: .48em;
  width: 10px;
  height: 10px;
  background: var(--primary);
}
.band--deep .col h2::before { background: #fff; }

.col > * + h2 { margin-top: 2.4rem; }

/* a plain column with no spine — used by the hero and the CTA band */
.col--plain { padding-left: calc(var(--gut) + var(--spine)); }
.col--plain::before { display: none; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hdr__in {
  max-width: var(--bar);
  margin: 0 auto;
  padding: 12px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hdr__logo { display: block; line-height: 0; text-decoration: none; }
.hdr__logo img { height: 48px; width: auto; }
@media (max-width: 380px) { .hdr__logo img { height: 40px; } }

.nav { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav > li { position: relative; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
}
.nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.nav [aria-current="page"] { font-weight: 700; }

.nav__drop {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 290px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 0;
  list-style: none;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { display: block; }
/* keeps hover alive across the gap between the label and the panel */
.nav__item::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; display: none;
}
.nav__item:hover::after { display: block; }
.nav__drop a { display: block; padding: 9px 18px; font-size: .9rem; }
.nav__drop a:hover { background: var(--surface-alt); text-decoration: none; }

.hdr__call {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.hdr__call:hover { background: var(--primary-dark); }

.hdr__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hdr__toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 6px var(--gut) 16px;
  }
  .nav.is-open { display: flex; }
  .nav > li { padding: 9px 0; border-bottom: 1px solid var(--border); }
  .nav > li:last-child { border-bottom: 0; }
  .nav__drop {
    display: block;
    position: static;
    border: 0;
    min-width: 0;
    padding: 6px 0 0 16px;
  }
  .nav__drop a { padding: 7px 0; }
  .hdr__call { display: block; text-align: center; margin-top: 10px; }
}

/* ---------------------------------------------------------------
   Hero — text only. No photograph, no background image, no split.
   The phone number is the largest single element on the page.
   --------------------------------------------------------------- */
.hero { background: var(--surface); padding: 66px 0 54px; border-bottom: 1px solid var(--border); }
.hero__eyebrow {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 18px; max-width: 20ch; }
.hero__line { font-size: 1.14rem; max-width: 58ch; margin-bottom: 32px; }

.hero__num {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--primary);
  text-decoration: none;
}
.hero__num:hover { color: var(--primary-dark); text-decoration: none; }
.hero__numlabel {
  display: block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 12px;
}
.hero__sub { margin-top: 18px; font-size: .97rem; }

/* interior page leader — same shape, smaller number */
.hero--sub { padding: 52px 0 44px; }
.hero--sub h1 { max-width: 26ch; }
.hero--sub .hero__num { font-size: clamp(2rem, 5.5vw, 2.9rem); }

.crumbs { font-size: .84rem; margin-bottom: 20px; color: var(--body); }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs span { padding: 0 7px; color: var(--border); }

/* ---------------------------------------------------------------
   Buttons — squared, flat, aubergine. Never brass.
   --------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none !important;
  border: 2px solid var(--primary);
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--line {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn--line:hover { background: var(--primary); color: #fff !important; }
.band--deep .btn {
  background: #fff; color: var(--primary) !important; border-color: #fff;
}
.band--deep .btn:hover { background: var(--surface-alt); border-color: var(--surface-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }

/* ---------------------------------------------------------------
   Stacked blocks — service subitems, why-us, values, team, roles.
   Hairline top rule, term on its own line, explanation beneath.
   No definition list, no two-column split, no bullets, no cards.
   --------------------------------------------------------------- */
.stack { margin-top: 26px; }
.stack__i { border-top: 1px solid var(--border); padding: 22px 0 0; margin-bottom: 22px; }
.stack__i:last-child { margin-bottom: 0; }
.stack__i h3 { margin-bottom: .4em; }
.stack__i p { max-width: 64ch; }

/* why-us / values — short aubergine rule above each instead of a full one */
.points { margin-top: 26px; }
.points__i { margin-bottom: 26px; }
.points__i:last-child { margin-bottom: 0; }
.points__i::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 12px;
}
.band--deep .points__i::before { background: rgba(255,255,255,.6); }

/* team */
.crew { margin-top: 26px; }
.crew__i { border-top: 1px solid var(--border); padding-top: 22px; margin-bottom: 26px; }
.crew__i:last-child { margin-bottom: 0; }
.crew__role {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body);
  margin: 0 0 .7em;
  font-weight: 400;
}

/* plain prose lists — used inside legal blocks and call-prep lists */
.plainlist { list-style: none; margin: 0 0 1.05rem; max-width: 66ch; }
.plainlist li { position: relative; padding-left: 20px; margin-bottom: .55rem; }
.plainlist li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  background: var(--primary);
}
.band--deep .plainlist li::before { background: rgba(255,255,255,.7); }
.plainlist li:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Service index rows
   --------------------------------------------------------------- */
.svc { margin-top: 28px; }
.svc__i { border-top: 1px solid var(--border); padding: 24px 0 0; margin-bottom: 24px; }
.svc__i:last-child { margin-bottom: 0; }
.svc__i h3 { margin-bottom: .4em; }
.svc__i h3 a { color: var(--ink); text-decoration: none; }
.svc__i h3 a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.svc__more { display: inline-block; margin-top: .6em; font-size: .95rem; }

/* ---------------------------------------------------------------
   Cost tables — borderless. Rules under the header row and between
   rows only. No vertical rules, no header fill, no zebra striping.
   --------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin-top: 26px; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption {
  text-align: left;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body);
  padding-bottom: 12px;
}
th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding: 0 22px 11px 0;
  border-bottom: 2px solid var(--primary);
  vertical-align: bottom;
}
td {
  padding: 15px 22px 15px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--body);
}
td:last-child, th:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------
   Process steps — numbered rows with a large aubergine numeral
   hanging left of the text. No circles, no cards, no connecting line.
   --------------------------------------------------------------- */
.steps { list-style: none; margin-top: 28px; }
.steps__i {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 18px;
  margin-bottom: 28px;
}
.steps__i:last-child { margin-bottom: 0; }
.steps__n {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}
.steps__b h3 { margin-bottom: .35em; }
@media (max-width: 560px) {
  .steps__i { grid-template-columns: 1fr; gap: 6px; }
  .steps__n { font-size: 1.7rem; }
}

/* ---------------------------------------------------------------
   FAQ — squared, hairline separated, no cards
   --------------------------------------------------------------- */
.faq { margin-top: 26px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  padding: 18px 34px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p, .faq details > div { padding: 0 0 20px; }
.faq h3 { font-size: 1.05rem; }
.faq__group { margin-bottom: 34px; }
.faq__group:last-child { margin-bottom: 0; }
.faq__group > h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body);
  font-weight: 700;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Photographic bands.
   Source photography is roughly 600px on the long edge, so these are
   held to the column measure rather than run full-bleed — upscaling
   a 600px file across a 1400px viewport is visibly soft. Swap to
   full-bleed once 1600px+ crops exist; see .fig--bleed below.
   --------------------------------------------------------------- */
.fig { padding: 0; background: var(--surface-alt); }
/* left padding matches .col so the photograph aligns with the text measure
   rather than with the spine */
.fig__in {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gut) 0 calc(var(--gut) + var(--spine));
}
.fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fig figcaption {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--body);
  padding: 10px 0 0;
}
.fig--bleed .fig__in { max-width: none; padding: 0; }
.fig--bleed img { aspect-ratio: 3 / 1; }

/* ---------------------------------------------------------------
   Call panel — contact and estimate pages
   --------------------------------------------------------------- */
.callcard {
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 28px;
}
.callcard h2::before { display: none; }
.callcard h2 { margin-bottom: .55em; }
.callcard__note { font-size: .9rem; margin-top: 12px; }
.callcard__list { margin-top: 24px; }
.callcard__list h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: .9em;
}

/* ---------------------------------------------------------------
   Closing CTA band
   --------------------------------------------------------------- */
.cta { background: var(--primary); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; margin-bottom: .6em; }
.cta p { color: rgba(255,255,255,.88); }
.cta__num {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid rgba(255,255,255,.55);
  padding-bottom: 5px;
}
.cta__num:hover { border-bottom-color: #fff; color: #fff; }
.cta__free { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: 18px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.76); padding: 52px 0 26px; font-size: .93rem; }
.ftr__in { max-width: var(--bar); margin: 0 auto; padding: 0 var(--gut); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; gap: 28px; } }
.ftr__logo { margin-bottom: 18px; }
.ftr__logo img { height: 46px; width: auto; }
.ftr h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.ftr p { color: rgba(255,255,255,.76); margin-bottom: .9rem; max-width: 46ch; }
.ftr ul { list-style: none; }
.ftr li { margin-bottom: 9px; }
.ftr a { color: rgba(255,255,255,.76); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.ftr__call {
  display: inline-block;
  color: #fff !important;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(255,255,255,.45);
  padding-bottom: 3px;
}
.ftr__call:hover { border-bottom-color: #fff; }
.ftr__fine {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 62ch;
}
.ftr__bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------------------------------------------------------------
   Persistent bottom call bar, 760px and under.
   Flat aubergine, squared, the number and nothing else.
   --------------------------------------------------------------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: var(--primary);
    text-align: center;
  }
  .callbar a {
    display: block;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.16rem;
    letter-spacing: -0.01em;
    padding: 15px 12px;
    text-decoration: none !important;
  }
  body { padding-bottom: 58px; }
}

/* ---------------------------------------------------------------
   Accessibility
   --------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
