/*
 * site-engine: site kit stylesheet.
 *
 * Shipped by SiteKitStep into the engine's child theme and enqueued by
 * site-engine-localbusiness.php. It styles only what the engine itself emits:
 * the renderer's section classes (see src/site_engine/render.py), the footer
 * rendered by the local business plugin, and the contact form.
 *
 * Colours come from the child theme's --se-* variables (written by the theme
 * step from the brand palette), with a neutral fallback, so a site whose
 * palette changes needs no change here. No layout value here depends on a
 * particular business or a particular page.
 */

/* ---- sections ---------------------------------------------------------- */
/* Every section class render.py emits (se-form included) belongs in this list
   AND in the two lists in site-engine-motion.php; a test enforces it. */
.se-text, .se-services, .se-faq, .se-areas, .se-trust, .se-cta, .se-form, .se-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}
.se-hero .wp-block-columns { align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.se-hero h1 { line-height: 1.1; margin-top: 0; }
.se-hero .wp-block-image img { border-radius: 10px; display: block; height: auto; }

.se-cards { gap: clamp(1rem, 2.5vw, 1.75rem); }
.se-cards .wp-block-column {
  background: #fff;
  border-radius: 8px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 22px rgba(0, 0, 0, .06);
}
.se-cards .wp-block-column h3 { margin-top: 0; }

.se-faq details {
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  padding: .9rem 0;
}
.se-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.se-faq summary::marker, .se-faq summary::-webkit-details-marker { display: none; }
/* A plain hyphen, not an escaped U+2212: anything that renders on a customer
   page is subject to the dash rule, and an escape is not an exemption from it
   (site_engine.dashes.decoded_dash decodes CSS escapes for exactly this). */
.se-faq summary::after { content: " +"; opacity: .6; }
.se-faq details[open] summary::after { content: " -"; }

.se-area-list { list-style: none; padding-left: 0; columns: 2; column-gap: 2rem; }
.se-area-list li { break-inside: avoid; padding: .3rem 0; }
@media (max-width: 600px) { .se-area-list { columns: 1; } }

.se-badges { gap: clamp(1rem, 3vw, 2.5rem); }
.se-badge { max-width: 18rem; }
.se-badge h3 { margin: 0 0 .35rem; font-size: 1.05rem; }

.se-cta-banner { align-items: center; }
.se-cta .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .se-cta .wp-block-buttons { justify-content: flex-start; } }

/* ---- contact form ------------------------------------------------------ */
.wpcf7 { max-width: 44rem; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 5px;
  background: #fff;
  color: inherit;
}
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible {
  outline: 3px solid var(--se-primary, #1a4f8a);
  outline-offset: 1px;
}
.wpcf7 .se-form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.wpcf7 .se-form-row > * { flex: 1 1 14rem; }
.wpcf7 .se-hint { font-weight: 400; opacity: .7; font-size: .9rem; }
.wpcf7 .wpcf7-submit {
  background: var(--se-primary, #1a4f8a);
  color: var(--se-cream, #fff);
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  padding: .85rem 1.6rem;
  cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover { background: var(--se-primary-dark, #123962); }
.wpcf7-response-output { border-radius: 5px; }

/* ---- footer ------------------------------------------------------------ */
.se-footer { background: var(--se-ink, #1c1a1b); color: #f4f2ef; }
.se-footer a { color: #f4f2ef; }
.se-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 2.75rem;
  align-items: start;
}
.se-footer h2, .se-footer h3 { color: #fff; }
.se-f-logo { display: block; margin-bottom: .9rem; border-radius: 6px; background: #fff; padding: 5px; }
.se-f-name { font-size: 1.18rem; letter-spacing: .04em; margin: 0 0 .6rem; line-height: 1.3; }
.se-f-phone { margin: 0 0 .6rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.se-f-phone a { color: #fff; text-decoration: none; }
.se-f-addr, .se-f-areas { margin: 0 0 .6rem; line-height: 1.6; opacity: .82; }
.se-f-email, .se-f-link { margin: 0 0 .4rem; }
.se-f-email a, .se-f-link a { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.se-f-email a:hover, .se-f-link a:hover { opacity: 1; }
.se-f-hours h3 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .9rem; }
.se-hours { margin: 0 0 1.2rem; }
.se-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(244, 242, 239, .14);
}
.se-hours dt { opacity: .82; margin: 0; font-weight: 400; }
.se-hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
.se-f-map { min-height: 290px; height: 100%; border-radius: 8px; overflow: hidden; background: #2a2728; }
.se-f-map iframe { display: block; width: 100%; height: 100%; min-height: 290px; }
.se-footer-bar {
  border-top: 1px solid rgba(244, 242, 239, .16);
  padding: 1.25rem 1.5rem 1.6rem;
  font-size: .9rem;
  text-align: center;
}
.se-footer-bar p { margin: 0; opacity: .7; }
@media (max-width: 980px) {
  .se-footer-inner { grid-template-columns: 1fr 1fr; gap: 2.1rem; }
  .se-f-map { grid-column: 1 / -1; min-height: 260px; }
}
@media (max-width: 640px) {
  .se-footer-inner { grid-template-columns: 1fr; padding: 2.6rem 1.25rem 1.9rem; gap: 1.9rem; }
  .se-f-phone { font-size: 1.35rem; }
  /* Astra's back to top button is fixed bottom right and lands on the last
     footer line at the end of the page, so leave it room. */
  .se-footer-bar { padding-bottom: 4.5rem; }
}
