/* Handyman public theme, layered over the shared CMS modular template. */
body.theme-modular {
  --site-ink: #182733;
  --site-gold: #ffc45e;
  --site-paper: #f4f2ed;
  --site-line: #dedcd5;
  --site-muted: #4d5960;
  background: var(--site-paper);
  color: var(--site-ink);
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
}
.theme-modular .site-header { background: #fff; color: var(--site-ink); border: 0; }
.theme-modular .brand-row { min-height: 82px; }
.theme-modular .brand { color: var(--site-ink); }
.theme-modular .brand strong { font-size: clamp(22px, calc(3.5vw + 1px), 32px); letter-spacing: -.04em; }
.theme-modular .brand .tagline { color: var(--site-muted); }
.theme-modular .locale-nav a { color: var(--site-ink); }
.theme-modular .locale-nav a[aria-current="true"] { background: var(--site-ink); color: #fff; }
.theme-modular .menu-bar { background: var(--site-ink); border: 0; }
.theme-modular .menu-bar .cms-menu a,
.theme-modular .menu-bar .cms-quick-menu-toggle { color: #fff; }
.theme-modular .menu-bar .cms-menu a:hover { color: var(--site-gold); }
.theme-modular .menu-bar a[href^="sms:"] {
  background: var(--site-gold); color: var(--site-ink); border-radius: 4px; font-weight: 750;
}
.theme-modular .menu-bar a[href^="sms:"]:hover { background: #ffe0a5; color: var(--site-ink); }
.theme-modular .cms-quick-menu-panel { background: var(--site-ink); }
.theme-modular .cms-slideshow { border: 0; border-radius: 8px; background: var(--site-ink); }
.theme-modular .cms-slideshow .carousel-slide:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: clamp(420px, 39vw, 545px);
}
.theme-modular .cms-slideshow .carousel-slide > img {
  grid-area: 1 / 2;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
}
.theme-modular .cms-slideshow .carousel-copy {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  padding: clamp(24px, 4vw, 60px);
  background: #14212c;
}
.theme-modular .cms-slideshow h1,
.theme-modular .cms-slideshow h2 {
  color: #fff; font-size: clamp(35px, calc(4.1vw + 1px), 61px); line-height: 1.04;
  letter-spacing: -.047em; margin: 0 0 18px;
}
.theme-modular .cms-slideshow p { color: #f0f1f1; font-size: clamp(17px, calc(1.6vw + 1px), 20px); max-width: 31rem; }
.theme-modular .cms-slideshow .slide-count,
.theme-modular .cms-slideshow .slide-link span { display: none; }
.theme-modular .cms-slideshow .slide-link,
.theme-modular .cms-slideshow button[aria-pressed="true"] {
  border: 0; background: var(--site-gold); color: var(--site-ink); border-radius: 4px;
}
.theme-modular .cms-slideshow .slide-link { min-height: 44px; align-items: center; font-size: 17px; }
.theme-modular .cms-slideshow .carousel-controls { background: var(--site-ink); }
.theme-modular .cms-slideshow button:focus-visible,
.theme-modular .menu-bar a:focus-visible { outline: 3px solid var(--site-gold); outline-offset: 3px; }
.theme-modular main > .cms-content-module[data-module-position="before"] {
  background: #fff; margin: 0 0 18px; border: 1px solid var(--site-line); border-radius: 7px;
  padding: clamp(20px, 4vw, 35px); box-shadow: none;
}
.theme-modular main > .cms-content-module[data-module-position="before"] h2,
.theme-modular main > .cms-content-module[data-module-position="after"] h2 {
  font-size: clamp(25px, calc(3.2vw + 1px), 37px); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 14px;
}
.theme-modular main > .cms-content-module[data-module-position="before"] ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0;
}
.theme-modular main > .cms-content-module[data-module-position="before"] li {
  list-style: none; margin: 0; padding: 13px 15px; background: var(--site-paper);
  border-left: 3px solid #c78020; font-weight: 650;
}
.theme-modular main > .cms-content-module[data-module-position="before"] table {
  width: 100%; max-width: 635px; min-width: 0; border-collapse: collapse;
}
.theme-modular main > .cms-content-module[data-module-position="before"] th,
.theme-modular main > .cms-content-module[data-module-position="before"] td {
  text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--site-line);
}
.theme-modular .module-grid { gap: 18px; margin: 22px 0 34px; }
.theme-modular .module-grid .cms-content-module {
  background: #fff; border: 1px solid var(--site-line); border-radius: 6px;
  padding: 0; box-shadow: none; overflow: hidden; display: flex; flex-direction: column;
}
.theme-modular .module-grid .cms-content-module:nth-child(-n+2) { border-top: 1px solid var(--site-line); }
.theme-modular .module-grid .cms-content-module h2 { margin: 20px 19px 5px; color: var(--site-ink); }
.theme-modular .module-grid .cms-module-richbody { display: contents; }
.theme-modular .module-grid .cms-module-richbody img {
  order: -1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; margin: 0; border-radius: 0; background: var(--site-paper);
}
.theme-modular .module-grid .cms-module-richbody p { margin: 7px 19px 15px; font-size: 17px; color: var(--site-muted); }
.theme-modular .module-grid .cms-module-richbody p:last-child { margin-top: auto; padding-top: 5px; }
.theme-modular .module-grid .cms-module-richbody a { border-radius: 4px; text-decoration: none; }
.theme-modular main > .cms-content-module[data-module-position="after"] {
  background: var(--site-ink); color: #fff; border: 0; border-radius: 7px;
  padding: clamp(24px, 5vw, 47px);
}
.theme-modular .site-footer { background: var(--site-ink); color: #fff; }
@media (max-width: 800px) {
  .theme-modular .cms-slideshow .carousel-slide:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .theme-modular .cms-slideshow .carousel-slide > img {
    grid-area: 1 / 1;
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .theme-modular .cms-slideshow .carousel-copy {
    grid-area: 2 / 1;
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .theme-modular .brand-row { min-height: 84px; gap: 10px; }
  .theme-modular main > .cms-content-module[data-module-position="before"] ul { grid-template-columns: minmax(0, 1fr); }
  .theme-modular .module-grid .cms-content-module { padding: 0; }
}
.theme-modular main > .cms-content-module[data-module-position="before"] { color: var(--site-ink); }
.theme-modular main > .cms-content-module[data-module-position="before"] :is(h2, p, li, th, td) { color: var(--site-ink); }
.theme-modular .menu-bar a[href^="sms:"] { display: inline-block; padding: 7px 12px; }
.theme-modular .page-content { color: var(--site-ink); }
@media (max-width: 600px) {
  .theme-modular .menu-bar.has-quick-menu .cms-nav-header { display: none; }
}

/* Project directory and mobile-first contact details for Handyman. */
.theme-modular .page-content .rich-body > div:has(> figure + div) {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--site-line);
}
.theme-modular .page-content .rich-body > div:has(> figure:empty + div) {
  grid-template-columns: minmax(0, 1fr);
}
.theme-modular .page-content .rich-body > div > figure {
  margin: 0;
}
.theme-modular .page-content .rich-body > div > figure:empty { display: none; }
.theme-modular .page-content .rich-body > div > figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 5px;
}
.theme-modular .page-content .rich-body > div > div h2 {
  margin: 0 0 7px; font-size: clamp(21px, calc(2.5vw + 1px), 26px); line-height: 1.25;
}
.theme-modular .page-content .rich-body > div > div p { margin: 0 0 10px; }
.theme-modular .site-footer .cms-content-module { color: #fff; background: transparent; border: 0; padding: 0; }
.theme-modular .site-footer .cms-content-module :is(p, strong) { color: #fff; }
.theme-modular .site-footer .cms-content-module a { color: var(--site-gold); }
.theme-modular main > .cms-content-module[data-module-position="after"] a[href$="/project-gallery/"] {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #9fabba;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .theme-modular .cms-slideshow .carousel-slide > img { aspect-ratio: 2.1 / 1; }
  .theme-modular .cms-slideshow .carousel-copy { min-height: 0; padding: 22px 24px; }
  .theme-modular .cms-slideshow :is(h1,h2) { font-size: clamp(26px, calc(7.1vw + 1px), 36px); }
  .theme-modular .page-content .rich-body > div:has(> figure + div) {
    grid-template-columns: minmax(0, 1fr); gap: 12px;
  }
}

/* Keep the three homepage information sections next to each other. */
@media (min-width: 980px) {
  .theme-modular main:has(> [data-module-position="before"] > .cms-module-richbody > div) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(14px, 2vw, 24px);
  }
  .theme-modular main:has(> [data-module-position="before"] > .cms-module-richbody > div) > * {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .theme-modular main > [data-module-position="before"]:has(> .cms-module-richbody > div) {
    grid-column: auto;
    padding: clamp(17px, 2vw, 28px);
  }
  .theme-modular main > [data-module-position="before"]:has(> .cms-module-richbody > div) h2 {
    font-size: clamp(23px, calc(2.25vw + 1px), 31px);
  }
  .theme-modular main > [data-module-position="before"]:has(> .cms-module-richbody > div) ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .theme-modular main > [data-module-position="before"]:has(> .cms-module-richbody > div) li {
    padding: 7px 10px;
  }
  .theme-modular main > [data-module-position="before"]:has(> .cms-module-richbody > div) :is(th,td) {
    padding: 7px 6px;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 801px) {
  .theme-modular .cms-slideshow .carousel-slide:not([hidden]) {
    min-height: clamp(330px, 32vw, 445px);
  }
  .theme-modular .cms-slideshow .carousel-copy {
    padding: clamp(18px, 2.8vw, 38px);
  }
  .theme-modular .cms-slideshow :is(h1,h2) {
    font-size: clamp(30px, calc(3.45vw + 1px), 49px);
    margin-bottom: 10px;
  }
  .theme-modular .cms-slideshow .carousel-copy p {
    font-size: clamp(16px, calc(1.35vw + 1px), 19px);
    line-height: 1.5;
    margin: 4px 0 10px;
  }
  .theme-modular .cms-slideshow .slide-link { margin-top: 8px; }
}


.theme-modular .brand .tagline,
.theme-modular .locale-nav,
.theme-modular .site-footer .cms-module-richbody { font-size: 0.875rem; }
.theme-modular .menu-bar .cms-menu a { font-size: 0.9375rem; }
.theme-modular .module-grid .cms-content-module h2 { font-size: 1.375rem; }
@media (max-width: 600px) {
  .theme-modular .brand .tagline { font-size: 0.75rem; }
  .theme-modular .menu-bar .cms-menu a { font-size: 0.875rem; }
}

.theme-modular .module-grid .cms-module-richbody > a:has(> img) {
  order: -1;
  display: block;
  margin: 0;
  border-radius: 0;
}
.theme-modular .page-content .rich-body > div > figure > a { display: block; }
.theme-modular :is(.module-grid, .page-content) a:has(> img):focus-visible {
  outline: 3px solid #c78020;
  outline-offset: -3px;
}

.theme-modular main > [data-handyman-related-projects].cms-content-module {
  padding: 26px 0 8px;
  border: 0;
  border-top: 1px solid var(--site-line);
  background: transparent;
  color: var(--site-ink);
  box-shadow: none;
}
.theme-modular main > [data-handyman-related-projects] > h2 { color: var(--site-ink); }
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  overflow: hidden;
}
.theme-modular [data-handyman-related-projects] [hidden] { display: none !important; }
.theme-modular [data-handyman-related-projects] figure { margin: 0; }
.theme-modular [data-handyman-related-projects] figure:empty { display: none; }
.theme-modular [data-handyman-related-projects] figure a { display: block; }
.theme-modular [data-handyman-related-projects] figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div > div > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 16px 18px;
}
.theme-modular [data-handyman-related-projects] :is(h3, p) {
  margin: 0 0 10px;
  color: var(--site-ink);
}
.theme-modular [data-handyman-related-projects] h3 { line-height: 1.3; }
.theme-modular [data-handyman-related-projects] h3 a {
  color: inherit;
  text-decoration: none;
}
.theme-modular [data-handyman-related-projects] h3 a:hover { text-decoration: underline; }
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div > div > div > p:last-child {
  margin: auto 0 0;
  padding-top: 5px;
}
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div > div > div > p:last-child a {
  margin: 0;
  border-radius: 4px;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-decoration: none;
}
.theme-modular [data-handyman-related-projects] .cms-module-richbody > div > div > div > p:last-child a:hover {
  filter: brightness(1.16);
  text-decoration: none;
}
.theme-modular [data-handyman-related-projects] .handyman-project-controls {
  display: grid;
  justify-items: center;
  margin-top: 22px;
}
.theme-modular [data-handyman-related-projects] .handyman-project-controls button {
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--site-gold);
  color: var(--site-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.theme-modular [data-handyman-related-projects] :is(a, button):focus-visible {
  outline: 3px solid #c78020;
  outline-offset: -3px;
}
@media (max-width: 960px) {
  .theme-modular [data-handyman-related-projects] .cms-module-richbody > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .theme-modular [data-handyman-related-projects] .cms-module-richbody > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.theme-modular .module-grid > [data-handyman-related-projects].cms-content-module {
  display: block;
  grid-column: 1 / -1;
  padding: 0;
  background: transparent;
  border: 0;
}
.theme-modular .module-grid > [data-handyman-related-projects] .cms-module-richbody {
  display: block;
}
.theme-modular .module-grid > [data-handyman-related-projects] .cms-module-richbody a {
  margin: 0;
}
.theme-modular .module-grid > [data-handyman-related-projects] .cms-module-richbody p:not(:last-child) {
  margin: 0 0 10px;
}
.theme-modular .module-grid > [data-handyman-related-projects] figure img {
  margin: 0;
  border-radius: 0;
}

.theme-modular main:has(> [data-handyman-initial="12"]) > .page-content {
  max-width: none;
  margin: 0;
  padding-bottom: 0;
}
.theme-modular main > [data-handyman-initial="12"].cms-content-module {
  border-top: 0;
  padding-top: 4px;
}

.theme-modular main > [data-module-position="before"] li > a {
  display: block;
  color: var(--site-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.theme-modular main > [data-module-position="after"]:not([data-handyman-related-projects]):has(h3) {
  background: #fff;
  color: var(--site-ink);
  border: 1px solid var(--site-line);
}
.theme-modular main > [data-module-position="after"]:not([data-handyman-related-projects]):has(h3) :is(h2,h3,p) {
  color: var(--site-ink);
}
@media (max-width: 600px) {
  .theme-modular .menu-bar.has-quick-menu .cms-nav-header { display: block; }
  .theme-modular .menu-bar.has-quick-menu .cms-nav-header .cms-menu { justify-content: flex-end; }
  .theme-modular .menu-bar.has-quick-menu .cms-nav-header .cms-menu > li:not(:has(> a[href^="sms:"])) {
    display: none;
  }
  .theme-modular .menu-bar.has-quick-menu .cms-nav-header a[href^="sms:"] { margin: 4px; }
}

.theme-modular .brand-row .brand:has(> img) {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}
.theme-modular .brand-row .brand > img {
  display: block;
  width: clamp(170px, 20vw, 255px);
  height: auto;
  aspect-ratio: 3 / 1;
  background: #fff;
  border-radius: 5px;
}
.theme-modular .brand-row .brand:has(> img) strong {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.theme-modular .brand-row .brand:has(> img) > span {
  width: 100%;
}
.theme-modular .brand-row .brand:has(> img) .tagline {
  max-width: clamp(170px, 20vw, 255px);
  margin: 0 0 7px;
  color: #4d5960;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .theme-modular .brand-row.has-language-flags {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .theme-modular .brand-row .brand:has(> img) {
    width: min(100%, 200px);
  }
  .theme-modular .brand-row .brand > img {
    width: 100%;
  }
  .theme-modular .brand-row .brand:has(> img) .tagline {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 0.75rem;
  }
  .theme-modular .brand-row.has-language-flags .locale-nav {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .theme-modular .brand-row.has-language-flags .locale-nav .language-flag-link {
    box-sizing: border-box;
    width: clamp(40px, 11vw, 44px);
    flex-basis: clamp(40px, 11vw, 44px);
    padding-inline: 3px;
  }
}

/* Keep SMS actions legible when mobile browsers recolor the rest of the page. */
.theme-modular :is(.menu-bar, main, .site-footer) a[href^="sms:"] {
  color-scheme: dark;
  background-color: #14212c !important;
  background-image: linear-gradient(#14212c, #14212c);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 2px solid #ffc45e;
  border-radius: 5px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}
.theme-modular :is(.menu-bar, main, .site-footer) a[href^="sms:"]:hover {
  background-color: #26394a !important;
  background-image: linear-gradient(#26394a, #26394a);
  border-color: #ffe0a5;
}
.theme-modular :is(.menu-bar, main, .site-footer) a[href^="sms:"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #14212c;
}
