/* PT. Harmoni Harapan Bersama — site styles
   Converted from the Claude Design source (HHB Homepage.dc.html).
   Plain CSS on purpose: no build step, so the folder can be uploaded to cPanel as-is. */

:root {
  --brand: #2b3aa8;
  --brand-dark: #22308c;
  --brand-darker: #1e2a7d;
  --brand-light: #aeb8ef;
  --ink: #22252e;
  --ink-soft: #4c515e;
  --muted: #5b6070;
  --muted-2: #6a6f7d;
  --surface: #f4f5f9;
  --deep: #1c2140;
  --footer-ink: #8b8f9b;
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.06);
  --line-card: rgba(0, 0, 0, 0.09);
  --pad-x: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  font-family: var(--font);
  color: var(--ink);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-darker); }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav__brand:hover { color: var(--ink); }
.nav__logo { width: 44px; height: 44px; flex: none; }
.nav__name { display: block; font-weight: 800; font-size: 16px; letter-spacing: 0.02em; line-height: 1.2; }
.nav__sub {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.18em;
  text-align: justify;
  text-align-last: justify;
}

.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__link { color: var(--muted-2); }
.nav__link:hover { color: var(--ink); }
.nav__link--active { color: var(--ink); }

.nav__lang {
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 5px 9px;
  user-select: none;
  white-space: nowrap;
}
.nav__lang:hover { color: var(--muted-2); border-color: var(--brand); }
.nav__lang b { color: var(--ink); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}
.btn--primary { background: var(--brand); color: #fff; padding: 10px 18px; font-size: 13px; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--ghost { border: 1.5px solid var(--brand); color: var(--brand); padding: 12.5px 24px; font-size: 15px; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--deep); padding: 12px 22px; font-weight: 700; font-size: 14px; }
.btn--light:hover { background: #e8eaf5; color: var(--deep); }
.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 12px 22px;
  font-size: 14px;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Section furniture ---------- */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
}
.section { padding: 72px var(--pad-x); scroll-margin-top: 80px; }
.section--surface { background: var(--surface); }
.section__title { margin: 0 0 10px; font-size: 32px; font-weight: 800; }
.section__body { margin: 0 0 34px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; }
.hero__copy {
  padding: 80px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.hero__title { margin: 0; font-size: 48px; line-height: 1.12; font-weight: 800; text-wrap: pretty; }
.hero__body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 490px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }

/* ---------- Stats ---------- */

.stats {
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
  padding: 30px var(--pad-x);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat { text-align: center; }
.stat__num { font-size: 28px; font-weight: 800; color: var(--brand); }
.stat__label { font-size: 13px; color: var(--muted-2); }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  border: 1px solid var(--line-card);
  border-radius: 6px;
  padding: 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.service:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(43, 58, 168, 0.08); }
.service__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.service__title { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.service__body { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__media { height: 340px; }
.about__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.about__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--muted-2);
}
.about__title { margin: 0 0 16px; font-size: 32px; font-weight: 800; }
.about__para { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.about__para:last-of-type { margin-bottom: 0; }
.about__points { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.about__point { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.about__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- Alliances ---------- */

.alliance {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #22308c 0%, #2b3aa8 55%, #3a4cc4 100%);
}
.alliance__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.alliance__ring--lg { right: -80px; top: -120px; width: 460px; height: 460px; }
.alliance__ring--sm { right: 60px; top: 40px; width: 260px; height: 260px; border-color: rgba(255, 255, 255, 0.1); }
.alliance__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.alliance__kicker { color: var(--brand-light); margin-bottom: 10px; }
.alliance__title { margin: 0; font-size: 32px; font-weight: 800; color: #fff; max-width: 560px; text-wrap: balance; }
.alliance__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 380px;
}
.alliance__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.alliance__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  gap: 16px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(14, 19, 60, 0.25);
  transition: transform 0.18s ease;
}
.alliance__card:hover { transform: translateY(-4px); color: var(--ink); }
.alliance__logo-wrap { height: 64px; display: flex; align-items: center; }
.alliance__logo { max-height: 64px; max-width: 200px; object-fit: contain; }
.alliance__name { font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.alliance__badge { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--brand); }
.alliance__desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.alliance__link { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* ---------- News ---------- */

.news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.news__all { font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }

.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-card);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(43, 58, 168, 0.08); color: var(--ink); }
/* Landscape covers keep their own aspect ratio: nothing cropped, no letterbox
   bars. Event banners put the logo in a corner, so any forced box ruins them. */
.news-card__img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}

/* Portrait photos are the exception — left at full height they make the card
   tower over its neighbours, so those fill a fixed box instead. */
.news-card__img--fill {
  height: 240px;
  object-fit: cover;
  object-position: center;
}
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__meta { display: flex; gap: 10px; align-items: center; font-size: 11.5px; }
.news-card__cat { font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }
.news-card__date { color: var(--footer-ink); }
.news-card__title { font-weight: 700; font-size: 16.5px; line-height: 1.35; margin: 0; }
.news-card__excerpt { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.news-card__read {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

.article { max-width: 720px; margin: 0 auto; }
.article__title { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 12px 0 10px; }
.article__meta { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--brand); }
.article__cover { width: 100%; border-radius: 8px; margin: 24px 0; display: block; }
.article__body { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.article__body p { margin: 0 0 16px; }
.article__body h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 28px 0 10px; }
.article__body h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.article__body img { border-radius: 6px; }
.article__body ul, .article__body ol { padding-left: 22px; margin: 0 0 16px; }
.article__body li { margin-bottom: 6px; }

.empty-note { font-size: 15px; color: var(--muted-2); }

/* ---------- Article photo carousel ----------
   A scroll-snap strip: swipeable and scrollable with no JS at all. The arrows
   and dots are rendered hidden and only revealed by script, so they can never
   sit there as dead controls. */

.carousel { position: relative; margin: 32px 0 8px; }

.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.carousel__track:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  min-width: 0;
}
.carousel__slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: var(--surface);
}
.carousel__slide figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  margin-top: 8px;
}

