/* ==========================================================================
   Chapman's Construction Wilmington — Design System v2 "Field Notes"
   Editorial / architectural, warm light canvas, teal + orange as sharp accents
   Type: Archivo (mixed-case display) | Brand: teal #4FC2BA, orange #F78F2E
   ========================================================================== */

:root {
  --teal:        #2E9A92;   /* primary accent on light */
  --teal-bright: #4FC2BA;   /* brand fill */
  --teal-deep:   #1F6F69;
  --orange:      #EC7F1E;   /* primary action on light */
  --orange-bright:#F78F2E;
  --orange-deep: #D26D11;
  --ink:         #16201D;
  --ink-2:       #233029;
  --paper:       #FAF8F4;   /* warm canvas */
  --card:        #FFFFFF;
  --muted:       #5E6A66;
  --line:        #E6E1D8;
  --line-dark:   rgba(250,248,244,.14);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper);
  font-size: 1.0625rem; line-height: 1.65; font-weight: 400; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1,h2,h3,h4 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* eyebrow + index-number label */
.eyebrow {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.74rem; color: var(--teal); margin: 0;
}
.eyebrow.on-dark { color: var(--teal-bright); }

.sec-label { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.sec-num {
  font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0.05em;
  color: var(--orange);
}
.sec-num::after { content: ""; display: inline-block; width: 30px; height: 1.5px; background: var(--line); vertical-align: middle; margin-left: 0.7rem; }
.section--dark .sec-num::after { background: var(--line-dark); }

.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-title { font-size: clamp(1.85rem, 3.8vw, 2.85rem); font-weight: 800; }
.sec-intro { color: var(--muted); margin: 1rem 0 0; font-size: 1.08rem; max-width: 620px; }
.section--dark .sec-intro { color: rgba(250,248,244,.74); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section--plain { border-top: none; }
.section--dark { background: var(--ink); color: var(--paper); border-top: none; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display);
  font-weight: 700; font-size: 0.97rem; padding: 0.85rem 1.5rem; border-radius: 7px;
  background: var(--orange); color: #fff; border: 1.5px solid var(--orange);
  text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(236,127,30,.7); }
.btn .arw { transition: transform .16s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: 0 14px 26px -14px rgba(46,154,146,.7); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ondark:hover { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: none; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1.02rem; }

/* ------------------------------ Header ------------------------------ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: rgba(250,248,244,.86); font-size: 0.82rem; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; flex-wrap: wrap; }
.topbar a { color: var(--teal-bright); text-decoration: none; font-weight: 700; }
.topbar__lic { color: rgba(250,248,244,.6); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 76px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.93rem; padding: 0.55rem 0.8rem; border-radius: 7px; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); }
.nav-links a:hover { color: var(--teal); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .55; }
.dropdown__menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 24px 50px -28px rgba(0,0,0,.45); min-width: 246px; padding: 0.4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; z-index: 70; }
.dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: block; padding: 0.55rem 0.8rem; font-weight: 500; border-radius: 7px; }
.dropdown__menu a:hover { background: var(--paper); color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.nav-phone { font-family: var(--display); font-weight: 800; text-decoration: none; font-size: 1rem; white-space: nowrap; color: var(--ink); }
.nav-phone span { display: block; font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hamburger { display: none; background: var(--ink); border: none; width: 46px; height: 42px; border-radius: 8px; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--paper); margin: 4px auto; transition: .2s; }

/* ------------------------------ Hero (editorial framed) ------------------------------ */
.hero { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__top { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero__title { font-size: clamp(2.6rem, 5.5vw, 4.7rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.97; }
.hero__title .geo { color: var(--teal); }
.hero__lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); margin: 1.25rem 0 0; max-width: 540px; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__creds { display: grid; gap: 0.85rem; padding-bottom: 0.4rem; }
.hero__creds li { list-style: none; display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; font-size: 0.97rem; }
.hero__creds li b { font-weight: 700; }
.hero__creds .tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--teal-bright); color: var(--ink); display: grid; place-items: center; font-size: .72rem; font-weight: 800; margin-top: 1px; }
.hero__creds ul { margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.hero__creds .lbl { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); margin: 0 0 .2rem; }

.hero__media { position: relative; margin: clamp(2.25rem, 4vw, 3.25rem) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 50px 90px -50px rgba(22,32,29,.6); }
.hero__media::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--orange); z-index: 2; }
.hero__media img { width: 100%; height: clamp(420px, 56vh, 720px); object-fit: cover; object-position: center 42%; }

