/**
 * Theme Name: City Wide Franchise
 * Template: city-wide-bt-v1
 * Text Domain: city-wide-child
 * Author: 3
 */

 .home section#faqs {
    padding-top: 40px;
}

.page-template-services-det #get-started-form>.wp-block-group {
  padding-top: 0;
}

.areas-section .container{
  display: block !important;
}

.areas-section .container > *{
  float: none !important;
  width: 100%;
  clear: both;
}

.areas-section .wp-block-heading{
  margin: 0 0 12px;
  line-height: 1.15;
}
.areas-section p{
  margin: 0 0 24px;
  max-width: 100%;
}

.areas-section .areas-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px 40px;
}

.areas-section .areas-grid ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.areas-section .areas-grid li{
  margin: 6px 0;
}

@media (max-width: 1024px){
  .areas-section .areas-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .areas-section .areas-grid{ grid-template-columns: 1fr; }
}

.areas-section.has-global-padding{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== FAQ */
.faq-section .container{ 
  display: block !important;
}
.faq-section .wp-block-heading{
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
}

.faq-section .faq-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  margin: 10px 0;
  overflow: hidden;
}


.faq-section .faq-item > summary{
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 20px;
  border-bottom: 1px solid transparent;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}
.faq-section .faq-item > summary::-webkit-details-marker{ display:none; }

.faq-section .faq-item > summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  font-weight: 700;
  color: #d7282f;
}
.faq-section .faq-item[open] > summary::after{ content: "–"; }

.faq-section .faq-item > summary::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: transparent;
}
.faq-section .faq-item[open] > summary::before{
  background: #d7282f;
}

.faq-section .faq-answer{
  padding: 16px 20px 20px;
  color: rgba(0,0,0,.85);
  line-height: 1.6;
}

.faq-section .faq-item p {
  padding: 10px 20px;
} 

.faq-section .faq-item > summary:focus{
  outline: 2px solid #d7282f;
  outline-offset: 2px;
}

.faq-section.has-global-padding{ padding-left:0!important; padding-right:0!important; }
/* ===== Service Detail – Shared Container & Spacing ===== */

/* =========================
   SERVICE DETAIL — v1 (scoped)
   ========================= */
.service-det .service-detail{ --cw-max:1200px; --cw-pad:16px; }

/* container consistente y sin grid/flex heredado */
.service-det .service-detail .container{
  max-width: var(--cw-max);
  margin-inline: auto;
  padding-inline: var(--cw-pad);
  display: block !important;            /* apaga grids/flex heredados */
}

/* títulos y texto legibles */
.service-det .service-detail h2.wp-block-heading{ margin: 0 0 10px; line-height: 1.15; }
.service-det .service-detail h3.wp-block-heading{ margin: 0 0 14px; line-height: 1.2; }
.service-det .service-detail p{ margin: 0 0 18px; }

/* espaciado vertical entre secciones */
.service-det .service-detail .svc-included,
.service-det .service-detail .svc-industries,
.service-det .service-detail .svc-quality,
.service-det .service-detail .svc-area,
.service-det .service-detail .svc-cta{ margin-block: 36px; }

section.wp-block-group.svc-industries.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  width: 100%;
  max-width: unset !important;
  background-color: #ededed;
} 

section.wp-block-group.svc-industries.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained .container-normal-content {
  width: 100%;
  max-width: 1200px;
  padding: 80px 10px;
}

/* ===== Botón rojo: evitar el estilo “vertical rail” del tema sólo aquí */
.service-det .service-detail .wp-block-button.link{
  position: static !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  inset: auto !important;
}
.service-det .service-detail .wp-block-button.link .wp-block-button__link{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #d7282f;
  color: #fff;
  text-decoration: none;
}

/* ===== What's Included (3 columnas limpias) */
.service-det .service-detail .svc-included-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px 40px;
}
.service-det .service-detail .svc-included-grid ul{ margin: 0; padding: 0; list-style: none; }
.service-det .service-detail .svc-included-grid li{
  margin: 6px 0;
  padding-left: 18px;
  position: relative;
}
.service-det .service-detail .svc-included-grid li::before{
  content: "•";
  position: absolute; left: 0; top: 0;
  color: #d7282f; font-weight: 700; line-height: 1;
}

/* ===== Industries (cards grid) */
.service-det .service-detail .industries-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.service-det .service-detail .industry-card{
  background: #aeaeae;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 18px;
}

.industry-card {
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 18px;
}

.industry-card h4, .industry-card p, .industry-card .wp-block-button.link {
  margin-left: 8px !important;
  margin-right: 8px !important;
}

.service-det .service-detail .industry-card h4{ margin: 0 0 6px; }
.service-det .service-detail .industry-card p{ margin: 0 0 12px; }
.service-det .service-detail .industry-card .wp-block-button.link{ margin-top: 8px; }

