/* ============================================
   Renaissance Painting & Carpentry - Site CSS
   Single stylesheet. No frameworks, no builders.
   ============================================ */

:root {
  /* Brand palette - Renaissance brand book (Pomelli) */
  --navy: #1d1d22;        /* Obsidian Black */
  --navy-dark: #000000;   /* Jet Black */
  --gold: #cc9933;        /* Caramel Brown */
  --gold-dark: #a87c24;
  --cream: #f7f7f8;       /* Chalk White */
  --white: #ffffff;
  --text: #2a2a30;
  --text-light: #5c5c66;
  --border: #e4e4e8;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  --maxw: 1140px;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--serif); }

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; color: var(--navy); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.22; color: var(--navy); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; color: var(--navy); font-weight: 700; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section.alt { background: var(--white); }
.section-intro { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-intro p { color: var(--text-light); }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #d8d8dc;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(204,153,51,0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.logo { text-decoration: none; line-height: 1; display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.footer-logo-img { height: 46px; width: auto; margin-bottom: 16px; }

/* gold deco rule under centered section headings */
.section-intro h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto 0;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 0;
}

nav.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #f2f2f4;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
}
nav.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }

/* dropdown */
nav.main-nav li.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
nav.main-nav li.has-sub ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 230px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 8px;
  flex-direction: column;
}
nav.main-nav li.has-sub:hover ul,
nav.main-nav li.has-sub:focus-within ul { display: flex; }
nav.main-nav li.has-sub ul a { padding: 9px 12px; font-weight: 500; color: var(--navy); }
nav.main-nav li.has-sub ul a:hover { background: var(--cream); color: var(--gold-dark); }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 1.1rem;
  color: var(--gold);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.97) 0%, rgba(29,29,34,0.92) 55%, rgba(43,43,50,0.86) 100%),
    repeating-linear-gradient(45deg, #232329 0 12px, #1d1d22 12px 24px);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero h1 { color: var(--white); max-width: 750px; }
.hero .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--sans);
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.15rem; max-width: 640px; margin: 18px 0 30px; color: #dededf; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero-badges .badge b { display: block; color: var(--gold); font-size: 1.5rem; font-family: var(--sans); }
.hero-badges .badge span { font-size: 0.85rem; color: #b9b9c0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service tiles (image + heading + copy) ---------- */
.service-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}
.service-tile__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-tile h3,
.service-tile p {
  padding: 0 22px;
}
.service-tile h3 { padding-top: 20px; margin-bottom: 8px; }
.service-tile p  { padding-bottom: 22px; color: var(--text-light); margin: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-dark);
}
.card p { color: var(--text-light); font-size: 0.98rem; }
.card .card-link { font-weight: 700; text-decoration: none; font-family: var(--sans); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.step-num {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--text-light); margin-bottom: 0; }

/* ---------- Pricing ---------- */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: 4px; }
.price-tag { font-size: 1.9rem; font-weight: 800; color: var(--gold-dark); margin: 10px 0 14px; }
.price-card p { flex: 1; }
.price-note { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 22px; font-style: italic; }
.price-card.featured { border: 2px solid var(--gold); position: relative; }
.price-card.featured::before {
  content: "Most Common";
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--sans);
}

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 10px; }
.review-card blockquote { flex: 1; color: var(--text-light); font-style: italic; margin-bottom: 14px; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--navy); font-family: var(--sans); font-size: 0.95rem; }
.review-card .service-tag { font-size: 0.8rem; color: var(--gold-dark); font-family: var(--sans); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: var(--white); padding: 55px 0; }
.stats-band .grid { text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--gold); }
.stats-band span { color: #b9b9c0; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 700px; margin: 0 auto 14px; }
.cta-band p { color: #c6c6cc; max-width: 560px; margin: 0 auto 28px; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 22px;
  font-family: var(--sans);
  list-style: none;
  position: relative;
  padding-right: 46px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dark);
  font-size: 1.4rem;
  font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 22px 18px; color: var(--text-light); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }

