:root {
  --charcoal: #161616;
  --charcoal-soft: #242424;
  --paper: #faf9f6;
  --paper-2: #ffffff;
  --safety: #003b82;
  --safety-light: #0063c7;
  --blueprint: #0053a8;
  --steel: #6b7280;
  --line: #e7e5e0;
  --ink-70: rgba(22,22,22,0.7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--safety); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: 1180px; margin: 0 auto; }
.logo-link { display: flex; align-items: center; }
.site-logo { height: 44px; width: auto; display: block; }
.navlinks { display: flex; gap: 36px; font-size: 14.5px; font-weight: 500; }
.navlinks a { color: var(--charcoal); opacity: 0.75; position: relative; }
.navlinks a:hover { opacity: 1; }
.nav-cta { background: var(--charcoal); color: var(--paper); padding: 10px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; transition: transform .2s ease; }
.nav-cta:hover { transform: translateY(-2px); }

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--charcoal);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown nav (hidden on desktop, toggled open via JS on small screens) */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid var(--line);
}
.nav-mobile.is-open { max-height: 320px; }
.nav-mobile a {
  padding: 14px 32px;
  font-size: 15px; font-weight: 500; color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-cta { color: var(--safety) !important; font-weight: 700 !important; }

/* Archive/index card hover lift (Service, Service Area, and blog listing
   cards) — consistent with the homepage's service-card interaction. */
.wp-block-post-template .has-concrete-background-color {
  transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-post-template li:hover .has-concrete-background-color {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(22,22,22,0.08);
}
.navlinks a.is-active,
.nav-mobile a.is-active {
  color: var(--safety);
  opacity: 1;
}
.navlinks a.is-active { font-weight: 700; }

/* Back-to-top button (created dynamically by JS) */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--charcoal);
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 60;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--safety); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .25s ease, visibility .25s; }
  .back-to-top:hover { transform: none; }
}

/* Hero */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; z-index: 0; pointer-events: none; }
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--safety-light), transparent 70%); top: -180px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--blueprint), transparent 70%); bottom: -160px; left: -140px; opacity: 0.18; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 56px; letter-spacing: -1.2px; margin: 18px 0 22px; color: var(--charcoal); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--safety), var(--safety-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 18px; color: var(--ink-70); max-width: 460px; margin-bottom: 34px; }
.btn-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: linear-gradient(100deg, var(--safety), var(--safety-light)); color: #fff; box-shadow: 0 10px 24px rgba(0,59,130,0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,59,130,0.4); }
.btn-ghost { color: var(--charcoal); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.trustline { margin-top: 40px; display: flex; gap: 28px; font-size: 13.5px; color: var(--steel); flex-wrap: wrap; }
.trustline span { display: flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--safety); }

.hero-media { position: relative; height: 540px; }
.media-main { position: absolute; top: 0; right: 0; width: 82%; height: 460px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(22,22,22,0.18); }
.media-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.hero-media:hover .media-main img { transform: scale(1.08); }
.media-sub { position: absolute; bottom: 0; left: 0; width: 46%; height: 220px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(22,22,22,0.22); border: 5px solid var(--paper); }
.media-sub img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; top: 24px; left: -20px;
  background: #fff; border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 20px 50px rgba(22,22,22,0.16);
  display: flex; align-items: center; gap: 14px;
  max-width: 210px; z-index: 3;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}
.float-card .num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--charcoal); }
.float-card .lbl { font-size: 12px; color: var(--steel); line-height: 1.35; }

/* Section shell */
.bc-section { padding: 100px 0; position: relative; }
.section-head { max-width: 560px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 40px; letter-spacing: -0.8px; margin-top: 14px; color: var(--charcoal); }
.section-head p { color: var(--ink-70); margin-top: 14px; font-size: 16.5px; }
.bg-soft { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-dark { background: var(--charcoal); color: var(--paper); overflow: hidden; }
.bg-dark .section-head h2 { color: var(--paper); }
.bg-dark .section-head p { color: rgba(250,250,248,0.65); }
.watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%);
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 260px; color: rgba(255,255,255,0.03);
  white-space: nowrap; z-index: 0; pointer-events: none; letter-spacing: -6px;
}

