/*
 * Duta Riau Konsultan - Hero Section Refresh
 * Visual-only update: keep existing CMS keys, image source, text and CTA links.
 */

.landing-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(1440px, calc(100% - 40px));
  min-height: clamp(640px, 82svh, 790px);
  margin: 16px auto 0;
  padding: 170px 0 0;
  overflow: hidden;
  border-radius: 28px;
  background: #102a40;
  box-shadow: 0 20px 55px rgba(16, 42, 67, .13);
}

.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* Dark gradient keeps the existing hero copy readable over any CMS image. */
.landing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 17, 29, .88) 0%, rgba(5, 17, 29, .76) 32%, rgba(5, 17, 29, .40) 59%, rgba(5, 17, 29, .10) 100%),
    linear-gradient(0deg, rgba(5, 17, 29, .38) 0%, transparent 48%);
}

/* White cut-out tab under the main CTA, inspired by the supplied reference. */
.landing-hero::after {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: min(520px, 54%);
  height: 108px;
  content: "";
  pointer-events: none;
  border-top-right-radius: 38px;
  background: #fff;
}

.hero-layout {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  width: min(var(--page-width), calc(100% - 80px));
  padding-bottom: 116px;
}

.hero-copy {
  position: static;
  max-width: 690px;
  padding: 20px 0 24px;
  color: #fff;
}

.hero-copy .eyebrow {
  color: #e3edf7;
  letter-spacing: 1.65px;
}

.hero-copy .status-dot {
  background: #c8e1fa;
  box-shadow: 0 0 0 5px rgba(200, 225, 250, .12);
}

.landing-page h1 {
  max-width: 680px;
  margin: 22px 0 20px;
  color: #fff;
  font-size: clamp(46px, 5.1vw, 74px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.06;
  text-wrap: balance;
}

.landing-page h1 span {
  color: #d7e8fa;
}

.hero-lead {
  max-width: 490px;
  color: rgba(245, 249, 255, .88);
  font-size: 14px;
  line-height: 1.85;
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 25px;
  color: rgba(240, 247, 255, .82);
  font-size: 10px;
}

.hero-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-assurances span + span {
  padding-left: 18px;
  border-color: rgba(255, 255, 255, .35);
}

.hero-assurances .icon {
  width: 16px;
  height: 16px;
  color: #d7e8fa;
}

/* Keep both existing links. The primary CTA sits inside the white cut-out. */
.landing-actions {
  position: absolute;
  z-index: 4;
  bottom: 27px;
  left: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
}

.landing-actions .action-primary {
  justify-content: center;
  min-width: 230px;
  min-height: 46px;
  padding: 12px 25px;
  border-radius: 999px;
  color: #fff;
  background: #111820;
  box-shadow: none;
}

.landing-actions .action-primary:hover {
  color: #fff;
  background: #293746;
  box-shadow: 0 5px 14px rgba(16, 24, 32, .16);
}

.landing-actions .action-link {
  color: #1a344a;
  font-size: 11px;
}

.landing-actions .action-link:hover {
  color: #2861d7;
}

/* Retain the current supporting message as a compact glass card on the right. */
.hero-project-note {
  justify-self: end;
  align-self: end;
  width: min(100%, 315px);
  margin: 0 0 42px;
  padding: 21px 23px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 16px;
  color: #fff;
  background: rgba(13, 37, 57, .76);
  box-shadow: 0 14px 35px rgba(4, 17, 29, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-note-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e6f0fa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.1px;
}

.hero-note-label .icon {
  width: 18px;
  height: 18px;
  color: #d3e7fa;
}

.hero-project-note p {
  margin-top: 12px;
  color: #fff;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.35px;
}

.hero-note-foot {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: #dce9f5;
  font-size: 9px;
}

.hero-bottom-line {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 22px 32px 20px;
  border-top: 0;
  pointer-events: none;
}

.hero-bottom-line .explore-cue {
  display: none;
}

.hero-bottom-line > span {
  color: rgba(242, 248, 255, .82);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.25px;
  text-align: right;
}

.landing-hero #hero-title[data-cms-text="hero_title"] {
  white-space: pre-line;
}

@media (min-width: 1500px) {
  .landing-hero {
    min-height: 760px;
  }
}

@media (max-width: 1050px) {
  .landing-hero {
    min-height: 700px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, .75fr);
    gap: 28px;
    width: calc(100% - 56px);
  }

  .landing-page h1 {
    font-size: clamp(45px, 5.2vw, 60px);
    letter-spacing: -2.5px;
  }

  .hero-project-note {
    padding: 18px 19px 16px;
  }

  .hero-project-note p {
    font-size: 17px;
  }

  .landing-hero::after {
    width: min(500px, 62%);
  }
}