/* ===== Service Area (reusa patrón de listas en 3 col) */
.service-det .service-detail .areas-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px 40px;
}
.service-det .service-detail .areas-grid ul{ list-style: none; margin: 0; padding: 0; }
.service-det .service-detail .areas-grid li{ margin: 6px 0; }

/* ===== Quita padding global que mete WP en algunos Group */
.service-det .service-detail .container.has-global-padding,
.service-det .service-detail .svc-included.has-global-padding,
.service-det .service-detail .svc-industries.has-global-padding,
.service-det .service-detail .svc-quality.has-global-padding,
.service-det .service-detail .svc-area.has-global-padding,
.service-det .service-detail .svc-cta.has-global-padding{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== Responsive */
@media (max-width: 1024px){
  .service-det .service-detail .svc-included-grid,
  .service-det .service-detail .industries-grid,
  .service-det .service-detail .areas-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px){
  .service-det .service-detail .svc-included-grid,
  .service-det .service-detail .industries-grid,
  .service-det .service-detail .areas-grid{
    grid-template-columns: 1fr;
  }
  .service-det .service-detail .wp-block-button.link .wp-block-button__link{
    width: 100%; text-align: center;
  }
}

/* ===== SERVICE DETAIL – HERO con background ===== */
/* Primer .container dentro de .service-detail (tu H2 + párrafo + botón) */
.service-detail > .wp-block-group.container.hero:first-child{
  background-image: url("https://gocitywide.com/wp-content/uploads/2025/09/banner-compressed-scaled.png") !important;

  /* aspecto de héroe */
  position: relative;
  padding: 90px 24px 110px; /* ajusta si quieres más/menos alto */
  overflow: hidden;
  border-radius: 0; /* mantén full-bleed si la página no usa cajas redondeadas */

  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: rgba(0, 0, 0, .68);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-attachment: fixed;
  margin-bottom: 32px !important;
}

/* Oscurecer sutilmente para legibilidad (opcional, comenta si no lo quieres) */
.service-detail > .wp-block-group.container.hero:first-child::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.30);
}
.service-detail > .wp-block-group.container.hero:first-child > *{
  position: relative; z-index: 1;
}

.service-detail .hero-content {
  color: #fff;
  width: 100%;
  max-width: 800px;
}

section#faqs,
section.wp-block-group.svc-included.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained,
section.wp-block-group.svc-quality.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained,
section.wp-block-group.svc-industries.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained,
section.wp-block-group.svc-area.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  margin-block-start: 0 !important;
}

section.wp-block-group.svc-included.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained,
section.wp-block-group.svc-industries.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained,
section.wp-block-group.svc-area.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  margin-bottom: 32px !important;
}

section.wp-block-group.svc-industries.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  padding: 32px 0 !important;
}

section#faqs .container {
  padding: 0 !important;
}

/* Botón del hero en línea, no vertical */
.service-detail > .wp-block-group.container.hero:first-child .wp-block-button.link{
  position: static !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}
.service-detail > .wp-block-group.container.hero:first-child .wp-block-button__link{
  display: inline-block;
  padding: 12px 64px;
  border-radius: 999px;
  background: #d7282f;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
}

.service-detail .container-normal-content {
  flex-wrap: wrap;
  justify-content: start;
  width: 100%;
  max-width: 800px;
  padding: 32px 0 !important;
}

/* ===== Grids básicos para las secciones (por si el theme mete grid/flex raros) */
.svc-area .areas-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 40px 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}