/* ---------- Contact info ---------- */
.contact-info-card p { margin-bottom: 8px; }
.contact-info-card a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #b3b3ba; padding: 60px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer a { color: #b3b3ba; text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-logo { font-family: Georgia, serif; font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: 12px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: #dededf; max-width: 640px; font-size: 1.1rem; margin-top: 14px; }
.breadcrumbs { font-size: 0.82rem; margin-bottom: 18px; color: #9a9aa2; font-family: var(--sans); }
.breadcrumbs a { color: var(--gold); text-decoration: none; }

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .visual {
  background: linear-gradient(135deg, var(--navy) 0%, #2c4258 100%);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

/* ---------- Service list ticks ---------- */
ul.ticks { list-style: none; margin: 0 0 1em; }
ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.ticks li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--gold-dark);
  font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(204,153,51,0.35);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    /* the panel holds ~40 links with every submenu expanded, so it must
       scroll on its own - it sits under a sticky header and cannot rely
       on the page scrolling behind it. */
    max-height: calc(100vh - var(--header-h, 64px));
    max-height: calc(100dvh - var(--header-h, 64px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  nav.main-nav.open { display: block; }
  body.nav-open { overflow: hidden; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main-nav li.has-sub ul {
    display: flex; position: static; box-shadow: none;
    padding-left: 16px; min-width: 0;
    background: transparent;
  }
  nav.main-nav li.has-sub ul a { color: #d8d8dc; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 50px 0; }
  .hero { padding: 60px 0 80px; }
  .topbar .container { justify-content: center; }
}

@media (max-width: 600px) {
  .logo img { height: 42px; }
}

/* ---------- v3: photo-driven components ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-dark); padding: 10px 18px; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.photo-hero { background-size: cover; background-position: center; }
.hero.photo-hero { padding: 110px 0 120px; }

.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.svc-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 22px 24px 26px; }
.svc-body .card-link { color: var(--gold-dark); }

.content-split { margin-bottom: 8px; }
.content-split .photo-frame { max-height: 420px; }

.steps-wrap { max-width: 680px; margin: 0 auto; }
.faq-wrap { max-width: 780px; margin: 0 auto; }
.prose-block { max-width: 780px; margin: 0 auto 20px; }
.prose-block img { border-radius: 8px; margin: 14px 0; }
.big-sub { font-size: 1.15rem; color: var(--text-light); }

.gallery { column-count: 3; column-gap: 18px; }
.gallery .tile { break-inside: avoid; margin-bottom: 18px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; display: block; }

.post-grid .post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; }
.post-card-body h3 { font-size: 1.1rem; }
.post-card-body h3 a { color: var(--navy); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--gold-dark); }
.post-date { font-size: .8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

.post-body { max-width: 760px; margin: 0 auto; }
.post-body h2 { margin-top: 1.4em; }
.post-body h3 { margin-top: 1.1em; }
.post-body img { border-radius: 10px; margin: 18px 0; }
.post-body ul, .post-body ol { margin: 0 0 1em 1.4em; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.post-body td, .post-body th { border: 1px solid var(--border); padding: 8px 12px; }
.post-body blockquote { border-left: 4px solid var(--gold); padding-left: 18px; color: var(--text-light); margin: 1em 0; }

.post-nav { max-width: 760px; margin: 34px auto 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; }
.post-nav a { text-decoration: none; }
.post-nav .nx { text-align: right; margin-left: auto; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; background: var(--white); }
.pager a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

ul.ticks { margin: 0 0 1.2em; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 960px) {
  .gallery { column-count: 2; }
  .content-split .photo-frame { order: -1; }
}
@media (max-width: 600px) {
  .gallery { column-count: 1; }
  .hero.photo-hero { padding: 70px 0 90px; }
}

/* ---------- v4: logo, socials, nav icons, calculator, gallery projects ---------- */
.logo { gap: 12px; flex-wrap: wrap; }
.logo .logo-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #f2f2f4;
  font-weight: 500;
  border-left: 1px solid rgba(204,153,51,.5);
  padding-left: 12px;
}
.footer-logo-block { display: flex; align-items: center; margin-bottom: 16px; }

.social-icons { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.social-icons a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #b3b3ba;
  transition: color .15s, border-color .15s, transform .15s;
}
.social-icons a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* Social icons on a light background (e.g. Eric's bio on /about-us/) */
.social-icons.on-light a { border-color: var(--border); color: var(--navy); background: var(--white); }
.social-icons.on-light a:hover { color: var(--gold-dark); border-color: var(--gold); }
.eric-social { margin-top: 16px; }
.footer-cred { font-size: .8rem; color: #8f8f98; }
footer ul img { display: none; } /* icons only in header nav */

nav.main-nav li.has-sub ul a { display: flex; align-items: center; gap: 10px; }
nav.main-nav li.has-sub ul img { flex: 0 0 18px; }
nav.main-nav li.has-sub ul { min-width: 265px; padding: 10px; }

/* calculator */
.calc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 30px;
  max-width: 860px;
  margin: 0 auto;
}
.calc h2 { text-align: center; }
.calc-sub { text-align: center; color: var(--text-light); font-size: .95rem; max-width: 560px; margin: 0 auto 24px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.calc-result { text-align: center; border-top: 1px dashed var(--border); padding-top: 22px; }
.calc-range {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}
.calc-note { color: var(--text-light); font-size: .92rem; max-width: 560px; margin: 0 auto 6px; }
.calc-disclaimer { font-size: .78rem; color: var(--text-light); font-style: italic; max-width: 520px; margin: 0 auto 16px; }

/* portfolio projects */
.project-card { padding: 0; overflow: hidden; margin-bottom: 34px; }
.project-head { padding: 26px 28px 6px; }
.project-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; }
.project-head p { color: var(--text-light); max-width: 800px; }
.project-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 18px 28px 8px; }
.project-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.project-more { padding: 0 28px 22px; }
.project-more summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); padding: 8px 0; list-style: none; }
.project-more summary::-webkit-details-marker { display: none; }
.project-more summary::after { content: " ▸"; }
.project-more[open] summary::after { content: " ▾"; }
.project-more .project-photos { padding: 10px 0 0; }

/* pricing table (real data) */
.pricing-real { max-width: 860px; margin: 0 auto; }
.pricing-real table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.pricing-real th { background: var(--navy); color: var(--white); text-align: left; padding: 14px 18px; font-family: var(--sans); font-size: .9rem; }
.pricing-real td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.pricing-real tr:last-child td { border-bottom: none; }
.pricing-real .price-em { color: var(--gold-dark); font-weight: 700; }
.pricing-src { font-size: .8rem; color: var(--text-light); text-align: center; margin-top: 12px; }

/* contact video */
.video-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; display: block; }
.map-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.trust-badges .badge-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.trust-badges .badge-card b { display: block; color: var(--navy); font-family: var(--sans); font-size: .92rem; }
.trust-badges .badge-card span { font-size: .82rem; color: var(--text-light); }

/* review response */
.review-card .owner-response { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 6px; padding: 10px 14px; font-size: .85rem; color: var(--text-light); margin-top: 12px; }
.review-card .owner-response b { color: var(--navy); }
.google-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 30px; padding: 8px 18px; font-weight: 600; color: var(--navy); text-decoration: none; box-shadow: var(--shadow); }