@media (max-width: 760px) {
  .landing-hero {
    width: calc(100% - 24px);
    min-height: 700px;
    margin-top: 12px;
    padding-top: 132px;
    border-radius: 22px;
  }

  .hero-background img {
    object-position: 66% center;
  }

  .landing-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 17, 29, .82) 0%, rgba(5, 17, 29, .65) 56%, rgba(5, 17, 29, .25) 100%),
      linear-gradient(0deg, rgba(5, 17, 29, .55) 0%, rgba(5, 17, 29, .10) 72%);
  }

  .landing-hero::after {
    width: min(390px, calc(100% - 12px));
    height: 112px;
    border-top-right-radius: 32px;
  }

  .hero-layout {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: calc(100% - 36px);
    padding-bottom: 142px;
  }

  .hero-copy {
    max-width: 570px;
    padding: 18px 0 0;
  }

  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .landing-page h1 {
    max-width: 560px;
    margin: 18px 0 15px;
    font-size: clamp(40px, 8.4vw, 56px);
    letter-spacing: -2.1px;
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 500px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-assurances {
    gap: 10px 14px;
    margin-top: 19px;
    font-size: 9px;
  }

  .hero-assurances span + span {
    padding-left: 13px;
  }

  .hero-project-note {
    align-self: flex-end;
    width: min(100%, 285px);
    margin: 12px 0 0;
    padding: 16px 18px 14px;
  }

  .hero-note-label {
    font-size: 8px;
    letter-spacing: .8px;
  }

  .hero-project-note p {
    margin-top: 9px;
    font-size: 16px;
  }

  .hero-note-foot {
    margin-top: 10px;
    padding-top: 9px;
    font-size: 8px;
  }

  .landing-actions {
    right: 18px;
    bottom: 15px;
    left: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: min(300px, calc(100% - 36px));
  }

  .landing-actions .action-primary {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 17px;
    font-size: 11px;
  }

  .landing-actions .action-link {
    justify-content: flex-start;
    min-height: 30px;
    padding-left: 10px;
    font-size: 10px;
  }

  .hero-bottom-line {
    right: 15px;
    bottom: 15px;
    left: auto;
    padding: 0;
  }

  .hero-bottom-line > span {
    display: none;
    max-width: 125px;
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: .7px;
  }
}

