@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --primary: #31735b;
  --primary-hover: #265946;
  --header-bg-start: #095e7f;
  --header-bg-end: #2da3d1;
  --navy: #0a5d7e;
  --ice-blue: #cef1ff;
  --bg: #ffffff;
  --bg-alt: #f4faf8;
  --text: #22333b;
  --muted: #5c6b6b;
  --border: #d2e4df;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(9, 94, 127, 0.08);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.2rem; color: var(--primary); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Top Secondary Utility Bar */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.topbar a:hover { opacity: 0.85; text-decoration: underline; }
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-btn {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.topbar-btn:hover { background: rgba(255, 255, 255, 0.3); text-decoration: none !important; }

/* Main Header */
header.site-header {
  background: linear-gradient(to bottom, var(--header-bg-start) 0%, var(--header-bg-end) 99%);
  color: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  font-family: 'Merriweather', Georgia, serif;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.logo-text { display: flex; flex-direction: column; }
.logo-tagline { font-size: 0.72rem; font-family: 'Source Sans Pro', sans-serif; opacity: 0.9; font-weight: 400; letter-spacing: 0.5px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background-color: var(--primary);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(49, 115, 91, 0.3);
}
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff !important;
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy) !important;
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* As Seen On Media Banner */
.media-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  text-align: center;
}
.media-banner p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.media-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.media-tag {
  background: var(--ice-blue);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--navy);
  font-size: 0.85rem;
}

/* Home Hero Banner */
.hero {
  background: var(--ice-blue) url('https://franckfamilydental.com/wp-content/uploads/best-of-rocklin-banner-stars-blue-bg-2024.png') no-repeat right center;
  background-size: cover;
  color: var(--navy);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 0.4em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--navy);
  max-width: 540px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.award-badge {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inner Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--header-bg-end));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { opacity: 0.95; max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Grid Layouts & Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(9, 94, 127, 0.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ice-blue);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card h3 { color: var(--navy); margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Philosophy & Promises List */
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.promise-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--text);
}
.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.2rem;
}

/* Feature & Book Spotlight */
.book-spotlight {
  background: var(--ice-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}
.book-icon { font-size: 3rem; flex: none; }

/* CTA Band */
.cta-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { font-size: 1.1rem; opacity: 0.95; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--navy) !important;
}
.cta-band .btn-primary:hover {
  background: var(--ice-blue);
}

/* Contact / Map / Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { display: flex; gap: 14px; margin-bottom: 18px; color: var(--muted); }
.info-list li span.icon { font-size: 1.3rem; flex: none; }
.info-list strong { color: var(--navy); display: block; font-size: 1rem; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

form.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); margin: 12px 0 4px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none;
  background: #e6f6f2;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 14px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 600;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.social-links a:hover {
  background: var(--ice-blue);
  color: var(--navy);
}

/* Footer */
footer.site-footer {
  background: #095e7f;
  color: #e2f1f7;
  padding: 48px 0 20px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 32px;
}
footer.site-footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}
footer.site-footer a { color: #e2f1f7; text-decoration: none; font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; text-decoration: underline; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #c0deeb;
}

/* Badges & Utility */
.badge {
  display: inline-block;
  background: var(--ice-blue);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.text-center { text-align: center; }
.mt { margin-top: 20px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px;
    gap: 16px;
    box-shadow: -6px 0 24px rgba(0,0,0,0.3);
    transition: right 0.25s ease;
  }
  nav.main-nav.open { right: 0; }
  .hamburger { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .hero, .page-hero { padding: 40px 0; }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
}
.nav-overlay.open { display: block; }
