/* 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 .header {
  box-shadow: 0 8px 24px rgba(37, 20, 20, 0.08);
}

.page-home .header .branding {
  border-top: 4px solid var(--home-accent-soft);
  min-height: 72px;
}

.page-home .header .container {
  gap: 16px;
}

.page-home .header .logo img {
  max-height: 100px;
  margin-right: 83px;
}

.page-home .navmenu a,
.page-home .navmenu a:focus {
  font-size: 17px;
  line-height: 1.2;
  padding: 10px 12px;
  text-transform: none;
}

.page-home .navmenu .language-switcher {
  align-items: center;
  display: flex;
}

.page-home .navmenu .language-link,
.page-home .navmenu .language-link:focus {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
  padding: 10px 12px;
  text-align: center;
}

.page-home .navmenu .language-link:hover,
.page-home .navmenu .language-link:focus:hover {
  background: var(--home-accent-soft);
  color: var(--home-accent);
}

.page-home .header .cta-btn,
.page-home .header .cta-btn:focus {
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.2;
  margin-left: 14px;
  padding: 10px 16px;
}

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

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

.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%
    );
  background-size: auto 100%, auto 100%, auto;
}

.page-home .home-service-card {
  background: transparent;
  border: 0;
  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 {
  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;
  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;
}

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

.page-home .home-gallery {
  border-top: 1px solid rgba(133, 0, 3, 0.08);
  border-bottom: 1px solid rgba(133, 0, 3, 0.08);
}

.page-home .home-partners {
  background: var(--home-soft-bg);
  padding-bottom: 44px;
}

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

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

.page-home .home-slider .swiper-slide {
  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 {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(51, 28, 28, 0.08);
}

.page-home .home-member-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.page-home .team .member .member-info {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

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

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

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

.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-partners .swiper-slide {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(133, 0, 3, 0.08);
  border-radius: 8px;
  display: flex;
  height: 96px;
  justify-content: center;
  padding: 18px;
}

.page-home .clients .swiper-slide img {
  max-height: 58px;
  object-fit: contain;
}

.page-home .footer {
  background: #ffffff;
}

@media (max-width: 1199px) {
  .page-home .header .logo img {
    max-height: 100px;
    margin-right: 0;
  }

  .page-home .navmenu a,
  .page-home .navmenu a:focus {
    font-size: 16px;
  }

  .page-home .header .cta-btn {
    display: none;
  }
}

@media (max-width: 991px) {
  .page-home .section {
    padding: 44px 0;
  }

  .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 (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 {
    padding: 36px 0;
  }

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

  .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-service-card .card-body {
    padding: 32px 24px;
  }

  .page-home .home-slider {
    padding: 4px 28px 34px;
  }

  .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%;
  }
}
