/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter', sans-serif;
  color:#1a202c;
  background:#fff;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }
input, select, textarea, button { font-family:inherit; font-size:inherit; outline:none; }
button { cursor:pointer; border:none; }

/* ===== Variables ===== */
:root {
  --primary:#0f766e;
  --primary-dark:#0d5e57;
  --primary-light:#ccfbf1;
  --primary-bg:#f0fdfa;
  --secondary:#1e293b;
  --accent:#d97706;
  --accent-light:#fef3c7;
  --gray-50:#f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-600:#475569;
  --gray-700:#334155;
  --gray-800:#1e293b;
  --gray-900:#0f172a;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl:0 20px 60px rgba(0,0,0,0.15);
  --radius:12px;
  --radius-lg:20px;
  --radius-xl:24px;
  --transition:0.35s cubic-bezier(0.4,0,0.2,1);
  --max-w:1200px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height:1.25; font-weight:700; }

/* ===== Container ===== */
.container { width:100%; max-width:var(--max-w); margin:0 auto; padding:0 24px; }

/* ===== Buttons ===== */
.btn {
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 30px; border-radius:50px;
  font-weight:600; font-size:15px;
  transition:var(--transition);
  letter-spacing:0.2px;
  white-space:nowrap;
}
.btn-sm { padding:10px 22px; font-size:13px; }
.btn-lg { padding:18px 38px; font-size:17px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); box-shadow:0 8px 28px rgba(15,118,110,0.3); transform:translateY(-2px); }
.btn-outline { border:2px solid var(--primary); color:var(--primary); background:transparent; }
.btn-outline:hover { background:var(--primary); color:#fff; transform:translateY(-2px); }
.btn-white { background:#fff; color:var(--primary); }
.btn-white:hover { background:var(--gray-50); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-outline-white { border:2px solid rgba(255,255,255,0.4); color:#fff; background:transparent; }
.btn-outline-white:hover { border-color:#fff; background:rgba(255,255,255,0.1); transform:translateY(-2px); }
.btn-block { width:100%; justify-content:center; }
.btn:active { transform:scale(0.97) !important; }
.add-to-cart-btn { width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; font-size:15px; display:inline-flex; align-items:center; justify-content:center; border:none; cursor:pointer; transition:var(--transition); flex-shrink:0; }
.add-to-cart-btn:hover { background:var(--primary-dark); transform:scale(1.1); }
.cart-badge { background:var(--accent); color:#fff; font-size:11px; font-weight:700; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; position:relative; top:-10px; left:-4px; }

/* ===== Section ===== */
.section { padding:100px 0; }
.section-gray { background:var(--gray-50); }
.section-green { background:var(--primary); }
.section-dark { background:var(--gray-900); }
.section-header {
  text-align:center;
  max-width:700px;
  margin:0 auto 56px;
}
.section-tag {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--primary-light); color:var(--primary);
  padding:6px 18px; border-radius:50px;
  font-size:12px; font-weight:600;
  letter-spacing:0.8px; text-transform:uppercase;
  margin-bottom:16px;
}
.section-tag i { font-size:14px; }
.section-header h2 {
  font-size:40px;
  font-weight:800;
  color:var(--gray-900);
  margin-bottom:16px;
  letter-spacing:-0.5px;
}
.section-header h2 span { color:var(--primary); }
.section-header p {
  color:var(--gray-500);
  font-size:17px;
  line-height:1.7;
}
.section-header.light h2 { color:#fff; }
.section-header.light p { color:rgba(255,255,255,0.8); }
.section-header.light .section-tag { background:rgba(255,255,255,0.15); color:#fff; }

/* ===== Header / Navbar ===== */
.topbar {
  background:var(--gray-900);
  color:rgba(255,255,255,0.7);
  font-size:13px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.topbar .container { display:flex; justify-content:space-between; align-items:center; }
.topbar-left { display:flex; gap:24px; }
.topbar-left span { display:flex; align-items:center; gap:6px; }
.topbar-left i { color:var(--primary); font-size:12px; }
.topbar-right { display:flex; gap:16px; }
.topbar-right a { color:rgba(255,255,255,0.6); transition:var(--transition); font-size:14px; }
.topbar-right a:hover { color:#fff; }

#navbar {
  position:sticky;
  top:0;
  width:100%;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid var(--gray-100);
  transition:var(--transition);
}
.nav-container { display:flex; align-items:center; justify-content:space-between; height:76px; }
.logo { display:flex; align-items:center; gap:10px; }
.logo-icon {
  width:40px; height:40px;
  background:var(--primary);
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:20px;
}
.logo-text { font-size:22px; font-weight:800; color:var(--gray-900); letter-spacing:-0.5px; }
.logo-text span { color:var(--primary); font-weight:300; }

.nav-links { display:flex; align-items:center; gap:8px; }
.nav-links a {
  padding:8px 18px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  color:var(--gray-600);
  transition:var(--transition);
  position:relative;
}
.nav-links a:hover, .nav-links a.active { color:var(--primary); background:var(--primary-bg); }
.nav-links .btn { padding:10px 22px; font-size:13px; }

.hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  padding:8px;
}
.hamburger span {
  width:24px; height:2px;
  background:var(--gray-800);
  border-radius:3px;
  transition:var(--transition);
}
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ===== Page Hero ===== */
.page-hero {
  background:linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
  padding:80px 0 64px;
  position:relative;
  overflow:hidden;
}
.page-hero::before {
  content:'';
  position:absolute;
  top:-40%; right:-20%;
  width:500px; height:500px;
  background:radial-gradient(circle, rgba(15,118,110,0.2) 0%, transparent 70%);
  border-radius:50%;
}
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 {
  font-size:44px;
  font-weight:800;
  color:#fff;
  margin-bottom:12px;
  letter-spacing:-0.5px;
}
.page-hero p {
  color:rgba(255,255,255,0.7);
  font-size:18px;
  max-width:600px;
}
.breadcrumb {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:13px;
  color:rgba(255,255,255,0.5);
  margin-bottom:20px;
}
.breadcrumb a { color:rgba(255,255,255,0.7); transition:var(--transition); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb i { font-size:10px; }

/* ===== Footer ===== */
.footer {
  background:var(--gray-900);
  color:rgba(255,255,255,0.6);
  padding:80px 0 0;
}
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand h3 {
  display:flex; align-items:center; gap:10px;
  color:#fff; font-size:22px; margin-bottom:16px;
}
.footer-brand h3 .logo-icon { width:36px; height:36px; font-size:16px; }
.footer-brand p { font-size:14px; line-height:1.8; margin-bottom:20px; }
.footer-social { display:flex; gap:10px; }
.footer-social a {
  width:36px; height:36px;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center;
  font-size:14px;
  transition:var(--transition);
}
.footer-social a:hover { background:var(--primary); color:#fff; }

.footer-col h4 { color:#fff; font-size:15px; margin-bottom:20px; }
.footer-col ul li { margin-bottom:12px; }
.footer-col ul li a { font-size:14px; transition:var(--transition); }
.footer-col ul li a:hover { color:var(--primary); padding-left:4px; }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.06);
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
}

/* ===== Cards ===== */
.card {
  background:#fff;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:var(--transition);
}
.card:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(40px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(40px); }
  to { opacity:1; transform:translateX(0); }
}
.animate-on-scroll {
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity:1;
  transform:translateY(0);
}

/* ===== Toast ===== */
.toast-container {
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast {
  background:#fff;
  border-radius:12px;
  padding:16px 24px;
  box-shadow:0 12px 40px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  font-weight:500;
  animation:slideInRight 0.4s ease;
  min-width:300px;
  border-left:4px solid var(--primary);
}
.toast.error { border-left-color:#ef4444; }
.toast i { font-size:18px; }
.toast.success i { color:var(--primary); }
.toast.error i { color:#ef4444; }

/* ===== Cart Sidebar ===== */
.cart-sidebar {
  position:fixed;
  top:0; right:0;
  width:420px;
  max-width:100vw;
  height:100vh;
  background:#fff;
  z-index:2000;
  box-shadow:-12px 0 48px rgba(0,0,0,0.15);
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform:translateX(0); }
.cart-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 28px;
  border-bottom:1px solid var(--gray-100);
}
.cart-header h3 { font-size:18px; display:flex; align-items:center; gap:10px; }
.cart-header h3 span {
  background:var(--primary-light);
  color:var(--primary);
  font-size:12px;
  padding:2px 10px;
  border-radius:20px;
}
.cart-header button {
  font-size:28px;
  background:none;
  color:var(--gray-400);
  transition:var(--transition);
  line-height:1;
}
.cart-header button:hover { color:var(--gray-800); transform:rotate(90deg); }
.cart-body { flex:1; overflow-y:auto; padding:20px 28px; }
.cart-empty {
  text-align:center;
  color:var(--gray-400);
  margin-top:80px;
}
.cart-empty i { font-size:56px; display:block; margin-bottom:16px; color:var(--gray-200); }

.cart-item {
  display:flex;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--gray-100);
}
.cart-item-img { width:64px; height:64px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.cart-item-info { flex:1; }
.cart-item-info h4 { font-size:14px; font-weight:600; margin-bottom:2px; }
.cart-item-price { font-size:14px; color:var(--primary); font-weight:700; }
.cart-item-qty { display:flex; align-items:center; gap:12px; margin-top:8px; }
.cart-item-qty button {
  width:28px; height:28px;
  border-radius:50%;
  background:var(--gray-100);
  font-size:12px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.cart-item-qty button:hover { background:var(--primary); color:#fff; }
.cart-item-qty span { font-weight:600; font-size:14px; min-width:20px; text-align:center; }
.cart-item-remove { color:#ef4444; font-size:13px; cursor:pointer; background:none; font-weight:500; }

.cart-footer {
  padding:20px 28px 28px;
  border-top:1px solid var(--gray-100);
}
.cart-total { display:flex; justify-content:space-between; font-size:18px; font-weight:700; margin-bottom:16px; }

.overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.4);
  backdrop-filter:blur(4px);
  z-index:1500;
  opacity:0;
  pointer-events:none;
  transition:var(--transition);
}
.overlay.show { opacity:1; pointer-events:all; }

/* ===== Grid Utilities ===== */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.grid-auto { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:28px; }
.grid-auto-wide { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:32px; }

.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.flex-wrap { display:flex; flex-wrap:wrap; gap:16px; }
.text-center { text-align:center; }
.w-full { width:100%; }
.gap-8 { gap:8px; }
.gap-12 { gap:12px; }
.gap-16 { gap:16px; }
.gap-20 { gap:20px; }
.gap-24 { gap:24px; }
.mb-16 { margin-bottom:16px; }
.mb-20 { margin-bottom:20px; }
.mb-24 { margin-bottom:24px; }
.mb-40 { margin-bottom:40px; }
.mt-20 { margin-top:20px; }
.mt-28 { margin-top:28px; }
.mt-40 { margin-top:40px; }
.p-24 { padding:24px; }
.p-28 { padding:28px; }
.p-36 { padding:36px; }

/* ===== Trust Bar Overrides ===== */
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; background:#fff; border-radius:var(--radius-xl); box-shadow:var(--shadow-xl); padding:40px 32px; }

/* ===== Hero Overrides ===== */
.hero-section { background:linear-gradient(135deg,#0f172a 0%,#0d5e57 50%,#0f766e 100%); min-height:90vh; display:flex; align-items:center; position:relative; overflow:hidden; }
.hero-bg-shape { position:absolute; top:-30%; right:-10%; width:600px; height:600px; background:radial-gradient(circle,rgba(15,118,110,0.2) 0%,transparent 70%); border-radius:50%; }
.hero-bg-shape-2 { position:absolute; bottom:-20%; left:-10%; width:500px; height:500px; background:radial-gradient(circle,rgba(15,118,110,0.15) 0%,transparent 70%); border-radius:50%; }
.hero-content { max-width:720px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.08); backdrop-filter:blur(12px); padding:10px 22px; border-radius:50px; font-size:13px; font-weight:500; color:#fff; border:1px solid rgba(255,255,255,0.1); margin-bottom:28px; }
.hero-title { font-size:58px; font-weight:900; color:#fff; line-height:1.1; margin-bottom:20px; letter-spacing:-1px; }
.hero-title span { color:#5eead4; }
.hero-text { font-size:18px; color:rgba(255,255,255,0.75); line-height:1.8; margin-bottom:36px; max-width:580px; }
.hero-buttons { display:flex; gap:16px; flex-wrap:wrap; }

/* ===== Trust Bar ===== */
.trust-bar-section { padding:0; margin-top:-40px; position:relative; z-index:2; }
.trust-num { font-size:36px; font-weight:900; color:var(--primary); }
.trust-num span { font-size:18px; }
.trust-label { font-size:13px; color:var(--gray-500); font-weight:500; margin-top:4px; }

/* ===== Feature Icon ===== */
.feature-icon { width:60px; height:60px; border-radius:16px; background:var(--primary-light); display:flex; align-items:center; justify-content:center; margin:0 auto 20px; font-size:28px; color:var(--primary); }

/* ===== Testimonial Card ===== */
.testimonial-card { background:rgba(255,255,255,0.05); backdrop-filter:blur(12px); border-radius:var(--radius-lg); padding:36px; border:1px solid rgba(255,255,255,0.06); }
.testimonial-stars { display:flex; gap:2px; color:#f59e0b; margin-bottom:16px; font-size:14px; }
.testimonial-text { color:rgba(255,255,255,0.8); font-size:15px; line-height:1.8; margin-bottom:20px; font-style:italic; }
.testimonial-author { display:flex; align-items:center; gap:14px; }
.testimonial-author img { width:48px; height:48px; border-radius:50%; object-fit:cover; }
.testimonial-name { color:#fff; font-weight:600; font-size:14px; }
.testimonial-role { color:rgba(255,255,255,0.5); font-size:12px; }

/* ===== Section CTA ===== */
.cta-section { background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding:80px 0; }

/* ===== Responsive ===== */
@media(max-width:1024px) {
  .footer-top { grid-template-columns:1fr 1fr; }
  .trust-grid { grid-template-columns:repeat(2,1fr); padding:32px 24px; }
  .hero-title { font-size:44px; }
}

@media(max-width:768px) {
  .topbar { display:none; }
  .section { padding:64px 0; }
  .section-header h2 { font-size:30px; }
  .section-header p { font-size:15px; }
  .page-hero h1 { font-size:32px; }
  .page-hero p { font-size:16px; }
  .page-hero { padding:56px 0 48px; }

  .hero-section { min-height:auto; }
  .hero-title { font-size:36px; }
  .hero-text { font-size:16px; }
  .hero-content { padding:100px 0 60px; }

  .cta-section { padding:56px 0; }
  .cta-section h2 { font-size:28px !important; }

  .nav-links {
    position:fixed;
    top:0; right:-100%;
    width:280px;
    height:100vh;
    background:#fff;
    flex-direction:column;
    padding:100px 32px 32px;
    box-shadow:-12px 0 40px rgba(0,0,0,0.1);
    transition:right 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index:999;
    gap:4px;
  }
  .nav-links.open { right:0; }
  .nav-links a { font-size:16px; padding:12px 18px; }
  .nav-links .btn { margin-top:12px; text-align:center; }
  .hamburger { display:flex; z-index:1000; }

  .footer-top { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .cart-sidebar { width:100%; }
  .cart-item { gap:12px; }
  .cart-item-img { width:48px; height:48px; }

  .page-hero h1 { font-size:28px; }
  .breadcrumb { font-size:12px; }
  .page-hero p { font-size:15px; }

  .grid-2 { grid-template-columns:1fr; }
  .grid-3 { grid-template-columns:1fr; }
  .grid-4 { grid-template-columns:1fr; }

  .toast-container { left:16px; right:16px; bottom:16px; }
  .toast { min-width:auto; font-size:13px; padding:14px 18px; }

  /* Appointment page mobile */
  .step-indicator { gap:4px; }
  .step-indicator::before { display:none; }
  .step-circle { width:36px; height:36px; font-size:13px; }
  .step-label { font-size:10px; }
  .time-slots { grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:6px; }
  .time-slot { padding:8px; font-size:12px; }

  /* Contact form map layout */
  .contact-layout { grid-template-columns:1fr !important; }

  /* Doctor filters */
  .filter-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; padding-bottom:8px; flex-wrap:nowrap !important; justify-content:flex-start !important; }
  .filter-scroll::-webkit-scrollbar { display:none; }
}

@media(max-width:480px) {
  .container { padding:0 16px; }
  .section { padding:48px 0; }
  .section-header { margin-bottom:36px; }
  .section-header h2 { font-size:24px; }
  .section-tag { font-size:11px; padding:5px 14px; }

  .hero-title { font-size:28px; }
  .hero-text { font-size:15px; margin-bottom:24px; }
  .hero-badge { font-size:11px; padding:8px 16px; margin-bottom:20px; }
  .hero-buttons { flex-direction:column; align-items:stretch; }
  .hero-buttons .btn { justify-content:center; }

  .trust-grid { grid-template-columns:repeat(2,1fr); gap:16px; padding:24px 16px; }
  .trust-grid > div > div:first-child { font-size:28px !important; }

  .page-hero h1 { font-size:24px; }
  .page-hero p { font-size:14px; }
  .page-hero { padding:40px 0 32px; }

  .btn { padding:12px 24px; font-size:14px; }
  .btn-lg { padding:14px 28px; font-size:15px; }
  .btn-sm { padding:8px 16px; font-size:12px; }

  .nav-container { height:64px; }
  .logo-text { font-size:18px; }
  .logo-icon { width:34px; height:34px; font-size:16px; }
  #navbar { position:fixed; top:0; } /* Make navbar fixed on small screens */

  .grid-auto { gap:20px; }
  .grid-auto-wide { gap:24px; }

  .card:hover { transform:none; }

  .footer { padding:48px 0 0; }
  .footer-top { gap:24px; }
  .footer-bottom { font-size:12px; }

  .cart-sidebar { width:100%; }
  .cart-header { padding:16px 20px; }
  .cart-body { padding:16px 20px; }
  .cart-footer { padding:16px 20px; }
  .cart-item-img { width:44px; height:44px; border-radius:8px; }
  .cart-item-info h4 { font-size:13px; }
  .cart-item-price { font-size:13px; }

  .page-hero h1 { font-size:22px; }

  .appointment-form-padding { padding:20px !important; }

  /* Doctor cards on mobile */
  .doctor-card-inline > div:first-child { height:200px !important; }

  .breadcrumb { font-size:11px; margin-bottom:12px; }

  /* Summary rows */
  .summary-row { font-size:13px; padding:10px 0; flex-direction:column; gap:4px; }
  .summary-value { text-align:left; }
}
