/* Lia's Cleaning Service — site styles on top of the Olympus block theme. */

/* Kept from the classic theme's Customizer CSS. */
body {
  overflow-x: hidden;
}

/* Bold text: the theme uses 500 (fine for Work Sans), which Hind barely distinguishes from 400. */
b,
strong {
  font-weight: 700;
}

/* Header / footer keep the site font even on hand-built HTML pages, whose own CSS
   restyles body (font-family, line-height) and resets margins/paddings with "*". */
.site-header,
.site-footer,
.lias-footer-verse {
  font-family: var(--wp--preset--font-family--hind, Hind, sans-serif);
  line-height: 1.75;
}

/* Main nav: long menu labels (as in the classic theme: 16px). One line from 1280px;
   between the desktop breakpoint (1056px) and 1280px they wrap on two tidy lines. */
.olympus-main-nav .olympus-main-nav-items {
  gap: 24px;
}
.olympus-main-nav .olympus-main-nav-item {
  font-size: 16px;
  height: auto;
  line-height: 1.25;
}
.olympus-main-nav .nav-btn-1 .wp-block-button__link {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
}
/* Dropdowns: the theme opens them at a fixed 30px (its item height); our items are shorter / may wrap,
   which left a dead strip between label and dropdown that closed it on the way down. Anchor them to the
   item's bottom: the dropdown's transparent top padding then bridges straight from the label. */
.olympus-main-nav-item-submenu-wrap > .olympus-main-nav-item-submenu {
  top: 100%;
}
/* "Book Deep Cleaning" is a standalone button (no dropdown of every service's booking link). */
.olympus-main-nav .olympus-main-nav-item-submenu.submenu-cta {
  display: none !important;
}
@media (min-width: 1280px) {
  .olympus-main-nav .olympus-main-nav-item {
    white-space: nowrap;
  }
}

/* Hand-built HTML (city landing pages, home sections): headings use the page's own font, as in
   the classic theme (the block theme sets the heading font on h1–h6 directly). Blocks are untouched. */
.lias-html-page .wp-block-post-content > :not([class*="wp-block"]) :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
}

/* Hand-built HTML: links were not underlined in the classic theme (the block theme underlines them). */
.lias-html-page .wp-block-post-content > :not([class*="wp-block"]) a:not([class]) {
  text-decoration: none;
}

/* FAQ page: rows of FAQ groups (heading + accordion per column) need air between them. */
.wp-block-columns:has(.olympus-faq) + .wp-block-columns:has(.olympus-faq) {
  margin-top: var(--wp--preset--spacing--60, 3rem);
}

/* Separators were full-width 3px rules in the classic theme (core default: a 100px stub). */
.wp-block-separator:not(.is-style-dots) {
  width: 100%;
  max-width: none;
}
.wp-block-separator.has-background:not(.is-style-dots) {
  height: 3px;
  border: 0;
}

/* Booking template: slim bar (back · logo · phone) above full-width booking embeds. */
.lias-booking-bar {
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 0 #e9ecef;
  background: #fff;
  font-family: var(--wp--preset--font-family--hind, Hind, sans-serif);
}
.lias-booking-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--wp--style--global--wide-size, 1300px);
  margin: 0 auto;
  padding: 8px 20px;
}
.lias-booking-bar__logo img {
  display: block;
  max-height: 38px;
  width: auto;
}
.lias-booking-bar a.lias-booking-bar__back,
.lias-booking-bar a.lias-booking-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wp--preset--color--contrast, #1a1a1a);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.lias-booking-bar a.lias-booking-bar__back:hover,
.lias-booking-bar a.lias-booking-bar__phone:hover {
  color: var(--wp--preset--color--primary);
}
.lias-booking-bar__phone {
  justify-self: end;
}
.lias-booking-bar svg {
  color: var(--wp--preset--color--primary);
  flex: none;
}
/* The BookingKoala form fills the screen under the bar and scrolls inside (its banner and "Next" bar
   stay fixed, as on bookingkoala.com). The bar has a fixed height so the page never scrolls. */
