/* ============================================================
   NOVA MEDICAL — Premium Design System
   ============================================================ */

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

/* ─── Variables ─── */
:root {
  --primary:       #0A5C8C;
  --primary-light: #1A82C4;
  --primary-dark:  #073F63;
  --accent:        #00B4D8;
  --accent-soft:   #90E0EF;
  --gold:          #C9A84C;
  --white:         #FFFFFF;
  --off-white:     #F7F9FC;
  --gray-100:      #EEF2F7;
  --gray-200:      #D9E4EF;
  --gray-400:      #9EB3C8;
  --gray-600:      #577A95;
  --gray-800:      #1E3A4F;
  --text:          #1A2B3C;
  --text-light:    #4A6580;
  --shadow-sm:     0 2px 12px rgba(10,92,140,.08);
  --shadow-md:     0 8px 30px rgba(10,92,140,.12);
  --shadow-lg:     0 20px 60px rgba(10,92,140,.18);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --transition:    all .35s cubic-bezier(.25,.8,.25,1);
  --nav-height:    76px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Utility ─── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }

/* Eyebrow tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Section headings */
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--gray-800);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 580px;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  border: none; transition: var(--transition);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12); opacity: 0;
  transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(10,92,140,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(10,92,140,.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 10px 22px; font-size: .875rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* Arrow icon in button */
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Navigation ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(10,92,140,.10);
}
#navbar.nav-dark {
  background: transparent;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-size: 1.1rem; font-weight: 700; color: var(--gray-800);
  line-height: 1.1;
}
.nav-logo-tagline {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 600;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--gray-600); transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: left .3s, right .3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { left: 14px; right: 14px; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
#navbar.nav-dark .nav-links a { color: rgba(255,255,255,.85); }
#navbar.nav-dark .nav-logo-name { color: white; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 500; color: var(--gray-600);
}
.nav-phone i { color: var(--accent); }
#navbar.nav-dark .nav-phone { color: rgba(255,255,255,.8); }

.nav-hamburger {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-800); border-radius: 2px;
  transition: var(--transition);
}
#navbar.nav-dark .nav-hamburger span { background: white; }

/* Mobile nav */
.nav-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--white); flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.77,0,.175,1);
}
.nav-mobile-menu.open { transform: translateX(0); }
.nav-mobile-menu a {
  font-size: 1.4rem; font-weight: 600; color: var(--text);
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  transition: color .3s;
}
.nav-mobile-menu a:hover { color: var(--primary); }
.nav-mobile-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ─── Hero (shared backdrop) ─── */
.page-hero {
  min-height: 380px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex; align-items: flex-end; padding-bottom: 70px;
  padding-top: calc(var(--nav-height) + 60px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.page-hero-content { position: relative; }
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white; margin-bottom: 12px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .3s; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ─── Cards ─── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ─── Doctor Cards ─── */
.doctor-card { text-align: center; }
.doctor-card-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block;
}
.doctor-card-body { padding: 24px 20px; }
.doctor-card-specialty {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: 6px;
}
.doctor-card-name {
  font-size: 1.1rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: 4px;
}
.doctor-card-exp { font-size: .875rem; color: var(--text-light); margin-bottom: 16px; }

/* ─── Service Cards ─── */
.service-card { padding: 36px 28px; }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(26,130,196,.12), rgba(0,180,216,.12));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary); margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: white; transform: scale(1.08);
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-800); }
.service-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.service-link {
  font-size: .875rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .3s;
}
.service-card:hover .service-link { gap: 10px; }

/* ─── Stat Boxes ─── */
.stat-box { text-align: center; padding: 32px 20px; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem; font-weight: 400;
  color: var(--primary); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .875rem; color: var(--text-light); font-weight: 500; }

/* ─── Testimonials ─── */
.testimonial-card { padding: 32px 28px; }
.stars { color: var(--gold); margin-bottom: 16px; font-size: .9rem; }
.testimonial-card p { font-size: .95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--gray-800); }
.author-tag  { font-size: .78rem; color: var(--text-light); }

/* ─── Section Backgrounds ─── */
.bg-off-white { background: var(--off-white); }
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.bg-subtle-pattern {
  background-color: var(--off-white);
  background-image: radial-gradient(circle at 1px 1px, var(--gray-200) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--gray-800); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); background: var(--white);
  font-size: .95rem; font-family: inherit; color: var(--text);
  transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,180,216,.1);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239EB3C8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Footer ─── */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 60px;
}
.footer-brand p { font-size: .9rem; line-height: 1.8; margin-top: 16px; }
.footer-logo-name { font-size: 1.2rem; font-weight: 700; color: white; }
.footer-logo-tagline { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.footer-heading {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: white; margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; transition: color .3s; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; margin-bottom: 12px;
}
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0; text-align: center;
  font-size: .83rem; color: rgba(255,255,255,.4);
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .3s, box-shadow .3s;
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,.6);
  animation: none;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,0); }
}

/* ─── Animations ─── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
[data-delay="1"] { transition-delay: .1s !important; }
[data-delay="2"] { transition-delay: .2s !important; }
[data-delay="3"] { transition-delay: .3s !important; }
[data-delay="4"] { transition-delay: .4s !important; }
[data-delay="5"] { transition-delay: .5s !important; }
[data-delay="6"] { transition-delay: .6s !important; }

/* ─── Dividers ─── */
.divider-fancy {
  display: flex; align-items: center; gap: 16px;
  color: var(--gray-400); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.divider-fancy::before, .divider-fancy::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* ─── Badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px; font-size: .78rem;
  font-weight: 600;
}
.badge-primary { background: rgba(10,92,140,.1); color: var(--primary); }
.badge-accent  { background: rgba(0,180,216,.1);  color: var(--accent); }
.badge-gold    { background: rgba(201,168,76,.12); color: var(--gold); }

/* ─── Map placeholder ─── */
.map-placeholder {
  width: 100%; height: 320px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--gray-600);
  border: 2px dashed var(--gray-200);
}
.map-placeholder i { font-size: 2.5rem; color: var(--accent); }
.map-placeholder p { font-size: .9rem; }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 28px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section-pad { padding: 70px 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 16px 32px; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