.carousel__nav {
  position: absolute;
  top: calc((100% - 40px) / 2);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(14, 19, 60, 0.22);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.carousel__nav:hover { background: #fff; }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.carousel__dot.is-active { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--deep);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 64px var(--pad-x);
  scroll-margin-top: 80px;
}
.contact__title { margin: 0 0 12px; font-size: 26px; font-weight: 700; }
.contact__body { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.75); max-width: 420px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact__offices {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__offices b { color: #fff; }

/* ---------- Quote request form (inside the dark contact section) ---------- */

.quote { margin: 22px 0 0; max-width: 560px; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}
.quote__field input,
.quote__field textarea {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}
.quote__field textarea { resize: vertical; }
.quote__field input::placeholder,
.quote__field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.quote__field input:focus,
.quote__field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.quote__req { color: #ffb4b4; }
.quote__error { font-size: 11.5px; color: #ffb4b4; font-weight: 600; }
.quote__note { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin: 10px 0 0; }
.quote__ok {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 0 0 16px;
}
/* Off-screen rather than display:none — bots skip hidden fields. */
.quote__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__actions { margin-top: 22px; }

@media (max-width: 860px) {
  .quote__grid { grid-template-columns: 1fr; }
}

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

.footer {
  padding: 18px var(--pad-x);
  font-size: 12px;
  color: var(--footer-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  background: #fff;
}

/* ---------- Responsive ----------
   The source design was fixed at min-width 1100px. These queries keep the
   desktop composition identical and only restack below it. */

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .alliance__grid, .news__grid { grid-template-columns: repeat(2, 1fr); }
  .alliance__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .alliance__body { max-width: none; }
  .hero__title { font-size: 40px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; }

  .nav { flex-wrap: wrap; gap: 12px; }
  /* Let the brand shrink so the ☰ stays on the same row instead of wrapping. */
  .nav__brand { flex: 1 1 auto; min-width: 0; }
  .nav__logo { width: 38px; height: 38px; }
  .nav__name { font-size: 12.5px; line-height: 1.25; }
  /* The justified tagline reads badly at phone widths — drop it. */
  .nav__sub { display: none; }
  .nav__toggle { display: block; order: 3; flex: none; }
  .nav__links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__link { padding: 10px 2px; }
  .nav__links .nav__lang { align-self: flex-start; }
  .nav__links .btn { text-align: center; }

  .hero { grid-template-columns: 1fr; }
  .hero__copy { padding: 48px var(--pad-x); }
  .hero__title { font-size: 32px; }
  .hero__img { min-height: 260px; height: 260px; order: -1; }

  .section { padding: 48px var(--pad-x); }
  .section__title, .about__title, .alliance__title { font-size: 26px; }

  .stats { justify-content: flex-start; }
  .stat { flex: 1 1 40%; }

  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__media { height: 240px; }

  .alliance__ring { display: none; }
  .alliance__grid, .news__grid, .services { grid-template-columns: 1fr; }

  .contact { grid-template-columns: 1fr; padding: 48px var(--pad-x); }
  .article__title { font-size: 26px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