@media (max-width: 700px) {
  .calc-fields { grid-template-columns: 1fr; }
  .project-photos { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
  .logo .logo-sub { display: none; }
}

.logo img { height: 34px; }
.footer-logo-block img { height: 30px; }

nav.main-nav li.has-sub ul a { justify-content: flex-start; text-align: left; }

/* ---------- v5 ---------- */
nav.main-nav > ul > li > a, .nav-cta .btn { white-space: nowrap; }
nav.main-nav ul { flex-wrap: nowrap; }
@media (min-width: 961px) {
  .header-inner { gap: 10px; }
  nav.main-nav a { padding: 10px 11px; font-size: 0.92rem; }
  .logo .logo-sub { letter-spacing: 2.5px; padding-left: 10px; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .logo .logo-sub { display: none; }
}
/* home portfolio preview */
.home-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.home-gallery a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.home-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.home-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .home-gallery { grid-template-columns: repeat(2, 1fr); } }
/* job pages */
.job-body { max-width: 780px; margin: 0 auto; }
.job-body h2 { margin-top: 1.3em; }
.job-cards .card h3 a { color: var(--navy); text-decoration: none; }
.job-meta { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* ---------- v6 ---------- */
/* announcement banner in hero */
.announce {
  display: inline-block;
  background: rgba(204,153,51,.14);
  border: 1px solid var(--gold);
  color: #f4e3c0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 600;
  margin: 18px 0 4px;
}

/* table of contents */
.toc { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; max-width: 780px; margin: 0 auto 34px; box-shadow: var(--shadow); }
.toc summary { font-weight: 700; color: var(--navy); cursor: pointer; font-family: var(--sans); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " ▾"; color: var(--gold-dark); }
.toc[open] summary::after { content: " ▴"; }
.toc ol { margin: 12px 0 0 1.2em; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
/* minimal service-page toc: pill row */
.toc-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto; padding: 24px 16px 28px; max-width: 980px; background: var(--white); box-shadow: 0 0 0 100vmax var(--white); clip-path: inset(0 -100vmax); }
.toc-pills a { background: var(--white); border: 1px solid var(--border); border-radius: 30px; padding: 7px 16px; font-size: .85rem; font-weight: 600; color: var(--navy); text-decoration: none; box-shadow: var(--shadow); }
.toc-pills a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* inline CTA in articles */
.cta-inline { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); border-radius: 12px; padding: 24px 28px; margin: 30px 0; color: #dededf; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-inline b { color: var(--white); font-family: var(--serif); font-size: 1.15rem; display: block; }
.cta-inline p { margin: 4px 0 0; font-size: .92rem; }
.cta-inline .btn { flex-shrink: 0; }
.related-inline { border-left: 3px solid var(--gold); background: var(--cream); border-radius: 6px; padding: 10px 16px; margin: 22px 0; font-size: .95rem; }

/* author bio */
.author-bio { display: flex; gap: 20px; max-width: 760px; margin: 40px auto 0; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); align-items: flex-start; }
.author-bio img.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio .a-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.author-bio .a-title { color: var(--gold-dark); font-size: .85rem; font-weight: 600; margin-left: 8px; }
.author-bio p { font-size: .92rem; color: var(--text-light); margin: 8px 0 10px; }
.author-bio .a-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.author-bio .a-tags span { background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.author-bio .a-social { display: inline-flex; gap: 10px; margin-left: 10px; vertical-align: middle; }
.author-bio .a-social a { color: var(--text-light); }
.author-bio .a-social a:hover { color: var(--gold-dark); }

/* trust badges */
.badges-strip { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.tbadge { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); min-height: 64px; }
.tbadge b { display: block; font-family: var(--sans); font-size: .9rem; line-height: 1.25; }
.tbadge span { font-size: .75rem; color: var(--text-light); display: block; }
.tbadge .stars-sm { color: var(--gold); font-size: .8rem; letter-spacing: 1px; }
.tbadge:hover { border-color: var(--gold); }
.tbadge svg, .tbadge img { flex-shrink: 0; }

/* partner logos */
.partners-row { display: flex; gap: 34px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 36px; opacity: .85; }
.partners-row img { height: 30px; width: auto; filter: grayscale(1); }
.partners-row .p-text { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; text-decoration: none; }
.partners-row .p-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: .68rem; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

/* compact contact */
.contact-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.contact-compact .card { padding: 22px 22px; height: 100%; }
.contact-compact h3 { font-size: 1.08rem; }
.contact-compact p { font-size: .9rem; margin-bottom: 8px; }
.section.compact { padding: 46px 0; }

/* video embed responsive */
.yt-frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* calculator consistency (scoped, immune to page styles) */
.calc .calc-fields label { display: block; font-family: var(--sans); font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.calc .calc-fields input, .calc .calc-fields select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--white); color: var(--text); margin: 0; appearance: auto;
}
.calc .calc-fields input:focus, .calc .calc-fields select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* service page gallery strip */
.svc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.svc-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .contact-compact { grid-template-columns: 1fr; }
  .svc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .toc-pills { display: none; } /* mobile uses collapsible toc instead */
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
  .cta-inline { flex-direction: column; text-align: center; }
}

