/* =========================
   BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1f4fbf;
  --primary-dark: #123081;
  --accent: #f59e0b;
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.18);
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   LAYOUT HELPERS
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* =========================
   TOP BAR
   ========================= */
.top-bar {
  background: #0b1220;
  color: var(--white);
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  margin-right: 1.2rem;
}

.top-bar i {
  margin-right: 0.25rem;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-dark);
}

.logo i {
  font-size: 2rem;
  margin-right: 0.6rem;
  color: var(--primary);
}

.logo h2 {
  font-size: 1.3rem;
  margin-bottom: -0.2rem;
}

.logo p {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary-dark);
}

.btn-appointment {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

/* =========================
   HERO (HOME)
   ========================= */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 45%, #e5e7eb 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(37, 99, 235, 0.15), transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(15, 23, 42, 0.35), transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(15, 23, 42, 0.25);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--white);
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.hero-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card li {
  margin-bottom: 0.4rem;
}

/* =========================
   CARDS / GENERIC
   ========================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul {
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   PAGE LAYOUT (inner pages)
   ========================= */
.page {
  padding: 4.5rem 0 3.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: left;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background: #020617;
  color: #e5e7eb;
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr 1.2fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
}

.footer h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer p,
.footer a {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 0.8rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

.service-img {
  width: 100%;
  height: 170px;          /* adjust as you like */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* card and button hover polish */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

/* subtle floating hero card */
.hero-card {
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}



/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-side {
    justify-content: flex-start;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 700px) {
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    padding-top: 4rem;
  }
  .hero-text h1 {
    font-size: 1.9rem;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
