/*
  Stylesheet khusus homepage.
  Tujuan: rombak total visual home agar lebih elegan tanpa mengubah isi konten.
*/

:root {
  --home-primary: #2b7bbb;
  --home-primary-dark: #165e99;
  --home-secondary: #26b39c;
  --home-accent-warm: #ffb65c;
  --home-accent-soft: #ffe6bf;
  --home-bg: #fff9ef;
  --home-surface: #ffffff;
  --home-text: #1f3550;
  --home-muted: #6d7e93;
  --home-line: #e6edf6;
  --home-shadow-soft: 0 12px 30px rgba(25, 66, 109, 0.1);
  --home-shadow-strong: 0 20px 45px rgba(19, 57, 95, 0.2);
}

/* Tipografi khusus home agar karakter visual lebih premium */
.byr-home {
  font-family: "Manrope", sans-serif;
  color: var(--home-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(43, 123, 187, 0.1), transparent 24%),
    radial-gradient(circle at 96% 16%, rgba(255, 182, 92, 0.2), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(38, 179, 156, 0.08), transparent 25%),
    linear-gradient(180deg, #fff8ec 0%, #fffdf7 35%, #ffffff 100%);
  padding-bottom: 10px;
}

.byr-home .container {
  position: relative;
  z-index: 2;
}

.byr-home .swiper {
  max-width: 100%;
}

.byr-home-section {
  padding: 28px 0;
}

.byr-section-head {
  margin-bottom: 18px;
}

.byr-section-head h1,
.byr-section-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.byr-section-head h1 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.byr-section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.byr-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a85f08;
  background: var(--home-accent-soft);
}

.byr-kicker-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

/* Hero banner dibuat seperti showcase utama agar first impression kuat */
.byr-hero {
  margin-top: 72px;
  padding-top: 8px;
}

.byr-hero .swiper-banner {
  position: relative;
  max-width: 100%;
  border: 1px solid var(--home-line);
  border-radius: 26px;
  padding: 14px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-soft);
}

.byr-hero .swiper-slide img {
  width: 100%;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
  border-radius: 16px;
}

.byr-hero .swiper-button-next,
.byr-hero .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 68, 116, 0.52);
  backdrop-filter: blur(4px);
}

.byr-hero .swiper-button-next::after,
.byr-hero .swiper-button-prev::after {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
}

.byr-hero .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.7;
}

.byr-hero .swiper-pagination-bullet-active {
  background: var(--home-accent-warm);
  opacity: 1;
}

/* Kartu promo dibuat jadi visual block besar agar lebih engaging */
.byr-package .row {
  margin-top: 4px;
}

.byr-package-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  box-shadow: var(--home-shadow-soft);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.byr-package-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.byr-package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-strong);
}

/* Grid layanan menggunakan card modern dengan hierarchy informasi jelas */
.byr-services .byr-grid-swim {
  display: grid;
  gap: 18px;
}

@media (min-width: 320px) {
  .byr-services .byr-grid-swim {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 620px) {
  .byr-services .byr-grid-swim {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .byr-services .byr-grid-swim {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .byr-services .byr-grid-swim {
    grid-template-columns: repeat(4, 1fr);
  }
}

.byr-services .byr-card {
  display: block;
  text-decoration: none;
  color: var(--home-text);
  border-radius: 18px;
  border: 1px solid var(--home-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 24px rgba(16, 51, 90, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.byr-services .byr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 182, 0.35);
  box-shadow: 0 16px 32px rgba(16, 51, 90, 0.14);
}

.byr-services .byr-card-img {
  padding: 10px;
}

.byr-services .byr-card-img img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 767px) {
  /* Paksa list layanan di HP tetap 1 kolom agar kartu lebih lega dibaca */
  .byr-services .byr-grid-swim {
    grid-template-columns: 1fr !important;
  }

  /* Kecilkan tinggi visual gambar di HP agar kartu tidak terlalu tinggi */
  .byr-services .byr-card-img img {
    aspect-ratio: 4 / 3;
    max-height: 220px;
  }
}

.byr-services .byr-card-body {
  padding: 0 14px 14px;
}

.byr-services .byr-card-info p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.byr-services .byr-card-info small {
  color: var(--home-muted);
  font-size: 13px;
}

.byr-services .byr-card-price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--home-line);
}

.byr-services .byr-card-price small {
  color: #2ca06f;
  font-weight: 700;
}

.byr-services .byr-card-price p {
  margin: 3px 0 0;
  color: var(--home-primary-dark);
  font-size: 20px;
  font-weight: 800;
}

/* Section intro dibentuk sebagai panel editorial agar copy lebih nyaman dibaca */
.byr-intro .container {
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-soft);
  padding: 28px;
}

