/* =============================================================
   custom.css — Site-wide custom styles for Speedy Concrete
   Extracted from inline <style> blocks across all HTML pages.
   ============================================================= */


/* ---------------------------------------------------------------
   index.html — #about section image uniformity
--------------------------------------------------------------- */
#about .wrap-news img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


/* ---------------------------------------------------------------
   services.html / projects.html — Service card grid
--------------------------------------------------------------- */
#projects-wrap .service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
#projects-wrap .service-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  filter: brightness(0.6);
}
#projects-wrap .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}
#projects-wrap .service-name {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Static overlay — always visible, no hover animation */
#projects-wrap .projects-grid .hovereffect .overlay {
  height: 100% !important;
  top: 0 !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Uniform rectangular image size */
#projects-wrap .projects-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease-in-out;
}

/* Image scale on hover — image only, overlay/text unaffected */
#projects-wrap .projects-grid:hover img {
  transform: scale(1.2) !important;
}

/* Hide any "More Detail" buttons the theme adds */
#projects-wrap .projects-grid .btn-content,
#projects-wrap .projects-grid .more {
  display: none !important;
}

/* services.html / projects.html — 5-per-row flex grid */
#projects #projects-wrap {
  display: flex;
  flex-wrap: wrap;
}
#projects #projects-wrap > [class*="col-"] {
  float: none !important;
  width: 25% !important;
  padding: 0 !important;
  box-sizing: border-box;
}
#projects .projects-grid.big-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Industries — 3 per row (col-md-4 items) */
#projects #projects-wrap > .col-md-4 {
  width: 33.3333% !important;
}

@media (min-width: 769px) and (max-width: 992px) {
  #projects #projects-wrap > [class*="col-"]:not(.col-md-4) { width: 33.3333% !important; }
  #projects #projects-wrap > .col-md-4 { width: 50% !important; }
}
@media (max-width: 768px) {
  #projects #projects-wrap > [class*="col-"] { width: 50% !important; }
}


/* ---------------------------------------------------------------
   industries.html — uses same .hovereffect/.overlay/h3 pattern as services
   (industry-card rules removed — no longer used)
--------------------------------------------------------------- */


/* ---------------------------------------------------------------
   marekHoldingCompanies.html — Equal-height holding company cards
--------------------------------------------------------------- */
/* ---------------------------------------------------------------
   marekHoldingCompanies.html — Holding Companies gallery
   Fully scoped to #mhc-* — no Bootstrap or theme interference
--------------------------------------------------------------- */
#mhc-gallery-section {
  background: #fff;
  padding: 40px 0;
}

#mhc-gallery-container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

#mhc-gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 1%;
  max-width: 100%;
}

.mhc-card {
  flex: 0 0 calc(32.666% + 20px);
  min-width: 0;
  box-sizing: border-box;
}

.mhc-card-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.mhc-card-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  display: block;
  transform: scale(1);
  transition: transform 1s ease-in-out;
}

/* Hover: zoom image like the theme */
.mhc-card-inner:hover img {
  transform: scale(1.1);
}

.mhc-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease;
}

/* Hover: lighten overlay */
.mhc-card-inner:hover::after {
  background: rgba(0, 0, 0, 0.25);
}

.mhc-card-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 22pt;
}

.mhc-card-label span {
  font-size: 0.75em;
  font-weight: normal;
  color: #0077b5;
  margin-top: 4px;
  transition: text-decoration 0.3s ease;
}

@media (max-width: 768px) {
  #mhc-gallery-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
  .mhc-card {
    flex: 0 0 100%;
  }
}

/* ---------------------------------------------------------------
   marekHoldingCompanies.html — Subheader background
--------------------------------------------------------------- */
#subheader {
  background-image: url("../img/MAREKhOLDINGcOMPANIES.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
#subheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
#subheader .container,
#subheader h1,
#subheader .devider-page,
#subheader .subdetail {
  position: relative;
  z-index: 1;
}


/* ---------------------------------------------------------------
   locations.html — Map canvas (USA)
--------------------------------------------------------------- */
#map-usa {
  background: #1d2633 !important;
}
#map-usa .state-label {
  pointer-events: none;
}
#map-usa .state-label span {
  color: #9fb3c8;
  font: 700 12px/1.2 "Inter", system-ui, Arial;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}
#map-usa .city-label {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  color: #cfd8e3;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}

/* locations.html — Location buttons */
.location-btn {
  background: #fff;
  color: #16355d;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-bottom: 4px solid #e7273b;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 17px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.location-btn:hover,
.location-btn:focus {
  background: #f9f9f9;
  color: #16355d;
  text-decoration: none;
  transform: translateY(-2px);
}
.location-btn:focus-visible {
  outline: 2px solid #16355d;
  outline-offset: 2px;
}


/* ---------------------------------------------------------------
   texas.html — Map canvas (Texas)
--------------------------------------------------------------- */
#map-texas {
  background: #1d2633 !important;
}
#map-texas .state-label {
  pointer-events: none;
}
#map-texas .state-label span {
  color: #9fb3c8;
  font: 700 12px/1.2 "Inter", system-ui, Arial;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}
#map-texas .city-label {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  color: #cfd8e3;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}


/* ---------------------------------------------------------------
   florida.html — Map canvas (Florida)
--------------------------------------------------------------- */
#map-florida {
  background: #1d2633 !important;
}
#map-florida .state-label {
  pointer-events: none;
}
#map-florida .state-label span {
  color: #9fb3c8;
  font: 700 12px/1.2 "Inter", system-ui, Arial;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}
#map-florida .city-label {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  color: #cfd8e3;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}


/* ---------------------------------------------------------------
   tennessee.html — Map canvas (Tennessee)
--------------------------------------------------------------- */
#map-tennessee {
  background: #1d2633 !important;
}
#map-tennessee .state-label {
  pointer-events: none;
}
#map-tennessee .state-label span {
  color: #9fb3c8;
  font: 700 12px/1.2 "Inter", system-ui, Arial;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}
#map-tennessee .city-label {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  color: #cfd8e3;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 2px #111, 0 0 6px #111;
}

/* Shared map label — all state map pages */
.country-label span {
  color: #ffffff;
  font-weight: 400;
  font-size: 24px;
  text-shadow: 0 0 6px #000, 0 0 10px #000;
}


/* ---------------------------------------------------------------
   privacyPolicyTermsOfService.html — Accordion
--------------------------------------------------------------- */
.accordion-group .accordion {
  border: 1px solid #dbdbdb;
  margin-bottom: 10px;
  background: #fff;
}
.accordion-group .accordion .heading {
  cursor: pointer;
  position: relative;
  padding: 16px 20px;
}
.accordion-group .accordion .heading h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.accordion-group .accordion .body {
  display: none;
  padding: 16px 20px;
  border-top: 1px solid #eee;
}
.accordion-group .accordion .heading.open + .body {
  display: block;
}
.accordion-group .accordion .heading::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  line-height: 1;
}
.accordion-group .accordion .heading.open::after {
  content: "–";
}


/* ---------------------------------------------------------------
   careers.html — Caution tape CTA banner
--------------------------------------------------------------- */
.caution-tape {
  background: url("../img/caution-tape-background.jpg") no-repeat center center;
  padding: 50px 0;
  text-align: center;
  margin-top: 50px;
}
.caution-tape .btn-form {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 30px;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.caution-tape .btn-form:hover {
  background: #333;
}

/* ---------------------------------------------------------------
   projects.html / services.html — mobile 2-column grid + h3 size
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .projects .hovereffect .overlay h3,
  .projects-grid .hovereffect .overlay h3 {
    font-size: 10px !important;
  }
}
