/* ==========================================================================
   Home page (body.page-index). Values follow the original site's section rules.
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
.page-index .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(500px, 1.07fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  min-height: 670px;
  padding: clamp(70px, 8vw, 116px) var(--gutter) 92px;
  background: linear-gradient(120deg, #f8f6f1 0%, #f1f4f5 56%, #e4e9ee 100%);
  overflow: hidden;
}

.page-index .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 39, 80, 0.043) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 80, 0.043) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000);
  mask-image: linear-gradient(90deg, transparent 45%, #000);
  pointer-events: none;
}

.page-index .hero-copy,
.page-index .hero-visual {
  position: relative;
  z-index: 1;
}

.page-index .hero h1 {
  max-width: 760px;
  margin: 22px 0 25px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-index .hero h1 span {
  display: inline;
}

.page-index .hero-copy > p {
  max-width: 650px;
  margin-bottom: 32px;
  color: #4a596b;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.page-index .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.page-index .trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: #405064;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.page-index .trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-index .trust-list .icon {
  width: 16px;
  height: 24px;
  color: var(--success);
}

.page-index .hero-visual {
  min-height: 470px;
}

.page-index .hero-image-frame {
  position: relative;
  min-height: 440px;
  background: var(--white);
  border: 1px solid rgba(8, 39, 80, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.1deg);
}

.page-index .hero-image-frame img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.page-index .drawing-status {
  position: absolute;
  bottom: -27px;
  left: -45px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 295px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.89);
  border: 1px solid rgba(8, 39, 80, 0.14);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: rotate(-1.5deg);
}

.page-index .drawing-status strong,
.page-index .drawing-status small {
  display: block;
}

.page-index .drawing-status strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.page-index .drawing-status small {
  color: #687688;
  font-size: 11px;
  line-height: 16.5px;
}

.page-index .status-dot {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  background: #dff4e9;
  border: 8px solid #edf9f3;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--success);
}

.page-index .hero-seal {
  position: absolute;
  top: -40px;
  right: -35px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 142px;
  padding: 0 14px;
  color: var(--white);
  text-align: center;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  outline: 6px solid rgba(8, 39, 80, 0.13);
  transform: rotate(8deg);
}

.page-index .hero-seal strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.page-index .hero-seal span {
  max-width: 100px;
  margin-top: 5px;
  color: #cbd7e4;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Route finder ------------------------------------------------------------ */
.page-index .route-finder {
  padding: 105px var(--gutter) 120px;
  background: var(--white);
}

.page-index .route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.page-index .route-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-index .route-card:hover,
.page-index .route-card:focus-visible {
  color: var(--ink);
  border-color: #a9b8ca;
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(8, 39, 80, 0.1);
}

.page-index .route-card > .icon {
  width: 28px;
  height: 28px;
  color: var(--gold-dark);
}

.page-index .route-card h3 {
  margin: 32px 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.5;
}

.page-index .route-card p {
  color: #687688;
  font-size: 14px;
  line-height: 1.55;
}

.page-index .route-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-index .route-card > span .icon {
  width: 15px;
  height: 24px;
}

/* Planning checker teaser ------------------------------------------------- */
.page-index .home-checker {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 9vw;
  padding: 100px var(--gutter);
  background: var(--mist);
}