/* ------------------------------ Services (horizontal cards) ------------------------------ */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.svc-row { display: grid; grid-template-columns: 136px 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.svc-row:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(22,32,29,.45); border-color: var(--teal); }
.svc-row__thumb { background: var(--ink); position: relative; overflow: hidden; }
.svc-row__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-row:hover .svc-row__thumb img { transform: scale(1.06); }
.svc-row__thumb--teal { background: var(--teal-bright); display: grid; place-items: center; }
.svc-row__thumb--orange { background: var(--orange-bright); display: grid; place-items: center; }
.svc-row__thumb svg { width: 52px; height: 52px; }
.svc-row__body { padding: 1.15rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.svc-row__body h3 { font-size: 1.14rem; font-weight: 800; }
.svc-row__body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.svc-row__more { margin-top: auto; color: var(--teal); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .35rem; }
.svc-row__more .arw { transition: transform .16s ease; }
.svc-row:hover .svc-row__more .arw { transform: translateX(4px); }

/* ------------------------------ Commercial (dark anchor) ------------------------------ */
.commercial__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center; }
.commercial__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.5rem; }
.commercial__list li { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; color: rgba(250,248,244,.92); font-size: 0.97rem; }
.commercial__list li::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--orange); flex: none; }
.commercial__media { position: relative; }
.commercial__media > img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/11; object-fit: cover; }
.commercial__media .inset { position: absolute; width: 44%; right: -4%; bottom: -10%; border-radius: var(--radius-sm); border: 6px solid var(--ink); aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* ------------------------------ Feature / case study ------------------------------ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -44px rgba(22,32,29,.55); }
.feature__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature__tag { position: absolute; top: 1rem; left: 1rem; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; padding: .45rem .85rem; border-radius: 6px; }
.feature__body .num { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: .95rem; }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: .6rem; }
.feature p.body { color: var(--muted); margin: 1.1rem 0 0; }
.feature ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.feature li { display: flex; gap: 0.75rem; align-items: center; font-weight: 500; }
.feature li .tick { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--teal-bright); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .72rem; }

/* ------------------------------ Gallery ------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery figure { margin: 0; }
.gallery .ph { border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { display: flex; gap: 0.6rem; align-items: baseline; margin-top: 0.7rem; font-size: 0.9rem; }
.gallery figcaption .gnum { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: 0.78rem; }
.gallery figcaption .glabel { font-weight: 600; }

/* ------------------------------ Reviews (featured + stack) ------------------------------ */
.reviews { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; align-items: start; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.8rem; position: relative; }
.review--feat { padding: 2.2rem 2.2rem; }
.review .mark { font-family: var(--display); font-weight: 800; color: var(--teal-bright); font-size: 2.6rem; line-height: 0.6; }
.review--feat .mark { font-size: 3.4rem; }
.review p { margin: 1rem 0 1.4rem; }
.review--feat p { font-size: 1.18rem; line-height: 1.55; }
.review__by { display: flex; align-items: center; gap: 0.75rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.review__by b { display: block; font-family: var(--display); }
.review__by small { color: var(--muted); }
.reviews__stack { display: grid; gap: 1.25rem; }
.reviews__stack .review { padding: 1.4rem 1.5rem; }
.reviews__stack .review p { font-size: 0.95rem; margin: 0.7rem 0 1.1rem; }

/* ------------------------------ FAQ (hairline list) ------------------------------ */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 0.2rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0.2rem 1.4rem; color: var(--muted); max-width: 760px; }
.faq .faq__a p { margin: 0; }

/* ------------------------------ Process ------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.step__n { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--teal); line-height: 1; }
.step h3 { font-size: 1.12rem; margin: 0.7rem 0 0.45rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ------------------------------ Estimate / CTA ------------------------------ */
.estimate__card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.25rem); }
.estimate__card h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.estimate__card p { color: rgba(250,248,244,.82); margin: 1rem 0 0; }
.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius-sm); padding: 1.8rem; }
.form-placeholder { border: 1.5px dashed var(--teal); border-radius: var(--radius-sm); padding: 2rem 1.4rem; text-align: center; background: var(--paper); }
.form-placeholder b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.form-placeholder small { color: var(--muted); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ink); color: rgba(250,248,244,.8); }
.footer-cta { padding: clamp(2.5rem,5vw,3.75rem) 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); color: var(--paper); max-width: 16ch; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; padding: clamp(2.75rem,5vw,3.75rem) 0 2.5rem; }
.footer-logo-card { display: inline-block; background: var(--paper); border-radius: 12px; padding: 12px 18px; margin-bottom: 1.1rem; }
.footer-logo-card img { height: 62px; width: auto; display: block; }
.site-footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--paper); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(250,248,244,.74); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-nap { font-size: 0.93rem; line-height: 1.7; }
.footer-nap a { color: var(--teal-bright); font-weight: 700; }
.footer-map { border-radius: var(--radius-sm); overflow: hidden; margin-top: 1rem; border: 1px solid var(--line-dark); }
.footer-map iframe { width: 100%; height: 190px; border: 0; display: block; filter: grayscale(.2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(250,248,244,.5); }
.footer-bottom a { color: rgba(250,248,244,.66); text-decoration: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero__top { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .hero__media img { height: auto; aspect-ratio: 3 / 2; object-position: center 42%; }
  .hero__creds { border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .hero__creds ul { grid-template-columns: 1fr 1fr; }
  .svc-list, .reviews, .feature, .commercial__grid, .estimate__card { grid-template-columns: 1fr; }
  .commercial__media .inset { position: static; width: 60%; margin: 0.9rem 0 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(86%, 340px); background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 5rem 1.2rem 2rem;
    border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5); overflow-y: auto; z-index: 80;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; }
  .nav-cta .btn { display: none; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(22,32,29,.5); opacity: 0; visibility: hidden; transition: .2s; z-index: 75; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .svc-list, .gallery, .steps, .footer-grid, .commercial__list, .hero__creds ul { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.9rem); }
}
@media (max-width: 420px) { .nav-phone span { display: none; } }
