/* =================================================
   CONSULTORIO MÉDICO DRA. ITZAYANA BONILLA
   Managua, Nicaragua · itzayana-bonilla.nicteo.com
   ================================================= */

:root {
  --navy:      #0D2A6E;
  --navy-80:   rgba(13,42,110,.80);
  --teal:      #14B8A6;
  --teal-600:  #0E9384;
  --teal-100:  #ccfbf1;
  --wa:        #25D366;
  --text:      #1e293b;
  --text-m:    #475569;
  --text-l:    #64748b;
  --bg:        #f0f6ff;
  --bg-card:   #ffffff;
  --line:      #e2e8f0;
  --shadow:    0 4px 24px rgba(13,42,110,.10);
  --shadow-md: 0 8px 32px rgba(13,42,110,.16);
  --radius:    18px;
  --radius-sm: 10px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1,h2,h3,h4 { line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* Sections */
section { padding: 72px 0; }
.section-label {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--text-m); max-width: 560px; font-size: 1.02rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ea952; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--teal-100); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
header.scrolled {
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; color: var(--teal); }
#nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
}
#nav-links a {
  padding: .4rem .85rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
#nav-links a:hover,
#nav-links a.active {
  background: var(--teal-100);
  color: var(--teal-600);
}
.nav-cta { margin-left: .5rem; padding: .55rem 1.2rem; font-size: .88rem; }
#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 8px;
}
#burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---- HERO ---- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  color: #fff;
}
.hero-inner { max-width: 620px; position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.trust-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}
.trust-item svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { display: block; color: inherit; }
.ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background .2s;
}
.ic svg { width: 26px; height: 26px; color: var(--teal-600); transition: color .2s; }
.card-link:hover .ic { background: var(--teal); }
.card-link:hover .ic svg { color: #fff; }
.card h3 { color: var(--navy); margin-bottom: .4rem; font-size: 1.05rem; }
.card p { color: var(--text-m); font-size: .9rem; line-height: 1.55; }
.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--teal-600);
  font-size: .85rem;
  font-weight: 700;
  margin-top: .8rem;
}
.card-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .card-arrow svg { transform: translateX(3px); }

/* ---- ABOUT / DOCTOR ---- */
.about-section { background: #fff; }
.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}
.doc-img-wrap { position: relative; }
.doc-img-wrap img {
  width: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  max-height: 520px;
}
.doc-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal-100) 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  gap: .75rem;
}
.doc-img-placeholder svg { width: 64px; height: 64px; opacity: .4; }
.doc-img-placeholder span { font-size: .85rem; font-weight: 600; opacity: .6; }
.doc-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.doc-badge strong { font-size: 1.5rem; display: block; }
.about-text .check-list { margin: 1.2rem 0 1.8rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem 0;
  font-size: .95rem;
  color: var(--text-m);
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); width: 18px; height: 18px; }

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-card .ic { margin: 0 auto 1rem; }
.why-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.why-card p { font-size: .88rem; color: var(--text-l); line-height: 1.5; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band > .wrap > p { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FAQ ---- */
.faq-section { background: #fff; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  gap: 1rem;
  user-select: none;
}
.faq-q svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform .25s; color: var(--teal); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 1.2rem; color: var(--text-m); font-size: .95rem; line-height: 1.7; }

/* ---- HERO-SM (inner pages) ---- */
.hero-sm {
  background: linear-gradient(135deg, var(--navy) 0%, #091c4e 100%);
  padding: 60px 0 50px;
  color: #fff;
}
.breadcrumb {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.3); }
.hero-sm h1 { color: #fff; font-size: clamp(1.55rem, 4vw, 2.4rem); margin-bottom: .75rem; }
.hero-sm p { color: rgba(255,255,255,.8); max-width: 600px; font-size: 1.02rem; }

/* ---- SERVICE LAYOUT ---- */
.service-section { padding: 60px 0 80px; }
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.service-content h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--navy); }
.service-content h2:first-child { margin-top: 0; }
.service-content p { color: var(--text-m); line-height: 1.75; }
.service-content .check-list { margin: 1rem 0 1.5rem; }
.step-list { margin: 1rem 0 1.5rem; }
.step-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.step-list li:last-child { border-bottom: none; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text h4 { font-size: 1rem; margin-bottom: .2rem; color: var(--navy); }
.step-text p { font-size: .9rem; color: var(--text-m); margin: 0; line-height: 1.55; }
.sidebar-cta {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.sidebar-cta h3 { margin-bottom: 1.2rem; font-size: 1.1rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; margin-bottom: .75rem; }
.sidebar-divider { height: 1px; background: var(--line); margin: 1.25rem 0; }
.sidebar-hours p { font-size: .88rem; color: var(--text-m); line-height: 1.9; }
.sidebar-hours strong { color: var(--navy); }
.sidebar-related h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-l);
  margin-bottom: .75rem;
  margin-top: 1.25rem;
}
.sidebar-related ul li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.sidebar-related ul li:last-child { border-bottom: none; }
.sidebar-related ul li a { font-size: .9rem; color: var(--teal-600); font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.sidebar-related ul li a svg { width: 14px; height: 14px; }
.sidebar-related ul li a:hover { color: var(--navy); }

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--teal-100) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
}
.blog-card-img-placeholder svg { width: 40px; height: 40px; opacity: .4; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.blog-card h3 { font-size: 1rem; margin-bottom: .5rem; line-height: 1.4; }
.blog-card p { font-size: .88rem; color: var(--text-m); line-height: 1.55; flex: 1; }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal-600);
}
.blog-card .read-more svg { width: 14px; height: 14px; transition: transform .2s; }
.blog-card:hover .read-more svg { transform: translateX(3px); }

