/* Diamond Kitchen & Bath — design system.
   Brand carried forward from their existing identity: navy-indigo diamond
   mark on white, black serif display, tagline "We are a cut above the rest."
   Contrast (computed): navy #2B3990 on white 10.0:1; white on navy 10.0:1;
   ink #191B24 on white 17.4:1; periwinkle #B9C3F2 on ink-navy #14172E 9.6:1. */

:root {
  --navy: #2B3990;          /* brand primary — text-safe on white (10:1) */
  --navy-deep: #1F2A6B;
  --ink: #191B24;
  --ink-navy: #14172E;      /* dark surfaces (footer, topbar, hero scrim) */
  --peri: #B9C3F2;          /* accent on dark surfaces only */
  --paper: #FFFFFF;
  --mist: #F4F5FA;          /* soft section background */
  --line: #E2E5F0;
  --ink-soft: #4A4E5E;      /* 7.9:1 on white — safe for secondary text */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 23, 46, 0.10);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1 { line-height: 1.15; letter-spacing: .01em; margin: .35rem 0 .9rem; }

/* skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--navy); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; letter-spacing: .01em; font-weight: 500; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink-navy); color: #fff;
  font-size: .85rem; padding: .45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-block; padding: .15rem 0; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 84px; width: auto; }
.brand-name { display: none; }
.nav-links { display: flex; gap: 1.35rem; align-items: center; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: .55rem 1.05rem;
  border-radius: 3px; box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--navy-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .6rem; cursor: pointer; min-height: 40px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- hero (asymmetric split: solid text panel + full-opacity photo) ---------- */
.hero-split {
  display: grid; grid-template-columns: minmax(380px, 46%) 1fr;
  background: var(--ink-navy); color: #fff; align-items: stretch;
}
.hero-panel {
  padding: 4.2rem clamp(20px, 5vw, 4.5rem);
  padding-left: max(clamp(20px, 5vw, 4.5rem), calc((100vw - var(--max)) / 2 + 20px));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-panel h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 .6rem; }
.rating-line { color: var(--peri); font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; }
a.rating-line { display: inline-block; text-decoration: none; }
a.rating-line:hover { text-decoration: underline; }
.rating-line .stars { color: var(--peri); letter-spacing: .1em; }
.hero-panel .lede { font-size: 1.08rem; max-width: 46ch; color: #E8EAF6; }
.hero-photo { position: relative; min-height: 380px; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}

/* slim proof strip under the hero */
.proof-strip { background: var(--mist); border-bottom: 1px solid var(--line); }
.proof-strip .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .4rem 2.2rem; padding-top: .8rem; padding-bottom: .8rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}

/* inner-page hero band (generated pages + kitchen hand page) */
.page-hero { background: var(--ink-navy); color: #E8EAF6; padding: 2.4rem 0 2.8rem; }
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: var(--peri); }
.page-hero .crumbs, .page-hero .crumbs a { color: #B9C3F2; }
.page-hero .measure p { color: #E8EAF6; }
.page-hero a { color: var(--peri); }

/* slim navy CTA band (homepage, below reviews) */
.cta-band { background: var(--ink-navy); color: #fff; padding: 2.2rem 0; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
}
.cta-band p { font-size: 1.35rem; margin: 0; }
.cta-band .hero__actions { margin-top: 0; }
.hero__actions { display: flex; gap: 1.1rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 3px; font-size: 1rem;
}
.btn-solid { background: #fff; color: var(--navy-deep); }
.btn-solid:hover { background: var(--mist); }
.btn-line { border: 2px solid var(--peri); color: #fff; }
.btn-line:hover { background: rgba(185, 195, 242, .15); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-line-navy:hover { background: var(--mist); }
.tel-plain {
  color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
  font-weight: 700; padding: .8rem 0;
}
.tel-plain--dark { color: var(--peri); }

/* ---------- sections ---------- */
section { padding: 3.6rem 0; }
.section-alt { background: var(--mist); }
.kicker { color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; margin: .4rem 0 1rem; }
h3 { font-size: 1.12rem; margin: 1.3rem 0 .4rem; }
.measure { max-width: 68ch; }
.measure p, .measure ul, .measure ol { margin-bottom: .9rem; color: var(--ink); }
.measure li { margin-left: 1.2rem; margin-bottom: .35rem; }
.note { color: var(--ink-soft); font-size: .92rem; }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card a.more { font-weight: 700; text-decoration: none; }

/* photo cards (feature rows keep crops) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.photo-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* gallery: CSS columns so real aspect ratios show, no uniform crops */
.photo-columns { columns: 3 260px; column-gap: .9rem; margin-bottom: 1.4rem; }
.photo-columns img { border-radius: var(--radius); width: 100%; margin-bottom: .9rem; break-inside: avoid; }

/* homepage feature blocks (photo-led, alternating) */
.feature {
  display: grid; grid-template-columns: 7fr 5fr; gap: 2rem;
  align-items: center; margin-top: 1.8rem;
}
.feature--flip .feature-media { order: 2; }
.feature--flip .feature-text { order: 1; }
.feature-media img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.feature-text h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.feature-text p { color: var(--ink); margin-bottom: .7rem; }
.feature-text .more { font-weight: 700; text-decoration: none; }

/* showroom band */
.showroom-band { background: var(--ink-navy); color: #E8EAF6; }
.showroom-band h2 { color: #fff; }
.showroom-band a { color: var(--peri); }
.showroom-band .more { font-weight: 700; text-decoration: none; }
.kicker--dark { color: var(--peri); }

/* compact minor-services row */
.minor-services { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.minor-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.minor-row h3 { margin: 0 0 .3rem; font-size: 1rem; }
.minor-row p { font-size: .92rem; color: var(--ink-soft); }

/* price table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--ink-navy); color: #fff; font-size: .9rem; }
.price-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* reviews: one oversized pull-quote + compact list */
.pullquote { margin: 2rem 0 2.2rem; }
.pullquote p { max-width: 34ch;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; color: var(--ink);
}
.pullquote footer { margin-top: .8rem; font-weight: 700; font-size: .95rem; color: var(--navy-deep); }
.review-list { list-style: none; max-width: 68ch; }
.review-list li { border-top: 1px solid var(--line); padding: 1.1rem 0; margin: 0; }
.review-list p { font-size: .97rem; }
.review-list footer { margin-top: .45rem; font-weight: 700; font-size: .9rem; color: var(--navy-deep); }
.review-list footer span { color: var(--ink-soft); font-weight: 500; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { color: var(--navy); }
details p { margin-top: .6rem; color: var(--ink); }

/* form / contact */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.ms-form__loading { color: var(--ink-soft); }
.consent { font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; }
.fallback-call { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }

/* breadcrumbs */
.crumbs { font-size: .85rem; padding: .8rem 0 0; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); display: inline-block; padding: .4rem 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-navy); color: #D9DCEE; margin-top: 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding: 2.8rem 20px 2rem; }
.site-footer a { color: var(--peri); text-decoration: none; display: inline-block; padding: .18rem 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-logo { background: #fff; border-radius: 10px; padding: .5rem; width: 150px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); }
.legal .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 20px; font-size: .8rem; flex-wrap: wrap; }

/* ---------- mobile call bar (flush, no safe-area padding — pairs with
   data-chat-offset-bottom on the embed; see js/main.js hero observer) ---------- */
.callbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy-deep); height: 58px;
  transition: opacity .25s ease, transform .25s ease;
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; height: 100%;
}
.callbar a + a { border-left: 1px solid rgba(255,255,255,.25); }
.callbar--hero-visible { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* process timeline */
.timeline { list-style: none; counter-reset: step; margin-left: 0; }
.timeline li {
  position: relative; margin: 0 0 1.3rem; padding: 0 0 .2rem 2.6rem;
  border-left: 2px solid var(--line); margin-left: 1rem;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1rem; top: 0; width: 2rem; height: 2rem;
  background: var(--navy); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; transform: translateX(-1px);
}

/* per-page closing line */
.closing-line { margin-top: 2rem; font-size: 1.05rem; font-weight: 600; }

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  .review-list { max-width: none; columns: 2; column-gap: 3rem; }
  .review-list li { break-inside: avoid; }
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 300px; max-height: 300px; }
  .hero-panel { padding-left: clamp(20px, 5vw, 4.5rem); }
  .hero-panel { padding-top: 2.4rem; padding-bottom: 2.6rem; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.2rem; }
  .feature--flip .feature-media { order: 0; }
  .feature--flip .feature-text { order: 0; }
  .minor-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .callbar { display: flex; }
  body { padding-bottom: 58px; }

  .nav-toggle { display: block; }
  /* fixed drawer: no filter/transform/backdrop-filter on any ancestor —
     the header is plain sticky+white so the drawer positions to the viewport */
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 4.6rem 1.4rem 1.4rem; border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .25s ease; z-index: 55;
    height: 100vh; height: 100dvh; overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { display: inline-block; padding: .55rem 0; font-size: 1.05rem; }
  .nav-cta { margin-top: .8rem; padding: .7rem 1.2rem; }
  .site-footer a, .crumbs a, .topbar a { padding: .4rem 0; }
}
@media (max-width: 720px) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .brand img { height: 62px; }
}

/* footer wordmark (replaces the white-box logo image — pass 2 visual fix) */
.footer-wordmark { color: #fff; font-size: 1.7rem; letter-spacing: .1em; line-height: 1.1; font-weight: 700; }
.footer-sub { color: var(--peri); font-size: .7rem; letter-spacing: .3em; margin-top: .15rem; }
.footer-tag { color: #D9DCEE; font-style: italic; font-size: .95rem; margin-top: .5rem; }

/* header brand lockup (replaces the low-res JPEG logo — pass 3 visual fix) */
.brand-mark { flex: none; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word { font-weight: 700; font-size: 1.35rem; letter-spacing: .09em; color: var(--ink); }
.brand-under { font-size: .58rem; letter-spacing: .27em; color: var(--navy); font-weight: 600; }
@media (max-width: 520px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 1.1rem; }
  .brand-under { font-size: .5rem; }
}
