/* Shared colours, typography and footer come from styles.css. */
html { scroll-behavior: smooth; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 20; padding: 12px 18px; color: var(--ink); background: var(--paper); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.bergerak-page a:focus-visible { outline: 3px solid var(--madani-yellow); outline-offset: 5px; }
.portal-header { position: absolute; inset: 0 0 auto; z-index: 3; width: min(1180px, calc(100% - 48px)); margin: auto; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-block; color: var(--madani-red); font-size: 28px; font-weight: 900; letter-spacing: -.065em; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #000; }
.portal-nav { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 18px; border: 1px solid rgba(7,27,99,.16); border-radius: 999px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 750; text-decoration: none; }
.portal-nav svg, .portal-cta svg, .service-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-hero { --hero-gutter: max(24px, calc((100vw - 1180px) / 2)); position: relative; isolation: isolate; min-height: 650px; padding: 160px var(--hero-gutter) 100px; overflow: hidden; background: var(--cream); }
.hero-picture, .hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-picture { z-index: -2; }
.hero-picture img { object-fit: cover; object-position: center; }
.portal-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251,245,233,.38), rgba(251,245,233,.12) 43%, transparent 65%); }
.hero-copy { max-width: 540px; }
.hero-logo-track { width: calc(100% + var(--hero-gutter) * 2); margin: 0 calc(var(--hero-gutter) * -1) 4px; padding: 8px 0 16px; overflow: hidden; }
.hero-wordmark {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 66px);
  -webkit-text-stroke: .5px rgba(255,253,248,.75);
  text-shadow: 0 -1px 0 rgba(255,255,255,.65), 1px 1px 0 #b5112b, 2px 2px 0 #a31028, 3px 3px 0 #890d22, 0 7px 14px rgba(7,27,99,.25), 0 0 22px rgba(255,253,248,.9);
  animation: wordmark-travel 14s linear -4s infinite;
}
.hero-wordmark span {
  text-shadow: 0 -1px 0 rgba(255,255,255,.65), 1px 1px 0 #353535, 2px 2px 0 #292929, 3px 3px 0 #171717, 0 7px 14px rgba(7,27,99,.25), 0 0 22px rgba(255,253,248,.9);
}
.hero-copy > .eyebrow { margin-bottom: 16px; }
.hero-copy h1 { max-width: 520px; margin: 0 0 22px; font-size: clamp(42px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.hero-description { max-width: 440px; margin: 0; color: #172858; font-size: 17px; line-height: 1.65; }
.portal-cta { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 52px; margin-top: 30px; padding: 15px 22px; border-radius: var(--radius-md); color: white; background: var(--madani-blue); box-shadow: 0 8px 24px rgba(7,27,99,.18); text-decoration: none; font-size: 14px; font-weight: 800; transition: background .2s, transform .2s; }
.portal-cta:hover { background: var(--madani-royal); transform: translateY(-2px); }
.portal-cta svg { color: var(--madani-yellow); }
.services-section { max-width: 1228px; margin: auto; padding: 64px 24px 80px; scroll-margin-top: 24px; }
.services-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.services-heading .eyebrow { color: var(--madani-yellow); }
.services-heading h2 { margin: 12px 0 0; color: var(--paper); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.services-heading > p { max-width: 285px; margin: 0; color: #dbe6ff; font-size: 14px; line-height: 1.6; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.service-card { position: relative; isolation: isolate; grid-column: span 2; min-height: 310px; display: flex; align-items: flex-end; padding: 25px; border: 1px solid rgba(255,255,255,.23); border-radius: var(--radius-lg); overflow: hidden; color: white; background: var(--madani-blue); text-decoration: none; box-shadow: 0 14px 36px rgba(3,18,70,.18); transition: border-color .25s, transform .25s; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,19,68,.02) 15%, rgba(4,19,68,.32) 46%, rgba(4,19,68,.95) 100%); }
.service-card:hover { border-color: var(--madani-yellow); transform: translateY(-4px); }
.service-card:hover img { transform: scale(1.045); }
.service-copy { width: 100%; padding-right: 36px; }
.service-copy h3 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.035em; line-height: 1.15; }
.service-copy p { max-width: 260px; margin: 0; color: #e2e9fb; font-size: 13px; line-height: 1.5; }
.service-status { position: absolute; top: 18px; left: 18px; padding: 7px 11px; border-radius: 999px; color: var(--paper); background: rgba(4,19,68,.9); border: 1px solid rgba(255,255,255,.25); font-size: 10px; font-weight: 750; }
.service-arrow { position: absolute; right: 22px; bottom: 28px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--madani-blue); background: var(--madani-yellow); }
.coming-page .portal-header { position: relative; }
.coming-page .portal-nav { background: var(--paper); }
.portal-header .wordmark { background: var(--paper); padding: 8px 13px; border-radius: 10px; }
.coming-main { width: min(1180px, calc(100% - 48px)); min-height: calc(100svh - 230px); margin: auto; padding: 35px 0 70px; display: grid; align-items: center; }
.coming-panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.coming-photo { width: 100%; height: 100%; min-height: 490px; object-fit: cover; }
.coming-copy { padding: clamp(30px, 5vw, 68px); align-self: center; }
.coming-copy h1 { margin: 18px 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.coming-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.coming-bengkel-link { display: block; width: fit-content; margin-top: 24px; color: var(--madani-blue); font-size: 13px; font-weight: 750; text-underline-offset: 4px; }
@keyframes wordmark-travel {
  from { transform: translateX(-100%); }
  to { transform: translateX(100vw); }
}
@media (max-width: 1000px) {
  .portal-hero { min-height: 620px; padding-top: 145px; }
  .hero-copy { max-width: 47%; }
  .hero-wordmark { font-size: clamp(36px, 4.4vw, 50px); }
  .hero-copy h1 { font-size: clamp(40px, 5vw, 54px); }
  .hero-description { font-size: 15px; }
  .portal-hero::after { background: linear-gradient(90deg, rgba(251,245,233,.92), rgba(251,245,233,.86) 36%, rgba(251,245,233,.65) 48%, transparent 72%); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .service-card:nth-child(4) { grid-column: auto; }
  .coming-copy { padding: 32px; }
}
@media (max-width: 600px) {
  .portal-header { width: calc(100% - 36px); padding: 20px 0; gap: 10px; }
  .wordmark { font-size: 24px; }
  .portal-nav { font-size: 11px; padding: 9px 12px; gap: 8px; }
  .portal-nav svg { width: 16px; }
  .portal-hero { --hero-gutter: 20px; min-height: 810px; padding: 104px var(--hero-gutter) 330px; }
  .hero-picture { top: auto; height: 360px; }
  .hero-picture img { object-position: center top; }
  .portal-hero::after { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 48%, rgba(251,245,233,.75) 53%, transparent 64%); }
  .hero-copy { max-width: 100%; }
  .hero-wordmark { font-size: clamp(30px, 9.2vw, 53px); animation-duration: 10s; animation-delay: -5s; }
  .hero-copy h1 { max-width: 400px; font-size: clamp(40px, 10vw, 52px); }
  .hero-description { max-width: 370px; font-size: 15px; }
  .portal-cta { margin-top: 24px; }
  .services-section { padding: 42px 20px 50px; }
  .services-heading { display: block; margin-bottom: 24px; }
  .services-heading > p { margin-top: 16px; max-width: 100%; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card { min-height: 290px; }
  .coming-main { width: calc(100% - 36px); padding: 12px 0 45px; }
  .coming-panel { grid-template-columns: minmax(0, 1fr); }
  .coming-photo { min-height: 0; height: 260px; }
  .coming-copy { padding: 30px 24px 36px; }
}
@media (max-width: 360px) {
  .portal-header { gap: 8px; }
  .portal-header .wordmark { font-size: 20px; }
  .portal-nav { padding: 9px 10px; font-size: 10px; }
  .portal-header .wordmark { padding: 8px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-wordmark { animation: none; transform: translateX(var(--hero-gutter)); opacity: 1; }
  .service-card:hover, .service-card:hover img, .portal-cta:hover { transform: none; }
}
