/* ========== Reset & dasar ========== */
:root {
  --bg: #070607;
  --card: #0f0f10;
  --muted: #bdb7ae;
  --gold: #c8a15e;
  --accent: #8a1f1f;
  --glass: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  position: relative;
  overflow-y: auto;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 6, 7, 0.6), rgba(7, 6, 7, 0.15));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}
.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  font-family:
    "Unbounded",
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.08em;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #070607;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform 160ms ease;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold);
}
.map-embed {
  max-width: 1100px; /* match container width */
  margin: 0 auto;
}
.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  display: block;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.map-info {
  text-align: center;
  padding: 18px 6px 28px;
  max-width: 820px;
  margin: 0 auto;
}
.map-info h3 {
  font-size: 1.6rem; /* match other prominent subsection titles */
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.map-info .address {
  font-size: 1.05rem; /* similar to .lead */
  font-weight: 600;
  color: #e6ded5;
  margin-bottom: 8px;
}
/* Circular logo (photo) used in header: keeps aspect, crops to circle */
.brand-logo {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-right: 12px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.brand-subtitle {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.brand .accent {
  color: var(--gold);
  /* Spasi antara kata "MENTAWAI" dan "DOTS LINE" */
  margin-left: 0.6rem;
}
.menu a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}
/* Make menu links behave like buttons with hover and ripple support */
.nav .menu a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 120ms ease,
    box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
  color: var(--muted);
}
.nav .menu a:hover,
.nav .menu a:focus {
  background: linear-gradient(90deg, var(--gold), #b08a3f);
  color: #070607;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(200, 161, 94, 0.18);
  border-color: rgba(200, 161, 94, 0.6);
}
.btn-cta {
  /* Make contact CTA visually consistent with other buttons:
     use subtle gold-tinted background and border, matching .btn-primary/.btn-cta-large */
  background: rgba(200, 161, 94, 0.06);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-left: 16px;
  border: 1px solid rgba(200, 161, 94, 0.12);
}

/* small nav toggle for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
}

/* Responsive adjustments for brand on medium and small screens */
@media (max-width: 900px) {
  .brand {
    font-size: 1rem; /* sedikit lebih kecil pada layar menengah */
  }
  .brand-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  .brand-name {
    font-size: 1.15rem;
    color: var(--gold);
  }
  .brand-subtitle {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.95rem; /* layar kecil */
    white-space: nowrap;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
    margin-right: 8px;
  }
  .brand-name {
    font-size: 0.95rem;
    color: var(--gold);
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
}

/* Language switcher (dropdown) */
.lang-switcher {
  position: relative;
}
.lang-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.lang-button img {
  display: inline-block;
  width: 22px;
  height: auto;
  border-radius: 3px;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px;
  display: none;
  min-width: 170px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  z-index: 220;
  flex-direction: column;
  gap: 6px;
}
.lang-menu.open {
  display: flex;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
}
.lang-item img {
  width: 20px;
  height: auto;
  border-radius: 3px;
}
.lang-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold);
}
.lang-item.active {
  background: rgba(200, 161, 94, 0.06);
  color: var(--gold);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 7, 0.55), rgba(7, 6, 7, 0.75));
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 48px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.2rem);
  letter-spacing: 0.6px;
  margin: 0 0 12px;
  color: white;
  line-height: 1.04;
  max-width: 1100px;
  width: 100%;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}
.hero .hero-top-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: 0.95;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  text-align: center;
}

.hero .hero-main {
  color: var(--gold);
}

/* Video background support for hero */
.hero--video {
  position: relative;
  overflow: hidden;
  min-height: 88vh; /* make hero slightly taller when using video */
}
.hero--video .hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.hero--video .hero-overlay {
  z-index: 2;
}
.hero--video .hero-content {
  position: relative;
  z-index: 3;
}

/* Respect users who prefer reduced motion: hide decorative video */
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero-video {
    display: none;
  }
}
/* NOTE: `.about-hero-icon` removed from About hero (logo1.svg was removed).
   Decorative image `.about-decor` is used instead; styles for the decor follow. */

/* Reduce space between icon and title on About hero */
.about .hero-content h1.reveal {
  margin-top: 0;
}
.lead {
  color: #e6ded5;
  font-size: 1.05rem;
}