.service-detail .svc-included-grid,
.svc-included .svc-included-grid,
.svc-industries .industries-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 40px 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}
@media (max-width:1024px){
  .service-detail .svc-included-grid,
  .svc-included .svc-included-grid,
  .svc-industries .industries-grid,
  .svc-area .areas-grid{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .wp-block-group .wp-block-group.industry-card {
     padding: 10px;
   }
}
@media (max-width:640px){
  .service-detail .svc-included-grid,
  .svc-included .svc-included-grid,
  .svc-industries .industries-grid{ 
    grid-template-columns: 1fr;
  }
  .svc-area .areas-grid { 
    grid-template-columns: repeat(2,1fr);
  }
  .service-detail .svc-included-grid,
  .svc-included .svc-included-grid,
  .svc-area .areas-grid { 
    gap: 0;
  }
}


.svc-area .areas-grid ul,
.svc-included .svc-included-grid ul, .svc-area .areas-grid ul {
  list-style: none; margin: 0; padding: 0;
}
.svc-included .svc-included-grid li, .svc-area .areas-grid li {
  margin: 6px 0; padding-left: 18px; position: relative;
}
.svc-included .svc-included-grid li::before, .svc-area .areas-grid li::before {
  content:"•"; position:absolute; left:0; top:0; color:#d7282f; font-weight:700; line-height:1;
}

.wp-block-separator {
  padding: 20px !important;
}

.page-id-740 .service-detail > .wp-block-group.container.hero:first-child {
  position: relative;
  background: none !important; 
  isolation: isolate;         
}

.page-id-740 .service-detail > .wp-block-group.container.hero:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(https://gocitywide.com/wp-content/uploads/2025/10/blur-background-of-a-city-street-with-christmas-il-2025-02-21-12-19-15-utc-scaled.jpg) center/cover no-repeat;
  filter: grayscale(100%) contrast(105%) brightness(30%);
  z-index: 0;
  background-position: bottom;
}

.page-id-740 .service-detail > .wp-block-group.container.hero:first-child > * {
  position: relative;
  z-index: 1; 
}

.page-id-416 .service-detail > .wp-block-group.container.hero:first-child {
  position: relative;
  background: none !important; 
  isolation: isolate;         
}

.page-id-416 .service-detail > .wp-block-group.container.hero:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(https://gocitywide.com/wp-content/uploads/2025/10/4T2A5670-scaled.jpg) center/cover no-repeat;
  filter: grayscale(100%) contrast(105%) brightness(42%);
  z-index: 0;
}

.page-id-416 .service-detail > .wp-block-group.container.hero:first-child > * {
  position: relative;
  z-index: 1; 
}

/* Construction cleaning */
.page-id-675 .service-detail > .wp-block-group.container.hero:first-child, 
.page-id-697 .service-detail > .wp-block-group.container.hero:first-child {
  position: relative;
  background: none !important; 
  isolation: isolate;         
}

.page-id-675 .service-detail > .wp-block-group.container.hero:first-child::before, 
.page-id-697 .service-detail > .wp-block-group.container.hero:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(https://gocitywide.com/wp-content/uploads/2025/10/construction-engineer-wear-safety-uniform-under-scaled.jpg) center/cover no-repeat;
  filter: grayscale(100%) contrast(105%) brightness(92%);
  z-index: 0;
}

.page-id-675 .service-detail > .wp-block-group.container.hero:first-child > *, 
.page-id-697 .service-detail > .wp-block-group.container.hero:first-child > * {
  position: relative;
  z-index: 1; 
}

/* FLOOR CARE */
.page-id-698 .service-detail > .wp-block-group.container.hero:first-child,
.page-id-777 .service-detail > .wp-block-group.container.hero:first-child,
.page-id-415 .service-detail > .wp-block-group.container.hero:first-child,
.page-id-599 .service-detail > .wp-block-group.container.hero:first-child
{
  position: relative;
  background: none !important; 
  isolation: isolate;         
}

.page-id-698 .service-detail > .wp-block-group.container.hero:first-child::before,
.page-id-777 .service-detail > .wp-block-group.container.hero:first-child::before,
.page-id-415 .service-detail > .wp-block-group.container.hero:first-child::before,
.page-id-599 .service-detail > .wp-block-group.container.hero:first-child::before
{
  content: "";
  position: absolute;
  inset: 0;
  background: url(https://gocitywide.com/wp-content/uploads/2025/10/4T2A5971-1-1-scaled.jpg) center/cover no-repeat;
  filter: grayscale(100%) contrast(105%) brightness(32%);
  z-index: 0;
  background-position: 0 -100px;
}

.page-id-698 .service-detail > .wp-block-group.container.hero:first-child > *,
.page-id-777 .service-detail > .wp-block-group.container.hero:first-child > *,
.page-id-415 .service-detail > .wp-block-group.container.hero:first-child > *,
.page-id-599 .service-detail > .wp-block-group.container.hero:first-child > * 
{
  position: relative;
  z-index: 1; 
}

/* HANDYMAN */
.page-id-600 .service-detail > .wp-block-group.container.hero:first-child,
.page-id-420 .service-detail > .wp-block-group.container.hero:first-child,
.page-id-416 .service-detail > .wp-block-group.container.hero:first-child {
  position: relative;
  background: none !important; 
  isolation: isolate;         
}

.page-id-600 .service-detail > .wp-block-group.container.hero:first-child::before,
.page-id-420 .service-detail > .wp-block-group.container.hero:first-child::before,
.page-id-416 .service-detail > .wp-block-group.container.hero:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(https://gocitywide.com/wp-content/uploads/2025/10/4T2A6126-1-1-scaled.jpg) center/cover no-repeat;
  filter: grayscale(100%) contrast(105%) brightness(32%);
  z-index: 0;
}

.page-id-600 .service-detail > .wp-block-group.container.hero:first-child > *,
.page-id-420 .service-detail > .wp-block-group.container.hero:first-child > *,
.page-id-416 .service-detail > .wp-block-group.container.hero:first-child > * {
  position: relative;
  z-index: 1; 
}