/* Visual refresh layered over the original Responsive theme (loaded last; theme files untouched).
   Keeps the site's identity - blue logo, warm sand background, serif headings - with modern type,
   spacing, cards and buttons. Remove this file's <link> to get the original look back. */

:root {
  --ce-blue: #426fb5;
  --ce-blue-dark: #2f5694;
  --ce-blue-tint: #eef3fb;
  --ce-sand: #f0e8dd;
  --ce-sand-deep: #e6dccd;
  --ce-paper: #fffdf9;
  --ce-ink: #1f2630;
  --ce-muted: #5b6573;
  --ce-line: #e4dbcd;
  --ce-olive: #646044;
  --ce-radius: 12px;
  --ce-shadow: 0 1px 2px rgba(31, 38, 48, 0.06), 0 10px 30px rgba(31, 38, 48, 0.08);
  --ce-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ce-font-display: "Gentium Book Plus", "Gentium Book Basic", Georgia, serif;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body.custom-background,
body {
  background-color: var(--ce-sand) !important;
  color: var(--ce-ink);
  font-size: 18px;
  line-height: 1.65 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
body * {
  font-family: var(--ce-font-body);
}

body h1, body h2, body h3, body h4, body h5, body h6,
body h1 *, body h2 *, body h3 *, body h4 *, body h5 *, body h6 *,
.site-name {
  font-family: var(--ce-font-display);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--ce-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.4em 0 0.6em;
}

body h1 { font-size: clamp(32px, 24px + 1.6vw, 44px); }
body h2 { font-size: clamp(26px, 20px + 1.1vw, 35px); }
body h3 { font-size: clamp(21px, 18px + 0.6vw, 26px); }
body h4 { font-size: 19px; }
body h5 { font-size: 16px; }

a { color: var(--ce-blue); text-underline-offset: 0.18em; }
a:hover, a:focus { color: var(--ce-blue-dark); }

:focus-visible { outline: 3px solid rgba(66, 111, 181, 0.45); outline-offset: 2px; border-radius: 4px; }

hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--ce-line);
}

/* ---------- Header ---------- */

#header {
  position: relative;
  z-index: 50;
  background-color: #fff;
  border-top: 4px solid var(--ce-blue);
  border-bottom: 1px solid var(--ce-line);
  box-shadow: 0 2px 14px rgba(31, 38, 48, 0.05);
}

#logo { padding: 14px 0 4px 2%; }
#logo img { display: block; width: auto; height: auto; max-height: 104px; }

.menu a {
  height: 52px;
  padding: 0 0.85em;
  color: var(--ce-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 52px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.menu a:hover,
.menu a:focus {
  color: var(--ce-blue);
  border-bottom: 3px solid var(--ce-blue);
  background: none;
}

.menu .current_page_item a,
.menu .current-menu-item a {
  color: var(--ce-blue) !important;
  background-color: transparent;
  border-bottom: 3px solid var(--ce-blue);
  border-radius: 0;
  text-shadow: none;
  opacity: 1;
}

/* ---------- Page container ---------- */

#container {
  max-width: 1180px;
  padding: 0 24px;
  background-color: transparent !important;
  box-shadow: none;
}

#wrapper {
  margin: 28px 0 40px;
  padding: 8px clamp(20px, 4vw, 56px) 40px;
  background-color: var(--ce-paper);
  border: 1px solid var(--ce-line);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}

#content-full { margin-top: 24px; }

.post-entry { color: var(--ce-ink); }
/* The theme sets p and ul to 125% with 1px letter-spacing; normalize to the body size. */
body p, body ul, body ol { font-size: 1em; letter-spacing: normal; }

/* The theme zeroes paragraph margins (it relied on &nbsp; spacer paragraphs); restore rhythm. */
.post-entry p { margin: 0 0 1em !important; }
.post-entry p:last-child { margin-bottom: 0 !important; }
.home .post-entry > .grid.col-540 {
  float: none;
  max-width: 680px;
  margin: 0 auto 1.5em;
  color: var(--ce-muted);
  text-align: center;
}
.post-entry p, .post-entry li { color: var(--ce-ink); }
.breadcrumb-list { display: none; }

/* ---------- Homepage slider ---------- */

.hero-slider { margin-top: 28px; padding: 0; background: transparent; }
.hero-slider__viewport {
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}
.hero-slider__shadow { display: none; }

.hero-slider__slide:has(.hero-slider__captions)::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(15, 20, 28, 0), rgba(15, 20, 28, 0.55));
  pointer-events: none;
}