/* buttons */
.btn {
  display: inline-block;
  /* Tambah jarak spasi antar karakter pada brand name */
  letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 120ms ease,
    box-shadow 220ms ease;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-primary {
  /* subtle default state, highlight on hover */
  background: rgba(200, 161, 94, 0.06);
  color: var(--gold);
  border: 1px solid rgba(200, 161, 94, 0.12);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  background: transparent;
}
.btn-cta-large {
  background: rgba(200, 161, 94, 0.06);
  color: var(--gold);
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid rgba(200, 161, 94, 0.12);
}

/* WhatsApp button style */
.btn-whatsapp {
  background: rgba(200, 161, 94, 0.06);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(200, 161, 94, 0.12);
}
.btn-whatsapp .wa-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Hover/focus state: show gold color and subtle lift/glow */
.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-cta-large:hover,
.btn-whatsapp:hover,
.btn-outline:hover {
  background: linear-gradient(90deg, var(--gold), #b08a3f);
  color: #070607;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(200, 161, 94, 0.18);
  border-color: rgba(200, 161, 94, 0.6);
}
.btn-outline:hover {
  color: #070607;
}

/* Instagram button matching site theme: pill-shaped, icon + username */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(200, 161, 94, 0.06),
    rgba(138, 31, 31, 0.04)
  );
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(200, 161, 94, 0.12);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 120ms ease,
    box-shadow 220ms ease;
}
.btn-instagram .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.btn-instagram svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-instagram .username {
  color: var(--gold);
}
.btn-instagram:hover,
.btn-instagram:focus {
  background: linear-gradient(90deg, var(--gold), #b08a3f);
  color: #070607;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(200, 161, 94, 0.18);
  border-color: rgba(200, 161, 94, 0.6);
}
.btn-instagram:focus {
  outline: none;
  box-shadow:
    0 10px 30px rgba(200, 161, 94, 0.22),
    0 0 0 6px rgba(200, 161, 94, 0.06);
}

.about-social {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.card .about-social {
  margin-top: 16px;
}

/* Ensure icon and username remain visible (not covered by gold background)
   - Keep other rules unchanged; only override icon/text colors on hover/focus */
.btn-instagram .icon svg {
  stroke: var(--gold);
  fill: none;
}
.btn-instagram .username {
  color: var(--gold);
}
.btn-instagram:hover .icon svg,
.btn-instagram:focus .icon svg {
  /* On hover/focus use black stroke so icon and text contrast with gold background */
  stroke: #070607;
  fill: none;
}
.btn-instagram:hover .username,
.btn-instagram:focus .username {
  color: #070607;
}

/* Gradient Instagram variant: vivid multi-color gradient matching Instagram brand
   - Keystyle: pill-shaped, white icon/text for contrast
   - Usable by adding `btn-instagram--gradient` alongside `btn-instagram` */
.btn-instagram--gradient {
  background: linear-gradient(
    45deg,
    #f58529 0%,
    #dd2a7b 35%,
    #8134af 65%,
    #515bd4 100%
  );
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 18px rgba(81, 91, 212, 0.12);
  transition:
    transform 120ms ease,
    box-shadow 200ms ease,
    filter 180ms ease;
}
.btn-instagram--gradient .icon {
  width: 20px;
  height: 20px;
}
.btn-instagram--gradient svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: none;
  fill: #fff;
  opacity: 0.98;
}
.btn-instagram--gradient .username {
  color: #fff;
}
.btn-instagram--gradient:hover,
.btn-instagram--gradient:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(81, 91, 212, 0.18);
  filter: brightness(1.02);
}
.btn-instagram--gradient:focus {
  outline: none;
  box-shadow:
    0 18px 40px rgba(81, 91, 212, 0.2),
    0 0 0 6px rgba(81, 91, 212, 0.06);
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(200, 161, 94, 0.18);
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* SECTIONS */
.section {
  padding: 60px 0;
}
.section.dark {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* cards & grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.card h2,
.card h3,
.card h4 {
  color: var(--gold);
  margin-top: 0;
}
.card h2 {
  margin-top: 0;
}
.card ul {
  margin: 8px 0;
  padding-left: 20px;
}
.card ul li {
  margin: 6px 0;
  color: var(--muted);
}
.center {
  text-align: center;
}
.card-image {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.section-title {
  color: #fff;
  margin-bottom: 16px;
}

/* gallery */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.preview-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}
.mitem {
  /* 3 items per row by default (desktop/large and medium screens) */
  flex: 1 1 calc(33.333% - 14px);
  min-width: 160px;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  height: 220px; /* base visual height for uniform grid */
  display: block;
}
.mitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mitem figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
  font-size: 0.95rem;
}

/* contact form */
.contact-form {
  display: grid;
  gap: 12px;
  max-width: 700px;
  margin: 18px auto;
}
.contact-form label {
  display: block;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
}
.contact-form input[type="email"] {
  /* make email input border more visible */
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(200, 161, 94, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* notice */
.notice {
  padding: 14px;
  border-radius: 10px;
  background: rgba(40, 60, 40, 0.15);
  color: #cfe6cf;
}
.notice.success {
  border-left: 4px solid var(--gold);
}

/* small text */
.small {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}
/* Use Unbounded (Google Font) for hero title, sub-headings and footer */
.hero .hero-top-title,
.hero .hero-main,
main h2,
main h3,
main h4,
.footer {
  font-family:
    "Unbounded",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* text alignment helpers */
.justify {
  text-align: justify;
  text-align-last: left;
}

/* reveal animation helper */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Ensure gallery grid using .reveal is visible on all viewports
   (useful when IntersectionObserver doesn't fire immediately). */
.gallery-grid.reveal {
  opacity: 1;
  transform: none;
  transition: none; /* avoid jumpy animation when forcing visible */
}
/* Color for revealed top-level headings in main content */
main h1.reveal {
  color: var(--gold);
}

/* responsive */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-block;
  }
  .menu {
    display: none;
  }
  /* Mobile menu - when open, show as dropdown */
  .menu.open {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--card);
    padding: 12px;
    border-radius: 10px;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  }
  .menu.open a {
    margin: 6px 0;
    color: var(--muted);
  }
  /* keep gallery at 3 columns for medium screens (<=900) as requested */

  /* Hero adjustments for medium screens */
  .hero .hero-top-title {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    margin-bottom: 6px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6.4vw, 2.8rem);
    margin-bottom: 10px;
    padding: 0 8px;
  }

  .hero .lead {
    font-size: 1rem;
    padding: 0 8px;
    max-width: 920px;
    margin: 0 auto;
  }
}

/* small screens: show 2 items per row */
@media (max-width: 600px) {
  .mitem {
    flex: 1 1 calc(50% - 14px);
    min-width: 0;
    height: 180px; /* smaller cards on mobile */
  }

  /* Ensure gallery container using .reveal is visible on small screens
     (some browsers/devtools/resizes can prevent IntersectionObserver from
     firing immediately — make gallery show by default on phones). */
  .gallery-grid.reveal {
    opacity: 1;
    transform: none;
    transition: none; /* avoid jumpy animation when forcing visible */
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    padding: 18px;
  }

  .card-image {
    max-height: 450px;
  }

  .process-step,
  .process-step--reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-media img {
    max-height: 240px;
  }

  .history-images {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-image {
    height: 280px;
  }
}

@media (max-width: 400px) {
  .mitem {
    height: 160px;
  }
}

@media (min-width: 1200px) {
  .mitem {
    height: 260px; /* slightly larger on wide screens */
  }
}

/* History images layout used on about page */
.history-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.history-image {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 0px solid rgba(255, 255, 255, 0.03);
  height: 400px;
}

@media (min-width: 600px) {
  .history-images {
    grid-template-columns: 1fr 1fr;
  }
  .history-image {
    height: 320px;
  }
}

/* Footer buttons: inherit site button behavior */
.footer .btn {
  display: inline-block;
  margin: 6px 8px 0 0;
}

.footer-actions {
  margin-bottom: 10px;
}

/* About page subheading color (use site's yellow/gold) */
.about h2,
.about h3,
.about h4 {
  color: var(--gold);
}

.about h2 {
  margin-top: 0;
}

/* Process steps: alternating media + content layout */
.process {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 18px;
}
.process-step {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  align-items: center;
}
.process-step--reverse {
  grid-template-columns: 420px 1fr;
}
.process-media img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.process-content h4 {
  margin-top: 0;
  color: var(--gold);
}
.process-content p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .process-step,
  .process-step--reverse {
    grid-template-columns: 1fr;
  }
  .process-media img {
    max-height: 260px;
  }
}

/* Center the person/title in the About person section */
.grid-2.align-center .card h3 {
  text-align: center;
}

/* Title that sits above both image and description on About person section */
.about-person-title {
  text-align: center;
  color: var(--gold);
  margin: 0 0 18px;
  font-size: 1.6rem;
}

/* Person image and layout on About page */
.card .person-image {
  width: 100%;
  height: 500px;
  /* use cover to preserve aspect and avoid rendering banding on mobile */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 0;
  display: block;
  will-change: background-size, transform;
}
.person-image {
  width: 100%;
  max-width: 100%;
  height: 550px;
  /* support both background-image and <img> children; prefer <img> for better rendering */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin: 0 auto;
  display: block;
  will-change: background-size, transform;
  overflow: hidden;
  position: relative;
}

.person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
}

