/* contact.css — page-specific styles for Contact Us
   Kept separate from commercial.css to avoid loading unused commercial page styling.
*/

/* =========================
   HERO (Contact page only)
   ========================= */
body.contact-page #blog{ min-height: 0; }

body.contact-page #blog .parallax-overlay{
  min-height: 220px;   /* prevents hero collapsing */
  padding-top: 55px;
  padding-bottom: 25px;
  display: flex;
  align-items: center;
}

/* Contact hero: shift background similar to commercial page */
body.contact-page #blog.parallax{
  background-attachment: scroll;
  background-position: center 15%;
}

/* =========================
   CONTACT PAGE LAYOUT
   ========================= */
.contact-page-content{
  margin-top: 0;
  padding: 50px 0 70px;
}

.contact-page-content .contact-card{
  padding: 34px 28px;
}

.contact-page-content .contact-panels{
  display: flex;
  flex-wrap: wrap;
}
/* Bootstrap 3 clearfix pseudo-elements become flex items; hide them in this row */
.contact-page-content .contact-panels:before,
.contact-page-content .contact-panels:after{
  display: none;
  content: none;
}

.contact-page-content .contact-col{
  display: flex;
}

.contact-page-content .contact-panel{
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 18px 16px;
}

.contact-page-content .contact-panel--wide{
  padding: 18px 18px;
}

.contact-page-content .contact-panel-title{
  margin: 0 0 10px;
  color: rgba(37, 61, 121, .85);
  font-weight: 900;
}

.contact-page-content .contact-phone{
  font-size: 18px;
  margin: 0 0 10px;
}

.contact-page-content .contact-muted{
  margin: 0;
  color: rgba(0,0,0,.70);
}

.contact-page-content .contact-org{
  margin: 0 0 8px;
}

.contact-page-content .contact-address{
  margin: 0;
}

