/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #1E88E5;
  --primary-dark:   #1565C0;
  --primary-soft:   #E3F2FD;
  --primary-light:  #64B5F6;
  --secondary:      #10B981;
  --secondary-soft: #D1FAE5;
  --bg:             #FFFFFF;
  --surface:        #F8FAFC;
  --surface-2:      #F1F5F9;
  --text:           #0F172A;
  --text-muted:     #64748B;
  --border:         #E2E8F0;
  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:         0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg:      0 16px 48px rgba(15, 23, 42, 0.10);
  --radius:         14px;
  --radius-lg:      20px;
  --container:      1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 136, 229, 0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.40);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, padding 0.25s, background 0.25s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.25s;
}
.navbar.scrolled .nav-inner { padding: 10px 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(30, 136, 229, 0.35);
}
.brand-text { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-size: 1.05rem; color: var(--text); }
.brand-text strong { font-weight: 800; color: var(--primary); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1rem; color: var(--text); font-weight: 500; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg-blob {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle at 30% 30%, rgba(30, 136, 229, 0.10), transparent 65%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.hero-text h1 { margin-bottom: 18px; }
.hero-text p {
  font-size: 1.06rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item i {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Hero visual */
.hero-visual { position: relative; }
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: floatY 5s ease-in-out infinite;
}
.floating-card i { color: var(--secondary); font-size: 1.5rem; }
.floating-card strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.floating-card span { display: block; font-size: 0.76rem; color: var(--text-muted); }

.card-1 { top: 30px; left: -30px; animation-delay: 0s; }
.card-2 { bottom: 60px; right: -20px; animation-delay: -2s; }

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

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 1.04rem; }

/* ── SERVICES ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: background 0.25s, color 0.25s;
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; line-height: 1.6; }

/* ── DOCTORS ────────────────────────────────────────────── */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.doctor-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.doctor-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.doctor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }

.doctor-info { padding: 18px 20px 22px; }
.doctor-info h3 { margin-bottom: 4px; }
.doctor-spec {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.doctor-exp {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { margin: 12px 0 18px; }
.about-text p { font-size: 1.02rem; margin-bottom: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.info-icon {
  width: 42px; height: 42px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.info-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0F172A;
  color: #cbd5e1;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text strong { color: var(--primary-light); }
.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 320px;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5, .footer-social h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.social-row a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

/* ── DEMO BADGE ─────────────────────────────────────────── */
.demo-badge {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--primary-soft);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 10px 32px rgba(30, 136, 229, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.demo-badge:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 38px rgba(30, 136, 229, 0.32);
}
.demo-badge .badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}
.demo-badge strong { color: var(--primary); font-weight: 700; }
.demo-badge i { font-size: 0.8rem; color: var(--primary); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-trust { border-top: 1px solid var(--border); padding-top: 22px; }
  .hero-image-wrap { max-width: 460px; margin: 0 auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links, .navbar > .nav-inner > .btn { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 60px 0 80px; }
  .floating-card { padding: 10px 14px; }
  .floating-card i { font-size: 1.2rem; }
  .floating-card strong { font-size: 0.82rem; }
  .floating-card span { font-size: 0.7rem; }
  .card-1 { left: -10px; top: 16px; }
  .card-2 { right: -10px; bottom: 30px; }

  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-num { font-size: 1.4rem; }
  .stat-lbl { font-size: 0.72rem; }

  .demo-badge { bottom: 14px; right: 14px; padding: 8px 12px; font-size: 0.72rem; }
  .demo-badge .badge-text { display: none; }
  .demo-badge::after {
    content: 'PabionTech';
    color: var(--primary);
    font-weight: 700;
  }
}
