/* =========================================================
   dr. Antonius Darmawan, Sp.OG — Portfolio Stylesheet
   Mobile-first, no framework
   ========================================================= */

:root {
  --c-bg: #f6fbfb;
  --c-surface: #ffffff;
  --c-ink: #0f172a;
  --c-ink-2: #475569;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-primary: #0d9488;
  --c-primary-700: #0f766e;
  --c-primary-50: #ecfdf5;
  --c-accent: #f0abfc;
  --c-warn: #f59e0b;
  --grad-1: linear-gradient(135deg, #14b8a6 0%, #0d9488 60%, #115e59 100%);
  --grad-soft: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(13, 148, 136, 0.15);
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1120px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-primary-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-1);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand__text em { font-style: normal; font-size: 11.5px; color: var(--c-primary-700); font-weight: 600; letter-spacing: .04em; }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--c-ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
}
.topbar__cta:hover { background: var(--c-primary-700); color: white; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 56px;
  background: var(--grad-soft);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(125, 211, 252, 0.16), transparent 60%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.18);
}
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  color: var(--c-ink);
}
.grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  color: var(--c-ink-2);
  font-size: 15.5px;
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero__lead strong { color: var(--c-ink); font-weight: 600; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-1);
  color: white;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(13, 148, 136, 0.35); color: white; }
.btn--ghost {
  background: white;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-700); }
.btn--block { width: 100%; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__stats li {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 12px 12px;
  text-align: center;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-primary-700);
}
.hero__stats span {
  font-size: 11.5px;
  color: var(--c-muted);
  line-height: 1.3;
}

.hero__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.portrait__caption {
  text-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portrait__caption strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.portrait__caption span {
  font-size: 13px;
  color: var(--c-primary-700);
  font-weight: 600;
  letter-spacing: .02em;
}
.portrait {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: white;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.portrait__pulse {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: #ef4444;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
  border: 4px solid var(--c-bg);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== Section base ===== */
.section { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary-700);
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.section__sub {
  color: var(--c-ink-2);
  font-size: 15px;
  margin: 0;
}

/* ===== About grid ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.about__card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.about__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(13, 148, 136, 0.25); }
.about__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.about__card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.about__card p {
  color: var(--c-ink-2);
  font-size: 14.5px;
  margin: 0;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.service {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(13, 148, 136, 0.25); }
.service__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--c-primary-700);
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.service p {
  color: var(--c-ink-2);
  font-size: 14.5px;
  margin: 0;
}

/* ===== Locations ===== */
.locations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.location {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.location:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.location__media {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.location__media--alt { background: #fdf2f8; color: #be185d; }
.location__media--pharma { background: #ecfeff; color: #0e7490; }
.muted { color: var(--c-muted); font-size: 13px; font-style: italic; }
.location h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
}
.location__addr {
  color: var(--c-ink-2);
  font-size: 14.5px;
  margin: 0 0 14px;
}
.location__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.location__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink-2);
  font-size: 14px;
}
.location__list li svg { color: var(--c-primary-700); flex-shrink: 0; }
.location__list a { color: var(--c-ink-2); }
.location__list a:hover { color: var(--c-primary-700); }

/* ===== Schedule ===== */
.schedule {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}
.schedule__row {
  display: grid;
  grid-template-columns: 220px repeat(7, minmax(80px, 1fr));
  min-width: 820px;
}
.schedule__row + .schedule__row { border-top: 1px solid var(--c-line); }
.schedule__row--head > div {
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfdf5 100%);
  color: var(--c-primary-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 12px 6px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
.schedule__row--head > div.schedule__loc { text-align: left; padding-left: 16px; }
.schedule__row:not(.schedule__row--head) > div {
  padding: 12px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  min-height: 64px;
}
.schedule__row:not(.schedule__row--head) > div + div { border-left: 1px dashed var(--c-line); }
.schedule__row:not(.schedule__row--head) > div .time { font-weight: 600; color: var(--c-ink); font-size: 12.5px; line-height: 1.3; }
.schedule__row:not(.schedule__row--head) > div.off { background: #fafafa; }
.schedule__row:not(.schedule__row--head) > div.off .time { color: var(--c-muted); }
.schedule__row:not(.schedule__row--head) > div.byappt .time { color: var(--c-primary-700); font-style: italic; font-weight: 600; }

.schedule__loc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fbfdfe;
  border-right: 1px solid var(--c-line);
  position: sticky;
  left: 0;
  z-index: 1;
}
.schedule__loc > div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.schedule__loc strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--c-ink); }
.schedule__loc em { font-style: normal; font-size: 11.5px; color: var(--c-muted); margin-top: 2px; }
.loc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px var(--c-line);
}
.loc-dot--rs { background: #14b8a6; box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px rgba(20,184,166,.3); }
.loc-dot--apotek { background: #06b6d4; box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px rgba(6,182,212,.3); }
.loc-dot--klinik { background: #ec4899; box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px rgba(236,72,153,.3); }

.schedule__row:not(.schedule__row--head) > div.today {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.10) 0%, rgba(20, 184, 166, 0.04) 100%);
  position: relative;
}
.schedule__row:not(.schedule__row--head) > div.today::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-primary);
  border-radius: 0 0 3px 3px;
}

.schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 4px 0;
  font-size: 12.5px;
  color: var(--c-ink-2);
}
.schedule__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.schedule__legend-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c-primary);
  display: inline-block;
}
.schedule__legend-item .dot--now { background: var(--c-primary); }

.schedule__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 13px;
  margin: 14px 4px 0;
  line-height: 1.5;
}
.schedule__note svg { color: var(--c-primary-700); flex-shrink: 0; }

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--c-ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.contact:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(13, 148, 136, 0.3); color: var(--c-ink); }
.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: white;
  flex-shrink: 0;
}
.contact__icon--alt { background: var(--c-primary-50); color: var(--c-primary-700); }
.contact__icon--ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.contact div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.contact span:not(.contact__arrow) {
  font-size: 13.5px;
  color: var(--c-ink-2);
  word-break: break-word;
}
.contact__arrow {
  color: var(--c-muted);
  font-size: 18px;
  flex-shrink: 0;
}
.contact:hover .contact__arrow { color: var(--c-primary-700); }

/* ===== Footer ===== */
.footer {
  background: #0b1f24;
  color: #cbd5e1;
  padding: 40px 0 32px;
  margin-top: 24px;
}
.footer__inner { display: grid; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .brand__mark { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.footer__brand strong { color: white; font-family: var(--font-display); display: block; font-size: 15px; }
.footer__brand span { font-size: 13px; color: #94a3b8; }
.footer__note { font-size: 13px; color: #94a3b8; margin: 0; line-height: 1.6; }
.footer__copy { font-size: 12px; color: #64748b; margin: 0; border-top: 1px solid rgba(148, 163, 184, 0.18); padding-top: 16px; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.06); color: white; }
.fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Breakpoints ===== */
@media (min-width: 560px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .hero { padding: 48px 0 80px; }
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
  .hero__portrait { justify-content: flex-end; }
  .portrait { max-width: 340px; }
  .about__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .locations__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 48px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__note { grid-column: 1; }
  .footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .hero__title { font-size: 52px; }
  .hero__lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