.lias-booking-bar__inner {
  height: var(--lias-booking-bar-h, 52px);
  padding-top: 0;
  padding-bottom: 0;
}
.lias-booking-page iframe.lias-booking-embed {
  display: block;
  width: 100%;
  height: calc(100vh - var(--lias-booking-bar-h, 52px) - var(--wp-admin--admin-bar--height, 0px));
  height: calc(100dvh - var(--lias-booking-bar-h, 52px) - var(--wp-admin--admin-bar--height, 0px));
}
.lias-booking-page .wp-block-post-content,
.lias-booking-page .wp-block-post-content > * {
  margin-block: 0;
}
.lias-booking-page .wp-block-post-content,
.lias-booking-page .wp-block-post-content > * {
  margin-block: 0;
}
/* BookingKoala embeds inside regular pages (gift card, referral): block-level so the content width centers them. */
.wp-block-post-content > iframe[src*="bookingkoala.com"] {
  display: block;
}
/* Password-protected booking pages (e.g. the special-price move-in/out page). */
.lias-booking-page .post-password-form {
  max-width: 480px;
  margin: clamp(2rem, 8vh, 5rem) auto;
  padding: 0 20px;
}
@media (max-width: 600px) {
  :root {
    --lias-booking-bar-h: 48px;
  }
  .lias-booking-bar__logo img {
    max-height: 34px;
  }
  .lias-booking-bar__phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---------- Page title heroes ----------
   Pages carried over from the classic theme open with an image + white fade + black title. Same look as the
   service pages' covers instead: dark overlay, white title. */
/* Matched on the fade's middle stop: saved HTML writes it without spaces, the editor canvas with spaces
   (and without the default 180deg). */
.wp-block-group.alignfull[style*="background-image"] > .wp-block-group.alignfull.has-background[style*="rgba(255,255,255,0.6) 45%"],
.wp-block-group.alignfull[style*="background-image"] > .wp-block-group.alignfull.has-background[style*="rgba(255, 255, 255, 0.6) 45%"] {
  background: rgba(20, 22, 23, 0.55) !important;
}
.wp-block-group.alignfull[style*="background-image"] > .wp-block-group.alignfull.has-background[style*="rgba(255,255,255,0.6) 45%"] h1,
.wp-block-group.alignfull[style*="background-image"] > .wp-block-group.alignfull.has-background[style*="rgba(255, 255, 255, 0.6) 45%"] h1 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- Page sections & cards (Commercial, Residential, About Us) ---------- */
.lias-section,
.lias-band {
  margin-block: 0 !important;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--wp--preset--spacing--30, 1.25rem);
}
.lias-section + .lias-section:not(.lias-band) {
  padding-top: 0;
}
.lias-section--flush {
  padding-top: 0;
}
/* Reading width for text; grids and service lists stay wide. */
.lias-section.is-layout-constrained > :is(p, h2, .wp-block-buttons) {
  max-width: 820px;
}
.lias-section > h2 {
  margin-bottom: 0.5em;
}
.lias-lead {
  font-size: 1.15em;
}
.lias-eyebrow {
  margin-top: 0 !important;
  color: var(--wp--preset--color--primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Services grid inside a titled band: the category label would repeat the band's heading. */
.lias-band .olympus-svc__sector {
  display: none;
}
.lias-section .wp-block-buttons {
  margin-top: 2rem;
}
.lias-section h2,
.lias-band h2 {
  text-wrap: balance;
}
/* Core's grid sizes columns from --wp--custom--spacing--gap: keep it equal to the gap. */
.lias-cards {
  --wp--custom--spacing--gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 2rem !important;
}
.lias-card {
  margin: 0 !important;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e7e9eb;
  border-top: 3px solid var(--wp--preset--color--primary);
  border-radius: 8px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.35);
}
.lias-card > * {
  margin-block: 0 0.75em;
}
.lias-card > :last-child {
  margin-bottom: 0;
}
.lias-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .lias-card {
    padding: 1.25rem;
  }
}

/* Referral page: numbered steps. */
.lias-referral-steps {
  gap: 1rem;
  margin-top: 1rem !important;
}
.lias-referral-steps .lias-card {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 4.5rem;
}
.lias-referral-steps .lias-card h3 {
  font-size: 1.15rem;
}
.lias-step {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Service pages ---------- */
/* Narrower text column (1200px lines were ~150 characters). */
.single-service .wp-block-post-content {
  --wp--style--global--content-size: 960px;
}
.single-service .wp-block-post-content h2.wp-block-heading:not(:first-child) {
  margin-top: 2.5rem;
}
.single-service .wp-block-post-content :is(.wp-block-image, .wp-block-gallery) img {
  border-radius: 8px;
}
/* Lists as checklists. */
.single-service .wp-block-post-content ul.wp-block-list {
  padding-left: 0;
  list-style: none;
}
.single-service .wp-block-post-content ul.wp-block-list > li {
  position: relative;
  margin-bottom: 0.4em;
  padding-left: 1.9em;
}
.single-service .wp-block-post-content ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 1.2em;
  height: 1.2em;
  background: var(--wp--preset--color--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* John 3:16, above the footer (added by the site owner in the classic theme). */
.lias-footer-verse {
  padding: 16px 20px 0;
  background-color: #efefef;
  color: #000;
  opacity: 1;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

.lias-footer-verse em {
  opacity: 0.75;
}
