:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f1f5f9;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  color: #1f2937;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* TOP BAR */
.topbar {
  background: var(--dark);
  color: #cbd5f5;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

/* NAV */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
nav a {
  margin-right: 20px;
  text-decoration: none;
  color: #374151;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 42px;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}
.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
}
.full {
  width: 100%;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: url("./ardram-bg.png") center/cover no-repeat;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.65);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 80px 0;
  color: white;
}
.hero h1 span {
  color: #93c5fd;
}
.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.hero-stats {
  display: grid;
  gap: 20px;
}

/* STAT CARDS */
.stat-card {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: .3s;
}
.stat-card:hover {
  transform: translateY(-8px);
}
.emergency {
  border: 2px solid #ef4444;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}
.light {
  background: var(--light);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* DOCTORS */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: auto;
}
.doctor-card {
  background: rgba(255,255,255,0.12);
  padding: 14px;
  border-radius: 14px;
}

/* APPOINTMENT */
.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: #cbd5f5;
  text-align: center;
  padding: 25px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 320px;
}

/* ✅ MOBILE FIX */
@media (max-width: 768px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions button,
  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .appointment-grid {
    grid-template-columns: 1fr;
  }
}