.page-index .home-checker h2 {
  margin: 18px 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-index .home-checker > div > p {
  color: #526276;
  font-size: 16px;
  line-height: 1.75;
}

.page-index .checker-preview {
  display: grid;
  gap: 11px;
}

.page-index .checker-preview > div {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: #5e6f82;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c9d5e2;
}

.page-index .checker-preview > div.active {
  padding: 28px 22px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateX(18px);
}

.page-index .checker-preview span {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
}

.page-index .checker-preview strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

.page-index .checker-preview .icon {
  width: 20px;
  height: 24px;
  color: var(--success);
}

.page-index .checker-preview .active .icon {
  color: var(--gold);
}

/* Featured services band -------------------------------------------------- */
.page-index .featured-services {
  padding: 105px var(--gutter) 115px;
  background: var(--navy);
  color: var(--white);
}

.page-index .featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 52px 0 38px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-index .featured-grid > a {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.page-index .featured-grid > a:hover,
.page-index .featured-grid > a:focus-visible {
  background: var(--navy-hover);
  color: var(--white);
}

.page-index .featured-grid > a > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-index .featured-grid h3 {
  margin: 32px 0 13px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.5;
}

.page-index .featured-grid p {
  color: #b9c7d7;
  font-size: 13px;
  line-height: 1.6;
}

.page-index .featured-grid > a > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-index .featured-grid .icon {
  width: 16px;
  height: 24px;
}

.page-index .featured-services > .button-accent {
  margin-top: 0;
}

/* Process ----------------------------------------------------------------- */
.page-index .process-section {
  padding: 105px var(--gutter);
  background: var(--white);
}

.page-index .process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 55px 0 35px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-index .process-grid article {
  position: relative;
  min-height: 290px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.page-index .process-grid article:last-child {
  border-right: 0;
}

.page-index .process-grid article > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #a8b3c0;
  font-size: 11px;
  font-weight: 900;
}

.page-index .process-grid .icon {
  width: 27px;
  height: 24px;
  color: var(--gold-dark);
}

.page-index .process-grid h3 {
  margin: 55px 0 14px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
}

.page-index .process-grid p {
  color: #647286;
  font-size: 13px;
  line-height: 1.65;
}

/* Portal promo ------------------------------------------------------------ */
.page-index .portal-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 9vw;
  padding: 100px var(--gutter);
  background: var(--sand);
}

.page-index .portal-promo h2 {
  margin: 18px 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-index .portal-promo > div > p {
  color: #526276;
  font-size: 16px;
  line-height: 1.75;
}

.page-index .portal-stack {
  display: grid;
  gap: 12px;
}

.page-index .portal-stack article {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 15px;
  padding: 25px 28px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: 0 12px 35px rgba(4, 26, 55, 0.07);
}

.page-index .portal-stack span {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-index .portal-stack strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1150px) {
  .page-index .hero {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    padding-inline: 54px;
  }

  .page-index .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .page-index .hero,
  .page-index .home-checker,
  .page-index .portal-promo {
    grid-template-columns: 1fr;
  }

  .page-index .hero-copy {
    padding-bottom: 45px;
  }

  .page-index .hero-visual {
    min-height: 480px;
  }

  .page-index .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .page-index .process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .page-index .hero {
    grid-template-columns: 1fr;
    padding: 70px 24px 90px;
  }

  .page-index .hero-visual {
    margin: 30px 28px 0 0;
  }

  .page-index .drawing-status {
    left: -10px;
  }
}

@media (max-width: 760px) {
  .page-index .hero {
    min-height: auto;
  }

  .page-index .hero-copy {
    padding: 70px 24px 45px;
  }

  .page-index .hero-visual {
    min-height: 370px;
  }

  .page-index .hero-seal {
    top: 18px;
    right: 12px;
  }

  .page-index .route-grid,
  .page-index .featured-grid {
    grid-template-columns: 1fr;
  }

  .page-index .route-card,
  .page-index .featured-grid > a {
    min-height: 250px;
  }

  .page-index .process-grid {
    grid-template-columns: 1fr;
  }

  .page-index .process-grid article,
  .page-index .process-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-index .process-grid article:last-child {
    border-bottom: 0;
  }

  .page-index .portal-stack article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-index .hero h1 {
    font-size: 46px;
  }

  .page-index .hero-actions .button-accent {
    width: 100%;
  }

  .page-index .hero-visual {
    margin-right: 0;
  }

  .page-index .hero-image-frame {
    min-height: 330px;
  }

  .page-index .hero-image-frame img {
    height: 330px;
  }

  .page-index .hero-seal {
    width: 108px;
    height: 108px;
    top: 18px;
    right: 12px;
  }

  .page-index .hero-seal strong {
    font-size: 18px;
  }

  .page-index .drawing-status {
    width: calc(100% - 10px);
    bottom: -40px;
  }

  .page-index .route-finder {
    padding-inline: 24px;
  }
}
