/* ==========================================================================
   We Save Smiles - Kessler & Morad, PA
   Modern responsive stylesheet
   http://www.wesavesmiles.com
   ========================================================================== */

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #24303b;
  background-color: #ffffff;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: #0b5fa5;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #084a82;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  line-height: 1.25;
  color: #12324e;
  font-weight: 700;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

hr {
  border: 0;
  border-top: 1px solid #e3eaf1;
  margin: 2rem 0;
}

:focus-visible {
  outline: 3px solid #ffb400;
  outline-offset: 2px;
}

/* --- Layout container (centered) --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* --- Header --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6edf4;
  box-shadow: 0 1px 2px rgba(15, 45, 75, 0.06);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover,
.brand:focus {
  text-decoration: none;
}
.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0b5fa5;
  text-transform: none;
}
.brand-sub {
  font-size: 0.82rem;
  color: #5a6b7a;
  margin-top: 3px;
}
.brand-smile {
  display: inline-block;
  color: #ffb400;
}

/* --- Primary navigation --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #2b3b4b;
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: #e8f2fc;
  color: #0b5fa5;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: #0b5fa5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
}

/* --- Header banner (image wordmark as hero on home) --- */
.hero-banner {
  background: linear-gradient(135deg, #0b3d6b 0%, #0f6aa8 55%, #1f9aa0 100%);
  color: #ffffff;
  padding: 52px 0 58px;
  text-align: center;
}
.hero-banner h1 {
  color: #ffffff;
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.hero-banner .lead {
  font-size: 1.25rem;
  max-width: 760px;
  margin: 0 auto 18px;
  color: #d9ecfa;
}
.hero-banner .brand-wordmark {
  opacity: 0.96;
  border-radius: 8px;
  margin-bottom: 6px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary {
  background: #ffb400;
  color: #12324e;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #ffc233;
  color: #12324e;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-light {
  background: #ffffff;
  color: #0b5fa5;
}
.btn-light:hover,
.btn-light:focus {
  background: #eaf4ff;
  color: #084a82;
  text-decoration: none;
}
.btn-outline {
  border-color: #c6d7e6;
  color: #0b5fa5;
  background: #ffffff;
}
.btn-outline:hover,
.btn-outline:focus {
  background: #e8f2fc;
  text-decoration: none;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: #5a6b7a;
  margin: 18px 0 4px;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumbs li::after {
  content: "/";
  margin: 0 8px;
  color: #b6c4d1;
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: #0b5fa5;
}

/* --- Main & typography sections --- */
main {
  padding: 12px 0 60px;
}

.page-head {
  padding: 30px 0 8px;
}
.page-head h1 {
  font-size: 2.2rem;
  margin: 0 0 6px;
}
.page-head .page-lead {
  color: #4e6070;
  font-size: 1.1rem;
}

.section {
  padding: 40px 0;
}
.section-alt {
  background: #f3f8fd;
  border-top: 1px solid #e3edf6;
  border-bottom: 1px solid #e3edf6;
}
.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}
.section-title h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.section-title p {
  color: #52616f;
}

/* --- Cards / grids --- */
.grid {
  display: grid;
  gap: 22px;
}
.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: #ffffff;
  border: 1px solid #e3ecf4;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(15, 45, 75, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 12px 28px rgba(15, 45, 75, 0.13);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.98rem;
  color: #43525f;
}

/* --- Feature / two-column blocks --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.split .media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 45, 75, 0.12);
}
.split .media img {
  width: 100%;
  display: block;
}
.media + .copy h2,
.copy h2 {
  font-size: 1.8rem;
}

/* --- Info rows / quick facts --- */
.info-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}
.info-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid #eef3f8;
}
.info-list li::before {
  content: "◆";
  position: absolute;
  left: 4px;
  color: #1f9aa0;
  font-size: 0.8rem;
  top: 13px;
}
.info-list strong {
  color: #12324e;
}

/* --- Callout / notice boxes --- */
.callout {
  border-left: 5px solid #1f9aa0;
  background: #eefaf9;
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.callout-warn {
  border-left-color: #ffb400;
  background: #fff7e6;
}
.callout strong {
  color: #12324e;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: #fff;
}
table.data th,
table.data td {
  border: 1px solid #dfe9f2;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: #0f6aa8;
  color: #ffffff;
}
table.data tbody tr:nth-child(even) {
  background: #f6fafd;
}

/* --- FAQ --- */
.faq-item {
  border: 1px solid #e3ecf4;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: #12324e;
  background: #f6fafd;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "+  ";
  color: #0b5fa5;
  font-weight: 800;
}
.faq-item[open] summary::before {
  content: "−  ";
}
.faq-item .faq-body {
  padding: 6px 18px 18px;
}

/* --- Steps (implant process) --- */
.steps {
  counter-reset: step;
  margin: 20px 0;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 72px;
  background: #f3f8fd;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e3edf6;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  background: #0b5fa5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 {
  margin: 0 0 6px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.gallery-item {
  background: #fff;
  border: 1px solid #e3ecf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,45,75,0.07);
}
.gallery-item .gallery-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}
.gallery-item .gallery-cap {
  padding: 16px 18px;
  font-size: 0.95rem;
}
.gallery-item .gallery-cap strong {
  color: #12324e;
  display: block;
  margin-bottom: 4px;
}

/* --- Testimonials --- */
.testimonial {
  border-left: 4px solid #1f9aa0;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 12px rgba(15,45,75,0.06);
}
.testimonial p {
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial .who {
  font-style: normal;
  font-weight: 700;
  color: #0b5fa5;
  font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
  background: #0d2c47;
  color: #cfe0ef;
  padding: 44px 0 26px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.site-footer a {
  color: #bcd8ee;
}
.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul li {
  padding: 3px 0;
}
.site-footer .office p {
  margin-bottom: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #9db8cc;
  text-align: left;
}
.footer-bottom p {
  margin-bottom: 4px;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: #8aa5ba;
  margin-top: 10px;
}

/* --- Back to top --- */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  background: #0b5fa5;
  color: #fff;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(15,45,75,0.25);
  z-index: 60;
}
.back-top:hover,
.back-top:focus {
  background: #084a82;
  color: #fff;
  text-decoration: none;
}
.back-top.show {
  display: flex;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: #46535f; }
.small { font-size: 0.85rem; }
.muted { color: #5a6b7a; }
.accent-blue { color: #0b5fa5; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 34px 0 40px; }
  .hero-banner h1 { font-size: 1.7rem; }
  .page-head h1 { font-size: 1.7rem; }
  .section-title h2 { font-size: 1.5rem; }

  .nav-toggle {
    display: inline-block;
  }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 6px;
  }
  .main-nav a {
    padding: 11px 10px;
  }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .back-top, .breadcrumbs, .nav-toggle {
    display: none !important;
  }
  body { background: #fff; }
  main { padding: 0; }
  a { color: #000; }
}