/* Adjust positioning for Kora Europe image to show head */
.person-image-kora img {
  object-position: center 25%;
}
.align-center {
  align-items: center;
}
@media (max-width: 700px) {
  .card-image {
    height: 450px;
  }
  .person-image {
    height: 450px;
    background-position: center;
  }
  .card .person-image {
    height: 450px;
    background-position: center;
  }
}

/* Extra small phones: reduce person image height to avoid banding and keep composition */
@media (max-width: 420px) {
  .person-image,
  .card .person-image {
    height: 360px;
    background-position: center;
  }
}

@media (max-width: 400px) {
  .hero .hero-top-title {
    font-size: 0.95rem;
  }
  .hero .hero-main {
    font-size: 1.9rem;
  }

  /* Small screens: ensure main hero title wraps and remains visible */
  .hero-content h1 {
    font-size: clamp(1.6rem, 8.6vw, 2rem);
    line-height: 1.08;
    padding: 0 14px;
    margin-bottom: 8px;
  }
  .hero .lead {
    font-size: 0.98rem;
    padding: 0 12px;
  }
}

/* Larger desktop screens: increase About page logo (logo1.svg) only
   - Scoped to `.about .hero-content .about-hero-icon` so other logos stay same
   - Override max-width so the image can grow, but do NOT change `.hero` background
     or background-size; the page background will remain `cover` and unzoomed. */