/* Ticker */
.ticker-wrap { background: var(--charcoal); overflow: hidden; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: bc-scroll 26s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: rgba(250,250,248,0.85); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ticker-track span::before { content: "✓"; color: var(--safety-light); font-weight: 700; }
@keyframes bc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(22,22,22,0.1); border-color: transparent; }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,59,130,0.12), rgba(0,59,130,0.04));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--safety); font-size: 20px; font-weight: 700; font-family: 'Fraunces', serif;
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p.sub { font-size: 14.5px; color: var(--steel); margin-bottom: 14px; }
.tag-pill { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--blueprint); background: rgba(0,83,168,0.08); padding: 5px 11px; border-radius: 100px; }
.service-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--safety); }
.service-link:hover { color: var(--blueprint); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process::before { content: ""; position: absolute; top: 19px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.step { position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--charcoal); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; margin-bottom: 18px; position: relative; z-index: 2;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--steel); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj-card { position: relative; border-radius: 16px; overflow: hidden; height: 380px; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-card:hover img { transform: scale(1.08) rotate(0.5deg); }
.proj-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,20,28,0.88) 0%, rgba(15,20,28,0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.proj-overlay .cat { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #ffb08a; margin-bottom: 6px; }
.proj-overlay h3 { color: #fff; font-size: 21px; }
.proj-overlay .stock-disclosure { color: rgba(255,255,255,0.75); font-size: 11.5px; margin-top: 6px; font-style: italic; }

/* Stats */
.stats-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; position: relative; z-index: 2; }
.stat { min-width: 140px; }
.stat .n { font-family: 'Fraunces', serif; font-size: 46px; font-weight: 700; background: linear-gradient(100deg,#fff, rgba(255,255,255,0.6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 13px; color: rgba(250,250,248,0.55); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 6px; }

/* Testimonial carousel */
.testi-shell { position: relative; max-width: 780px; margin: 0 auto; }
.testi-viewport { overflow: hidden; border-radius: 18px; }
.testi-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.testi-slide { min-width: 100%; padding: 4px; box-sizing: border-box; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; text-align: center; }
.stars { color: var(--safety); font-size: 15px; margin-bottom: 16px; letter-spacing: 3px; }
.testi-card .quote { font-family: 'Fraunces', serif; font-size: 21px; line-height: 1.5; color: var(--charcoal); margin-bottom: 22px; font-weight: 500; }
.testi-card .name { font-weight: 700; font-size: 14.5px; }
.testi-card .meta { font-size: 13px; color: var(--steel); margin-top: 2px; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.testi-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
  transition: all .2s ease; color: var(--charcoal);
}
.testi-arrow:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .25s ease; border: none; padding: 0; }
.testi-dot.active { background: var(--safety); width: 22px; border-radius: 4px; }

/* CTA + Form */
.cta-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.cta-copy h2 { font-size: 36px; letter-spacing: -0.6px; margin: 14px 0 16px; color: var(--paper); }
.cta-copy p { color: rgba(250,250,248,0.7); font-size: 16px; }
.form-card { background: #fff; border-radius: 18px; padding: 34px; color: var(--charcoal); box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.frow { margin-bottom: 16px; }
.frow label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.frow input, .frow select, .frow textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; background: var(--paper); box-sizing: border-box;
}
.frow textarea { resize: vertical; min-height: 90px; }
.frow input:focus, .frow select:focus, .frow textarea:focus {
  outline: 2px solid var(--blueprint); outline-offset: 1px;
}
.frow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
  width: 100%; background: linear-gradient(100deg, var(--safety), var(--safety-light)); color: #fff; border: none; padding: 15px;
  border-radius: 8px; font-weight: 600; font-size: 15px; margin-top: 6px; cursor: pointer; transition: transform .2s ease;
}
.submit-btn:hover { transform: translateY(-2px); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.form-notice--success { background: #e3f3ee; color: #0d6b52; border: 1px solid #b9e0d3; }
.form-notice--error { background: #fbe9e5; color: #a3341c; border: 1px solid #f0c4b8; }

/* Footer */
.site-footer { background: var(--charcoal-soft); color: rgba(250,250,248,0.6); padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.foot-brand { font-family: 'Fraunces', serif; font-size: 19px; color: #fff; margin-bottom: 8px; }
.foot-links { display: flex; gap: 28px; }
.foot-bottom { border-top: 1px solid rgba(250,250,248,0.12); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .hero-grid, .cta-wrap { grid-template-columns: 1fr; }
  .services-grid, .process, .portfolio-grid { grid-template-columns: 1fr; }
  .process::before { display: none; }
  .navlinks { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .hero h1 { font-size: 38px; }
  .hero-media { height: 380px; }
  .watermark { font-size: 120px; }
  .site-logo { height: 36px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .hero p.lede { font-size: 16px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .hero-media { height: 300px; }
  .media-main { width: 88%; height: 260px; }
  .media-sub { display: none; }
  .float-card { padding: 12px 16px; max-width: 160px; }
  .float-card .num { font-size: 20px; }
  .stats-row { justify-content: flex-start; gap: 24px; }
  .stat { min-width: 42%; }
  .frow-split { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .cta-copy h2 { font-size: 28px; }
  .foot-grid, .foot-links { flex-direction: column; gap: 12px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   Inner-page content styling (Service pages, Service Area pages,
   Contact page, blog posts) — these use native WordPress blocks via
   wp:post-content, which only had bare theme.json defaults applied.
   This brings them in line with the homepage's visual language:
   Fraunces headings, generous spacing, branded checklist styling.
   --------------------------------------------------------------------- */
.service-detail-content,
.wp-block-post-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
}
.service-detail-content h1,
.service-detail-content h2,
.service-detail-content h3,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.3px;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.service-detail-content > p:first-child,
.wp-block-post-content > p:first-child {
  font-size: 19px;
  color: var(--charcoal);
}
.service-detail-content ul,
.wp-block-post-content ul {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.service-detail-content ul li,
.wp-block-post-content ul li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15.5px;
}
.service-detail-content ul li::before,
.wp-block-post-content ul li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  color: var(--safety);
  font-weight: 700;
}
.service-detail-content ul li strong,
.wp-block-post-content ul li strong {
  color: var(--charcoal);
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.service-detail-content > p:last-child,
.wp-block-post-content > p:last-child {
  margin-top: 1.75rem;
  padding: 1.1rem 1.3rem;
  background: rgba(0,59,130,0.06);
  border-left: 3px solid var(--safety);
  border-radius: 6px;
  font-size: 15px;
  color: var(--charcoal);
}

/* FAQ accordion — native <details>/<summary>, accessible by default,
   no JavaScript required. Styled to match the site's card language. */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.faq-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.2rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--charcoal);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-size: 20px;
  color: var(--safety);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 1.1rem;
  margin: 0;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.65;
}
