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

    :root {
      --red:       #d12b2b;
      --red-dark:  #a81f1f;
      --red-soft:  #fff0f0;
      --red-mid:   #f9d4d4;
      --charcoal:  #1c1c1e;
      --slate:     #3d3d3f;
      --muted:     #6e6e73;
      --border:    #e5e5ea;
      --bg:        #f9f9fb;
      --white:     #ffffff;
      --radius:    16px;
      --radius-sm: 10px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background: var(--white);
      color: var(--charcoal);
      overflow-x: hidden;
    }

    /* ══════════════════════════════
       NAVBAR
    ══════════════════════════════ */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 60px;
      height: 68px;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      transition: box-shadow 0.3s;
    }

    .navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-brand img { width: 36px; }

    .nav-brand-text {
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.3px;
      color: var(--charcoal);
    }

    .nav-brand-text span { color: var(--red); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--charcoal); }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn-login {
      padding: 9px 22px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
      border: 1.5px solid var(--border);
      background: transparent;
      color: var(--charcoal);
    }

    .btn-login:hover { border-color: var(--red); color: var(--red); }

    .btn-reservasi {
      padding: 9px 22px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      background: var(--red);
      color: #fff;
    }

    .btn-reservasi:hover { background: var(--red-dark); }

    /* ══════════════════════════════
       HERO
    ══════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 100px 60px 80px;
      position: relative;
      overflow: hidden;
      background: var(--white);
    }

    /* Decorative background blob */
    .hero::before {
      content: '';
      position: absolute;
      top: -120px; right: -120px;
      width: 600px; height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(209,43,43,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero::after {
      content: '';
      position: absolute;
      bottom: -80px; left: -80px;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(209,43,43,0.05) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-inner {
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--red-soft);
      color: var(--red);
      font-size: 12.5px;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding: 6px 14px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

    .hero-eyebrow-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--red);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }

    .hero-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(40px, 5vw, 60px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -1px;
      color: var(--charcoal);
      margin-bottom: 20px;
    }

    .hero-title em {
      font-style: italic;
      color: var(--red);
    }

    .hero-desc {
      font-size: 16px;
      color: var(--muted);
      line-height: 1.75;
      max-width: 480px;
      margin-bottom: 36px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      align-items: center;
      margin-bottom: 48px;
    }

    .hero-btn-primary {
      padding: 14px 32px;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 20px rgba(209,43,43,0.35);
    }

    .hero-btn-primary:hover {
      background: var(--red-dark);
      transform: translateY(-1px);
      box-shadow: 0 6px 28px rgba(209,43,43,0.4);
    }

    .hero-btn-secondary {
      padding: 14px 28px;
      background: transparent;
      color: var(--charcoal);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
    }

    .hero-btn-secondary:hover { border-color: var(--red); color: var(--red); }

    .hero-stats {
      display: flex;
      gap: 32px;
    }

    .hero-stat-num {
      font-family: 'Fraunces', serif;
      font-size: 28px;
      font-weight: 700;
      color: var(--charcoal);
      line-height: 1;
    }

    .hero-stat-label {
      font-size: 12px;
      color: var(--muted);
      margin-top: 4px;
    }

    .hero-stat-divider {
      width: 1px;
      background: var(--border);
      align-self: stretch;
    }

    /* Hero visual */
    .hero-visual {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-img-wrap {
      width: 100%;
      max-width: 500px;

      
    }

    .hero-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Floating badge cards */
    .float-card {
      position: absolute;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: float 4s ease-in-out infinite;
    }

    .float-card-left {
      left: -32px;
      bottom: 100px;
      animation-delay: 0s;
    }

    .float-card-right {
      right: -32px;
      top: 100px;
      animation-delay: 2s;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .float-icon {
      width: 36px; height: 36px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }

    .float-icon.red { background: var(--red-soft); }
    .float-icon.green { background: #e8f5e9; }

    .float-label {
      font-size: 11px;
      color: var(--muted);
    }

    .float-value {
      font-size: 14px;
      font-weight: 700;
      color: var(--charcoal);
    }

    /* ══════════════════════════════
       SECTION COMMONS
    ══════════════════════════════ */
    .section {
      padding: 90px 60px;
    }

    .section-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-eyebrow {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 10px;
    }

    .section-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 700;
      letter-spacing: -1px;
      color: var(--charcoal);
      margin-bottom: 14px;
      line-height: 1.15;
    }

    .section-sub {
      font-size: 16px;
      color: var(--muted);
      line-height: 1.7;
      max-width: 520px;
    }

    .section-header {
      margin-bottom: 48px;
    }

    /* ══════════════════════════════
       LAYANAN
    ══════════════════════════════ */
    #layanan { background: var(--bg); }

    .layanan-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .layanan-card {
        background: var(--white);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        padding: 28px 24px;        /* ← ganti dari 120px 50px */
        min-height: 220px;         /* ← tambah ini */
        transition: all 0.25s;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
}

    .layanan-card::before {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 3px;
      background: var(--red);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s;
    }

    .layanan-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
      border-color: transparent;
    }

    .layanan-card:hover::before { transform: scaleX(1); }

    .layanan-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      background: var(--red-soft);
      display: flex; align-items: center; justify-content: center;
      font-size: 26px;
      margin-bottom: 18px;
    }

    .layanan-name {
      font-size: 20px;
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 8px;
    }

    .layanan-desc {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 16px;
      flex: 1;  /* supaya desc mengisi ruang tengah */
    }

    .layanan-tag {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--red);
      margin-top: auto;
      
    }

    /* ══════════════════════════════
       DOKTER
    ══════════════════════════════ */
    #dokter { background: var(--white); }

    .dokter-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .dokter-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: all 0.25s;
    }

    .dokter-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    }

    .dokter-img {
      width: 100%;
      aspect-ratio: 3/2;
      background: linear-gradient(135deg, #ffecec 0%, #ffd5d5 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 64px;
      position: relative;
      overflow: hidden;
    }

    /* foto dokter */
    .dokter-img img.foto {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      position: absolute;
      inset: 0;
      transition: transform 0.35s ease;
    }

    .dokter-card:hover .dokter-img img.foto { transform: scale(1.04); }

    /* fallback emoji tetap tampil di bawah kalau foto ada */
    .dokter-img .fallback { position: relative; z-index: 0; }

    .dokter-badge {
      position: absolute;
      top: 14px; right: 14px;
      background: var(--red);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 20px;
    }

    .dokter-info {
      padding: 20px 22px;
    }

    .dokter-spec {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--red);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }

    .dokter-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 6px;
    }

    .dokter-jadwal {
      font-size: 13px;
      color: var(--muted);
    }

    /* ══════════════════════════════
       STATS BAND
    ══════════════════════════════ */
    .stats-band {
      background: var(--charcoal);
      padding: 64px 60px;
    }

    .stats-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      text-align: center;
    }

    .stat-num {
      font-family: 'Fraunces', serif;
      font-size: 48px;
      font-weight: 700;
      color: var(--red);
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-label {
      font-size: 14px;
      color: rgba(255,255,255,0.6);
    }

    /* ══════════════════════════════
       RESERVASI CTA
    ══════════════════════════════ */
    #reservasi { background: var(--bg); }

    .reservasi-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .reservasi-left .section-sub { margin-bottom: 28px; }

    .reservasi-features {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 36px;
    }

    .res-feature {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      color: var(--slate);
    }

    .res-feature-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--red);
      flex-shrink: 0;
    }

    .reservasi-form-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 36px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    }

    .form-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--charcoal);
      margin-bottom: 24px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group label {
      display: block;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 7px;
      letter-spacing: 0.2px;
    }

    .form-group input,
    .form-group select {
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid var(--border);
      border-radius: 9px;
      font-size: 14px;
      font-family: inherit;
      color: var(--charcoal);
      background: var(--bg);
      outline: none;
      transition: border 0.15s, background 0.15s;
    }

    .form-group input:focus,
    .form-group select:focus {
      border-color: var(--red);
      background: #fff;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .form-submit {
      width: 100%;
      padding: 13px;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 9px;
      font-size: 15px;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      margin-top: 8px;
      transition: background 0.2s;
    }

    .form-submit:hover { background: var(--red-dark); }

    /* ══════════════════════════════
       FOOTER
    ══════════════════════════════ */
    footer {
      background: var(--charcoal);
      color: rgba(255,255,255,0.6);
      padding: 48px 60px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-brand {
      font-family: 'Fraunces', serif;
      font-size: 22px;
      font-weight: 700;
      color: #fff;
    }

    .footer-brand span { color: var(--red); }

    .footer-tagline {
      font-size: 13px;
      margin-top: 6px;
    }

    .footer-links {
      display: flex;
      gap: 32px;
    }

    .footer-links a {
      font-size: 14px;
      color: rgba(255,255,255,0.5);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-links a:hover { color: #fff; }

    .footer-copy {
      font-size: 13px;
      text-align: right;
    }

    /* ══════════════════════════════
       LOGIN MODAL (preserved)
    ══════════════════════════════ */
    .login-wrapper {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 2000;
      align-items: center;
      justify-content: center;
    }

    .login-wrapper.active { display: flex; }

    .overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(6px);
    }

    .modal {
      position: relative;
      z-index: 10;
      background: #fff;
      border-radius: 20px;
      padding: 44px 40px;
      width: 100%;
      max-width: 420px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.25);
      animation: popIn .25s ease;
    }

    @keyframes popIn {
      from { opacity: 0; transform: scale(.93) translateY(16px); }
      to   { opacity: 1; transform: scale(1)  translateY(0); }
    }

    .modal h2 {
      font-family: 'Fraunces', serif;
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 26px;
      color: var(--charcoal);
      text-align: center;
    }

    .modal h2 span { color: var(--red); }

    .modal select,
    .modal input[type="text"],
    .modal input[type="email"],
    .modal input[type="password"] {
      width: 100%;
      padding: 12px 16px;
      margin-bottom: 12px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: .95rem;
      font-family: inherit;
      outline: none;
      transition: border-color .2s;
      background: var(--bg);
      color: var(--charcoal);
    }

    .modal select:focus,
    .modal input:focus { border-color: var(--red); background: #fff; }

    .modal .btn-primary {
      width: 100%;
      padding: 13px;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      transition: background .2s;
      margin-bottom: 10px;
    }

    .modal .btn-primary:hover { background: var(--red-dark); }

    .modal .btn-secondary {
      width: 100%;
      padding: 11px;
      background: transparent;
      color: var(--red);
      border: 1.5px solid var(--red-mid);
      border-radius: 10px;
      font-size: .95rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background .2s;
    }

    .modal .btn-secondary:hover { background: var(--red-soft); }

    .alert {
      padding: 12px 16px;
      border-radius: 8px;
      font-size: .9rem;
      font-weight: 600;
      margin-bottom: 14px;
      display: none;
    }

    .alert.error   { background: #ffe4e4; color: #c0392b; border: 1px solid #f5c6cb; }
    .alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

    .spinner {
      display: inline-block;
      width: 15px; height: 15px;
      border: 2px solid rgba(255,255,255,.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .6s linear infinite;
      vertical-align: middle;
      margin-right: 6px;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .hidden { display: none !important; }

    /* ══════════════════════════════
       SCROLL ANIMATIONS
    ══════════════════════════════ */
    .fade-up {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ══════════════════════════════
       RESPONSIVE
    ══════════════════════════════ */
    @media (max-width: 960px) {
      .navbar { padding: 0 24px; }
      .hero { padding: 100px 24px 60px; }
      .hero-inner { grid-template-columns: 1fr; gap: 40px; }
      .hero-visual { display: none; }
      .info-strip { padding: 20px 24px; }
      .info-strip-inner { flex-wrap: wrap; gap: 16px; }
      .info-strip-divider { display: none; }
      .section { padding: 60px 24px; }
      .layanan-grid { grid-template-columns: 1fr 1fr; }
      .dokter-grid { grid-template-columns: 1fr 1fr; }
      .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
      .stats-band { padding: 48px 24px; }
      .reservasi-inner { grid-template-columns: 1fr; gap: 40px; }
      .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
      .footer-copy { text-align: center; }
    }

    @media (max-width: 600px) {
      .nav-links { display: none; }
      .layanan-grid { grid-template-columns: 1fr; }
      .dokter-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .stats-inner { grid-template-columns: 1fr 1fr; }
    }