/* ============================= */
/* HOME PAGE HEADER OVERLAY */
/* ============================= */

.home-page .site-main {
  max-width: none;
  padding: 0;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 700px;
  background-image: url('/images/home-hero.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

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

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.30) 40%,
    rgba(15, 23, 42, 0.10) 65%,
    rgba(15, 23, 42, 0.00) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  margin: -25px 0 40px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;

  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
}

.hero-arrow {
  margin-top: 80px;
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  border-radius: 50%;

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

  font-size: 1.8rem;
  text-decoration: none;
  animation: bounce 2.5s infinite;
}

#home-services {
  scroll-margin-top: 120px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* ============================= */
/* BUSINESS SHOWCASE */
/* ============================= */

.business-showcase {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.business-showcase__backgrounds {
  position: absolute;
  inset: 0;
}

.business-showcase__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.8s ease;
}

.business-showcase__bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.business-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 22, 36, 0.34) 0%,
    rgba(11, 22, 36, 0.24) 30%,
    rgba(11, 22, 36, 0.58) 100%
  );
  z-index: 1;
}

.business-showcase__content {
  position: relative;
  z-index: 2;
  width: min(1400px, 92%);
  min-height: 720px;
  margin: 0 auto;
  padding: 95px 0 70px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.business-showcase__header {
  max-width: 620px;
  margin-left: auto;
  text-align: right;
  color: #fff;
}

.business-showcase__eyebrow {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.business-showcase__header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.business-showcase__items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: end;
}

.business-showcase__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 28px 24px 10px;
  color: rgba(255, 255, 255, 0.82);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.business-showcase__item:first-child {
  border-left: none;
}

.business-showcase__item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease;
}

.business-showcase__item:hover,
.business-showcase__item:focus,
.business-showcase__item.is-active {
  color: #ffffff;
}

.business-showcase__item:hover::after,
.business-showcase__item:focus::after,
.business-showcase__item.is-active::after {
  background: rgba(255, 255, 255, 0.9);
}

.business-showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.business-showcase__link span span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.business-showcase__item:hover .business-showcase__link span span,
.business-showcase__item:focus .business-showcase__link span span {
  transform: translateX(4px);
}

.business-showcase__item h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;

  min-height: 3.2em;
}

.business-showcase__item p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================= */
/* INDIVIDUAL SHOWCASE */
/* ============================= */

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

.individual-showcase .business-showcase__items {
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, 82%);
  margin: 0 auto;
}

.individual-showcase .business-showcase__item::after {
  left: 28px;
  right: 28px;
}

/* ============================= */
/* COMPANY SECTION */
/* ============================= */

.company-section .service-copy {
  max-width: 560px;
}

.service-subheading {
  margin: -6px 0 28px;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
  color: #2d3440;
}

.company-links {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
}

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

.company-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px 38px;
}

.company-links__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111;
  transition: color 0.2s ease, transform 0.2s ease;
}

.company-links__item span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.company-links__item:hover {
  color: #2f57b7;
}

.company-links__item:hover span {
  transform: translateX(4px);
}

/* ============================= */
/* RESPONSIVE - HOME */
/* ============================= */

@media (max-width: 1100px) {
  .hero {
    background-attachment: scroll;
  }

  .business-showcase,
  .business-showcase__content {
    min-height: 640px;
  }

  .business-showcase__content {
    width: 94%;
    padding: 80px 0 56px;
  }

  .business-showcase__items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .individual-showcase .business-showcase__items {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .business-showcase__item,
  .individual-showcase .business-showcase__item {
    min-height: unset;
    padding: 20px 18px 18px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .business-showcase__item:first-child {
    border-top: none;
  }

  .business-showcase__item::after,
  .individual-showcase .business-showcase__item::after {
    left: 0;
    right: 0;
    bottom: auto;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0);
  }

  .business-showcase__item:hover::after,
  .business-showcase__item:focus::after,
  .business-showcase__item.is-active::after {
    background: rgba(255, 255, 255, 0.85);
  }

  .business-showcase__item h3 {
    min-height: unset;
  }

  .company-links__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 128px 20px 72px;
    background-position: center center;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.48) 0%,
      rgba(15, 23, 42, 0.28) 45%,
      rgba(15, 23, 42, 0.14) 70%,
      rgba(15, 23, 42, 0.08) 100%
    );
  }

  .hero-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 8px;
  }

  .hero-content h1 {
    margin: 0 0 28px;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-wrap: balance;
  }

  .hero-arrow {
    margin-top: 42px;
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }

  .business-showcase,
  .business-showcase__content {
    min-height: 0;
  }

  .business-showcase__content {
    padding: 60px 0 44px;
  }

  .business-showcase__header {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
    margin-bottom: 28px;
  }

  .business-showcase__eyebrow {
    margin: 0 0 10px;
    letter-spacing: 2px;
  }

  .business-showcase__header h2 {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
    line-height: 1.08;
  }

  .business-showcase__items {
    gap: 10px;
  }

  .business-showcase__item,
  .individual-showcase .business-showcase__item {
    padding: 18px 16px 16px;
  }

  .business-showcase__link {
    margin-bottom: 14px;
    font-size: 0.68rem;
    letter-spacing: 1.8px;
  }

  .business-showcase__item h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .business-showcase__item p {
    font-size: 0.66rem;
    letter-spacing: 2.2px;
  }

  .service-subheading {
    margin: -4px 0 20px;
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .company-links {
    margin-top: 34px;
    padding-top: 22px;
  }

  .company-links__item {
    font-size: 0.94rem;
  }

    /* Stronger overlay for mobile readability */
  .business-showcase__overlay {
    background: linear-gradient(
      to bottom,
      rgba(11, 22, 36, 0.65) 0%,
      rgba(11, 22, 36, 0.55) 40%,
      rgba(11, 22, 36, 0.75) 100%
    );
  }

  /* Darker card backgrounds so text doesn't get lost */
  .business-showcase__item,
  .individual-showcase .business-showcase__item {
    background: rgba(11, 22, 36, 0.22);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 118px 16px 64px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    margin-bottom: 24px;
  }

  .hero-arrow {
    margin-top: 34px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .business-showcase__content {
    width: 92%;
    padding: 52px 0 38px;
  }

  .business-showcase__header h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .business-showcase__item h3 {
    font-size: 1.08rem;
  }

  .company-links__item {
    font-size: 0.9rem;
  }
}