/* Decorative image (decor.svg) between decorative graphic and title on About page
   - Uses SVG for crisp rendering, scales with viewport using clamp()
   - Larger maximum (now up to 800px) for wide screens, still responsive on mobile
   - Flat placement and tight spacing to heading/lead */
.about .hero-content .about-decor {
  width: clamp(500px, 20vw, 900px);
  height: auto;
  display: block;
  margin: 8px auto 4px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
  opacity: 0.99;
  pointer-events: none;
  position: relative;
  z-index: 2;
  will-change: width, transform, opacity, filter;
  max-width: 100%;
  transition:
    width 360ms cubic-bezier(0.22, 0.9, 0.35, 1),
    transform 260ms ease,
    filter 300ms ease,
    opacity 220ms ease;
}

/* Keep header elements tight to the decor */
.about .hero-content h1.reveal {
  margin-top: 4px;
  margin-bottom: 6px;
  /* Responsive, keeps heading tidy across viewports */
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  line-height: 1.08;
  text-align: center;
  max-width: 880px; /* prevents extremely long lines on very wide screens */
  width: 100%;
  word-break: break-word;
  hyphens: auto;
}
.about .hero-content .lead {
  margin-top: 2px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .about .hero-content .about-decor {
    width: clamp(400px, 18vw, 500px);
    margin: 6px auto 2px;
    transform: none;
  }
}

/* Make hero-content padding adapt smoothly to screen changes so the decor
   can resize without content jumping */
.hero-content {
  transition:
    padding 260ms ease,
    transform 260ms ease;
}

@media (max-width: 900px) {
  .hero-content {
    padding: 32px;
  }

  /* Tighter, slightly larger on medium screens for readability */
  .about .hero-content h1.reveal {
    font-size: clamp(1.9rem, 6.2vw, 2.4rem);
    margin-bottom: 8px;
    padding: 0 6px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    /* Small screens: keep h1 readable and wrap gracefully */
    .about .hero-content h1.reveal {
      font-size: clamp(1.6rem, 7.6vw, 2rem);
      line-height: 1.12;
      padding: 0 12px;
      margin-bottom: 6px;
    }
    padding: 20px;
  }
  .about .hero-content .about-decor {
    width: clamp(200px, 16vw, 250px);
    margin: 4px auto 2px;
  }
}

/* End decor styles */

