/* ACTS Cleaning Services – site CSS (front end + editor canvas). */

/* Quick actions: four cards (Live Pricing, Schedule Walkthrough, Call Live Agent, Customer Support). */
.acts-quick-actions .wp-block-columns {
  gap: 20px;
}
.acts-quick-actions .wp-block-column {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 14px;
  background: var(--wp--preset--color--base);
  box-shadow: 0 10px 30px -18px rgba(5, 19, 103, 0.45);
}
.acts-quick-actions .wp-block-column h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.acts-quick-actions .wp-block-column p {
  margin: 0 0 18px;
  color: #4a5160;
  font-size: 0.95rem;
}
.acts-quick-actions .wp-block-column .wp-block-buttons {
  margin-top: auto;
}
.acts-quick-actions .wp-block-button,
.acts-quick-actions .wp-block-button__link {
  width: 100%;
  text-align: center;
}
.acts-quick-actions .wp-block-button__link {
  justify-content: center;
  font-size: 1rem;
  white-space: nowrap;
}
@media (max-width: 781px) {
  .acts-quick-actions .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .acts-quick-actions .wp-block-column p {
    display: none; /* Cards stay compact on phones: title + button. */
  }
  .acts-quick-actions .wp-block-column {
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .acts-quick-actions .wp-block-column h3 {
    display: none; /* Same words as the button. */
  }
  .acts-quick-actions .wp-block-button__link {
    min-height: 56px;
  }
  .acts-quick-actions .wp-block-button__link {
    padding: 10px 8px;
    font-size: 0.9rem;
    white-space: normal;
  }
  .acts-quick-actions .wp-block-button .wp-block-button__link::after {
    display: none !important;
  }
}

/* Service area section (towns: Service towns block). */
.acts-service-area .olympus-map,
.acts-service-area iframe {
  border-radius: 14px;
  overflow: hidden;
}

/* Contact page: contact card next to the form. */
.acts-contact-card {
  padding: 28px;
  border-radius: 14px;
}
.acts-contact-card .wp-block-button,
.acts-contact-card .wp-block-button__link {
  width: 100%;
  text-align: center;
}
.acts-contact-card a:not(.wp-element-button) {
  color: inherit;
}

/* ======================================================================
 * Header: sticky main bar (the top bar scrolls away), navy top bar,
 * hover underline, pill call to action, phone button, softer dropdowns.
 * ==================================================================== */
/* Desktop only: under 950px the theme keeps the header in the flow (mobile menu; the dock is a bottom bar). */
@media (min-width: 951px) {
  html .wp-site-blocks > header.wp-block-template-part {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) - 40px) !important;
    z-index: 1000;
  }
}
.olympus-main-nav .olympus-top-nav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--wp--preset--color--primary) !important;
}
.olympus-main-nav .olympus-top-nav-wrap {
  width: 100%;
  gap: 24px;
}
.olympus-main-nav .olympus-top-nav-contact {
  margin-left: auto;
}
.olympus-main-nav .olympus-top-nav-link,
.olympus-main-nav .olympus-top-nav-link span {
  color: #fff !important;
  font-size: 0.85rem;
}
.olympus-main-nav .olympus-top-nav-link svg {
  height: 16px !important;
  color: #fff !important;
}
.olympus-main-nav .olympus-top-nav-spacer.acts-topbar-note {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}
.acts-topbar-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.acts-topbar-note svg {
  width: 16px;
  height: 16px;
  color: var(--wp--preset--color--accent, #8ab63d);
}
@media (max-width: 1180px) {
  .olympus-main-nav .olympus-top-nav-spacer.acts-topbar-note {
    display: none;
  }
}

.olympus-main-nav {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
html:not([data-scroll="0"]) .olympus-main-nav {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px -18px rgba(5, 19, 103, 0.45);
}
.olympus-main-nav.ace .olympus-main-nav-wrap {
  padding: 0 20px;
}
.olympus-main-nav .olympus-main-nav-items {
  min-height: 84px;
}
.olympus-main-nav-logo > img {
  max-height: 62px;
}
.olympus-main-nav .olympus-main-nav-item {
  position: relative;
  color: #1d2340 !important;
  font-weight: 600;
}
.olympus-main-nav .olympus-main-nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--wp--preset--color--accent, #8ab63d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.olympus-main-nav .olympus-main-nav-item:hover::after,
.olympus-main-nav .olympus-main-nav-item-submenu-wrap:hover > .olympus-main-nav-item::after {
  transform: scaleX(1);
}
.olympus-main-nav .nav-btn-1 {
  border-radius: 999px;
  background-color: var(--wp--preset--color--secondary);
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--wp--preset--color--secondary) 80%, black);
}
.olympus-main-nav .nav-btn-1 a {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: var(--wp--preset--color--secondary-contrast) !important;
  font-weight: 700;
}
.acts-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
  border-radius: 999px;
  color: var(--wp--preset--color--primary) !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.acts-nav-phone:hover {
  border-color: var(--wp--preset--color--primary);
}
.acts-nav-phone svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 1024px) {
  .acts-nav-phone {
    display: none;
  }
}
.olympus-main-nav .olympus-main-nav-item-submenu-content {
  padding: 12px;
  border: 1px solid rgba(5, 19, 103, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px -22px rgba(5, 19, 103, 0.4);
}
.olympus-main-nav .main-nav-popup-inside-link {
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.olympus-main-nav .main-nav-popup-inside-link:hover {
  background: var(--wp--preset--color--neutral);
  color: var(--wp--preset--color--primary) !important;
}
.olympus-main-nav .olympus-main-nav-submenu-title {
  color: var(--wp--preset--color--primary) !important;
  font-weight: 700;
}

/* ======================================================================
 * Global polish: type, buttons, cards.
 * ==================================================================== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
.wp-block-heading:is(h1, h2) {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 {
  letter-spacing: -0.01em;
}
.wp-block-button__link,
.wp-element-button {
  border-radius: 999px;
  font-weight: 600;
}
.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-media-text__media img {
  border-radius: 16px;
}
.wp-block-post-content > .wp-block-group.alignfull.has-neutral-background-color + .wp-block-group.alignfull.has-neutral-background-color {
  padding-top: 0 !important; /* Two neutral sections in a row read as one. */
}

/* ======================================================================
 * Home sections (theme blocks): readable text, rounded cards, lighter video.
 * ==================================================================== */
/* Headings on dark/green fills keep the section's text colour (the global heading colour is navy). */
:is(.has-primary-background-color, .has-secondary-background-color, .wp-block-cover) :is(h1, h2, h3, h4) {
  color: inherit;
}
/* Why choose us: the theme mutes the copy (!important) and prints a black title. */
.olympus-why-choose-us .olympus-why-choose-us__title {
  color: var(--wp--preset--color--primary) !important;
  font-weight: 700;
}
.olympus-why-choose-us .olympus-why-choose-us__content p {
  color: #3d4459 !important;
}
/* FAQ accordion: rounded cards, medium-weight questions. */
.olympus-faq .olympus-faq-item.tod-accordion.faq {
  overflow: hidden;
  border-radius: 14px; /* Beats the theme's style variants (.olympus-faq.ace .olympus-faq-item). */
}
.olympus-faq .accordion-title h3 {
  font-weight: 500;
}
/* Coloured columns used as cards (e.g. "Get in touch"). */
.wp-block-post-content .wp-block-column.has-background {
  border-radius: 16px;
}
/* Video section: narrower, rounded video instead of a full-width block. */
.wp-block-cover:has(iframe[src*="vimeo"]) .wp-block-cover__inner-container {
  max-width: 880px;
}
.wp-block-cover:has(iframe[src*="vimeo"]) .wp-block-html > div,
.wp-block-cover:has(iframe[src*="vimeo"]) iframe {
  border-radius: 16px;
  overflow: hidden;
}

/* Lead paragraph under a section title. */
.acts-lead {
  max-width: 46em;
  margin-right: auto !important;
  margin-left: auto !important;
  color: #3d4459;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* Button arrows (theme adds one after every button label): smaller, centred with the label, and a slide on hover
   instead of the theme's margin change (which resized the button). */
body .wp-block-button:not(.is-style-no-arrow-button) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
body .wp-block-button:not(.is-style-no-arrow-button) .wp-block-button__link::after,
body .wp-block-button:not(.is-style-no-arrow-button) .wp-block-button__link:hover::after {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 0.2s ease;
}
body .wp-block-button:not(.is-style-no-arrow-button) .wp-block-button__link:hover::after {
  transform: translateX(3px);
}
/* Quick-action cards: full-width buttons, a little less side padding so long labels fit with their arrow. */
.acts-quick-actions .wp-block-button__link {
  padding-right: 16px !important;
  padding-left: 16px !important;
}

/* Footer logo: rounded white tile (padding keeps the artwork, which touches the image edges, clear of the corners). */
.olympus-footer .olympus-footer-logo > img {
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
}