@media (max-width: 420px) {
  .landing-hero {
    min-height: 720px;
  }

  .hero-layout {
    width: calc(100% - 32px);
  }

  .landing-page h1 {
    font-size: 40px;
    letter-spacing: -1.9px;
  }

  .hero-lead {
    font-size: 12px;
  }

  .hero-assurances {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-assurances span + span {
    padding-left: 0;
    border-left: 0;
  }

  .hero-project-note {
    width: min(100%, 260px);
  }

  .hero-bottom-line > span {
    max-width: 90px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-actions .action-primary,
  .landing-actions .action-link {
    transition: none;
  }
}


/* ================================================================
   FINAL PREMIUM POLISH - Hero cut-out, CTA, and clean edge treatment
   Keeps CMS content, image source, and existing links unchanged.
   ================================================================ */
.landing-hero {
  /* The image layer clips itself; the white CTA tab can extend cleanly. */
  overflow: visible;
  margin-bottom: clamp(28px, 3vw, 38px);
  box-shadow: none;
  border-radius: 28px;
}

.hero-background {
  overflow: hidden;
  border-radius: inherit;
}

.landing-hero::before {
  border-radius: inherit;
}

/* A soft, rounded white tab replaces the sharp clipped corner. */
.landing-hero::after {
  z-index: 0;
  bottom: -20px;
  left: 0;
  width: min(520px, 54%);
  height: 128px;
  border-radius: 0 46px 46px 0;
  background: #fff;
  box-shadow: none;
}

.hero-layout {
  z-index: 1;
}

.hero-bottom-line {
  z-index: 2;
}

/* Larger primary action with a calmer premium weight. */
.landing-actions {
  left: clamp(-72px, calc((1280px - 100vw) / 2 + 32px), -8px);
  gap: clamp(14px, 1.4vw, 22px);
}

.landing-actions .action-primary {
  min-width: 264px;
  min-height: 54px;
  padding: 14px 27px;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #111820;
  color: #fff;
  box-shadow: 0 7px 18px rgba(12, 23, 34, .10);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05px;
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}

.landing-actions .action-primary .icon {
  width: 17px;
  height: 17px;
  transition: transform .24s ease;
}

.landing-actions .action-primary:hover {
  transform: translateY(-2px);
  background: #25384a;
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 23, 34, .15);
}

.landing-actions .action-primary:hover .icon {
  transform: translate(2px, -2px);
}

.landing-actions .action-link {
  min-height: 44px;
  padding: 10px 0;
  color: #304a61;
  font-size: 11px;
  font-weight: 700;
  transition: color .2s ease, gap .2s ease;
}

.landing-actions .action-link:hover {
  color: #2861d7;
}

/* A clear, even lower edge and a quieter card note. */
.hero-project-note {
  border-color: rgba(255, 255, 255, .34);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(4, 17, 29, .12);
}

@media (max-width: 1050px) {
  .landing-hero {
    margin-bottom: 30px;
  }

  .landing-hero::after {
    bottom: -16px;
    width: min(500px, 62%);
    height: 118px;
    border-radius: 0 40px 40px 0;
  }

  .landing-actions {
    left: clamp(-40px, calc((1280px - 100vw) / 2 + 32px), -8px);
  }

  .landing-actions .action-primary {
    min-width: 248px;
    min-height: 52px;
  }
}

@media (max-width: 760px) {
  .landing-hero {
    overflow: visible;
    margin-bottom: 28px;
    border-radius: 22px;
  }

  .hero-background,
  .landing-hero::before {
    border-radius: inherit;
  }

  .landing-hero::after {
    bottom: -14px;
    width: min(360px, calc(100% - 8px));
    height: 120px;
    border-radius: 0 32px 32px 0;
  }

  .hero-layout {
    z-index: 1;
  }

  .landing-actions {
    right: 18px;
    bottom: 15px;
    left: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: min(300px, calc(100% - 36px));
  }

  .landing-actions .action-primary {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 19px;
    gap: 14px;
    font-size: 12px;
  }

  .landing-actions .action-link {
    min-height: 31px;
    padding: 7px 0 7px 10px;
    font-size: 10px;
  }

  .hero-bottom-line {
    z-index: 2;
  }
}

@media (max-width: 420px) {
  .landing-hero::after {
    width: min(330px, calc(100% - 6px));
    height: 116px;
    border-radius: 0 28px 28px 0;
  }

  .landing-actions .action-primary {
    min-height: 47px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-actions .action-primary,
  .landing-actions .action-primary .icon,
  .landing-actions .action-link {
    transition: none;
  }
}


/* User-provided display font for the existing homepage hero title only.
   The supplied font metadata specifies personal use only. Obtain a commercial
   license before using this font on a company website in production. */
@font-face {
  font-family: "Surgena Display";
  src: url("../../fonts/surgena-personal-use-only.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
.landing-page #hero-title {
  font-family: "Surgena Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(42px, 4.65vw, 66px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-synthesis: none;
}
.landing-page #hero-title span {
  font-family: inherit;
  font-weight: inherit;
}
@media (max-width: 1050px) {
  .landing-page #hero-title {
    font-size: clamp(40px, 5.4vw, 58px);
    letter-spacing: -.02em;
  }
}
@media (max-width: 760px) {
  .landing-page #hero-title {
    font-size: clamp(38px, 8.2vw, 54px);
    line-height: 1.09;
    letter-spacing: -.018em;
  }
}
@media (max-width: 420px) {
  .landing-page #hero-title {
    font-size: 38px;
    letter-spacing: -.02em;
  }
}