/* ---------- v7: chat, facts, spec ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab.open { background: var(--navy); color: var(--gold); }
.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 300;
  width: 300px; background: var(--white); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25); overflow: hidden;
  font-family: var(--sans);
}
.chat-head { background: var(--navy); color: var(--white); padding: 16px 18px; }
.chat-head b { display: block; font-size: .98rem; }
.chat-head span { font-size: .78rem; color: #b9b9c0; }
.chat-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; text-decoration: none; color: var(--navy);
  font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--border);
}
.chat-panel a:hover { background: var(--cream); color: var(--gold-dark); }
.chat-panel a:last-child { border-bottom: none; }
.chat-panel svg { color: var(--gold-dark); flex-shrink: 0; }

/* straight answers */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 22px 18px; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.fact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--text-light); font-weight: 700; margin-bottom: 8px; }
.fact-value { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.fact-note { display: block; font-size: .8rem; color: var(--text-light); margin-top: 6px; }

.spec-h { margin-bottom: 16px; }
.spec-list { list-style: none; counter-reset: spec; margin: 0; }
.spec-list li {
  counter-increment: spec; position: relative;
  padding: 0 0 16px 46px; font-size: .95rem; color: var(--text);
}
.spec-list li::before {
  content: counter(spec, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.05rem;
}
.spec-list li::after {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 4px;
  width: 1px; background: var(--border);
}
.spec-list li:last-child::after { display: none; }

.wait-card {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  border-radius: 14px; padding: 26px 28px; color: #dededf; margin-bottom: 20px;
  border-left: 4px solid var(--gold);
}
.wait-card h3 { color: var(--gold); font-size: 1.15rem; }
.wait-card p { font-size: .93rem; margin: 0; }
.honest-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; box-shadow: var(--shadow); }
.honest-card h3 { font-size: 1.05rem; }
.honest-card ul { list-style: none; margin: 12px 0 0; }
.honest-card li { position: relative; padding: 0 0 10px 26px; font-size: .88rem; color: var(--text-light); }
.honest-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.honest-foot { font-size: .78rem; font-style: italic; color: var(--text-light); margin: 10px 0 0; }

@media (max-width: 960px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .fact-grid { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* ---------- v8: editorial blocks, announce spacing ---------- */
.announce { display: block; max-width: 620px; margin: 20px 0 30px; }

/* undesigned prose sections -> editorial cards */
.section > .container > .prose-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 36px 44px;
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 860px;
}
.section.alt > .container > .prose-block { background: var(--cream); }
.section > .container > .prose-block h2 { text-align: left; }
.section > .container > .prose-block h2::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--gold); margin: 14px 0 0;
}
.section > .container > .prose-block p:last-child { margin-bottom: 0; }

