/* =========================================================
   1. HERO BANNER  (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  :is(.page-id-3058, .page-id-3424) .banner {
    display: block;
    min-height: 1000px;
  }
  :is(.page-id-3058) .banner {
    min-height: 1100px;
  }
  :is(.page-id-3058, .page-id-3424) .banner-content {
    max-width: 100%;
    display: block;
  }
  :is(.page-id-3058, .page-id-3424) .banner-bg img {
    float: none;
    margin: 0;
  }
  :is(.page-id-3058, .page-id-3424) .banner-desc {
    max-width: 100%;
    margin: 0;
  }
  :is(.page-id-3058, .page-id-3424) .banner .banner-desc h1 {
    font-size: 40px;
  }
  :is(.page-id-3058, .page-id-3424) .banner-desc > p:first-child {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  :is(.page-id-3058, .page-id-3424) .banner-text p {
    font-size: 17px;
  }

  :is(.page-id-3058, .page-id-3424) .page-content .btn-holder br {
    display: none;
  }

  /* checklist chips */
  :is(.page-id-3058, .page-id-3424) .hero-features {
    gap: 10px;
  }
  :is(.page-id-3058, .page-id-3424) .hero-features p {
    padding: 10px 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
  }

  /* show the "Proactive > Reactive" card */
  :is(.page-id-3058, .page-id-3424) .banner-form {
    display: block;
    max-width: 100%;
    padding: 24px 20px;
    margin-top: 30px;
  }
  :is(.page-id-3058, .page-id-3424) .banner-form > p:first-child {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  :is(.page-id-3058, .page-id-3424) .banner-form h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 14px;
  }
  :is(.page-id-3058, .page-id-3424) .hero-card-item p:empty {
    display: none;
  }
  :is(.page-id-3058, .page-id-3424) .hero-card-item p {
    position: relative;
    padding: 0 0 12px 28px;
    margin: 0 0 12px;
  }
  :is(.page-id-3058, .page-id-3424) .hero-card-item p:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  :is(.page-id-3058, .page-id-3424) .hero-card-item p:before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
  }
}


/* =========================================================
   2. CARD GRIDS — 2 per row on tablets
   ========================================================= */
@media (min-width: 576px) and (max-width: 991px) {
  :is(.page-id-3058, .page-id-3424) .white-grid,
  :is(.page-id-3058, .page-id-3424) .primary-grid {
    width: 50% !important;
  }
}


/* =========================================================
   3. TABLETS + PHONES  (≤991px)
   ========================================================= */
@media (max-width: 991px) {
  :is(.page-id-3058, .page-id-3424) .column-section .row,
  :is(.page-id-3058, .page-id-3424) .about-content .row {
    grid-row-gap: 16px;
  }

  /* ---- Process intro (title + red image box) ---- */
  :is(.page-id-3058, .page-id-3424) .column-section .section-title {
    margin-bottom: 30px !important;
  }
  :is(.page-id-3058, .page-id-3424) .title-process {
    margin-bottom: 20px !important;
    text-align: center;
  }
  :is(.page-id-3058, .page-id-3424) .column-section .bg-img,
  :is(.page-id-3058, .page-id-3424) .column-list-3 .bg-img {
    max-width: 240px;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
  }
  :is(.page-id-3058, .page-id-3424) .column-list-3 .bg-img img {
    max-width: 100%;
  }

  /* ---- All cards ---- */
  :is(.page-id-3058, .page-id-3424) .bullet-holder {
    padding: 20px;
    border-radius: 20px;
  }
  :is(.page-id-3058, .page-id-3424) .white-grid .bullet-holder {
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text h3 {
    font-size: 20px;
    margin: 0 0 6px;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text p {
    font-size: 16px;
    font-weight: 400;
  }

  /* ---- Numbered process steps: red badge beside title ---- */
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p.h3:first-child) {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    align-items: start;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p.h3:first-child) > p.h3 {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--color-acc);
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p.h3:first-child) > p:not(.h3) {
    margin: 0;
  }

  /* ---- Brine benefit cards: snowflake beside title ---- */
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p:first-child > img.emoji) {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 12px;
    align-items: start;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p:first-child > img.emoji) > p:first-child {
    grid-row: 1 / span 2;
    margin: 0;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p:first-child > img.emoji) img.emoji {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
  }
  :is(.page-id-3058, .page-id-3424) .bullet-text:has(> p:first-child > img.emoji) > p.h4 {
    font-size: 18px;
    margin: 2px 0 4px;
  }

  /* ---- Facility cards: checkmarks in 2 columns ---- */
  :is(.page-id-3058, .page-id-3424) .primary-grid ul.list-style-none {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 15px;
    line-height: 1.35;
  }

  /* ---- About / image + text sections ---- */
  :is(.page-id-3058, .page-id-3424) .about-section .about-img img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 20px;
  }
  :is(.page-id-3058, .page-id-3424) .about-section .section-title {
    margin-bottom: 28px !important;
  }
  :is(.page-id-3058, .page-id-3424) .about-section .section-title .mw-800 {
    margin: 12px auto 0;
  }
  :is(.page-id-3058, .page-id-3424) .about-section .about-content > h3 {
    font-size: 19px;
    padding-left: 14px;
    border-left: 4px solid var(--color-acc);
  }
  :is(.page-id-3058, .page-id-3424) .about-section .about-content > h3 + p {
    padding-left: 18px;
    margin-bottom: 20px;
  }
  :is(.page-id-3058, .page-id-3424) .about-section .row.reverse {
    grid-row-gap: 28px;
  }

  /* ---- Comparison table ---- */
  :is(.page-id-3058, .page-id-3424) .comparison-table {
    margin: 24px auto;
    overflow-x: auto;
  }
}


