@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --primary: #0f4c81;
  --secondary: #0b2e4d;
  --accent: #27ae60;
  --accent2: #1a8a4a;
  --bg: #f4f7fb;
  --bg2: #eef2f9;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gold: #c9a96e;
  --shadow: 0 4px 24px rgba(15,76,129,0.10);
  --shadow-hover: 0 12px 40px rgba(15,76,129,0.18);
  --radius: 14px;
  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary);
  padding: 0 5%;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  flex-wrap: wrap;
}

.logo {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo span {
  color: var(--accent);
  display: block;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.cta-button {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px rgba(39,174,96,0.25);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.cta-button:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(39,174,96,0.35) !important;
}

/* ── HERO ── */
.hero {
  height: 62vh;
  min-height: 400px;
  background:
    linear-gradient(135deg, rgba(11,46,77,0.82) 0%, rgba(15,76,129,0.65) 100%),
    url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1400&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero > div {
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.9s ease both;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CONTAINER ── */
.container {
  max-width: 1180px;
  margin: auto;
  padding: 70px 5%;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ── CARD ── */
.card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(15,76,129,0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.card h4 {
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 8px;
}

/* ── SERVICE CARDS ── */
.service-card {
  border-bottom: 3px solid var(--primary);
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  padding: 24px 20px;
  letter-spacing: 0.01em;
}

/* ── MAP ── */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(15,76,129,0.08);
}

/* ── SECTION HEADING ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ── FORM ELEMENTS ── */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1.5px solid #dde3ee;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
  background: var(--white);
}

button[type="submit"], button {
  margin-top: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(15,76,129,0.2);
}

button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(15,76,129,0.3);
}

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,46,77,0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color var(--transition);
}

.close-btn:hover {
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 36px;
  margin-top: 60px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

footer strong {
  color: var(--accent);
}

/* ── HR ── */
hr {
  border: none;
  border-top: 1px solid #e8edf5;
}

/* ── DOCTOR PAGE ── */
.doctor-badge {
  display: inline-block;
  background: var(--bg2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav {
    height: auto;
    padding: 14px 5%;
    gap: 10px;
  }

  .nav-links {
    gap: 4px;
  }

  .hero {
    height: 55vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 50px 5%;
  }

  .card {
    padding: 24px;
  }
}
