/*
 * Main service pages (residential, commercial, construction, yard waste, e-waste,
 * appliance): the section layouts used by src/pages/<slug>.html.
 * Sizes follow the old Elementor kit so the pages look as they did: headings
 * 40/50 (h2), 30/38 (h3), 24/28 (h4), text 16/24 (14/21 on phones), 1200px content.
 */

.svc-page { color: #000; font-size: 16px; line-height: 1.5; }
/* :where keeps this as light as the old theme reset, so a block's own heading margins win */
:where(.svc-page) :is(h1, h2, h3, h4) { color: inherit; margin: 0; font-weight: 700; }
.svc-page h1 { font-size: 60px; line-height: 70px; font-weight: 900; }
.svc-page h2 { font-size: 42px; line-height: 50px; }
.svc-page h3 { font-size: 30px; line-height: 38px; }
.svc-page h4 { font-size: 24px; line-height: 28px; }
/* "<b>Bold part</b> light part" headings */
.svc-page .svc-h-light, .svc-page .svc-h-light-base { font-weight: 400; }
.svc-page .svc-h-light b { font-weight: 700; }
.svc-page h1.svc-h-light b { font-weight: 900; }

.svc-page .btn-brand {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: 16px; font-weight: 900; line-height: 1; padding: 20px 35px; border: 0; border-radius: 10px;
  align-self: flex-start;
}

.svc-wrap { max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.svc-sec { padding: 100px 0; border-radius: var(--oc-radius); }
.svc-grey { background: #f6f6f6; }
.svc-cover { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--oc-radius); }
/* pictures next to text fill their column; the text sets the height */
.svc-intro__media, .svc-row__media, .svc-split__media { position: relative; min-height: 260px; }
.svc-intro__media .svc-cover, .svc-row__media .svc-cover, .svc-split__media .svc-cover { position: absolute; inset: 0; }

/* text widgets */
.svc-text p { margin: 0 0 .9rem; }
.svc-text a { color: var(--oc-orange); }
.svc-text a:hover { color: #000; }
.svc-text strong, .svc-text b { font-weight: 700; }
.svc-text ul, .svc-text ol { margin: 0 0 .9rem; }
.svc-text--bold p { font-weight: 700; }
.svc-intro .svc-text, .svc-rows .svc-text, .svc-split .svc-text, .svc-card .svc-text, .svc-tail .svc-text,
.svc-head .svc-text { color: rgba(0, 0, 0, .7); }

/* arrow lists (Elementor icon lists) */
.svc-arrows { list-style: none; margin: 0; padding: 0; color: rgba(0, 0, 0, .7); }
.svc-arrows li { display: flex; align-items: baseline; gap: 8.5px; padding: 10px 14px; border-radius: 10px; }
.svc-arrows li::before {
  content: ""; flex: 0 0 14px; height: 14px; position: relative; top: 2px; background: var(--oc-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h19M14 5l7 7-7 7'/%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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h19M14 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-arrows a { color: var(--oc-orange); }
.svc-arrows a:hover { color: #000; }
.svc-intro .svc-arrows li + li { margin-top: 5px; }

/* ---------------------------------------------------------------- banner */
.svc-banner {
  position: relative; isolation: isolate; color: #fff; padding-top: 124px;
  background: #000 var(--hero-image) center / cover no-repeat;
}
.svc-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .7); z-index: -1; }
.svc-banner__main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 25px 30px; }
.svc-banner__text { max-width: 950px; }
.svc-banner h1 { color: var(--oc-orange); font-size: 50px; line-height: 60px; margin-bottom: 20px; }
.svc-banner h1 span { color: #fff; font-weight: 400; }
.svc-banner p { color: rgba(255, 255, 255, .7); max-width: 650px; margin: 0 0 .9rem; }
.svc-page .svc-banner__btn { flex-shrink: 0; font-weight: 700; align-self: center; }
.svc-crumbs { background: rgba(0, 0, 0, .5); padding: 26px 10px; }
.svc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; font-weight: 500; }
.svc-crumbs li { display: flex; align-items: center; padding: 10px 14px; margin: 0 5px; }
.svc-crumbs li + li::before {
  content: ""; width: 14px; height: 14px; margin-right: 3.5px; background: var(--oc-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l8 8-8 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='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l8 8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-crumbs a, .svc-crumbs span { color: #fff; padding-left: 5px; }
.svc-crumbs a:hover { color: var(--oc-orange); }

/* ---------------------------------------------------------------- intro: picture + text */
.svc-intro__grid { display: grid; grid-template-columns: 42fr 58fr; gap: 40px; align-items: stretch; }
.svc-intro__body { display: flex; flex-direction: column; gap: 20px; padding: 0 10px; }

/* ---------------------------------------------------------------- dark photo bands */
.svc-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; border-radius: var(--oc-radius);
  background: #000 url("/assets/uploads/2025/03/transpernt-dots-shape.png") center / cover no-repeat;
  padding-top: 20px;
}
.svc-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3;
  background: var(--band-image) center / cover no-repeat;
}
.svc-band__grid { display: grid; grid-template-columns: 1fr 1fr; }
.svc-band__body { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 80px 0 100px; }
.svc-band h2 span { font-weight: 400; }
.svc-band .svc-text a { color: var(--oc-orange); }
.svc-band .svc-text a:hover { color: #fff; }
.svc-band .svc-text strong { color: #fff; }
.svc-band__media { display: flex; align-items: flex-end; justify-content: center; min-height: 640px; }
.svc-band__person { display: block; max-height: 640px; width: auto; height: auto; max-width: 100%; }
.svc-book .svc-book__actions { margin: 0; gap: 20px; }
.svc-book .svc-book__actions .btn {
  min-height: 88px; padding: 20px; line-height: 1.5; border-radius: 10px; font-size: 16px; font-weight: 900;
  align-self: stretch; box-shadow: 0 4px 15px rgba(245, 131, 48, .4);
}

/* ---------------------------------------------------------------- orange icon strip */
.svc-features { background: var(--oc-orange); color: #fff; border-radius: var(--oc-radius); padding: 50px 0 40px; }
.svc-features h2 { text-align: center; margin-bottom: 20px; }
.svc-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px; }
.svc-feature { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.svc-feature img { height: 76px; width: auto; }
.svc-feature p { margin: 0 0 .9rem; }

/* ---------------------------------------------------------------- heading + text blocks, centred */
.svc-head { display: flex; flex-direction: column; gap: 20px; text-align: center; padding: 10px; }
.svc-tail { display: flex; flex-direction: column; gap: 20px; text-align: center; margin-top: 20px; }
.svc-tail .btn-brand { align-self: center; }

/* ---------------------------------------------------------------- alternating picture / text rows */
.svc-rows__list { padding: 10px; margin-top: 20px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; }
.svc-row--flip .svc-row__media { order: 2; }
.svc-row__body {
  background: #fff; border-radius: var(--oc-radius); padding: 50px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}

/* ---------------------------------------------------------------- picture + text, no card (e-waste) */
.svc-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 10px; }
.svc-split__body { display: flex; flex-direction: column; gap: 20px; padding: 0 10px; }

/* ---------------------------------------------------------------- white cards on a photo band */
.svc-cards {
  position: relative; isolation: isolate; color: #fff; padding: 80px 0 100px;
  background: #000 var(--band-image) center / cover no-repeat;
}
.svc-cards::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .7); border-radius: inherit; z-index: -1; }
.svc-cards h2 { text-align: center; margin-bottom: 40px; }
.svc-cards__grid { padding: 10px; gap: 30px; }
.svc-card {
  position: relative; background: #fff; color: #000; border-radius: var(--oc-radius); padding: 35px 35px 120px;
  display: flex; flex-direction: column; gap: 20px;
}
.svc-card__icon { height: 65px; width: auto; align-self: flex-start; }
.svc-page .svc-card .btn-brand { position: absolute; left: 35px; bottom: 35px; font-weight: 600; padding: 15px 30px; }

/* ---------------------------------------------------------------- shared blog / reviews strips */
.svc-page .container-xxl { max-width: 1230px; --bs-gutter-x: 30px; }
.svc-page .oc-blog { padding: 100px 0; }
.svc-page .oc-blog__head .oc-h2 { margin-bottom: 5px; }
.svc-page .oc-post-card h4 { font-size: 24px; line-height: 28px; }
.svc-page .oc-reviews .oc-h2 { margin-bottom: 0; }

/* ---------------------------------------------------------------- FAQ */
.svc-faq .svc-head h2 { text-transform: uppercase; }
.svc-faq .svc-head h4 { font-size: 16px; line-height: 24px; color: #000; margin: 0; }
.svc-faq--tight { padding: 10px 0 40px; }
.svc-faq__list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.svc-faq__item { background: #fff; border-radius: 8px; }
.svc-faq__item summary {
  list-style: none; cursor: pointer; padding: 25px 60px 25px 30px; color: #1f2124; font-weight: 700; position: relative;
}
.svc-faq__item summary::-webkit-details-marker { display: none; }
.svc-faq__item summary::after {
  content: "+"; position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  color: var(--oc-orange); font-size: 26px; font-weight: 400;
}
.svc-faq__item[open] summary::after { content: "\2212"; }
.svc-faq__answer { padding: 0 30px 20px; }
.svc-faq__answer .svc-text { color: rgba(0, 0, 0, .7); }

/* ---------------------------------------------------------------- Elementor kit sizes per screen width */
@media (max-width: 1350px) {
  .svc-page h1 { font-size: 50px; line-height: 60px; }
  .svc-page h2 { font-size: 40px; }
}
@media (max-width: 1199px) {
  .svc-page h1, .svc-banner h1 { font-size: 44px; line-height: 50px; }
  .svc-page h2 { font-size: 40px; line-height: 44px; }
}
@media (max-width: 1024px) {
  .svc-page h2 { font-size: 36px; }
  .svc-page h3 { font-size: 28px; }
}
@media (max-width: 991px) {
  .svc-page h1, .svc-banner h1 { font-size: 36px; line-height: 44px; }
  .svc-page h2 { font-size: 30px; line-height: 32px; }
  .svc-page h3 { font-size: 26px; }
  .svc-page h4 { font-size: 20px; line-height: 24px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 767px) {
  .svc-page { font-size: 14px; }
  .svc-page h1, .svc-banner h1 { font-size: 28px; line-height: 36px; }
  .svc-page h2 { font-size: 24px; line-height: 28px; }
  .svc-page h3 { font-size: 22px; line-height: 28px; }
  .svc-page h4 { font-size: 20px; line-height: 24px; }
  .svc-page .btn-brand { align-self: center; }
  .svc-sec { padding: 50px 0; }

  .svc-banner { padding-top: 60px; text-align: center; }
  .svc-banner__main { flex-direction: column; gap: 20px; padding-bottom: 40px; }
  .svc-banner p, .svc-banner__intro { margin-left: auto; margin-right: auto; }
  .svc-crumbs { padding: 12px 0; }
  .svc-crumbs ol { justify-content: center; }

  .svc-intro__grid, .svc-band__grid, .svc-split__grid { grid-template-columns: 1fr; }
  .svc-intro__body, .svc-band__body, .svc-split__body { text-align: center; }
  .svc-intro__body .svc-arrows, .svc-split__body .svc-arrows { text-align: left; }
  /* the people cut-outs and the residential van photo stay hidden on phones, as before */
  .svc-band__media, .svc-intro__media:has(img[src*="How-Our-Junk-Haulers"]) { display: none; }
  .svc-intro__media, .svc-row__media, .svc-split__media { min-height: 0; }
  .svc-intro__media .svc-cover, .svc-row__media .svc-cover, .svc-split__media .svc-cover { position: static; aspect-ratio: 3 / 2; height: auto; }
  .svc-band { padding-top: 0; }
  .svc-band__body { padding: 50px 0; }
  .svc-book .svc-book__actions { grid-template-columns: 1fr; }
  .svc-book .svc-book__actions .btn { min-height: 64px; }

  .svc-features { padding: 50px 0; }
  .svc-features__grid { grid-template-columns: 1fr 1fr; padding: 10px 0; }

  /* rows and cards become swipe cards, one per screen */
  .svc-rows__list {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; padding: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .svc-rows__list::-webkit-scrollbar { display: none; }
  .svc-row { grid-template-columns: 1fr; scroll-snap-align: start; background: #fff; border-radius: var(--oc-radius); overflow: hidden; }
  .svc-row--flip .svc-row__media { order: 0; }
  .svc-row__media .svc-cover { border-radius: 0; }
  .svc-row__body { padding: 30px 20px; text-align: center; justify-content: flex-start; }
  .svc-cards { padding: 50px 0; }
  .svc-cards h2 { margin-bottom: 20px; }
  .svc-cards__grid { grid-auto-columns: 100%; padding: 0; }
  .svc-card { padding: 30px; }
  .svc-page .svc-card .btn-brand { position: static; margin-top: auto; }
  .svc-card__icon { align-self: center; }
  .svc-card h4 { text-align: center; }

  .svc-faq__item summary { padding: 20px 50px 20px 20px; }
  .svc-faq__answer { padding: 0 20px 16px; }
  .svc-page .oc-blog { padding: 50px 0; }
}

/* dots under the phone swipe rows (js/scroller-dots.js) */
.svc-dots { display: none; }
@media (max-width: 767px) {
  .svc-dots { display: flex; justify-content: center; gap: 10px; padding: 16px 0 4px; }
  .svc-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid var(--oc-orange); background: transparent;
  }
  .svc-dots button.active { background: var(--oc-orange); transform: scale(1.2); }
  .svc-cards .svc-dots button { border-color: #fff; }
  .svc-cards .svc-dots button.active { background: #fff; }
}

/* buttons as on the old pages: flat, black on hover */
.svc-page .btn-brand { box-shadow: none; --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; }

/* banner intro widths of the old pages; picture on the right where Elementor flipped the row */
.svc-banner p { max-width: none; }
.svc-banner__intro { max-width: 650px; }
.svc-banner__intro--wide { max-width: 750px; }
@media (min-width: 768px) {
  .svc-flip > :first-child { order: 2; }
}
.svc-band__body > .btn-brand { padding: 24px 35px; }
.svc-book .svc-book__actions .btn { line-height: 1; }
.svc-page .svc-card h3 { font-size: 22px; line-height: 38px; }
.svc-page .svc-banner__btn--html { font-weight: 900; }

/* tablets: columns stack, picture above centred text (as the old pages did from 1024px down) */
@media (min-width: 768px) and (max-width: 1024px) {
  .svc-intro__grid, .svc-split__grid, .svc-row, .svc-band__grid { grid-template-columns: 1fr; }
  .svc-flip > :first-child, .svc-row--flip .svc-row__media { order: 0; }
  .svc-intro__media, .svc-row__media, .svc-split__media { min-height: 0; }
  .svc-intro__media .svc-cover, .svc-row__media .svc-cover, .svc-split__media .svc-cover { position: static; aspect-ratio: 16 / 9; height: auto; }
  .svc-intro__body, .svc-row__body, .svc-split__body, .svc-band__body { text-align: center; }
  .svc-intro__body .svc-arrows, .svc-split__body .svc-arrows { text-align: left; }
  .svc-page .svc-intro .btn-brand, .svc-page .svc-row .btn-brand, .svc-page .svc-split .btn-brand, .svc-band__body > .btn-brand { align-self: center; }
  .svc-band__media { order: -1; min-height: 0; padding-top: 30px; }
  .svc-band__person { max-height: 520px; }
  .svc-band__body { padding: 40px 0 60px; }
  .svc-book .svc-band__media { display: none; }
}

/* booking links inside text: hcp-widget.css paints every HCP link white (meant for buttons),
   which made "book your appointment online" invisible on white */
.svc-page .svc-text a[onclick*="HCPWidget"] { color: var(--oc-orange) !important; }
.svc-page .svc-text a[onclick*="HCPWidget"]:hover { color: #000 !important; }
.svc-page .svc-band .svc-text a[onclick*="HCPWidget"]:hover { color: #fff !important; }
