/* =====================================================================
   Muni Labs Dental Clinic — Public Site Styles
   Mobile-first. Brand colours exposed as CSS custom properties so the
   whole site follows the official palette without any hard-coding.
   ===================================================================== */

:root {
  --primary-blue: #52B6D8;
  --secondary-blue: #2C9BC7;
  --light-bg-blue: #DDF4FB;
  --white: #FFFFFF;
  --light-surface: #F8FAFC;
  --border: #E5E7EB;
  --dark-text: #1F2937;
  --secondary-text: #6B7280;
  --success: #6DBE45;
  --warning: #F59A23;
  --danger: #E74C3C;
  --whatsapp-green: #25D366;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.09);
  --shadow-lg: 0 16px 40px rgba(31, 41, 55, 0.12);
  --container-max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary-blue); text-decoration: none; }
a:hover { color: var(--primary-blue); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-text);
}
h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.5vw + 1rem, 1.5rem); }
p { margin: 0 0 1em; color: var(--secondary-text); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--light-surface); }
.section--brand { background: var(--light-bg-blue); }

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--secondary-blue);
  background: var(--light-bg-blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-heading { max-width: 640px; margin: 0 auto 40px; }
.section-heading.left { margin: 0 0 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 46px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--secondary-blue); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary-blue); color: var(--secondary-blue); }
.btn-outline:hover { background: var(--light-bg-blue); }
.btn-white { background: var(--white); color: var(--secondary-blue); }
.btn-white:hover { background: var(--light-bg-blue); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--dark-text);
}
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .clinic-name { font-size: 1rem; color: var(--dark-text); }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--dark-text);
}
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .clinic-name { font-size: 1rem; color: var(--dark-text); }

.nav-links {
  position: fixed;
  z-index: 1001;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.nav-links.is-open { transform: translateX(0); }
.nav-links a {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  color: var(--dark-text);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover, .nav-links a.active { background: var(--light-bg-blue); color: var(--secondary-blue); }
.nav-links .btn { margin-top: 12px; }

.nav-overlay {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hamburger {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-cta { display: none; }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-overlay { display: none; }
  .nav-wrap { flex-wrap: nowrap; }
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    padding: 0;
    gap: 2px;
    background: transparent;
    overflow: visible;
    flex-shrink: 0;
  }
  .nav-links a { padding: 8px 10px; min-height: auto; font-size: 0.88rem; }
  .nav-links .btn { display: none; }
  .nav-cta { display: inline-flex; margin-left: 8px; flex-shrink: 0; }
  .brand { flex-shrink: 0; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  background: linear-gradient(160deg, var(--light-bg-blue) 0%, var(--white) 65%);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-text);
  box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* =====================================================================
   Cards / Grids
   ===================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--light-bg-blue);
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.stat-card { text-align: center; padding: 22px 14px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--secondary-blue); }
.stat-label { font-size: 0.85rem; color: var(--secondary-text); font-weight: 600; }

/* Testimonials */
.testimonial {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
}
.testimonial-quote { font-style: italic; color: var(--dark-text); }
.testimonial-author { margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--secondary-text); }

/* =====================================================================
   Forms
   ===================================================================== */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark-text);
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark-text);
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(82, 182, 216, 0.25);
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}
.form-hint { font-size: 0.8rem; color: var(--secondary-text); margin-top: 6px; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.alert-success { background: #EAF7E1; color: #3F7A24; border: 1px solid var(--success); }
.alert-error { background: #FDECEA; color: #B33325; border: 1px solid var(--danger); }
.alert-warning { background: #FEF3E2; color: #92600E; border: 1px solid var(--warning); }

/* =====================================================================
   Tables (responsive)
   ===================================================================== */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead { background: var(--light-bg-blue); }
th, td { text-align: left; padding: 12px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
th { color: var(--secondary-blue); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: var(--light-surface); }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-pending { background: #FEF3E2; color: #92600E; }
.badge-confirmed { background: #E4F3FB; color: var(--secondary-blue); }
.badge-completed { background: #EAF7E1; color: #3F7A24; }
.badge-cancelled { background: #FDECEA; color: #B33325; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--dark-text); color: #D1D5DB; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 38px; background: var(--white); border-radius: 8px; padding: 4px; }
.footer-brand span { font-weight: 700; color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: #9CA3AF; }
.site-footer a:hover { color: var(--primary-blue); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--primary-blue); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #9CA3AF;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* =====================================================================
   WhatsApp floating button
   ===================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  bottom: 14px;
  background: var(--dark-text);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}
@media (max-width: 480px) {
  .whatsapp-fab { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .whatsapp-tooltip { display: none; }
}

/* =====================================================================
   Partners carousel
   ===================================================================== */
.partners-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: partners-scroll 14s linear infinite;
  width: max-content;
}
.partners-track:hover {
  animation-play-state: paused;
}
.partners-track img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  filter: grayscale(20%);
}
.partners-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
	}
	.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partners-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  padding: 12px 0;
}

/* =====================================================================
   Misc utilities
   ===================================================================== */
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--light-bg-blue); color: var(--secondary-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary-blue); color: var(--white);
  padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--secondary-blue); outline-offset: 2px; }

.cta-band {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }