/* ClearView Medical Clinic
   styles.css
   ---------------------------------- */

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

:root {
  --blue:    #1a6cbf;
  --blue-dk: #155a9e;
  --blue-lt: #e8f2fc;
  --blue-mid:#2d7dd2;
  --teal:    #0e9488;
  --white:   #ffffff;
  --bg:      #f4f8fd;
  --surface: #ffffff;
  --border:  #daeaf8;
  --text:    #0f1e2e;
  --mid:     #3d5a73;
  --lt:      #6b8ba4;
  --green:   #16a34a;
  --font:    'Inter', sans-serif;
  --radius:  10px;
  --nav-h:   74px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.highlight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-lt);
  border: 1px solid rgba(26,108,191,.2);
  padding: 4px 14px; border-radius: 50px; margin-bottom: 14px;
}

.section-header { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: var(--text);
}
.section-header p { color: var(--lt); font-size: 1rem; line-height: 1.75; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: .92rem;
  padding: 13px 26px; border-radius: 6px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue); color: var(--blue);
  font-weight: 600; font-size: .92rem;
  padding: 11px 24px; border-radius: 6px;
  transition: background .2s, color .2s, transform .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(26,108,191,.1); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 1.15rem; font-weight: 800; color: var(--blue); }
.logo-sub { font-size: .68rem; font-weight: 600; color: var(--lt); letter-spacing: .06em; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: .86rem; font-weight: 500; color: var(--mid);
  padding: 8px 14px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-lt); }
.nav-links .nav-cta {
  background: var(--blue); color: #fff;
  padding: 9px 20px; border-radius: 6px; font-weight: 700; margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--blue-dk); color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--mid); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 64px) 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.25);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 18px;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--lt); line-height: 1.8;
  max-width: 480px; margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust { display: flex; flex-direction: column; gap: 8px; }
.ht-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--mid); font-weight: 500;
}
.ht-item i { color: var(--blue); width: 16px; text-align: center; }

.hero-img-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,108,191,.15);
}
.hero-img-wrap img { width: 100%; height: 460px; object-fit: cover; object-position: center top; }

.hero-card {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--white); border-radius: 10px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hero-card-icon { font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.hero-card strong { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.hero-card span { display: block; font-size: .75rem; color: var(--lt); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--blue);
  padding: 36px 0;
}
.stats-inner {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 0 40px;
}
.sn {
  font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1;
}
.stat-suf { font-size: 1.4rem; font-weight: 800; color: rgba(255,255,255,.7); margin-left: 2px; }
.sl { font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }
.s-div { width: 1px; height: 50px; background: rgba(255,255,255,.15); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(26,108,191,.1);
}

.sc-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: .87rem; color: var(--lt); line-height: 1.7; }

/* ============================================================
   DOCTORS
   ============================================================ */
.doctors {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.doctor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.doctor-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(26,108,191,.1);
}

.doc-photo { height: 280px; overflow: hidden; }
.doc-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .4s ease;
}
.doctor-card:hover .doc-photo img { transform: scale(1.04); }

.doc-body { padding: 22px 24px; }
.doc-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.doc-spec { display: block; font-size: .78rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.doc-rule { width: 36px; height: 2px; background: var(--blue); margin-bottom: 12px; }
.doc-body p { font-size: .86rem; color: var(--lt); line-height: 1.65; margin-bottom: 16px; }

.doc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  border: 1px solid rgba(26,108,191,.3); border-radius: 6px;
  padding: 7px 14px;
  transition: background .2s, border-color .2s;
}
.doc-btn:hover { background: var(--blue-lt); border-color: var(--blue); }

/* ============================================================
   WHY + HOURS
   ============================================================ */
.whyhours { background: var(--bg); border-top: 1px solid var(--border); }

.wh-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.why-block h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 32px;
}

