/*
 * Homepage specific styles
 * Eko DDD - Hero section, carousel, pricing, sections
 */

/* Carousel */
.carousel {
  position: relative;
  margin: 1rem 0 1.2rem;
}

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__track {
  display: flex;
  gap: 0.8rem;
  padding: 0.2rem 0.2rem 0.6rem;
}

.carousel__slide {
  flex: 0 0 auto;
  width: min(360px, 86vw);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.carousel__slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.carousel__caption {
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  color: #111827;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel__btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.carousel__btn.prev {
  left: -12px;
}

.carousel__btn.next {
  right: -12px;
}

@media (max-width: 700px) {
  .carousel__btn.prev {
    left: 4px;
  }
  .carousel__btn.next {
    right: 4px;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(600px, 80vh, 900px);
  display: flex;
  align-items: center;
  background: #fff;
  margin-top: -2.5%;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: translateZ(0) scale(1.02);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.03) 40%,
    rgba(0, 0, 0, 0.02) 70%,
    rgba(0, 0, 0, 0.03) 100%
  );
}

.hero__wrap {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(2.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__title {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2rem, 3.8vw + 1rem, 3.6rem);
  letter-spacing: -0.5px;
  margin: 0.9rem 0 0.7rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero__title .hl {
  color: var(--brand-green);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  max-width: 800px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (min-width: 700px) {
  .hero__cta {
    flex-wrap: nowrap;
  }
}

.hero__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  color: #29303a;
  font-weight: 600;
}

.trust svg {
  color: var(--brand-green);
}

.hero__card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.8rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  backdrop-filter: blur(6px);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.kpi {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

.kpi strong {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* Featured References Grid */
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Sections general */
.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, #ffffff, #f7f8fb);
}

.heading {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem);
  margin: 0 0 0.5rem;
}

.subhead {
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1.2rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem;
}

.price.featured {
  border: 2px solid color-mix(in oklab, var(--brand-purple) 25%, white);
  box-shadow: var(--shadow-md);
}

.price__sum {
  font-size: 2rem;
  font-weight: 800;
}

.price ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1rem;
  color: #374151;
}

.price li {
  margin: 0.4rem 0;
}

@media (max-width: 980px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.quote {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 0.7rem;
  top: 0.2rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(113, 28, 118, 0.15);
  font-family: Georgia, "Times New Roman", serif;
}

/* Field News */
#field-news .field-news__meta {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  margin: -1rem 0 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

#field-news .field-news__meta time {
  font-weight: 600;
  color: #111827;
}

#field-news .field-news__tag {
  background: var(--brand-purple);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

#field-news .field-news__location::before {
  content: "\f3c5"; /* map-marker icon placeholder if using icon font */
  font-family: system-ui, sans-serif;
  margin-right: 0.35rem;
  font-weight: 600;
}

.field-news__entry {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: 0;
}

@media (max-width: 880px) {
  .field-news__entry {
    grid-template-columns: 1fr;
  }
}

.field-news__body {
  padding: 1.1rem 1.2rem 0.9rem;
}

.field-news__body p {
  margin: 0.6rem 0 0;
  color: #374151;
}

.field-news__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* No space between images */
  padding: 0; /* Flush edges */
  background: transparent;
  height: 100%;
}

.field-news__item {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0; /* remove default figure margin */
  position: relative; /* anchor caption overlay */
}

.field-news__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* Remove rounding so they touch perfectly */
  display: block;
}

.field-news__item figcaption {
  font-size: 0.65rem;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: #444;
  padding: 0.3rem 0.35rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.field-news__item:hover img {
  filter: brightness(1.08) saturate(1.08);
  transition: 220ms ease;
}

.field-news__item:focus-within,
.field-news__item:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

/* Bed Bugs Specialized Service */
#pricing .pricing-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  margin-top: 1.2rem;
}
@media (max-width: 880px) {
  #pricing .pricing-preview {
    grid-template-columns: 1fr;
  }
}

.pricing-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  overflow: hidden;
}
.pricing-mini thead {
  background: linear-gradient(
    90deg,
    var(--brand-purple),
    color-mix(in oklab, var(--brand-purple) 60%, var(--brand-green))
  );
  color: #fff;
}
.pricing-mini th,
.pricing-mini td {
  padding: 0.5rem 0.6rem;
  text-align: left;
}
.pricing-mini th {
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 0.65rem;
  text-transform: uppercase;
}
.pricing-mini tbody tr {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.pricing-mini tbody tr:nth-child(even) {
  background: #fafbfe;
}
.pricing-mini tbody tr:hover {
  background: #f2f5fa;
}

#pricing .pricing-preview__col {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.pricing-bullets li {
  list-style: disc;
  margin: 0.35rem 0;
}
.pricing-bullets {
  color: #374151;
}
#bed-bugs .bedbugs {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: stretch;
}

@media (max-width: 980px) {
  #bed-bugs .bedbugs {
    flex-direction: column;
  }
}

.bedbugs__content {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.bedbugs__content h3.bedbugs__subtitle {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.6rem;
  font-weight: 700;
}

.bedbugs__list {
  margin: 0 0 1.1rem 1rem;
  padding: 0;
  list-style: disc;
  color: #374151;
}

.bedbugs__list li {
  margin: 0.45rem 0;
}

.bedbugs__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.bedbugs__media {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bedbugs__machines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 500px) {
  .bedbugs__machines {
    grid-template-columns: 1fr;
  }
}

.bedbugs__machine {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.bedbugs__machine img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.bedbugs__machine figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #374151;
}

.bedbugs__video {
  position: relative;
  border: 2px dashed
    color-mix(in oklab, var(--brand-purple) 40%, var(--brand-green));
  border-radius: 18px;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fafbfe, #f2f5fa);
}

.bedbugs__video-inner {
  text-align: center;
  color: #374151;
  font-size: 0.85rem;
  max-width: 40ch;
  padding: 0.6rem 0.9rem;
}

.bedbugs__play {
  background: var(--brand-purple);
  color: #fff;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.65rem;
  opacity: 0.55;
  cursor: not-allowed;
}

.bedbugs__play svg {
  display: block;
}

.bedbugs__machine:hover img {
  filter: brightness(1.05) saturate(1.04);
  transition: 260ms ease;
}
.bedbugs__machine:focus-within {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}
