/* BOPPJ - Badan Otorita Pengelola Pantai Utara Jawa
   Base styles, design tokens, and shared layout (navbar/footer) */

:root {
  --color-page-bg: #fafafa;
  --color-white: #ffffff;
  --color-text-dark: #1e1e1e;
  --color-text-body: #363636;
  --color-text-muted: #404040;
  --color-text-soft: #595959;
  --color-text-onblue: #eeeded;
  --color-blue-primary: #004eb6;
  --color-blue-accent: #0b4392;
  --color-blue-bright: #006dff;
  --color-blue-dark: #002250;
  --color-blue-border: #8dbeff;

  --font-base: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container-max: 1440px;
  --container-pad: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-page-bg);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-blue-bright);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 8px;
  background: var(--color-blue-bright);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.48px;
  cursor: pointer;
}

.btn-pill svg {
  flex-shrink: 0;
}

/* ---------- Navbar ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.site-header.solid {
  position: relative;
  background: var(--color-blue-dark);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--container-pad) 15px;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar__brand img {
  width: 130px;
  height: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.navbar__brand-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  max-width: 390px;
  line-height: 1.5;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.navbar__links a,
.navbar__links button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 10px;
  color: #fff;
  font-family: var(--font-base);
  font-size: 14px;
  letter-spacing: 0.42px;
}

.navbar__links a[aria-current="page"] {
  font-weight: 500;
  box-shadow: inset 0 -2px 0 currentColor;
}

/* Dropdown ("Tentang Kami") — opens on hover (desktop) or click (JS) */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  flex-direction: column;
  z-index: 40;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu,
.navbar__dropdown.is-open .navbar__dropdown-menu {
  display: flex;
}

.navbar__dropdown-menu a {
  height: auto;
  padding: 10px 12px;
  border-radius: 6px;
}

.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* Mobile hamburger — hidden on desktop */
.navbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  color: #fff;
  cursor: pointer;
}

.navbar__search-wrap {
  position: relative;
}

.navbar__search {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  cursor: pointer;
  color: #fff;
}

.navbar__search-form {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  gap: 8px;
  padding: 10px;
  background: var(--color-blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.navbar__search-form.is-open {
  display: flex;
}

.navbar__search-form input {
  width: 220px;
  padding: 10px 14px;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--color-text-dark);
  background: #fff;
  border: none;
  border-radius: 999px;
}

.navbar__search-form button {
  padding: 10px 18px;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--color-blue-bright);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.navbar__search-form button:hover {
  background: var(--color-blue-primary);
}

.navbar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.42px;
}

.navbar__lang-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-base);
  font-size: 14px;
  letter-spacing: 0.42px;
  cursor: pointer;
}

.navbar__lang-btn:hover {
  color: #fff;
}

.navbar__lang-btn.is-active {
  color: #fff;
  font-weight: 700;
}

.navbar__lang .flag {
  width: 16px;
  height: 11px;
  background: linear-gradient(to bottom, #e70011 50%, #fff 50%);
  border-radius: 2px;
  display: inline-block;
}

/* ---------- Hero (slider) ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 698px;
  overflow: hidden;
  color: #fff;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(0, 78, 182) 0%,
    rgba(73, 144, 134, 0.5) 31%,
    rgba(145, 210, 87, 0.25) 61%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero__content {
  position: relative;
  padding: 134px var(--container-pad) 0;
  max-width: 900px;
}

.hero__title {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 20px;
}

.btn-pill--ghost {
  background: transparent;
  padding-left: 0;
}

.hero__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero__dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero__dots button.is-active {
  width: 26px;
  background: #f5a623;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 34, 80, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero__arrow:hover {
  background: rgba(0, 34, 80, 0.7);
}

.hero__arrow .icon {
  width: 22px;
  height: 22px;
}

.hero__arrow--prev {
  left: 24px;
}

.hero__arrow--next {
  right: 24px;
}

.breadcrumb {
  padding: 40px 0 0;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--color-text-soft);
}

.breadcrumb a {
  color: var(--color-text-soft);
}

.breadcrumb a:hover {
  color: var(--color-blue-primary);
}

.breadcrumb span {
  color: var(--color-text-dark);
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(120deg, var(--color-blue-bright), var(--color-blue-dark));
  padding: 160px var(--container-pad) 60px;
}

.page-hero__eyebrow {
  font-size: 16px;
  letter-spacing: 0.48px;
  color: var(--color-blue-border);
  margin: 0 0 10px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 500;
  margin: 0;
  max-width: 800px;
}

/* ---------- Sections ---------- */

section {
  width: 100%;
}

.section-about {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px var(--container-pad);
  flex-wrap: wrap;
}

.section-about__logo {
  width: 287px;
  flex-shrink: 0;
}

.section-about__text {
  flex: 1 1 500px;
  max-width: 754px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.section-about__eyebrow {
  color: var(--color-text-muted);
  font-size: 18px;
  letter-spacing: 0.54px;
  padding-right: 20px;
}

.section-about__text p {
  color: var(--color-text-muted);
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 0.72px;
  margin: 0;
}

.section-about__text p strong {
  color: var(--color-text-body);
  font-weight: 500;
}

.section-about__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.54px;
}

.section-about__link .icon {
  width: 14px;
  height: 14px;
}

.section-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 50px var(--container-pad);
  flex-wrap: wrap;
}

