:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #e7f1ff;
  --accent: #00b8a9;
  --dark: #0f2740;
  --slate: #5a6b7b;
  --light: #f5f8fc;
  --white: #ffffff;
  --border: #e3e9f0;
  --shadow: 0 10px 30px rgba(15, 39, 64, 0.08);
  --shadow-hover: 0 18px 40px rgba(13, 110, 253, 0.18);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--dark); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: all 0.25s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }

/* ===== Top bar ===== */
.topbar {
  background: var(--dark); color: #cdd9e6; font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cdd9e6; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .contact-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .socials { display: flex; gap: 14px; }

/* ===== Navbar ===== */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Poppins'; font-weight: 800; font-size: 1.4rem; color: var(--dark); }
.logo .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
}
.logo span.accent { color: var(--primary); }

nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav ul a { font-weight: 500; color: var(--dark); position: relative; padding: 4px 0; transition: color .2s; }
nav ul a:hover { color: var(--primary); }
nav ul a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transition: width .25s;
}
nav ul a:hover::after { width: 100%; }
.badge { background: var(--accent); color: #fff; font-size: 0.6rem; padding: 2px 6px; border-radius: 20px; margin-left: 5px; vertical-align: middle; font-weight: 700; }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--dark); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e7f1ff 60%, #eafbf9 100%);
  padding: 70px 0; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--slate); margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.9rem; color: var(--slate); }
.hero-trust strong { display: block; font-family: 'Poppins'; font-size: 1.5rem; color: var(--dark); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; position: relative; z-index: 2;
}
.hero-card img { border-radius: 12px; height: 280px; width: 100%; object-fit: cover; }
.floating {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; z-index: 3;
}
.floating .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.float-1 { top: 20px; left: -25px; }
.float-1 .dot { background: var(--primary-light); }
.float-2 { bottom: 30px; right: -20px; }
.float-2 .dot { background: #e6fbf7; }

/* ===== Search bar ===== */
.search-wrap { margin-top: -40px; position: relative; z-index: 5; }
.search-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end;
}
.search-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.search-field select, .search-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--dark); background: var(--light);
}
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); }

/* Custom searchable dropdown (combobox) */
.combo { position: relative; }
.combo-input { padding-right: 36px !important; cursor: text; }
.combo-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); font-size: 0.8rem; pointer-events: none; transition: transform .2s; }
.combo.open .combo-caret { transform: translateY(-50%) rotate(180deg); }
.combo-list {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,39,64,.16); max-height: 260px; overflow-y: auto;
  z-index: 50; padding: 6px; display: none;
}
.combo.open .combo-list { display: block; }
.combo-list li {
  padding: 10px 14px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; color: var(--dark);
  transition: background .15s;
}
.combo-list li:hover, .combo-list li.active { background: var(--primary-light); color: var(--primary); }
.combo-list li.hidden { display: none; }
.combo-list .combo-empty { color: var(--slate); cursor: default; font-style: italic; }
.combo-list .combo-empty:hover { background: none; color: var(--slate); }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 10px 0 14px; }
.section-head p { color: var(--slate); }

/* Specialties */
.grid-specialties { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.specialty {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all .25s; cursor: pointer;
}
.specialty:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.specialty .ico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: var(--primary-light); display: grid; place-items: center; font-size: 1.8rem; }
.specialty h4 { font-size: 1.02rem; margin-bottom: 4px; }
.specialty span { font-size: 0.82rem; color: var(--slate); }

