/* Chester Family Dental - Main Stylesheet */
/* Fonts: Raleway (body), Josefin Sans (headings) */
/* Colors: Base #C6C6C6/#333, Blue #3279E3, Gold #BFAD73, Navy #022C47 */

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

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== BASE ===== */
body {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.625;
  color: #333;
  background-color: #fff;
}
a { color: inherit; text-decoration: none; opacity: 1; transition: opacity 0.1s linear; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: 'Josefin Sans', Arial, sans-serif; line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: 30px; }
h2 { font-size: 27px; }
h3 { font-size: 24px; }
h4 { font-size: 21px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }
p { margin-bottom: 1.625em; font-size: 15px; line-height: 1.625em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
strong, b { font-weight: 700; }

/* ===== LAYOUT CONTAINER ===== */
.site-container {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  background: #C6C6C6;
  padding: 12px 20px;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.header-logo img,
.logo img {
  max-height: 90px;
  width: auto;
}
.header-logo a,
.logo { display: block; }
.header-contact,
.header-info {
  text-align: center;
  color: #022C47;
  font-size: 18px;
  font-weight: 600;
}
.header-contact a,
.header-info a { color: #022C47; }
.header-address { display: block; margin-bottom: 4px; }
.header-phone { display: block; margin-bottom: 8px; }

/* ===== BUTTONS ===== */
.btn,
.btn-primary,
a.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s;
  line-height: 1;
}
.btn:hover, .btn-primary:hover { opacity: 0.8; text-decoration: none; }
.btn-gold, .btn-primary { background: #BFAD73; color: #fff; }
.btn-blue { background: #3279E3; color: #fff; }
.btn-navy { background: #022C47; color: #fff; }

/* ===== NAVIGATION ===== */
.site-nav {
  background: #3279E3;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  max-width: 960px;
  margin: 0 auto;
}
.site-nav > ul > li {
  position: relative;
}
.site-nav a {
  display: block;
  color: #C6C6C6;
  padding: 0 1.2125em;
  font-size: 16px;
  font-weight: 500;
  line-height: 45px;
  white-space: nowrap;
  transition: opacity 0.1s linear;
}
.site-nav a:hover,
.site-nav .active > a,
.site-nav a.active {
  background: #022C47;
  color: #fff;
  opacity: 1;
}
/* Dropdown */
.site-nav .has-submenu > a::after {
  content: ' \25BE';
  font-size: 10px;
}
.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #3279E3;
  min-width: 230px;
  z-index: 100;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
}
.site-nav .has-submenu:hover .submenu {
  display: block;
}
.site-nav .submenu li a {
  padding: 0 20px;
  font-size: 14px;
  line-height: 45px;
}
.site-nav .submenu a:hover {
  background: #022C47;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: #3279E3;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 53px;
}

/* ===== PAGE TITLE BAR ===== */
.page-title-bar {
  text-align: center;
  padding: 20px;
  background: #fff;
}
.page-title-bar h1 {
  font-family: 'Josefin Sans', sans-serif;
  color: #333;
  margin: 0;
  font-size: 30px;
}

/* ===== CONTENT AREA ===== */
.site-content {
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 20px;
}
.site-content .container {
  display: flex;
  flex-wrap: wrap;
}
.content-wrap {
  display: flex;
  flex-wrap: wrap;
}
.content-area,
.main-content {
  flex: 1;
  min-width: 0;
  padding: 10px 36px 25px;
}
.full-width .content-area,
.full-width .main-content {
  width: 100%;
  padding: 10px 36px 25px;
}
.has-sidebar .content-area,
.has-sidebar .main-content {
  width: 65%;
}
.has-sidebar .sidebar {
  width: 35%;
  padding: 10px 20px 25px;
}

/* ===== SIDEBAR ===== */
.sidebar-box {
  margin-bottom: 25px;
  padding: 18px;
  background: #fff;
  border-radius: 4px;
}
.sidebar-box h3 {
  font-size: 27px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}
.sidebar-box p {
  font-size: 15px;
  text-align: center;
  line-height: 1.625em;
}
.sidebar-box table {
  width: 100%;
  border: 1px solid #dfdfdf;
  background: #f9f9f9;
  border-collapse: separate;
  font-size: 15px;
}
.sidebar-box table td {
  padding: 8px 15px;
  line-height: 1.5em;
  border-top: 1px solid #fff;
}
.sidebar-box table tr:nth-child(even) { background: #f6f6f6; }
.sidebar-box table thead { font-weight: bold; background: linear-gradient(#f9f9f9, #ececec); }
.sidebar-box table th { padding: 0 15px; line-height: 36px; text-align: left; }

.sidebar-callout {
  background: #3279E3;
  color: #fff;
  text-align: center;
  padding: 25px 18px;
  border-radius: 4px;
}
.sidebar-callout h2,
.sidebar-callout h3,
.sidebar-callout p,
.sidebar-callout a { color: #fff; }
.sidebar-callout-text { font-size: 27px; font-family: 'Josefin Sans', sans-serif; margin-bottom: 15px; }
.sidebar-callout-phone a { font-size: 18px; font-weight: 700; }

.sidebar-cta {
  text-align: center;
  padding: 20px 18px;
}
.sidebar-cta h3 { font-size: 27px; }
.sidebar-cta p { font-size: 18px; }

.sidebar-services ul { list-style: none; padding: 0; margin: 0; }
.sidebar-services li { padding: 6px 0; border-bottom: 1px solid #eee; }
.sidebar-services li:last-child { border-bottom: none; }
.sidebar-services a { font-size: 15px; font-weight: 500; color: #3279E3; }

/* ===== SERVICE BUTTONS GRID ===== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.service-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #BFAD73;
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  transition: opacity 0.2s;
}
.service-btn:hover { opacity: 0.8; text-decoration: none; }
.service-btn.blue { background: #3279E3; }
.service-btn.navy { background: #022C47; }

/* ===== IMAGE + TEXT ROWS ===== */
.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.content-row .col-img {
  flex: 0 0 45%;
  max-width: 45%;
}
.content-row .col-text {
  flex: 1;
  min-width: 0;
}
.content-row img {
  box-shadow: 0 2px 6px rgba(10,10,10,0.6);
}

/* ===== CALLOUT BOX ===== */
.callout-box {
  border-top: 1px solid #3279E3;
  padding: 10px 0;
  margin-bottom: 20px;
  text-align: center;
}
.callout-box h2 {
  margin: 0;
  font-size: 30px;
}

/* ===== REVIEWS ===== */
.review-section { margin-bottom: 30px; }
.review-section h2 { text-align: center; }
.review-badge { text-align: center; margin-bottom: 15px; }
.review-badge img { display: inline-block; max-height: 50px; }
.review-card {
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.review-card:last-child { border-bottom: none; }
.review-text,
.review-card .review-quote {
  font-style: italic;
  font-weight: 600;
  color: #022C47;
  margin-bottom: 5px;
}
.review-author,
.review-card .review-author {
  font-size: 13px;
  color: #666;
}
.review-divider { text-align: center; padding: 20px 0; }
.review-divider img,
.gold-divider {
  display: inline-block;
  max-width: 300px;
  margin: 0 auto;
  height: auto;
}
.text-center { text-align: center; }

/* ===== FAQ ===== */
.faq-item { margin-bottom: 20px; }
.faq-item h3 {
  color: #022C47;
  margin-bottom: 5px;
  font-size: 18px;
}
.faq-section { margin-bottom: 30px; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
  padding: 0 36px;
}
.gallery-grid img {
  box-shadow: 0 2px 6px rgba(10,10,10,0.6);
  width: 100%;
}

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 500px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.625em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1px;
  border: 1px solid #ccc;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  margin-bottom: 10px;
  height: 30px;
  line-height: 30px;
  text-indent: 10px;
}
.contact-form textarea { height: 200px; min-height: 200px; resize: vertical; line-height: 1.625em; text-indent: 0; padding: 5px 10px; }
.contact-form button,
.contact-form input[type="submit"] {
  padding: 10px 22px;
  background: #BFAD73;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1;
  height: auto;
}
.contact-form button:hover { opacity: 0.8; }
.form-group { margin-bottom: 10px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #C6C6C6;
  color: #333;
  padding: 30px 20px;
  margin-top: 0;
}
.footer-inner,
.footer-columns {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 {
  font-family: 'Josefin Sans', sans-serif;
  color: #022C47;
  margin-bottom: 10px;
  font-size: 27px;
}
.footer-col p, .footer-col a { color: #333; font-size: 15px; }
.footer-col a:hover { opacity: 0.8; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 5px; }
.footer-bottom {
  max-width: 960px;
  margin: 20px auto 0;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 13px;
  color: #666;
}
.footer-bottom a { color: #3279E3; }
.footer-bottom ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; justify-content: center; gap: 20px; }

/* Social icons */
.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
  font-size: 24px;
}

/* ===== HOMEPAGE HERO ===== */
.hero-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 25px 0;
}
.hero-inner,
.hero-section > div {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.hero-image,
.hero-img {
  flex: 0 0 50%;
  max-width: 50%;
}
.hero-image img,
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-content,
.hero-text {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.hero-content h1,
.hero-content h2,
.hero-text h2 {
  color: #022C47;
  font-size: 27px;
  margin-bottom: 15px;
}
.hero-content h3 { font-size: 18px; color: #333; font-weight: 400; margin-bottom: 15px; }
.hero-content p,
.hero-text p { font-size: 15px; }

/* ===== HOMEPAGE CONTENT SECTIONS ===== */
.home-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 36px;
}

/* ===== HOMEPAGE SERVICE CARDS ===== */
.home-services {
  max-width: 960px;
  margin: 0 auto;
  padding: 25px 36px;
}
.home-services h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 27px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card,
.home-service-card {
  text-align: center;
  padding: 20px 15px;
  background: #fff;
  border: 1px solid #dfdfdf;
  transition: opacity 0.2s;
}
.service-card:hover,
.home-service-card:hover { opacity: 0.9; }
.service-card h3,
.home-service-card h3 {
  font-size: 21px;
  color: #022C47;
  margin-bottom: 8px;
}
.service-card p,
.home-service-card p { font-size: 15px; margin-bottom: 12px; }
.service-card a,
.home-service-card a { font-weight: 600; font-size: 15px; color: #3279E3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    flex-direction: column;
  }
  .site-nav.open ul { display: flex; }
  .site-nav .submenu {
    position: static;
    box-shadow: none;
  }
  .site-nav .has-submenu:hover .submenu {
    display: block;
  }
  .has-sidebar .content-area,
  .has-sidebar .main-content,
  .has-sidebar .sidebar {
    width: 100%;
  }
  .hero-image, .hero-img,
  .hero-content, .hero-text { flex: 0 0 100%; max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .content-row .col-img { flex: 0 0 100%; max-width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner, .footer-columns { flex-direction: column; }
}
@media (max-width: 480px) {
  .service-grid { flex-direction: column; }
  .service-btn { width: 100%; text-align: center; }
}