.section-quote__portrait {
  width: 338px;
  height: 498px;
  border-radius: 80px 0 0 80px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--color-blue-bright), var(--color-blue-dark));
}

.section-quote__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-quote__text {
  max-width: 693px;
  flex: 1 1 400px;
}

.section-quote__text blockquote {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.9px;
  color: var(--color-text-body);
  text-align: justify;
}

.section-quote__text blockquote em {
  font-style: italic;
}

.section-quote__name {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  margin: 0 0 10px;
}

.section-quote__role {
  font-size: 20px;
  color: var(--color-blue-accent);
  letter-spacing: 0.8px;
  margin: 0;
}

/* Quote slider: the two quotes share one spot and swap automatically
   after a delay (mirrors the Figma "After delay" prototype interaction) */
.quote-slider {
  display: grid;
}

.quote-slider .quote-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.quote-slider .quote-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.section-pillars {
  padding: 50px var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-pillars__heading .eyebrow {
  color: var(--color-blue-primary);
  font-size: 18px;
  letter-spacing: 0.36px;
  margin: 0 0 20px;
}

.section-pillars__heading h2 {
  color: var(--color-text-dark);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.pillar-card {
  border: 1px solid var(--color-blue-border);
  border-radius: 8px;
  padding: 30px;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-card h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin: 0 0 20px;
}

.pillar-card p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.64px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Generic content sections (used across pages) ---------- */

.content-section {
  padding: 80px var(--container-pad);
}

.content-section.alt {
  background: #fff;
}

.content-section__eyebrow {
  color: var(--color-blue-primary);
  font-size: 18px;
  letter-spacing: 0.36px;
  margin: 0 0 10px;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin: 0 0 30px;
}

.content-section p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 900px;
  margin: 0 0 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--color-blue-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

.card__body h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--color-text-dark);
}

.card__body p {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.org-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-box {
  border: 1px solid var(--color-blue-border);
  border-radius: 8px;
  background: #fff;
  padding: 16px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-dark);
  min-width: 180px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.contact-map {
  width: 100%;
  min-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--color-blue-border);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-base);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--color-blue-border);
  border-radius: 6px;
  color: var(--color-text-dark);
}

.contact-form button {
  align-self: flex-start;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(160deg, #58a0ff, #004eb6 35%, #002d50 75%, #001427 100%);
  color: var(--color-text-onblue);
  padding: 30px var(--container-pad) 0;
}

.site-footer__top {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.site-footer__brand {
  flex: 1 1 300px;
}

.site-footer__brand img {
  width: 142px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer__brand p {
  margin: 0;
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.28px;
}

.site-footer__cols {
  flex: 1 1 500px;
  display: flex;
  gap: 100px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-footer__col h4 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 20px;
}

.site-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.56px;
}

.site-footer__col-links .row {
  display: flex;
  gap: 30px;
}

.site-footer__col-links a:hover,
.site-footer__contact-row:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.56px;
  margin-bottom: 6px;
}

.site-footer__rule {
  height: 1px;
  background: #fff;
  width: 100%;
  opacity: 0.6;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 10px 0 50px;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 14px;
}

.site-footer__social {
  display: flex;
  gap: 20px;
}

.site-footer__social a {
  color: #fff;
  display: flex;
}

/* ---------- Utilities / responsive ---------- */

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Below ~1440px the navbar wraps to two rows while the header still overlays
   the hero, so push the hero text further down to keep it clear of the menu. */
@media (max-width: 1439px) {
  .hero__content {
    padding-top: 250px;
  }
}

@media (max-width: 1100px) {
  :root {
    --container-pad: 48px;
  }
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero__title,
  .section-quote__text blockquote {
    font-size: 36px;
  }
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
    order: 3;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .navbar__right {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
  }
  .navbar__right.is-open {
    display: flex;
  }
  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navbar__links a,
  .navbar__links button,
  .navbar__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .navbar__dropdown {
    width: 100%;
  }
  .navbar__dropdown-menu {
    position: static;
    border: none;
    padding: 0 0 0 12px;
    min-width: 0;
    background: none;
  }
  .navbar__search-form {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
  .navbar__search-form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .hero__arrow {
    width: 40px;
    height: 40px;
  }
  .hero__arrow--prev {
    left: 12px;
  }
  .hero__arrow--next {
    right: 12px;
  }
  .site-header:not(.solid) {
    position: relative;
    background: var(--color-blue-dark);
  }
  /* Header no longer overlays the hero at this width, so restore normal spacing */
  .hero {
    min-height: 520px;
  }
  .hero__content {
    padding-top: 90px;
  }
}

@media (max-width: 700px) {
  :root {
    --container-pad: 24px;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .section-about,
  .section-quote {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__title {
    font-size: 30px;
  }
  .section-quote__text blockquote {
    font-size: 22px;
  }
  .site-footer__cols {
    justify-content: flex-start;
    gap: 40px;
  }
}