/* Doctors */
.bg-light { background: var(--light); }
.grid-doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.doctor-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all .25s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.doctor-card .photo { height: 220px; position: relative; overflow: hidden; }
.doctor-card .photo img { height: 100%; width: 100%; object-fit: cover; }
.doctor-card .status { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 30px; }
.doctor-card .fav { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.doctor-card .info { padding: 20px; }
.doctor-card .info h3 { font-size: 1.15rem; }
.doctor-card .spec { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin: 2px 0 10px; }
.doctor-card .meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--slate); margin-bottom: 14px; flex-wrap: wrap; }
.doctor-card .meta span { display: flex; align-items: center; gap: 5px; }
.rating { color: #f5a623; font-weight: 700; }
.doctor-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.doctor-card .fee strong { font-family: 'Poppins'; font-size: 1.2rem; color: var(--dark); }
.doctor-card .fee small { display: block; font-size: 0.72rem; color: var(--slate); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; position: relative; }
.step .num { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-family: 'Poppins'; font-weight: 800; font-size: 1.4rem; box-shadow: var(--shadow); }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.92rem; }

/* Community: Forum + Blog */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.community-card {
  border-radius: var(--radius); padding: 44px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 280px; transition: transform .25s;
}
.community-card:hover { transform: translateY(-6px); }
.community-card.forum { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.community-card.blog { background: linear-gradient(135deg, #00b8a9, #0f9b8e); }
.community-card .c-ico { font-size: 2.6rem; margin-bottom: 16px; }
.community-card h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.community-card p { opacity: 0.92; margin-bottom: 24px; flex-grow: 1; }
.community-card .btn-light { align-self: flex-start; }
.community-card .deco { position: absolute; right: -30px; bottom: -30px; font-size: 9rem; opacity: 0.12; }

/* Stats banner */
.stats { background: var(--dark); color: #fff; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-family: 'Poppins'; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: linear-gradient(135deg, #5ea3ff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats p { color: #aebfd0; margin-top: 4px; }

/* Testimonials */
.grid-testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.testi .stars { color: #f5a623; margin-bottom: 14px; }
.testi p { color: var(--slate); font-style: italic; margin-bottom: 20px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi .who strong { display: block; }
.testi .who span { font-size: 0.82rem; color: var(--slate); }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px; padding: 56px; text-align: center; color: #fff; margin: 0 auto;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.93; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 20px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q .plus { font-size: 1.5rem; color: var(--primary); transition: transform .25s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 24px; color: var(--slate); }
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }
.faq-item.open .plus { transform: rotate(45deg); }

/* Footer */
footer { background: var(--dark); color: #aebfd0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 11px; }
footer ul a { color: #aebfd0; transition: color .2s, padding-left .2s; font-size: 0.92rem; }
footer ul a:hover { color: #fff; padding-left: 5px; }
footer .logo { color: #fff; margin-bottom: 16px; }
footer .about p { font-size: 0.92rem; margin-bottom: 18px; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.footer-socials a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }
.footer-bottom a:hover { color: #fff; }

/* ===== Auth Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 39, 64, 0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 20px; width: min(460px, 100%); padding: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,.3); position: relative; animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--slate); line-height: 1; }
.modal .close:hover { color: var(--dark); }
.modal .m-logo { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: 'Poppins'; font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.modal .m-logo .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; }
.modal h3 { text-align: center; font-size: 1.4rem; margin-bottom: 4px; }
.modal .sub { text-align: center; color: var(--slate); font-size: .92rem; margin-bottom: 26px; }
.auth-options { display: flex; flex-direction: column; gap: 14px; }
.auth-option {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: 14px; transition: all .2s; cursor: pointer; background: var(--light);
}
.auth-option:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.auth-option .ao-ico { width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; box-shadow: var(--shadow); }
.auth-option .ao-txt strong { display: block; color: var(--dark); font-size: 1.05rem; }
.auth-option .ao-txt span { font-size: .85rem; color: var(--slate); }
.auth-option .ao-arrow { margin-left: auto; color: var(--primary); font-size: 1.3rem; }
.modal .switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--slate); }
.modal .switch button { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; font-size: .9rem; }
.modal .switch button:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-testi { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav.main-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .3s; padding: 80px 30px; }
  nav.main-menu.open { right: 0; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
  .menu-toggle { display: block; }
  .community { grid-template-columns: 1fr; }
  .topbar .contact-info span:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .search-box { grid-template-columns: 1fr; }
  .steps, .stats .grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
}