/* long pull-quote subheads */
.section-intro p.big-sub, p.big-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow);
  padding: 28px 34px 28px 66px;
  text-align: left;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
p.big-sub::before {
  content: "\201C";
  position: absolute; left: 20px; top: 8px;
  font-size: 3.4rem; line-height: 1;
  color: var(--gold); font-style: normal;
}
.section.alt p.big-sub { background: var(--cream); }
@media (max-width: 600px) {
  .section > .container > .prose-block { padding: 26px 22px; }
  p.big-sub { padding: 22px 22px 22px 52px; font-size: 1.08rem; }
}

/* ---------- v9: sub-service mini cards ---------- */
.svc-mini { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.svc-mini:hover { transform: translateY(-3px); border-color: var(--gold); }
.svc-mini b { display: block; font-family: var(--sans); font-size: .95rem; color: var(--navy); }
.svc-mini small { color: var(--text-light); font-size: .8rem; }
.svc-mini img { flex-shrink: 0; }

/* v10: content tables (e.g. why-choose sections) */
.content-split table, .prose-block table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; border: 1px solid rgba(204,153,51,0.45); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.content-split table td, .content-split table th, .prose-block table td, .prose-block table th { border: 1px solid rgba(29,29,34,0.12); padding: 12px 14px; vertical-align: top; text-align: left; }
.content-split table tr:nth-child(odd) td, .prose-block table tr:nth-child(odd) td { background: rgba(204,153,51,0.07); }
.content-split table td:first-child, .prose-block table td:first-child { white-space: nowrap; color: var(--navy); border-left: 3px solid var(--gold); }
.content-split table strong, .prose-block table strong { font-family: var(--sans); }
@media (max-width: 640px) { .content-split table td:first-child, .prose-block table td:first-child { white-space: normal; } }

/* v10: in-section CTA buttons */
.sec-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* v10: compact contact block on service pages */
.contact-mini .card { text-align: center; padding: 26px 22px; }
.contact-mini .card h3 { color: var(--gold); margin-bottom: 8px; }
.contact-mini .card a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-mini .card a:hover { color: var(--gold); }
.contact-mini .card p { margin: 4px 0; font-size: .92rem; }

/* ===== unified spacing & new sections (2026-08 restructure) ===== */
.gap-top { margin-top: 44px; align-items: flex-start; }
.gap-top-sm { margin-top: 28px; }
.centered-h2 { text-align: center; margin-bottom: 36px; }
.merged-note { max-width: 720px; margin: 28px auto 0; text-align: center; }
.merged-note p { color: var(--text-light); }
.section .btn.btn-gold { margin-top: 22px; display: inline-block; }

/* stats band directly under toc pills - no gap */
.stats-band { margin-top: 0; }
.page-hero + .toc-pills + .stats-band { margin-top: 0; }

/* Recent Work slider */
.work-slider { position: relative; }
.ws-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ws-track::-webkit-scrollbar { display: none; }
.ws-slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.ws-slide img { width: 100%; height: 260px; object-fit: cover; display: block; }
.ws-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--navy); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow); transition: all .2s; }
.ws-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.ws-prev { left: -14px; }
.ws-next { right: -14px; }
@media (max-width: 900px) { .ws-slide { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .ws-slide { flex-basis: 100%; } .ws-slide img { height: 220px; } }

/* Video + text split */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-split { align-items: center; }

/* ============ Appended: credentials block (drop-in) ============ */
/* ============================================================
   CREDENTIALS BLOCK
   Tokens taken from the existing Elementor globals so this
   matches the rest of the site rather than introducing a
   second visual language.
     gold  #D09F57   heading rule, tier-1 accent
     teal  #16A5B6   secondary rule
     ink   #2E2E2E   body copy
     bg    #F7F5F1   section background (global 9703728)
     card  #FFFFFF   card background (global c1e7fc9)
   ============================================================ */

.creds,
.affil {
  --gold: #D09F57;
  --teal: #16A5B6;
  --ink: #2E2E2E;
  --muted: #6B6B6B;
  --bg: #F7F5F1;
  --card: #FFFFFF;
  --rule: #E4DED4;

  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

.creds {
  background: var(--bg);
  padding: 4rem 1.25rem;
}

.creds__inner,
.affil__inner {
  max-width: 1080px;
  margin-inline: auto;
}

/* --- Section heading: matches the sitewide 5px bottom rule --- */
.creds__title,
.affil__title {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 5px solid var(--gold);
  display: inline-block;
}

.creds__lead {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 3rem;
}

.cred-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

/* --- Tier 1: the one credential that carries the block ------ */
.cred-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: start;
  background: var(--card);
  border-left: 5px solid var(--gold);
  padding: 2rem;
  margin-bottom: 3rem;
}

.cred-hero__cert {
  margin: 0;
}

.cred-hero__cert img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}

