/* ============================= */
/* SERVICE SECTIONS */
/* ============================= */

.service-section {
  padding: 90px 0;
}

.service-section--light {
  background: #ffffff;
}

.service-container {
  width: min(1240px, 90%);
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 52px;
  align-items: center;
}

.service-grid--reverse {
  grid-template-columns: 0.84fr 1.16fr;
}

.service-grid--reverse .service-copy {
  order: 1;
}

.service-grid--reverse .service-media {
  order: 2;
}

.service-media {
  display: flex;
  align-items: center;
}

.service-media img {
  width: 100%;
  display: block;
  border-radius: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.6s ease;
  height: 100%;
  max-height: 520px;
}

.service-media:hover img {
  transform: scale(1.03);
}

.service-hero {
  transition: transform 0.8s ease;
}

.service-hero:hover {
  transform: scale(1.02);
}

.service-copy {
  max-width: 520px;
}

.service-eyebrow {
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f57b7;
}

.service-copy h2 {
  margin: 0 0 28px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  color: #111;
}

.service-copy p {
  margin: 0 0 30px;
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #5b6470;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-link span {
  transition: transform 0.2s ease;
}

.service-link:hover {
  color: #2f57b7;
}

.service-link:hover span {
  transform: translateX(4px);
}

/* ============================= */
/* SCROLL TO TOP BUTTON */
/* ============================= */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;

  background: #fff;
  color: #2f57b7;
  border: 1px solid rgba(0,0,0,0.1);

  font-size: 20px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.3s ease;

  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* ============================= */
/* INTERIOR PAGE HERO */
/* ============================= */

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero--company {
  background-image: url('/images/home-hero.jpg');
}

.page-hero--group-benefits {
  background-image: url('/images/home-hero.jpg');
}

.page-hero--business-insurance {
  background-image: url('/images/home-hero.jpg');
}

.page-hero--individual-insurance {
  background-image: url('/images/home-hero.jpg');
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 35, 0.62) 0%,
    rgba(10, 20, 35, 0.42) 28%,
    rgba(10, 20, 35, 0.34) 58%,
    rgba(10, 20, 35, 0.46) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 150px 20px 70px;
  max-width: 900px;
}

.page-hero__content h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* ============================= */
/* SHARED BUTTONS */
/* ============================= */

.hero-button {
  display: inline-block;
  background: #2f57b7;
  color: #fff;
  padding: 16px 42px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.hero-button-outline {
  background: transparent;
  border: 2px solid #2f57b7;
  color: #2f57b7;
}

.hero-button-outline:hover {
  background: #2f57b7;
  color: #fff;
}

.contact-submit-button {
  margin-top: 10px;
  padding: 14px 28px;
  background: #2f57b7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* ============================= */
/* RESPONSIVE - SHARED LAYOUT */
/* ============================= */

@media (max-width: 992px) {
  .service-section {
    padding: 72px 0;
  }

  .service-container {
    width: min(1240px, 92%);
  }

  .service-grid,
  .service-grid--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-grid--reverse .service-copy,
  .service-grid--reverse .service-media {
    order: unset;
  }

  .service-media img {
    max-height: none;
  }

  .service-copy {
    max-width: 100%;
  }

  .service-copy h2 {
    margin: 0 0 22px;
  }

  .service-copy p {
    margin: 0 0 24px;
    line-height: 1.8;
  }

  .page-hero {
    min-height: 40vh;
    background-position: center center;
  }

  .page-hero__content {
    padding: 140px 20px 60px;
  }

  .page-hero__content h1 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
  }
}

@media (max-width: 768px) {
  .service-section {
    padding: 56px 0;
  }

  .service-container {
    width: 90%;
  }

  .service-grid,
  .service-grid--reverse {
    gap: 28px;
  }

  .service-media img {
    border-radius: 22px;
  }

  .service-copy h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.12;
  }

  .service-copy p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .service-link {
    font-size: 0.85rem;
    letter-spacing: 0.8px;
  }

  .page-hero {
    min-height: 34vh;
  }

  .page-hero__content {
    padding: 128px 18px 52px;
  }

  .page-hero__content h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1.08;
  }

  .hero-button {
    padding: 14px 28px;
    font-size: 0.88rem;
  }

  .scroll-top {
    width: 46px;
    height: 46px;
    right: 18px;
    bottom: 18px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .service-container {
    width: 88%;
  }

  .service-section {
    padding: 48px 0;
  }

  .service-media img {
    border-radius: 18px;
  }

  .service-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .service-copy p {
    font-size: 0.95rem;
  }

  .page-hero__content {
    padding: 118px 16px 46px;
  }
}

