/* San Diego Dental Practice Marketing — shared styles (modernized, mobile-first)
   Brand: #1a6ca8 (primary) / #5cb7e6 (accent)
   Class names are kept stable so existing per-page inline styles still apply. */

:root {
  --brand: #1a6ca8;
  --brand-dark: #14517d;
  --brand-darker: #0f3f63;
  --accent: #5cb7e6;
  --accent-soft: #eaf4fb;
  --nav: #1a6ca8;
  --bg: #f4f7fa;
  --ink: #1f2933;
  --muted: #5b6b7b;
  --card: #ffffff;
  --line: #e3e9ef;
  --danger: #e8523f;
  --danger-dark: #c0392b;
  --success: #1f9d6b;
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16,42,67,0.06), 0 1px 2px rgba(16,42,67,0.08);
  --shadow-md: 0 6px 20px rgba(16,42,67,0.08), 0 2px 6px rgba(16,42,67,0.06);
  --shadow-lg: 0 18px 40px rgba(16,42,67,0.14);
  --gradient: linear-gradient(135deg, #2b8fd1 0%, #1a6ca8 55%, #14517d 100%);
  --ff: 'Roboto', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem; }

/* ---------- Header ---------- */
header {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  background: var(--gradient);
  color: #fff;
}
.brand-link { text-decoration: none; color: inherit; display: inline-block; }
.company-name {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0 0 0.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.company-tagline { font-size: clamp(1rem, 2.6vw, 1.45rem); color: #e6f1f9; margin: 0; font-weight: 400; }
.logo-image {
  width: clamp(84px, 18vw, 140px); aspect-ratio: 1; height: auto; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.85); margin: 0 auto 1.25rem;
  overflow: hidden; position: relative; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.logo-image img { width: 100%; height: 100%; object-fit: cover; }
.logo-image-placeholder {
  width: 100%; height: 100%; background: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; font-weight: 800; letter-spacing: 0.04em;
}

/* ---------- Navigation (sticky, scrollable on mobile) ---------- */
.navigation {
  background: var(--brand-dark); padding: 0.5rem 0; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: center; gap: 0.35rem; flex-wrap: wrap;
  padding: 0 0.75rem;
}
.nav-links a {
  color: #eaf2f8; text-decoration: none; padding: 0.6rem 0.95rem;
  border-radius: 999px; font-size: 0.97rem; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.14); }
.nav-links a.active { background: var(--accent); color: #07344f; font-weight: 700; }

@media (max-width: 640px) {
  .nav-links {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0.25rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0.55rem 0.8rem; font-size: 0.92rem; }
}

/* ---------- Sections & headings ---------- */
section {
  background: var(--card); padding: clamp(1.5rem, 4vw, 2.5rem); margin: 1.75rem 0;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
h1, h2, h3, h4 { color: var(--brand-dark); line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin: 0 0 1rem; font-weight: 800; letter-spacing: -0.02em; }
h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 700;
  border-bottom: 3px solid var(--accent); padding-bottom: 0.5rem; margin-top: 0;
  display: inline-block;
}
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }

/* ---------- Buttons ---------- */
.cta-button {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.95rem 1.7rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  cursor: pointer; border: none;
}
.cta-button:hover { background: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-button:active { transform: translateY(0); }
.cta-button.primary { background: var(--danger); box-shadow: 0 6px 18px rgba(232,82,63,0.32); }
.cta-button.primary:hover { background: var(--danger-dark); }
.cta-button-white { background: #fff; color: var(--brand-dark); }
.cta-button-white:hover { background: #eef4f9; color: var(--brand-darker); }

.cta-section {
  text-align: center; padding: clamp(2.25rem, 6vw, 3.5rem) 1.25rem; margin: 2.5rem 0;
  background: var(--gradient); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.cta-title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.85rem; color: #fff; border-bottom: none; }
.cta-text { font-size: clamp(1rem, 2.4vw, 1.15rem); margin: 0 auto 1.75rem; max-width: 640px; opacity: 0.96; }

/* ---------- Hero (new offer block) ---------- */
.hero {
  background: var(--gradient); color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem); margin: 1.75rem 0; box-shadow: var(--shadow-md);
}
.hero h1, .hero h2 { color: #fff; border: none; }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.16); color: #fff;
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero p { font-size: clamp(1.02rem, 2.4vw, 1.2rem); opacity: 0.97; max-width: 680px; }
.hero .cta-button { margin-top: 0.75rem; }

/* ---------- Cards & grids ---------- */
.service-cards, .service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem; margin-top: 1.75rem;
}
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { margin-top: 0; }
.service-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 0.85rem; display: block; }

.features-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem; margin-top: 1.75rem;
}
.feature-item {
  background: var(--card); padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.feature-icon { font-size: 1.9rem; color: var(--accent); margin-bottom: 0.85rem; }
.feature-title { font-size: 1.18rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.5rem; }

.highlight-box { background: var(--accent-soft); border-left: 4px solid var(--accent); }

/* Process / steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem; margin-top: 1.75rem;
}
.step-item { text-align: center; padding: 1.25rem; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft);
  color: var(--brand); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.9rem;
  border: 2px solid var(--accent);
}

/* ---------- Results / stats ---------- */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem; text-align: center; margin-top: 1.75rem;
}
.result-item {
  background: var(--accent-soft); padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.result-number { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; color: var(--brand); margin-bottom: 0.4rem; }
.result-label { font-size: 0.98rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--accent-soft); padding: 1.6rem; border-radius: var(--radius);
  position: relative; margin-bottom: 1.25rem; border: 1px solid var(--line);
}
.testimonial-text { font-style: italic; margin-bottom: 1rem; }
.testimonial-author { font-weight: 700; margin-bottom: 0; }
.testimonial-location { color: var(--muted); font-size: 0.9rem; }

/* ---------- Forms ---------- */
.lead-form input, .lead-form textarea, .lead-form select,
form input[type="text"], form input[type="email"], form input[type="tel"],
form textarea, form select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  margin-bottom: 1rem; background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-form input:focus, form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,183,230,0.25);
}
.free-resource-box {
  background: var(--gradient); color: #fff; padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius); margin: 2rem 0; text-align: center; box-shadow: var(--shadow-md);
}
.free-resource-box h3 { color: #fff; margin-top: 0; }
.free-resource-box input { color: var(--ink); }

/* ---------- FAQ (LLM-friendly Q&A) ---------- */
.faq { margin-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--brand-dark); margin: 0 0 0.45rem; font-size: 1.08rem; }
.faq-a { margin: 0; color: var(--ink); }