.cred-verify {
  margin-top: 1rem !important;
  font-size: 0.9375rem;
}

.cred-verify a { color: var(--teal); font-weight: 600; }

.cred-hero__name {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.cred-hero__name span {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-top: 0.35rem;
}

.cred-holder {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.cred-hero__body p {
  line-height: 1.65;
  margin: 0 0 1rem;
}

.cred-hero__body p:last-child { margin-bottom: 0; }

/* --- Tier 2 + 3 groups -------------------------------------- */
.cred-group,
.cred-standards { margin-bottom: 3rem; }

.cred-group__title {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

.cred-group__note {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.75rem 0 1.5rem;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.cred-list li {
  padding: 1rem 1.25rem 1rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--card);
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.45rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.cred-list__name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.cred-list__desc {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- Tier 3 ------------------------------------------------- */
.cred-aux {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: center;
  background: var(--card);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.cred-aux__cert { margin: 0; }

.cred-aux__cert img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}

.cred-aux__name {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.cred-aux__body p {
  line-height: 1.65;
  margin: 0;
}

/* --- Standards ---------------------------------------------- */
.cred-standards p {
  max-width: 62ch;
  line-height: 1.65;
  margin: 0.75rem 0 1.25rem;
}

.cred-standards__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}

.cred-standards__list li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  position: relative;
}

.cred-standards__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 1px;
  background: var(--teal);
}

/* --- Affiliations: dark, because the logo is reversed ------- */
.affil {
  background: #1F2124;
  padding: 3rem 1.25rem;
}

.affil__title {
  color: #FFFFFF;
  border-bottom-color: var(--teal);
}

.affil__row {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem 1.5rem;
}

.affil__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 240px;
}

.affil__item img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  display: block;
}

.affil__caption {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  text-align: center;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 820px) {
  .cred-hero,
  .cred-aux {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .creds { padding: 2.5rem 1rem; }
  .cred-hero { padding: 1.25rem; }
}

/* --- Quality floor ------------------------------------------ */
.creds a:focus-visible,
.affil a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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