/* =========================================================
   4. PHONES  (≤767px)
   ========================================================= */
@media (max-width: 767px) {
  /* headings */
  :is(.page-id-3058, .page-id-3424) .page-content h1,
  :is(.page-id-3058, .page-id-3424) .page-content .h1,
  :is(.page-id-3058, .page-id-3424) .banner .banner-desc h1 { font-size: 32px; }
  :is(.page-id-3058, .page-id-3424) .page-content h2,
  :is(.page-id-3058, .page-id-3424) .page-content .section-title h2 { font-size: 26px; }
  :is(.page-id-3058, .page-id-3424) .page-content h3 { font-size: 19px; }

  /* section spacing */
  :is(.page-id-3058, .page-id-3424) .column-section.pt-80,
  :is(.page-id-3058, .page-id-3424) .about-section.pt-80,
  :is(.page-id-3058, .page-id-3424) .full-section.pt-80 { padding-top: 48px; }
  :is(.page-id-3058, .page-id-3424) .column-section.pb-80,
  :is(.page-id-3058, .page-id-3424) .about-section.pb-80,
  :is(.page-id-3058, .page-id-3424) .full-section.pb-80 { padding-bottom: 48px; }
  :is(.page-id-3058, .page-id-3424) .mw-800 { margin-top: 0; }
  :is(.page-id-3058, .page-id-3424) .section-title.mb-50 { margin-bottom: 28px !important; }

  /* buttons: full width + stacked */
  :is(.page-id-3058, .page-id-3424) .page-content .btn-holder a.btn {
    display: block;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
  }
  :is(.page-id-3058, .page-id-3424) .page-content .btn-holder a.btn:last-child {
    margin-bottom: 0 !important;
  }
  :is(.page-id-3058, .page-id-3424) .page-content .btn-holder {
    margin-top: 24px;
  }

  /* comparison table: compact so 3 columns fit */
  :is(.page-id-3058, .page-id-3424) .comparison-table {
    border-radius: 16px;
  }
  :is(.page-id-3058, .page-id-3424) .comparison-table thead th,
  :is(.page-id-3058, .page-id-3424) .comparison-table tbody td {
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.3;
  }
  :is(.page-id-3058, .page-id-3424) .comparison-table thead th {
    font-size: 14px;
  }
  :is(.page-id-3058, .page-id-3424) .comparison-table tbody td:first-child {
    width: 42%;
    font-size: 15px;
  }
  :is(.page-id-3058, .page-id-3424) .comparison-table tbody td:nth-child(3) {
    color: #017d83;
    font-weight: 700;
  }
  :is(.page-id-3058, .page-id-3424) .comparison-table tbody tr:nth-child(even) td {
    background: #f8fafb;
  }
  :is(.page-id-3058, .page-id-3424) .table-note {
    font-size: 14px;
    color: #555;
  }

  /* CTA band */
  :is(.page-id-3058, .page-id-3424) .full-section .mw-800.text-white h2 {
    font-size: 24px;
    line-height: 1.25;
  }
  :is(.page-id-3058, .page-id-3424) .full-section .mw-800.text-white > p:first-child {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
}


/* very narrow phones: single-column checklists */
@media (max-width: 360px) {
  :is(.page-id-3058, .page-id-3424) .hero-features,
  :is(.page-id-3058, .page-id-3424) .primary-grid ul.list-style-none {
    grid-template-columns: 1fr;
  }
}