.contact-page-content .contact-divider{
  margin: 22px 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.contact-page-content .contact-map-title{
  margin-top: 0;
}

.contact-page-content .contact-map-frame{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.contact-page-content .contact-map-iframe{
  border: 0;
  display: block;
  width: 100%;
  height: 360px;
}
/* Call Us panel: header-style phone button, sized like .ars-call-btn */
.contact-page-content .contact-panel .header-phone-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  /* match global button sizing */
  padding: 10px 16px;
  font-weight: 700;

  border-radius: 6px;
  border: 1px solid rgba(37,61,121,.22);
  background: rgba(37,61,121,.06);
  color: var(--ars-blue);

  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.contact-page-content .contact-panel .header-phone-link i{
  color: var(--ars-blue);
}

.contact-page-content .contact-panel .header-phone-link:hover{
  background: rgba(37,61,121,.10);
  border-color: rgba(37,61,121,.32);
  color: var(--ars-blue);
  text-decoration: none;
}
/* =========================
   RESPONSIVE TWEAKS
   ========================= */

/* CONTACT: 768–1199 — make Call Us + Office wider (same size), shrink middle */
@media (min-width: 768px) and (max-width: 1199px){
  .contact-page-content .contact-panels{
    display: grid;
    grid-template-columns: 1.15fr 1.7fr 1.15fr;
    gap: 18px;
  }

  /* Override Bootstrap column behavior inside the grid */
  .contact-page-content .contact-col{
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 991px){
  .contact-page-content .contact-card{ padding: 26px 18px; }
  .contact-page-content .contact-panel{ padding: 16px 14px; }
  .contact-page-content .contact-panel--wide{ padding: 16px 14px; }

  /* Add more space between "Call Us" and the phone button (<=991) */
  .contact-page-content .contact-panel .header-phone-link{
    margin-top: 10px;
  }
}


@media (max-width: 767px){
  .contact-page-content{ padding: 48px 0 56px; }
  .contact-page-content .contact-map-iframe{ height: 320px; }

  /* Keep panels stretching full width when stacked */
  .contact-page-content .contact-panels{ align-items: stretch; }
  .contact-page-content .contact-panel,
  .contact-page-content .contact-panel--wide{ width: 100%; }
}


/* 576–767: put Call Us + Office side-by-side, wide panel below */
@media (min-width: 576px) and (max-width: 767px){
  /* 2-up row for small cards */
  .contact-page-content .contact-col{
    flex: 1 1 calc(50% - 10px);
    width: auto;
    margin-bottom: 0 !important; /* use flex gap instead */
  }

  /* Force order: Call Us (1), Office (3), then wide (2) */
  .contact-page-content .contact-col:nth-child(1){ order: 1; }
  .contact-page-content .contact-col:nth-child(3){ order: 2; }
  .contact-page-content .contact-col:nth-child(2){
    order: 3;
    flex: 1 1 100%;
  }
}

/* <=575: all three panels full width (match the wide box) */
@media (max-width: 575px){
  .contact-page-content .contact-col{
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 14px;
  }
  .contact-page-content .contact-col:last-child{ margin-bottom: 0; }
}
/* =========================================================
   CONTACT: <=575px — make all 3 top boxes match + center them
   (Call Us / How can we help? / Office) + tighten spacing
   ========================================================= */
@media (max-width: 575px){

  /* Make ALL three cards the same width */
  .contact-page .contact-cards-row .contact-card{
    width: 100% !important;
    max-width: none !important;
  }

  /* Center content in ALL three boxes */
  .contact-page .contact-cards-row .contact-card{
    text-align: center;
  }

  /* Center the "Map" heading above the map */
  .contact-page .contact-map-title,
  .contact-page .contact-map h3{
    text-align: center;
  }

  /* ---- Tighten vertical spacing inside the cards ---- */

  /* Remove the “floating” top spacing on the first text line */
  .contact-page .contact-cards-row .contact-card p:first-child{
    margin-top: 0 !important;
  }

  /* General paragraph spacing inside the cards (less airy) */
  .contact-page .contact-cards-row .contact-card p{
    margin: 0 0 8px 0 !important;
  }
  .contact-page .contact-cards-row .contact-card p:last-child{
    margin-bottom: 0 !important;
  }

  /* Office card: reduce gap between company name and address */
  .contact-page .contact-cards-row .contact-card strong{
    display: inline-block;
    margin-bottom: 4px !important;
  }

  /* Call Us card: reduce gap between phone number and “Fastest way…” */
  .contact-page .contact-cards-row .contact-card a[href^="tel:"],
  .contact-page .contact-cards-row .contact-card .contact-phone{
    margin-bottom: 6px !important;
  }

  /* Phone number should never break mid-number */
  .contact-page .contact-cards-row .contact-card a[href^="tel:"]{
    white-space: nowrap;
    display: inline-block;
  }
}
/* CONTACT: desktop — add space between "Call Us" title and phone button */
@media (min-width: 992px){
  .contact-page-content .contact-panel .header-phone-link{
    margin-top: 12px;
  }
}
/* CONTACT: desktop — match Office spacing to Call Us button spacing */
@media (min-width: 992px){
  .contact-page-content .contact-panel .contact-org{
    margin-top: 12px;
  }
}
/* CONTACT: 768–1199 — fix panels touching edges + keep company name on one line */
@media (min-width: 768px) and (max-width: 1199px){

  /* Fix: Bootstrap .row negative margins were pushing panels into the card edge */
  .contact-page-content .contact-panels{
    margin-left: 0;
    margin-right: 0;

    display: grid;
    grid-template-columns: 1.15fr 1.7fr 1.15fr;
    gap: 18px;
  }

  /* Override Bootstrap column behavior inside the grid */
  .contact-page-content .contact-col{
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }

  /* Keep company name on one line (and gently shrink if needed) */
  .contact-page-content .contact-panel .contact-org{
    white-space: nowrap;
    font-size: clamp(14px, 1.35vw, 16px);
  }
}
