/* Homepage-only refinements. Scope every rule to body.page-home to protect inner pages. */

.page-home {
  --home-accent: #850003;
  --home-accent-soft: #ffdfd9;
  --home-ink: #2b1d1d;
  --home-muted: #6c5f5f;
  --home-border: rgba(133, 0, 3, 0.14);
  --home-surface: #ffffff;
  --home-soft-bg: #fff8f7;
  color: var(--home-ink);
  font-size: 16px;
  line-height: 1.6;
}

.page-home .section {
  scroll-margin-top: 96px;
}

.page-home .home-services,
.page-home .home-members,
.page-home .home-gallery,
.page-home .home-partners {
  padding-bottom: 1.25rem !important;
  padding-top: 1.25rem !important;
}

.page-home .home-gallery {
  padding-top: 0.5rem !important;
}

.page-home .section-title {
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 18px;
  padding-top: 0;
}

.page-home .home-services > .section-title,
.page-home .home-members > .section-title,
.page-home .home-gallery > .section-title,
.page-home .home-partners > .section-title {
  margin-bottom: 0;
  margin-top: 0;
}

.page-home .section-title h2 {
  color: var(--home-accent);
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
}

.page-home .hero {
  padding: 0;
}

.page-home .hero .carousel {
  min-height: 560px;
}

.page-home .hero .carousel-item {
  min-height: 560px;
}

.page-home .hero img {
  filter: saturate(0.95);
}

.page-home .hero .container {
  background: linear-gradient(90deg, rgba(33, 18, 18, 0.78), rgba(33, 18, 18, 0.34));
  border-left: 4px solid var(--home-accent-soft);
  margin-bottom: 64px;
  max-width: 760px;
  padding: 32px;
  text-align: left;
}

.page-home .home-hero-link {
  color: #ffffff;
  text-decoration: none;
}

.page-home .hero h2 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-home .hero h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0;
}

.page-home .hero .text-top-line {
  border-top-color: var(--home-accent-soft);
  margin: 0 0 14px;
}

.page-home .home-services {
  background:
    url("/assets/assets/img/l-frame.png") left center no-repeat,
    url("/assets/assets/img/r-frame.png") right center no-repeat,
    linear-gradient(
      to right,
      rgba(251, 94, 65, 0.2) 50%,
      rgba(251, 174, 77, 0.2) 50%
    );
}

.page-home .home-service-card {
  background: transparent;
  border: 1px solid rgba(133, 0, 3, 0.1);
  border-radius: 90px;
  box-shadow: 0 4px 6px 0 #d3a49b;
  color: var(--home-ink);
  min-height: 260px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-service-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  z-index: 1;
}

.page-home .home-service-card:hover,
.page-home .home-service-card:focus {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(133, 0, 3, 0.24);
  box-shadow: 0 10px 24px rgba(133, 0, 3, 0.16);
  color: var(--home-ink);
  transform: translateY(-3px);
}

.page-home .home-service-card::after {
  background-color: var(--home-accent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transition: width 0.2s ease, left 0.2s ease;
  width: 0;
}

.page-home .home-service-card:hover::after,
.page-home .home-service-card:focus::after {
  left: 40%;
  width: 20%;
}

.page-home .home-service-card h3 {
  color: var(--home-accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 15px;
}

.page-home .home-service-card p {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

.page-home .home-slider-section {
  overflow: hidden !important;
}

.page-home .home-members,
.page-home .home-gallery,
.page-home .home-partners {
  background: #ffffff;
}

.page-home .home-members {
  --default-color: var(--home-ink);
  background: #fffbf2 url("/assets/assets/img/l-frame.png");
}

.page-home .home-gallery {
  --default-color: var(--home-ink);
  background: #ffffff;
  border-bottom: 1px solid rgba(133, 0, 3, 0.08);
}

.page-home .home-partners {
  background: #fffbf2;
}

.page-home .home-slider {
  padding: 0 42px 0;
  position: relative;
  visibility: visible;
}

.page-home .home-slider .swiper-wrapper {
  align-items: stretch;
}

.page-home .home-slider .swiper-slide {
  align-items: stretch;
  display: flex;
  height: auto;
}

.page-home .home-slider:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 24px;
}

.page-home .home-slider:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc((100% - 72px) / 4);
}

.page-home .home-slider-button {
  background: #ffffff;
  border: 1px solid var(--home-border);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(51, 28, 28, 0.1);
  color: var(--home-accent);
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 44px;
}

.page-home .home-slider-button::after {
  font-size: 18px;
  font-weight: 700;
}

.page-home .home-slider-button:hover,
.page-home .home-slider-button:focus {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #ffffff;
}

.page-home .home-member-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(51, 28, 28, 0.08);
  height: 100%;
  margin: 0;
  width: 100%;
}

.page-home .home-member-card img {
  aspect-ratio: 1 / 1.08;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.page-home .team .member .member-info {
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(255, 255, 255, 0) 100%);
  inset: auto 0 0 0;
  padding: 30px 0;
}

