:root {
  --maroon: #7f1424;
  --maroon-bright: #a01a30;
  --maroon-deep: #5a0e19;
  --ink: #15161a;
  --charcoal: #1e1f24;
  --paper: #ffffff;
  --paper-alt: #f4f4f6;
  --muted: #5f6470;
  --line: #e6e7ea;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(21, 22, 26, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2 { font-family: 'Playfair Display', 'Manrope', serif; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(127, 20, 36, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--maroon-deep);
}
.site-header .btn-primary { background: #fff; color: var(--maroon); }
.site-header .btn-primary:hover { background: #f6e8ea; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand-logo { height: 50px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: #f0dade; text-decoration: none; font-weight: 600; font-size: 0.93rem;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  border: 1px solid rgba(255,255,255,0.45); background: transparent; color: #f0dade; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.88rem;
}
.lang-btn:hover { border-color: #fff; color: #fff; }

/* Buttons */
.btn {
  display: inline-block; border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; text-decoration: none; font-family: inherit;
  padding: 11px 22px; font-size: 0.95rem; transition: all .18s ease;
}
.btn-primary { background: var(--maroon-bright); color: #fff; }
.btn-primary:hover { background: var(--maroon); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: #f3e9ea; transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1.03rem; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(74,11,20,0.94) 28%, rgba(127,20,36,0.84) 60%, rgba(90,14,25,0.55) 100%);
}
.hero-content { position: relative; padding: 130px 24px 70px; max-width: 1140px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem;
  font-weight: 800; color: #e8b8bd; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; font-weight: 800; margin-bottom: 22px; max-width: 16ch; }
.lead { font-size: 1.16rem; color: #e9e4e5; margin-bottom: 36px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-top: 48px; padding-bottom: 56px;
}
.hstat {
  border-top: 2px solid rgba(255,255,255,0.35); padding-top: 14px;
}
.hstat strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hstat strong.counter { min-width: 3ch; }
.hstat span { color: #d9cfd1; font-size: 0.9rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 22px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem;
  font-weight: 800; color: var(--maroon-bright); margin-bottom: 12px;
}
.kicker.light { color: #e8b8bd; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }
.section-sub.light { color: #ead9db; }
#about > .container > div:first-child p { color: var(--muted); }
#about > .container > div:first-child p + p { margin-top: 14px; }

.about-card {
  background: linear-gradient(150deg, var(--maroon-deep), var(--maroon)); color: #fff; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
  border-top: 5px solid var(--maroon-bright);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease, box-shadow 0.35s ease;
}
.about-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.about-card.is-visible:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(127, 20, 36, 0.28);
}
.about-card h3 {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: #f0c4ca; margin-bottom: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.about-card p {
  margin-bottom: 24px; font-size: 1.12rem; font-weight: 600; color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.about-card.is-visible h3,
.about-card.is-visible p {
  opacity: 1;
  transform: translateY(0);
}
.about-card.is-visible h3:nth-of-type(1) { transition-delay: 0.15s; }
.about-card.is-visible p:nth-of-type(1) { transition-delay: 0.25s; }
.about-card.is-visible h3:nth-of-type(2) { transition-delay: 0.35s; }
.about-card.is-visible p:nth-of-type(2) { transition-delay: 0.45s; }
.about-card.is-visible h3:nth-of-type(3) { transition-delay: 0.55s; }
.about-card.is-visible p:nth-of-type(3) { transition-delay: 0.65s; }
.about-card p:last-child { margin-bottom: 0; }

/* Maroon serve section */
.section-dark { background: linear-gradient(150deg, var(--maroon-deep) 0%, var(--maroon) 70%); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: #eebfc7; }
.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 38px; }
.serve-item {
  background: rgba(255,255,255,0.09); border-radius: 14px; padding: 26px;
  border-left: 4px solid rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.serve-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.serve-item.is-visible:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.serve-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.serve-item p { color: #efdce0; font-size: 0.9rem; }

/* Segments */
.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 38px; }
.seg-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  background: #fff; box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.35s ease;
}
.seg-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.seg-card.is-visible:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(127, 20, 36, 0.16);
}
.seg-tag {
  display: inline-block; background: var(--maroon); color: #fff;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 8px; margin-bottom: 16px;
}
.seg-card p { color: var(--muted); font-size: 0.97rem; }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 38px; }
.work-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s ease;
}
.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card.is-visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(127, 20, 36, 0.14);
}
.work-card img {
  width: 100%; height: 230px; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.work-card.is-visible:hover img { transform: scale(1.05); }
.work-body { padding: 24px 26px 28px; }
.work-tag {
  display: inline-block; color: var(--maroon-bright); font-weight: 800;
  font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 10px;
}
.work-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 0.93rem; }

/* Haji Muda Explorer */
.section-hme { background: linear-gradient(180deg, #fff 0%, #faf4f5 100%); }
.hme-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 40px; align-items: start;
}
.hme-media img, .hme-photo img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
.hme-copy .seg-tag { margin-bottom: 14px; }
.hme-copy h3 { font-size: 1.35rem; margin-bottom: 12px; }
.hme-copy p { color: var(--muted); margin-bottom: 18px; }
.hme-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.hme-list li {
  position: relative; padding-left: 22px; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.hme-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--maroon);
}
.hme-carousel-block { margin-top: 56px; }
.hme-carousel-block h3 { font-size: 1.5rem; margin-bottom: 8px; }
.hme-gallery-empty {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px dashed #d8b8be; color: var(--muted); font-size: 0.95rem; line-height: 1.6;
}
.hme-gallery-empty strong { color: var(--maroon); font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; }
.hme-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hme-reveal.is-visible { opacity: 1; transform: translateY(0); }
.hme-grid .hme-reveal:nth-child(1).is-visible { transition-delay: 0.05s; }
.hme-grid .hme-reveal:nth-child(2).is-visible { transition-delay: 0.18s; }
.hme-grid .hme-reveal:nth-child(3).is-visible { transition-delay: 0.32s; }
@media (max-width: 920px) {
  .hme-grid { grid-template-columns: 1fr; }
}

/* Carousel (Haji Muda gallery) */
.carousel {
  position: relative; margin-top: 24px;
}
.carousel-viewport {
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow);
  background: #111;
}
.carousel-track {
  display: flex; transition: transform 0.45s ease;
}
.carousel-slide {
  min-width: 100%; margin: 0; flex: 0 0 100%;
}
.carousel-slide img {
  width: 100%; height: min(520px, 62vw); object-fit: contain; display: block;
  background: #1a1a1a;
}
.carousel-slide figcaption {
  padding: 14px 18px; background: var(--maroon-deep); color: #f0dade;
  font-weight: 600; font-size: 0.95rem; text-align: center;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(127, 20, 36, 0.92); color: #fff; font-size: 1.2rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-btn:hover { background: var(--maroon); transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: #d8b8be; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.carousel-dot.is-active { background: var(--maroon); transform: scale(1.15); }
@media (max-width: 560px) {
  .carousel-prev { left: 6px; } .carousel-next { right: 6px; }
  .carousel-slide img { height: 56vw; }
}

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 38px;
}
.gallery-item {
  position: relative; border: none; padding: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: var(--paper-alt);
  aspect-ratio: 4 / 3; display: block; width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease, filter .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(0.82); }
.gallery-item::after {
  content: '+'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; color: #fff; font-weight: 300; opacity: 0;
  transition: opacity .3s ease; background: rgba(127, 20, 36, 0.30);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(15, 9, 11, 0.94); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox figure {
  max-width: min(1100px, 88vw); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lightbox figcaption { color: #e9dfe0; font-weight: 600; letter-spacing: 0.02em; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--maroon-bright); border-color: var(--maroon-bright); }
.lb-close { top: 26px; right: 26px; font-size: 1.8rem; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
}

/* Give / maroon section */
.section-maroon {
  background: linear-gradient(150deg, var(--maroon-deep) 0%, var(--maroon) 55%, #8c1830 100%);
  color: #fff;
}
.section-maroon h2 { color: #fff; }
.give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 38px; }
.give-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px; padding: 26px; backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.give-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.give-card.is-visible:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.give-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.give-card p { color: #ead9db; font-size: 0.9rem; }

.bank-box {
  margin-top: 44px; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow);
}
.bank-box h3 { margin-bottom: 18px; font-size: 1.1rem; }
.bank-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.bank-rows span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.bank-rows strong { font-size: 1.12rem; }

.pledge-wrap { margin-top: 56px; max-width: 760px; }
.pledge-wrap h3 { font-size: 1.5rem; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.section-maroon .form input,
.section-maroon .form select,
.section-maroon .form textarea { border: none; }
.section-maroon .form label { color: #f3e6e8; }

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute; left: -10000px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--maroon-bright); border-color: transparent;
}
.form .btn { align-self: flex-start; }

/* Alerts */
.alert { border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-weight: 700; }
.alert-success { background: #e7f6ec; color: #14532d; border: 1px solid #bbe5c8; }
.alert-error { background: #fdecea; color: #8c1d18; border: 1px solid #f4c3bf; }

/* Contact */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.contact-list li { color: var(--muted); }
.contact-list a { color: var(--maroon); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list strong {
  display: block; color: var(--ink); text-transform: uppercase;
  font-size: 0.76rem; letter-spacing: 0.12em; margin-bottom: 3px;
}

/* Footer */
.site-footer { background: var(--maroon-deep); color: #f0dade; padding: 48px 0; border-top: 4px solid var(--maroon-bright); }
.footer-logo { height: 60px; width: auto; margin-bottom: 12px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-meta { text-align: right; }
.muted { color: #dcb9bf; font-size: 0.92rem; }

/* Map */
.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* WhatsApp CTA */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(18, 140, 76, 0.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px rgba(18, 140, 76, 0.55); }
.wa-float svg { width: 24px; height: 24px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Responsive */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero-content { padding-top: 90px; }
}
