/* Inner-page hero banner (frontend/partials/page-title.blade.php) — used
   on About, Services, Products, Blog, Contact, Get a Quote, Gallery, legal
   and 404 pages. Uses the site's CSS variables so it follows Admin > Site
   Settings > Colors, and the site's cut-corner shape on its bottom edge. */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 150px 0 90px;
  color: #fff;
  /* Cut bottom-right corner, matching the site's card shape. */
  border-bottom-right-radius: 98px;
}

/* ---------- Background layers ---------- */
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: page-hero-zoom 22s ease-in-out infinite alternate;
}

@keyframes page-hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.14) translateX(-1.5%); }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 45%, color-mix(in srgb, var(--accent-color), transparent 70%) 0%, transparent 42%),
    linear-gradient(100deg, color-mix(in srgb, var(--heading-color), transparent 4%) 0%, color-mix(in srgb, var(--heading-color), transparent 18%) 45%, color-mix(in srgb, var(--heading-color), transparent 45%) 100%);
}

.page-hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.14) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}

/* ---------- Layout ---------- */
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 50px;
  align-items: center;
}

.page-hero-content {
  max-width: 760px;
}

/* ---------- Breadcrumbs ---------- */
.page-hero-breadcrumbs {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-hero-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.page-hero-breadcrumbs li + li::before {
  content: "\f285";
  display: inline-block;
  margin: 0 10px;
  font-family: "bootstrap-icons";
  font-size: 0.65rem;
  color: rgb(255 255 255 / 0.5);
}

.page-hero-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.72);
  transition: color 0.3s ease;
}

.page-hero-breadcrumbs a:hover {
  color: #fff;
}

.page-hero-breadcrumbs .current {
  color: #fff;
}

/* ---------- Title & lead ---------- */
.page-hero-title {
  margin-bottom: 18px;
  color: #fff;
  font-size: calc(3.6rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero-title .accent-highlight {
  position: relative;
  /* Plain white, not the brand accent color: several of this hero's
     background photos (and its own accent-tinted overlay) are themselves
     green, so an accent-colored word could blend into the backdrop and
     become unreadable. The swash underline below still marks it as the
     highlighted word. */
  color: #fff;
}

/* Hand-drawn style underline beneath the accented word. */
.page-hero-title .accent-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 50 2 100 6 T 198 4' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.55;
  transform-origin: left;
  animation: page-hero-underline 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes page-hero-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgb(255 255 255 / 0.82);
  font-size: 1.12rem;
  line-height: 1.7;
}

.page-hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero-scroll-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid rgb(255 255 255 / 0.5);
}

.page-hero-scroll-mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-color);
  animation: page-hero-scroll 1.8s ease-in-out infinite;
}

@keyframes page-hero-scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Decorative visual ---------- */
.page-hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.page-hero-ring {
  position: absolute;
  border-radius: 50%;
}

.page-hero-ring-outer {
  inset: 0;
  border: 2px dashed rgb(255 255 255 / 0.28);
  animation: page-hero-spin 40s linear infinite;
}

.page-hero-ring-inner {
  inset: 16%;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 72%), transparent 70%);
}

.page-hero-orbit {
  position: absolute;
  inset: 0;
  animation: page-hero-spin 14s linear infinite;
}

.page-hero-orbit i {
  position: absolute;
  top: -19px;
  left: calc(50% - 19px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 75%);
  animation: page-hero-spin 14s linear infinite reverse;
}

@keyframes page-hero-spin {
  to { transform: rotate(360deg); }
}

.page-hero-core {
  position: absolute;
  inset: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.25), inset 0 0 30px rgb(255 255 255 / 0.08);
  color: #fff;
  font-size: 3.4rem;
}

.page-hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.95);
  color: var(--heading-color);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.2);
  animation: page-hero-float 5s ease-in-out infinite;
}

.page-hero-chip i {
  color: var(--accent-color);
}

.page-hero-chip-one {
  top: 8%;
  left: -6%;
}

.page-hero-chip-two {
  top: 46%;
  right: -10%;
  animation-delay: -1.6s;
}

.page-hero-chip-three {
  bottom: 6%;
  left: 6%;
  animation-delay: -3.2s;
}

@keyframes page-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .page-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991px) {
  .page-hero {
    min-height: 0;
    padding: 130px 0 90px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-visual {
    display: none;
  }

  .page-hero-dots {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.6;
  }

  .page-hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 575px) {
  .page-hero {
    padding: 115px 0 70px;
    border-bottom-right-radius: 56px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .page-hero-lead {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .page-hero-breadcrumbs {
    padding: 7px 14px;
  }

  .page-hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-media img,
  .page-hero-ring-outer,
  .page-hero-orbit,
  .page-hero-orbit i,
  .page-hero-chip,
  .page-hero-scroll-mouse span,
  .page-hero-title .accent-highlight::after {
    animation: none;
  }
}
