/**
 * Hero Carousel — 21:9 banners with image, overlay, and aligned content
 * Theme: Parcel Horse (blue #014AB2, #0066CC; yellow #FEE16D, #FFFC00)
 * Light-banner palette: H1 theme blue, H2/body black, CTA blue + yellow label.
 */

/* 21:9 aspect ratio container */
.ph-hero-carousel-wrap {
  margin-top: 80px; /* below fixed header */
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ph-hero-carousel .carousel-item {
  position: relative;
  padding-top: 42.857%; /* 9/21 = 0.42857 → 21:9 */
  height: 0;
  background-color: #f5f7fb;
}

.ph-hero-carousel .carousel-item .ph-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Per-slide opacity via inline style (overlay_opacity 0–1) for image visibility */
.ph-hero-carousel .carousel-item .ph-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Extra side padding so text doesn’t sit against carousel arrows */
.ph-hero-carousel .carousel-item .ph-hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 2rem 6rem;
  box-sizing: border-box;
  pointer-events: none;
}

.ph-hero-carousel .carousel-item .ph-hero-content > * {
  pointer-events: auto;
}

/* No panel fill — text sits directly on the banner (use image + light scrim for contrast) */
.ph-hero-text-overlay {
  background: transparent !important;
  box-shadow: none;
  padding: 2.25rem 2.75rem;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Flush-left copy inside the text panel (panel slot = ph-align-* from backend panel_align) */
.ph-hero-carousel-wrap .ph-hero-copy-left,
.ph-hero-carousel-wrap .ph-hero-copy-left .ph-hero-inner {
  text-align: left !important;
}

.ph-hero-carousel-wrap .ph-hero-content.ph-align-center .ph-hero-copy-left,
.ph-hero-carousel-wrap .ph-hero-content.ph-align-left .ph-hero-copy-left,
.ph-hero-carousel-wrap .ph-hero-content.ph-align-right .ph-hero-copy-left {
  text-align: left !important;
}

.ph-hero-carousel-wrap .ph-hero-copy-left .ph-cta {
  margin-left: 0;
  margin-right: auto;
}

/* Alignment: left = panel on left, rounded right edge */
.ph-hero-carousel .ph-hero-content.ph-align-left {
  justify-content: flex-start;
  text-align: left;
  padding-left: 6rem;
  padding-right: 10rem;
}

.ph-hero-carousel .ph-align-left .ph-hero-text-overlay {
  border-radius: 12px 0 0 12px;
}

/* Alignment: center = panel centered, all corners rounded */
.ph-hero-carousel .ph-hero-content.ph-align-center {
  justify-content: center;
  text-align: center;
  padding-left: 6rem;
  padding-right: 6rem;
}

.ph-hero-carousel .ph-align-center .ph-hero-text-overlay {
  border-radius: 12px;
}

/* Alignment: right = panel on right, rounded left edge */
.ph-hero-carousel .ph-hero-content.ph-align-right {
  justify-content: flex-end;
  text-align: right;
  padding-left: 10rem;
  padding-right: 6rem;
}

.ph-hero-carousel .ph-align-right .ph-hero-text-overlay {
  border-radius: 0 12px 12px 0;
}

/* all together: full-width block, content centered */
.ph-hero-carousel .ph-hero-content.ph-align-together {
  justify-content: center;
  text-align: center;
  padding-left: 6rem;
  padding-right: 6rem;
}

.ph-hero-carousel .ph-align-together .ph-hero-text-overlay {
  border-radius: 12px;
  max-width: 720px;
}

.ph-hero-inner {
  max-width: 640px;
}

/* Breathing room for left/right aligned text blocks */
.ph-hero-carousel .ph-align-left .ph-hero-inner {
  max-width: 520px;
}

.ph-hero-carousel .ph-align-right .ph-hero-inner {
  max-width: 520px;
}

.ph-hero-carousel .ph-align-together .ph-hero-inner {
  max-width: 100%;
  width: 100%;
  padding: 0 0.5rem;
}

.ph-hero-carousel .ph-align-center .ph-hero-inner {
  margin-left: auto;
  margin-right: auto;
}

.ph-hero-carousel .ph-align-right .ph-hero-inner {
  margin-left: auto;
}

.ph-hero-carousel .ph-h1 {
  font-size: calc(clamp(1.5rem, 3.2vw, 2.3rem) + 2pt);
  font-weight: 800;
  color: #014AB2;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ph-hero-carousel .ph-h2 {
  font-size: calc(clamp(1.1rem, 2.5vw, 1.4rem) + 2pt);
  font-weight: 600;
  color: #000000 !important;
  margin: 0 0 1rem 0;
  text-shadow: none;
}

.ph-hero-carousel .ph-desc {
  font-size: calc(clamp(0.95rem, 1.8vw, 1.1rem) + 2pt);
  color: #000000;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  text-shadow: none;
}

.ph-hero-carousel .ph-cta {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFC00;
  background: #014AB2;
  border: 2px solid #014AB2;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(1, 74, 178, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ph-hero-carousel .ph-cta:hover {
  color: #FEE16D;
  background: #013a8f;
  border-color: #013a8f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 74, 178, 0.35);
}

/* Carousel controls */
.ph-hero-carousel .carousel-control-prev,
.ph-hero-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 0.9;
  border-radius: 50%;
  background: rgba(1, 74, 178, 0.8);
  border: 2px solid rgba(255,255,255,0.3);
}

.ph-hero-carousel .carousel-control-prev { left: 1.25rem; }
.ph-hero-carousel .carousel-control-next { right: 1.25rem; }

.ph-hero-carousel .carousel-control-prev:hover,
.ph-hero-carousel .carousel-control-next:hover {
  opacity: 1;
  background: #014AB2;
}

.ph-hero-carousel .carousel-indicators {
  bottom: 1.25rem;
}

.ph-hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
}

.ph-hero-carousel .carousel-indicators .active {
  background-color: #014AB2;
}

/* Legacy Get Quote / Track section (two-column form + image) — hidden */
.ph-legacy-banner-hidden {
  display: none !important;
}

/* Phone + tablet hero rules live in css/hero-carousel-breakpoints.css (loaded after this file). */
