/* =========================================================
   MSD Miami — Shared Site Stylesheet
   Modern, simple, conversion-focused.
   ========================================================= */

:root {
  --navy: #0a1a33;
  --navy-deep: #060f1f;
  --navy-light: #13284d;
  --blue: #2563eb;
  --blue-light: #4f86f7;
  --gold: #c9a227;
  --gold-light: #e6c863;
  --ink: #15181f;
  --muted: #5b6472;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 26, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 51, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy p { color: #c3cde0; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold); }
.section-navy .eyebrow { color: var(--gold-light); }

.center { text-align: center; }
.lede { font-size: 1.15rem; max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(201,162,39,0.35); }
.btn-primary:hover { background: var(--gold-light); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(37,99,235,0.3); }
.btn-blue:hover { background: var(--blue-light); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* Top utility bar */
.topbar {
  background: var(--navy-deep);
  color: #cdd6e6;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #cdd6e6; }
.topbar .phone { color: var(--gold-light); font-weight: 700; }

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.brand-text span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dept-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--line);
  color: var(--navy);
  background: var(--white);
}
.dept-btn:hover { border-color: var(--blue); color: var(--blue); }
.dept-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.dept-btn .tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 65%, #081222 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(37,99,235,0.35), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(201,162,39,0.22), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: #c3cde0; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--gold-light); }
.hero-badge span { font-size: 0.82rem; color: #a9b6cc; }
.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Dual funnel cards (Dental Department / Everywhere Ads) */
.funnel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.funnel-card {
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.funnel-card.dental { background: linear-gradient(145deg, #ffffff, #f2f6ff); }
.funnel-card.ads { background: linear-gradient(145deg, var(--navy), var(--navy-deep)); color: #fff; }
.funnel-card.ads h3, .funnel-card.ads p { color: #fff; }
.funnel-card.ads p { color: #c3cde0; }
.funnel-card .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.funnel-card.ads .kicker { color: var(--gold-light); }
.funnel-card h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), #1b46a8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; margin-bottom: 0; }

/* Client logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 44px;
}
.logo-wall .logo-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.logo-wall .logo-tile:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow); }
.logo-wall .logo-tile img { max-height: 54px; width: auto; }

/* Process steps */
.process-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.steps { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700;
}
.step h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 600; }
.step p { margin: 0; font-size: 0.92rem; }

/* Placement gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(6,15,31,0.92), transparent);
  color: #fff; padding: 36px 18px 14px; font-size: 0.88rem; font-weight: 600;
}

/* Testimonial / client feature card */
.feature-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-copy .eyebrow { margin-bottom: 10px; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 2.1rem; color: var(--gold-light); }
.stat span { font-size: 0.86rem; color: #a9b6cc; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), #1b46a8);
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #dbe6ff; margin-bottom: 0; }

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #9fadc6;
  padding: 56px 0 24px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; }

/* Contact / form */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.badge-pill {
  display: inline-block;
  background: rgba(201,162,39,0.14);
  color: #8a6c13;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Sticky call button (mobile) */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,0.25);
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .funnel-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { min-height: 220px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-row { flex-wrap: wrap; }
  .nav-actions { width: 100%; justify-content: center; }
  .brand img { height: 44px; }
  .sticky-call { display: inline-flex; align-items: center; gap: 8px; }
  body { padding-bottom: 70px; }
  .topbar .container { flex-direction: column; gap: 4px; text-align: center; }
}