.byr-intro-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 16px;
}

.byr-intro-copy {
  height: 100%;
  border-radius: 16px;
  border: 1px solid #eaf1f9;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
  padding: 20px;
  line-height: 1.8;
  color: #31465f;
}

/* Galeri dibuat clean dengan fokus foto */
.byr-gallery .slider-galleries {
  margin-top: 4px;
}

.byr-gallery .swiper-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--home-line);
  box-shadow: var(--home-shadow-soft);
}

.byr-gallery .swiper-button-next-galleries,
.byr-gallery .swiper-button-prev-galleries {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  z-index: 10;
  border-radius: 50%;
  background: rgba(22, 85, 145, 0.6);
}

.byr-gallery .swiper-button-next-galleries {
  right: 12px;
}

.byr-gallery .swiper-button-prev-galleries {
  left: 12px;
}

.byr-gallery .swiper-button-next-galleries::before,
.byr-gallery .swiper-button-prev-galleries::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.byr-gallery .swiper-button-next-galleries::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.byr-gallery .swiper-button-prev-galleries::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

/* CTA tetap sama konten, hanya diberi framing agar seimbang dengan section lain */
.byr-cta img {
  border-radius: 20px;
  border: 1px solid var(--home-line);
  box-shadow: var(--home-shadow-soft);
}

/* Section map dibuat sebagai blok visual penutup yang tegas */
.byr-map {
  margin-top: 8px;
  padding: 46px 0;
  background: linear-gradient(120deg, #2b7bbb 0%, #2f94c1 42%, #26b39c 100%);
}

.byr-map .container {
  border-radius: 20px;
}

.byr-map iframe {
  border-radius: 16px;
  box-shadow: 0 20px 35px rgba(2, 19, 39, 0.3);
}

/* Section tambahan dengan tone family-friendly untuk menambah nilai konten home */
.byr-family-activities .byr-family-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.byr-family-card {
  border-radius: 16px;
  border: 1px solid #f2d8af;
  background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
  box-shadow: 0 12px 24px rgba(168, 114, 37, 0.12);
  padding: 18px;
}

.byr-family-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #9f5d09;
}

.byr-family-card p {
  margin: 0;
  color: #5c6d7f;
  line-height: 1.65;
}

/*
  Override selector global lama berbasis id.
  Dibuat lebih spesifik dengan prefix .byr-home supaya style redesign menang.
*/
.byr-home #sectionBanner img {
  height: clamp(240px, 42vw, 460px);
  width: 100%;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
}

.byr-home #sectionMap {
  margin-top: 8px;
  padding: 46px 0;
  border-radius: 0;
}

.byr-home #sectionMap h2 {
  margin-bottom: 10px;
}

.byr-home #sectionMap iframe {
  border-radius: 16px;
}

.byr-home #sectionGalleries {
  margin-top: 0;
}

.byr-home #sectionIntro {
  margin-top: 0;
}

.byr-home #sectionListSwimming {
  margin-top: 0;
}

/* Penyesuaian mobile agar ritme section tetap rapi */
@media (max-width: 768px) {
  .byr-home-section {
    padding: 22px 0;
  }

  .byr-hero {
    margin-top: 70px;
    padding-top: 6px;
  }

  .byr-hero .swiper-banner {
    padding: 10px;
    border-radius: 16px;
  }

  .byr-home #sectionBanner img {
    border-radius: 12px;
  }

  .byr-section-head {
    margin-bottom: 14px;
  }

  .byr-intro .container {
    padding: 20px;
  }

  .byr-intro-image-wrap img {
    min-height: 220px;
  }

  .byr-map {
    padding: 30px 0;
  }

  .byr-family-activities .byr-family-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
