/* Klinik Shinshe Karawang — lightweight landing */

:root {
  --jade-950: #0a2f26;
  --jade-900: #0f4c3a;
  --jade-700: #1a6b4f;
  --jade-100: #e8f2ed;
  --stone-50: #f5f7f4;
  --stone-100: #e9eee8;
  --stone-600: #5a655e;
  --stone-800: #24302b;
  --brass: #b8954f;
  --brass-soft: #d4bc7a;
  --wa: #1faa55;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 76, 58, 0.12);
  --radius: 14px;
  --header-h: 72px;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --hero-bg: #dce6ef;
  --hero-ink: #1e2a44;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stone-800);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 107, 79, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(184, 149, 79, 0.08), transparent 55%),
    var(--stone-50);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--jade-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--jade-900);
}

h1,
h2,
h3,
.hero-brand,
.brand-name,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--jade-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 244, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(15, 76, 58, 0.1);
  box-shadow: 0 8px 24px rgba(15, 76, 58, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.15rem;
  color: var(--jade-950);
}

.brand-place {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--stone-800);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--jade-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--jade-900);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--jade-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--jade-700);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--jade-900);
  border-color: rgba(15, 76, 58, 0.28);
}

.btn-outline:hover {
  border-color: var(--jade-900);
  color: var(--jade-900);
}

.btn-whatsapp {
  background: var(--wa);
  color: var(--white) !important;
}

.btn-whatsapp:hover {
  filter: brightness(1.05);
  color: var(--white) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: center;
  color: var(--hero-ink);
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-logo-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-logo-bg img {
  width: min(62vw, 560px);
  height: auto;
  opacity: 0.22;
  transform: scale(0.96);
  animation: hero-logo-in 1.1s var(--ease) forwards;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 820px;
  margin-left: max(1rem, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: min(820px, calc(100% - 2rem));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hero-ink);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  max-width: 36ch;
  color: #5a6578;
}

.hero-audio {
  margin: 0 0 1.5rem;
}

.hero-audio audio {
  width: min(100%, 360px);
  height: 40px;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes hero-logo-in {
  to {
    opacity: 0.28;
    transform: scale(1);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--jade-950);
}

.section-head p,
.about-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--stone-600);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.promise-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.promise-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--brass);
}

.promise-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--jade-900);
}

.promise-list span {
  color: var(--stone-600);
  font-size: 0.95rem;
}

.about-media {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--jade-950);
}

.about-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.65rem;
  border: 0;
  padding: 1rem;
  background: rgba(10, 47, 38, 0.28);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.video-play:hover,
.video-play:focus-visible {
  background: rgba(10, 47, 38, 0.4);
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--jade-900);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}

.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon {
  transform: scale(1.06);
}

.video-play-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.about-media.is-playing .video-play {
  display: none;
}

/* Treatments */
.treatments {
  background:
    linear-gradient(180deg, rgba(232, 242, 237, 0.7), rgba(232, 242, 237, 0.35));
}

.treatment-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.treatment-grid li {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 76, 58, 0.08);
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--jade-950);
}

.treatment-note {
  margin: 1.75rem 0 0;
  color: var(--stone-600);
}

/* Local SEO block */
.seo-local {
  padding-top: 0;
}

.seo-local-inner {
  max-width: 820px;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 76, 58, 0.1);
}

.seo-local-inner h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--jade-950);
}

.seo-local-inner p {
  margin: 0 0 0.85rem;
  color: var(--stone-600);
}

.seo-local-points {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--stone-800);
}

.seo-local-points li {
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, rgba(232, 242, 237, 0.55), transparent);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid rgba(15, 76, 58, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 1rem 0.35rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--jade-950);
  padding: 0.9rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brass);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--stone-600);
  padding-right: 1.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: var(--stone-100);
}

.gallery-item[hidden] {
  display: none !important;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.gallery-actions .btn {
  min-width: min(100%, 280px);
}

/* Doctors */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.doctor {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 76, 58, 0.08);
}

.doctor img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--jade-100);
}

.doctor h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--jade-950);
}

.doctor p {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.92rem;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, transparent, rgba(15, 76, 58, 0.05));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-list {
  margin: 1.75rem 0;
  padding: 0;
  font-style: normal;
  display: grid;
  gap: 1rem;
}

.contact-list a {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(15, 76, 58, 0.1);
}

.contact-list a:last-child {
  border-bottom: 1px solid rgba(15, 76, 58, 0.1);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-wrap {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone-100);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--jade-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.footer-brand {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: 1.2rem;
}

.footer-note,
.copyright {
  margin: 0;
  font-size: 0.88rem;
}

/* WhatsApp FAB */
.fab-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(31, 170, 85, 0.35);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.fab-wa:hover {
  transform: translateY(-3px) scale(1.04);
  color: var(--white);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  max-width: min(960px, 94vw);
  background: transparent;
  position: fixed;
  margin: auto;
}

.lightbox::backdrop {
  background: rgba(10, 47, 38, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  border-radius: 999px;
}

.lightbox-close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.lightbox-prev {
  left: -0.35rem;
}

.lightbox-next {
  right: -0.35rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-counter {
  margin: 0.75rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

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

  .reveal,
  .hero-logo-bg img,
  .gallery-item img,
  .btn,
  .fab-wa {
    animation: none !important;
    transition: none !important;
  }

  .hero-logo-bg img {
    opacity: 0.28;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .treatment-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-media {
    order: -1;
    max-width: 480px;
  }

  .map-wrap {
    min-height: 320px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(245, 247, 244, 0.97);
    border-bottom: 1px solid rgba(15, 76, 58, 0.1);
    box-shadow: 0 16px 30px rgba(15, 76, 58, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(15, 76, 58, 0.08);
  }

  .nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-logo-bg img {
    width: min(88vw, 420px);
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .treatment-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .fab-wa {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}
