/* ==========================================================================
   Rumah Khitan Mustopa — Stylesheet
   Brand: friendly, modern, kid-friendly medical clinic
   ========================================================================== */

:root {
  --brand: #0a8f3c;          /* green (dari logo) */
  --brand-dark: #00642f;
  --brand-light: #e7f5ec;
  --blue: #0090d8;           /* biru jubah maskot */
  --accent: #f06000;         /* oranye (dari logo) */
  --accent-dark: #c24a00;
  --ink: #16271c;
  --muted: #5a6b6b;
  --bg: #ffffff;
  --bg-soft: #f5fafa;
  --line: #e2eaea;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 107, 107, 0.10);
  --shadow-sm: 0 3px 12px rgba(15, 107, 107, 0.08);
  --max: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-brand { background: var(--brand-light); }

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 10px;
}

.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1db954; color: #fff; }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-light) url('/assets/img/mascot.svg') center/30px auto no-repeat;
  color: transparent; font-size: 0; flex: none;
}
.brand-logo { height: 48px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 42px; } }
.brand small { display: block; font-size: .72rem; color: var(--accent-dark); font-weight: 700; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.nav-links a:hover { background: var(--brand-light); text-decoration: none; }
.nav-links a.active { color: var(--brand-dark); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand-light) 0%, #fff 70%);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--brand-dark); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; font-weight: 600; color: var(--brand-dark);
  display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--line);
}
.hero-card h3 { margin-bottom: 14px; }
.rating { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.stars { color: #ffb400; letter-spacing: 2px; font-size: 1.2rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Price cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .04em;
}
.price h3 { color: var(--brand-dark); }
.price .amount { font-size: 2rem; font-weight: 900; color: var(--ink); margin: 8px 0 4px; }
.price .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; margin: 18px 0 24px; }
.price li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--line); }
.price li:before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.price .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary:after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Location cards ---------- */
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.loc-card h3 { color: var(--brand-dark); margin-bottom: 6px; }
.loc-card .addr { color: var(--muted); margin-bottom: 14px; }
.loc-meta { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.loc-meta strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem;
}
.step .num:before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--brand-dark); }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; color: var(--ink); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.article-meta { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

.article-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s; }
.article-card:hover { transform: translateY(-3px); }
.article-card .body { padding: 22px; }
.article-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.article-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd8d8; padding: 56px 0 24px; }
.site-footer a { color: #cdd8d8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .88rem; color: #97a7a7; text-align: center; }
.footer-brand p { color: #97a7a7; font-size: .95rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: var(--wa); color: #fff; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.5);
  font-size: 1.8rem; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; color: #fff; }

/* ---------- Consultation form ---------- */
.consult {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
}
.consult h3 { margin-bottom: 6px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; background: var(--bg-soft); color: var(--ink);
}
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* ---------- Mascot ---------- */
.mascot { max-width: 280px; margin: 0 auto; }
.hero-card .mascot { max-width: 200px; margin: 0 auto 10px; }

/* ---------- Service segmentation cards ---------- */
.svc { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); transition:transform .15s, box-shadow .15s; display:flex; flex-direction:column; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc .icon { width:56px; height:56px; border-radius:14px; background:var(--brand-light); display:grid; place-items:center; font-size:1.7rem; margin-bottom:14px; }
.svc h3 { margin-bottom:8px; }
.svc p { color:var(--muted); margin-bottom:16px; }
.svc .svc-link { margin-top:auto; font-weight:700; color:var(--brand-dark); }

/* ---------- Area chips ---------- */
.chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:20px; }
.chip { background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-size:.92rem; font-weight:600; color:var(--brand-dark); box-shadow:var(--shadow-sm); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.text-muted { color: var(--muted); }

/* ---------- Responsive ---------- */
/* Tablet & below (incl. iPad portrait): hamburger nav + 2-col grids */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .price-grid, .article-list { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: block; padding: 6px 10px; line-height: 1; }
}
/* Phones: single column */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid-3, .price-grid, .article-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .price .btn { width: 100%; justify-content: center; }
}