/* ---------- Answer box (concise summary for AI / snippets) ---------- */
.answer-box {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin: 1.5rem 0;
}
.answer-box p { margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { max-width: var(--maxw); margin: 1rem auto 0; padding: 0 1.25rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Checklist (offer pages) ---------- */
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--success); position: absolute; left: 0; top: 0.1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--brand-darker); color: #d9e6f0; text-align: center;
  padding: 2rem 1.25rem; margin-top: 3rem; font-size: 0.92rem;
}
footer p { margin: 0; opacity: 0.92; }
footer a { color: #d9e6f0; text-decoration: none; margin: 0 0.7rem; }
footer a:hover { text-decoration: underline; color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Offer banner (done-for-you highlight) ---------- */
.offer-banner {
  background: var(--gradient); color: #fff; border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem); margin: 1.75rem 0; box-shadow: var(--shadow-md);
}
.offer-banner h2, .offer-banner h3 { color: #fff; border: none; margin-top: 0; }
.offer-banner p { opacity: 0.97; }
.offer-banner .offer-target {
  display: inline-block; background: rgba(255,255,255,0.16); color: #fff;
  padding: 0.4rem 1rem; border-radius: 999px; font-weight: 700; margin: 0.25rem 0 1rem;
}
.offer-banner .check-list li::before { color: #fff; }
.offer-banner .check-list li { color: #eaf4fb; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(16,42,67,0.12);
  }
  .mobile-cta-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.85rem 0.5rem; border-radius: 999px; text-decoration: none;
    font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  }
  .mobile-cta-bar .mcta-call { background: var(--success); color: #fff; }
  .mobile-cta-bar .mcta-book { background: var(--danger); color: #fff; }
  /* keep the fixed bar from covering page content / footer */
  body { padding-bottom: 4.75rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
  .container { padding: 1.5rem 1rem; }
  section { margin: 1.25rem 0; }
}