.page-home .team .member .member-info-content {
  background: transparent;
  bottom: 10px;
  padding: 0;
  transition: bottom 0.4s;
}

.page-home .team .member .member-info-content h4 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  padding: 0 12px;
}

.page-home .team .member .member-info-content span {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  padding: 0 12px;
}

.page-home .team .member .social {
  bottom: -48px;
  height: 48px;
  padding-top: 0;
  transition: bottom ease-in-out 0.4s;
}

.page-home .team .member .social a {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .team .member .social a:hover,
.page-home .team .member .social a:focus {
  color: #ffffff;
}

.page-home .team .member .social i {
  color: inherit;
}

.page-home .team .member:hover .member-info {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  padding: 50px 0;
  transition: 0.4s;
}

.page-home .team .member:hover .member-info-content {
  background: transparent;
  bottom: 50px;
  transition: bottom 0.4s;
}

.page-home .team .member:hover .social {
  bottom: 0;
  transition: bottom ease-in-out 0.4s;
}

.page-home .home-gallery-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(51, 28, 28, 0.08);
  display: flex;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.page-home .home-gallery-item a {
  display: block;
  height: 100%;
  position: relative;
}

.page-home .home-gallery-item img {
  aspect-ratio: 4 / 3;
  background: var(--home-soft-bg);
  display: block;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  width: 100%;
}

.page-home .home-gallery-item:hover img,
.page-home .home-gallery-item:focus-within img {
  filter: saturate(1.05);
  transform: scale(1.03);
}

.page-home .video-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.page-home .video-icon i {
  font-size: 24px;
}

.page-home .home-partners-slider {
  padding-bottom: 4px;
}

.page-home .home-partner-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(133, 0, 3, 0.08);
  border-radius: 8px;
  display: flex;
  height: 104px;
  justify-content: center;
  padding: 18px;
  text-align: center;
  width: 100%;
}

.page-home .home-partner-card img {
  max-height: 58px;
  object-fit: contain;
}


.page-home .footer {
  background: #1a0607;
}

/* Remove legacy zoom-carousel padding that was left over from the old gallery design */
.page-home .gallery .swiper-wrapper {
  padding: 0 !important;
}

.page-home .gallery .swiper-slide-active {
  transform: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  z-index: auto !important;
}

/* Prevent Swiper or old main.css rules from injecting extra height */
.page-home .home-slider .swiper-pagination {
  display: none !important;
  height: 0 !important;
}

.page-home .gallery .swiper-pagination {
  position: absolute !important;
  margin-top: 0 !important;
  height: 0 !important;
}

.page-home .home-slider > .swiper-wrapper {
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .page-home .section-title h2 {
    font-size: 28px;
  }

  .page-home .hero .carousel,
  .page-home .hero .carousel-item {
    min-height: 500px;
  }

  .page-home .hero .container {
    margin-bottom: 44px;
    max-width: calc(100% - 32px);
    padding: 26px;
  }

  .page-home .hero h2 {
    font-size: 34px;
  }

  .page-home .hero h3 {
    font-size: 18px;
  }

  .page-home .home-slider:not(.swiper-initialized) .swiper-slide {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (min-width: 992px) {
  .page-home .home-services,
  .page-home .home-members,
  .page-home .home-gallery,
  .page-home .home-partners {
    padding-bottom: 2rem !important;
    padding-top: 2rem !important;
  }

  .page-home .home-gallery {
    padding-top: 0.75rem !important;
  }
}

@media (max-width: 575px) {
  .page-home {
    font-size: 15px;
  }

  .page-home .header .branding {
    min-height: 64px;
  }

  .page-home .header .logo img {
    max-height: 84px;
  }

  .page-home .section-title {
    padding-bottom: 16px;
  }

  .page-home .section-title h2 {
    font-size: 24px;
  }

  .page-home .hero .carousel,
  .page-home .hero .carousel-item {
    min-height: 440px;
  }

  .page-home .hero .container {
    border-left-width: 3px;
    margin-bottom: 28px;
    padding: 22px;
  }

  .page-home .hero h2 {
    font-size: 28px;
  }

  .page-home .hero h3 {
    font-size: 16px;
  }

  .page-home .home-service-card {
    border-radius: 48px;
    min-height: 220px;
  }

  .page-home .home-services {
    background:
      linear-gradient(
        180deg,
        rgba(251, 94, 65, 0.14) 0%,
        rgba(251, 174, 77, 0.14) 100%
      );
  }

  .page-home .home-members {
    background: #fffbf2;
  }

  .page-home .home-service-card .card-body {
    padding: 32px 24px;
  }

  .page-home .home-slider {
    padding: 0 28px 18px;
  }

  .page-home .home-slider-button {
    height: 38px;
    width: 38px;
  }

  .page-home .home-slider:not(.swiper-initialized) .swiper-wrapper {
    gap: 16px;
  }

  .page-home .home-slider:not(.swiper-initialized) .swiper-slide {
    flex-basis: 82%;
  }
}