/* Page side frames (desktop only) using `bingkai.svg` placed left and right
   - Fixed position so they remain visible while scrolling
   - Mirrored on the right using scaleX(-1)
   - Hidden on smaller screens to avoid crowding content */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(120px, 8vw, 240px);
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  z-index: 8;
  opacity: 0.98;
}
body::before {
  left: 0;
  background-image: url("../img/bingkai.svg");
}
body::after {
  right: 0;
  background-image: url("../img/bingkai.svg");
  transform: scaleX(-1);
}

/* hide frames on small and medium screens to keep layout clean */
@media (max-width: 1200px) {
  body::before,
  body::after {
    display: none;
  }
}

/* Image cards for About page */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}
.image-cards .card {
  padding: 0; /* images fill the card */
  overflow: hidden;
  background: transparent;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.image-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition:
    transform 320ms cubic-bezier(0.22, 0.9, 0.35, 1),
    filter 320ms ease;
}
.image-card:hover img {
  transform: scale(1.04) translateY(-6px);
  filter: saturate(1.06) contrast(1.02);
}
.image-card .card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  pointer-events: none;
}
.image-card:hover .card-caption {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Make the grid responsive */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-card img {
    height: 260px;
  }
}
@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .image-card img {
    height: 200px;
  }
}

/* iPhone XR and smaller screens (375px) - Enhanced responsive design */
@media (max-width: 375px) {
  .container {
    padding: 16px;
    max-width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 8px;
  }

  .card-image {
    max-height: 200px;
  }

  .image-card img {
    height: 160px;
  }

  .process-step,
  .process-step--reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-media img {
    max-height: 200px;
  }

  .person-image {
    height: 350px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
    margin-bottom: 8px;
  }

  .hero .hero-top-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .hero .lead {
    font-size: 0.9rem;
    padding: 0 8px;
  }

  .history-images {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-image {
    height: 250px;
  }

  .hero.small .hero-content {
    padding: 24px 12px;
  }

  .about-decor {
    width: clamp(280px, 85vw, 350px) !important;
    margin: 4px auto;
  }

  .about .hero-content h1.reveal {
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    margin-top: 2px;
    margin-bottom: 4px;
  }
}

/* Lightbox overlay with transitions and close button */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1200;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    visibility 260ms ease,
    transform 260ms ease;
  transform: scale(0.995);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.lightbox .lightbox-inner {
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition:
    transform 260ms ease,
    filter 260ms ease;
}
.lightbox .lightbox-caption {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 160ms ease;
  backdrop-filter: blur(4px);
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* Map section styles (responsive, tidy presentation) */
.map-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0)
  );
}
.map-grid {
  align-items: stretch;
  gap: 18px;
}
.map-embed {
  min-height: 220px;
}
.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 10px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.map-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.map-full .map-iframe {
  border-radius: 0; /* full-bleed should be flush with edges */
  min-height: 420px;
  height: 52vh;
  max-height: 760px;
}
.map-info h3 {
  color: var(--gold);
  margin-top: 6px;
  margin-bottom: 8px;
}
.map-info {
  text-align: center;
  padding: 18px 6px 28px;
}
.map-info .address {
  color: #e6ded5;
  margin-bottom: 10px;
}
.map-info .btn {
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .map-iframe {
    min-height: 220px;
  }
  .map-embed {
    max-width: 100%;
  }
  .map-iframe {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .map-grid {
    display: block;
  }
  .map-embed,
  .map-info {
    margin-bottom: 12px;
  }
}

/* ===================== Mobile / overflow fixes ===================== */
/* Prevent any accidental horizontal scrolling on mobile devices */
html,
body {
  overflow-x: hidden;
  /* allow vertical pan only on touch devices */
  touch-action: pan-y;
}

/* Make all media resize to their container to avoid causing overflow */
img,
picture,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure hero decorative frames don't produce overflow */
.hero-frame,
.hero-frame--small {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Stronger specificity for language menu anchors to avoid UA default link color */
.nav .lang-menu a,
.lang-menu .lang-item,
.lang-menu a:link,
.lang-menu a:visited {
  color: var(--muted);
  text-decoration: none;
}
.lang-menu a {
  color: var(--muted) !important;
}

/* Keep dropdowns above other content and avoid causing layout shifts */
.menu.open,
.lang-menu {
  z-index: 9999;
  box-sizing: border-box;
}

/* Small-screen tweaks to reduce chance of horizontal pan and keep content tidy */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .card-image,
  .image-card img,
  .mitem img {
    width: 100%;
    height: auto;
  }
  .person-image,
  .card .person-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    background-size: cover;
  }
}

/* End mobile fixes */