.hero-slider__caption,
.hero-slider__caption * {
  font-family: var(--ce-font-display);
}
.hero-slider__caption {
  background: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.hero-slider__caption--author { opacity: 0.92; }

@media (min-width: 1001px) {
  .hero-slider__caption--quote { font-size: 26px; }
  .hero-slider__caption--author { font-size: 18px; }
}

/* ---------- Call-to-action cards (homepage) ---------- */

.wpcmsdev-call-to-action {
  margin: 14px 0;
  padding: 18px 22px;
  background-color: #fff !important;
  border: 1px solid var(--ce-line);
  border-left: 4px solid var(--ce-blue);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(31, 38, 48, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.wpcmsdev-call-to-action:hover {
  box-shadow: 0 8px 22px rgba(31, 38, 48, 0.09);
  transform: translateY(-1px);
}

.wpcmsdev-call-to-action.layout-horizontal {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.wpcmsdev-call-to-action.layout-horizontal::before,
.wpcmsdev-call-to-action.layout-horizontal::after { display: none; }

.wpcmsdev-call-to-action.layout-horizontal .column {
  float: none;
  width: auto;
  margin: 0;
}

.wpcmsdev-call-to-action .call-to-action-content { flex: 1 1 auto; }
.wpcmsdev-call-to-action .call-to-action-content p { margin: 0; color: var(--ce-muted); }
.wpcmsdev-call-to-action .call-to-action-button { flex: 0 0 auto; text-align: right; }

/* ---------- Buttons ---------- */

.wpcmsdev-button {
  min-width: 17em;
  border: 0 !important;
  border-radius: 8px;
  background: var(--ce-blue);
  box-shadow: 0 1px 2px rgba(31, 38, 48, 0.15);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.wpcmsdev-button span {
  padding: 0.7em 1.3em;
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wpcmsdev-button:hover,
.wpcmsdev-button:focus {
  background: var(--ce-blue-dark);
  box-shadow: 0 4px 12px rgba(47, 86, 148, 0.3);
}

.wpcmsdev-button:hover span,
.wpcmsdev-button:focus span { background: none; color: #fff; }

/* ---------- Experience / about (homepage) ---------- */

.ce-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 1.5em 0 2em;
}

.ce-stat {
  padding: 20px 16px;
  text-align: center;
  background: var(--ce-blue-tint);
  border-radius: 10px;
}

.ce-stat__value {
  display: block;
  color: var(--ce-blue-dark);
  font-family: var(--ce-font-display);
  font-size: 2.1em;
  font-weight: 700;
  line-height: 1.1;
}

.ce-stat__label { display: block; margin-top: 4px; color: var(--ce-muted); font-size: 0.92em; }

.ce-checklist {
  max-width: 760px;
  margin: 0 auto 1.5em;
  padding: 0;
  list-style: none;
}

.ce-checklist > li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--ce-line);
}

.ce-checklist > li:last-child { border-bottom: 0; }

.ce-checklist > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ce-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ce-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
  padding: 0;
  list-style: none;
}

.ce-tags li {
  margin: 0;
  padding: 3px 12px;
  color: var(--ce-blue-dark);
  font-size: 0.9em;
  font-weight: 600;
  background: var(--ce-blue-tint);
  border-radius: 999px;
}

.ce-about {
  max-width: 820px;
  margin: 2.5em auto;
  padding: 28px clamp(20px, 4vw, 40px);
  background: var(--ce-sand);
  border-radius: var(--ce-radius);
}

.ce-about h3 { margin-top: 0; }
.post-entry .ce-about p { margin: 0 0 0.9em !important; }
.post-entry .ce-about p:last-child { margin-bottom: 0 !important; }

.ce-eyebrow {
  margin: 0 0 4px !important;
  color: var(--ce-olive) !important;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-map {
  margin-top: 2em;
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}

/* ---------- Expand/collapse sections (Litigation page) ---------- */

.wpcmsdev-toggle {
  margin-bottom: 12px;
  border: 1px solid var(--ce-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.wpcmsdev-toggle .toggle-title a {
  padding: 0.9em 1.1em;
  color: var(--ce-ink);
  font-family: var(--ce-font-body);
  font-weight: 600;
  background: #fff;
  background-image: none;
}

.wpcmsdev-toggle .toggle-title a:hover,
.wpcmsdev-toggle .toggle-title a.active { background-color: var(--ce-blue-tint); color: var(--ce-blue-dark); }
.wpcmsdev-toggle .toggle-title .fa { color: var(--ce-blue); opacity: 1; }
.wpcmsdev-toggle .toggle-content { border-top: 1px solid var(--ce-line); background: #fff; }

/* Centered intro blocks used on content pages (col-780 / col-460 without a grid parent). */
.post-entry > .col-780,
.post-entry > .col-460 {
  float: none;
  width: auto;
  max-width: 760px;
  margin: 0 auto 1.2em;
  text-align: center;
}

/* ---------- Contact page (Mailchimp form) ---------- */

.ce-contact { max-width: 640px; margin: 0 auto; }
.post-entry .ce-contact__lead { margin-bottom: 1.5em !important; color: var(--ce-muted); font-size: 1.1em; text-align: center; }
.post-entry .ce-contact__note { margin-top: 1.2em !important; color: var(--ce-muted); font-size: 0.9em; text-align: center; }
body #mc_embed_signup h2 { margin-top: 0; font-size: 26px; }

body #mc_embed_signup {
  width: auto !important;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}

body #mc_embed_signup:empty,
body #mc_embed_signup:not(:has(form)) { display: none; }

body #mc_embed_signup form { padding: 0; }
body #mc_embed_signup .mc-field-group { width: 100%; padding-bottom: 4%; }
body #mc_embed_signup .indicates-required { margin-right: 0; }

body #mc_embed_signup input[type="email"],
body #mc_embed_signup input[type="text"] {
  width: 100% !important;
  padding: 10px 12px;
  border: 1px solid #cfc6b8;
  border-radius: 8px;
  font-size: 1em;
}

body #mc_embed_signup input[type="email"]:focus,
body #mc_embed_signup input[type="text"]:focus {
  border-color: var(--ce-blue);
  outline: 3px solid rgba(66, 111, 181, 0.2);
}

body #mc_embed_signup .button,
body #mc_embed_signup input[type="submit"] {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75em 2.2em;
  color: #fff !important;
  text-shadow: none;
  font-size: 1em;
  font-weight: 600;
  background: var(--ce-blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

body #mc_embed_signup .button:hover,
body #mc_embed_signup input[type="submit"]:hover { background: var(--ce-blue-dark); }

/* ---------- Footer ---------- */

#footer {
  position: static !important;
  max-width: none;
  margin: 0;
  padding: 36px 24px 28px;
  color: #c6cfdb;
  background-color: var(--ce-ink);
  border-top: 4px solid var(--ce-blue);
  border-bottom: 0;
  opacity: 1;
}

#footer-wrapper { max-width: 1180px; margin: 0 auto; }
#footer .grid { float: none; width: auto; margin: 0; }

#footer .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

#footer .footer-menu li { float: none; margin: 0 !important; padding: 0 !important; font-size: 15px; }
#footer .footer-menu a { color: #e8edf4; text-decoration: none; }
#footer .footer-menu a:hover { color: #fff; text-decoration: underline; }
#footer .footer-menu .current_page_item a { color: #fff; font-weight: 600; }

#footer .copyright {
  float: none;
  width: auto;
  padding-top: 18px;
  color: #9aa6b6;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .copyright a { color: #c6cfdb; text-decoration: none; }
#footer .copyright a:hover { color: #fff; text-decoration: underline; }

/* ---------- Small screens ---------- */

@media screen and (max-width: 650px) {
  body.custom-background, body { font-size: 16px; }

  .ce-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ce-stat { padding: 14px 10px; }
  .ce-stat__value { font-size: 1.6em; }

  .home .post-entry > .grid.col-540 { font-size: 1.1em !important; }
  .wpcmsdev-call-to-action .call-to-action-content,
  .wpcmsdev-call-to-action .call-to-action-content p { text-align: left; }

  #footer .footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: center; }
  #footer .footer-menu li { font-size: 14px; }

  #logo { display: block; padding: 12px 16px 8px; text-align: center; }
  #logo img { max-width: 100%; max-height: 80px; margin: 0 auto; }

  .js .main-nav {
    background: var(--ce-ink);
    background-image: none;
    filter: none;
  }

  .js .main-nav #responsive_current_menu_item {
    margin-top: 0;
    padding: 12px 48px 12px 16px;
    font-weight: 600;
  }

  .js .main-nav a#responsive_menu_button { top: 9px; margin-left: -40px; }

  .js .main-nav .menu { top: 100%; box-shadow: 0 12px 24px rgba(31, 38, 48, 0.18); }

  .js .main-nav .menu li a {
    height: auto;
    padding: 12px 16px;
    color: var(--ce-ink);
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid var(--ce-line);
  }

  .js .menu .current_page_item a,
  .js .menu .current-menu-item a { color: var(--ce-blue) !important; background-color: var(--ce-blue-tint); }

  #container { padding: 0 12px; }
  #wrapper { margin: 16px 0 28px; }

  .wpcmsdev-call-to-action.layout-horizontal { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .wpcmsdev-call-to-action .call-to-action-button { text-align: left; }
  .wpcmsdev-button { display: block; min-width: 0; }

  .hero-slider { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wpcmsdev-call-to-action, .wpcmsdev-button { transition: none; }
  .wpcmsdev-call-to-action:hover { transform: none; }
}

/* Toggles wrapped in list items (Litigation page) shouldn't show bullets. */
.post-entry li:has(> .wpcmsdev-toggle) { list-style: none; }

/* Plugin button color variants (e.g. Consulting page) follow the site blue. */
.wpcmsdev-button[class*="color-"] { background: var(--ce-blue); }
.wpcmsdev-button[class*="color-"]:hover { background: var(--ce-blue-dark); }

/* "Zoning / Planning / Building Codes" banner on Expert Review: soften the old hard drop shadow. */
.post-entry .circle {
  margin-bottom: 1.5em;
  padding: 8px 0 18px;
  background: var(--ce-blue-tint);
  border: 0;
  border-radius: var(--ce-radius);
  box-shadow: none !important;
}
.post-entry .circle h2 { padding-top: 12px !important; margin: 0; color: var(--ce-blue-dark); }