/* Blog article content */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-content { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-content h2 { font-size: 1.45rem; margin: 1.8rem 0 .75rem; }
.article-content h2:first-child { margin-top: 0; }
.article-content p { color: var(--text-m); line-height: 1.8; margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content li { color: var(--text-m); line-height: 1.7; margin-bottom: .3rem; }
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-l);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: .3rem; }
.article-meta svg { width: 14px; height: 14px; }

/* Blog card image wrapper */
.blog-card-img { position: relative; overflow: hidden; }
.blog-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img .card-img-placeholder { width: 100%; height: 180px; }
/* blog-card uses h2 (SEO heading), style same as h3 */
.blog-card h2 { font-size: 1rem; margin-bottom: .5rem; line-height: 1.4; color: var(--navy); }
.blog-card h2 a { color: inherit; transition: color .15s; }
.blog-card h2 a:hover { color: var(--teal-600); }
.blog-meta { display: flex; gap: .5rem; font-size: .78rem; color: var(--text-l); margin: .6rem 0 .9rem; flex-wrap: wrap; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .75rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal-600);
  transition: gap .2s;
}
.blog-card:hover .blog-read-more { gap: .5rem; }

/* Article page */
.article-section { padding: 60px 0 80px; }
.article-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.article-body h2 { font-size: 1.45rem; margin: 1.8rem 0 .75rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.article-body p { color: var(--text-m); line-height: 1.8; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-body li { color: var(--text-m); line-height: 1.7; margin-bottom: .3rem; }
.article-hero-img { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.75rem; }
.article-hero-img img { width: 100%; height: 280px; object-fit: cover; display: block; }
.article-lead { font-size: 1.08rem; color: var(--text); font-weight: 500; line-height: 1.7; border-left: 3px solid var(--teal); padding-left: 1rem; margin-bottom: 1.5rem; }
.article-back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-back a { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal-600); font-weight: 600; font-size: .9rem; transition: gap .2s; }
.article-back a:hover { gap: .6rem; }
.article-sidebar { display: flex; flex-direction: column; gap: 0; }

/* Shared card image placeholder (used in blog-card-img and article-hero-img) */
.card-img-placeholder {
  background: linear-gradient(135deg, var(--teal-100) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  border-radius: inherit;
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder-item {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal-100) 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--teal-600);
  font-size: .82rem;
  font-weight: 600;
}
.gallery-placeholder-item svg { width: 28px; height: 28px; opacity: .4; }

/* ---- CONTACT LAYOUT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--teal-600); }
.contact-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-l); margin-bottom: .2rem; }
.contact-val { font-size: .98rem; font-weight: 600; color: var(--navy); }
.contact-sub { font-size: .85rem; color: var(--text-m); margin-top: .1rem; }

/* ---- DOCTOR PAGE ---- */
.doctor-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
.doc-photo img {
  width: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
}
.doc-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal-100) 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--teal-600);
}
.doc-photo-placeholder svg { width: 72px; height: 72px; opacity: .35; }
.doc-photo-placeholder span { font-size: .9rem; font-weight: 600; opacity: .6; }
.doc-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .35rem; }
.doc-specialty {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: .88rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.doc-info p { color: var(--text-m); line-height: 1.75; margin-bottom: 1rem; }
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}
.cred-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--line);
}
.cred-item .cred-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-l); margin-bottom: .3rem; }
.cred-item .cred-val { font-size: .95rem; font-weight: 600; color: var(--navy); }

/* ---- SERVICES ALL PAGE ---- */
.services-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.75; margin-bottom: .5rem; }
.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--wa);
  color: #fff;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  margin-top: .75rem;
  transition: background .15s;
}
.footer-wa-link:hover { background: #1ea952; }
.footer-wa-link svg { width: 16px; height: 16px; }
footer h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
}
footer ul li { padding: .28rem 0; }
footer ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .15s; }
footer ul li a:hover { color: var(--teal); }
footer p { font-size: .88rem; line-height: 1.75; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-bottom a:hover { color: var(--teal); }

/* ---- FAB ---- */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.6); }
.fab svg { width: 30px; height: 30px; }

/* ---- PRIVACY / 404 ---- */
.page-content { background: #fff; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); max-width: 780px; margin: 0 auto; }
.page-content h2 { font-size: 1.35rem; margin: 1.8rem 0 .75rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text-m); line-height: 1.75; }
.page-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.page-content li { color: var(--text-m); line-height: 1.7; margin-bottom: .3rem; }
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 6rem; color: var(--teal-100); line-height: 1; }
.not-found h2 { font-size: 2rem; margin: .5rem 0 1rem; }
.not-found p { color: var(--text-m); max-width: 440px; margin: 0 auto 2rem; }

/* ---- RESPONSIVE ---- */
@media(max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-all-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-layout .doc-img-wrap { max-width: 380px; margin: 0 auto; }
  .doc-badge { right: 0; }
  .service-layout { grid-template-columns: 1fr; }
  .service-layout .sidebar-cta { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .sidebar-cta { position: static; }
  .doctor-layout { grid-template-columns: 1fr; }
  .doctor-layout .doc-photo { max-width: 360px; }
  .cred-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
  section { padding: 52px 0; }
  #burger { display: flex; }
  .nav-cta { display: none; }
  #nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 24px 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--teal);
  }
  #nav-links.open { display: flex; }
  #nav-links a { padding: .75rem 1rem; font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-content { padding: 28px 20px; }
}

@media(max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-all-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .article-body { padding: 24px 18px; }
  .article-hero-img img { height: 200px; }
}

@media(max-width: 420px) {
  .btn { padding: .75rem 1.1rem; font-size: .92rem; }
  .wrap { padding: 0 16px; }
}