.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-list li { display: flex; align-items: flex-start; gap: 16px; }
.wl-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0; margin-top: 2px;
}
.why-list strong { display: block; font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-list p { font-size: .87rem; color: var(--lt); line-height: 1.65; }

.hours-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.hours-block h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 20px; }

.hours-table { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.hr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.hr-row:last-child { border-bottom: none; }
.hr-row span:first-child { font-weight: 500; color: var(--text); }
.hr-row span:last-child { font-weight: 700; color: var(--blue); }
.hr-row.closed span:last-child { color: var(--lt); font-weight: 500; }
.hr-row:nth-child(odd) { background: var(--bg); }

.hours-note {
  font-size: .84rem; color: var(--mid);
  display: flex; align-items: center; gap: 8px;
}
.hours-note i { color: var(--blue); }
.hours-note strong { color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px; align-items: start;
}

.contact-left h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 14px;
}
.contact-left > p { color: var(--lt); line-height: 1.75; margin-bottom: 30px; font-size: .95rem; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }
.cd { display: flex; align-items: flex-start; gap: 13px; }
.cd-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.cd-text strong { display: block; font-size: .88rem; color: var(--text); margin-bottom: 2px; }
.cd-text span { font-size: .83rem; color: var(--lt); line-height: 1.5; }

.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 22px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.fg label { font-size: .78rem; font-weight: 600; color: var(--mid); }
.fg input, .fg select, .fg textarea {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 12px;
  font-family: var(--font); font-size: .89rem; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,108,191,.1);
}
.fg select option { background: var(--white); }
.fg textarea { resize: vertical; min-height: 90px; }

.btn-submit {
  width: 100%; padding: 13px; border: none; border-radius: 6px;
  background: var(--blue); color: #fff;
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  cursor: pointer; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--blue-dk); transform: translateY(-2px); }

.form-success { text-align: center; padding: 48px 20px; }
.form-success i { font-size: 3rem; color: var(--green); margin-bottom: 14px; display: block; }
.form-success h3 { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.form-success p { color: var(--lt); font-size: .92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0c1a2a;
  border-top: 1px solid #162236;
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid #162236;
}

.footer .logo-mark { background: var(--blue); }
.footer .logo-main { color: #fff; }
.footer .logo-sub { color: #4a6a88; }

.footer-brand p { font-size: .85rem; color: #3a5470; line-height: 1.7; max-width: 260px; margin-top: 12px; }

.fl h4, .fc h4 {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #e8f2fc; margin-bottom: 16px;
}
.fl ul { display: flex; flex-direction: column; gap: 9px; }
.fl ul li a { font-size: .85rem; color: #3a5470; transition: color .2s; }
.fl ul li a:hover { color: var(--blue-mid); }

.fc p { font-size: .85rem; color: #3a5470; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.fc p i { color: var(--blue-mid); width: 14px; text-align: center; }

.footer-cta {
  display: inline-block; margin-top: 12px;
  background: var(--blue); color: #fff;
  font-size: .83rem; font-weight: 700; padding: 9px 20px; border-radius: 6px;
  transition: background .2s;
}
.footer-cta:hover { background: var(--blue-dk); }

.footer-bottom { padding: 20px 24px; text-align: center; }
.footer-bottom p { font-size: .76rem; color: #2a4460; }
.footer-bottom a { color: #3a5470; transition: color .2s; }
.footer-bottom a:hover { color: var(--blue-mid); }

/* notification */
.notification {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #0c1a2a; border: 1px solid #162236; border-left: 4px solid var(--blue);
  color: #e8f2fc; font-size: .88rem; font-weight: 500;
  padding: 14px 20px; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  transform: translateX(130%); opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  max-width: 320px;
}
.notification.show { transform: translateX(0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { max-width: 480px; }
  .hero-img-wrap img { height: 360px; }
  .wh-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; padding: 12px 24px; color: var(--text); }
  .hamburger { display: flex; }
  .frow { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat { padding: 16px 24px; }
  .s-div { display: none; }
  .contact-form-wrap { padding: 22px; }
}
