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

:root {
  --teal: #7bbcb8;
  --teal-dark: #566fb8;
  --beige: #f5ede0;
  --text: #444;
  --heading: #5a9e9a;
  --light-grey: #f8f8f8;
}

body {
  font-family: Cambria, 'Times New Roman', serif;
  color: var(--text);
  font-size: clamp(16px, 2.5vw, 24px);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Prevent overflow on small screens */
* {
  max-width: 100%;
}

/* ── TOP BAR ── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: #fff;
  transition: padding 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar-scrolled { padding: 0 40px; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text .brand {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #222;
}

.logo-text .tagline {
  font-size: 10px;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
}

.logo-text .sub {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  gap: 10px;
}

.location-btn {
  background: #566fb8;
  color: #000;
  border: none;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 30px;
  cursor: pointer;
  font-family: Cambria, 'Times New Roman', serif;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: #fff;
  border-bottom: 1px solid #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'cambria';
  padding: 37px 11px;
  color: #000;
  text-transform: capitalize;
  font-weight: 500;
  font-size: 16px;
}

.nav-links a:hover { 
  color: #666; 
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  color: #000;
}

.nav-meta a {
  color: #000;
  text-decoration: none;
}
.nav-meta a:hover { color: #566fb8; }

.nav-meta i {
  color: #000;
  margin-right: 4px;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/ayesha-home.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  height:520px;
  padding: 40px 48px;
  background: #DBCDCD7A;
}

.hero-eyebrow {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  opacity: 0.9;
}

.hero-content h1 {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 72px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content p {
  font-size: 24px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 8px;
}

.btn-outline {
  display: inline-block;
  margin-top: 22px;
  border: 1px solid #0A4A6E;
  color: #0A4A6E;
  padding: 9px 26px;
  border-radius: 30px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #0A4A6E;
  color: #fff;
}

/* ── ABOUT ── */
.about-section {
  background: url('../images/bg.jpg') center center / cover no-repeat;
  padding: 80px 40px;
  display: flex;
  justify-content: center;
}

.about-inner {
  background: var(--beige);
  width: 90%;
  padding: 54px 60px;
  text-align: center;
}

.about-inner h2 {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 400;
  color: #0a4a6e;
  margin-bottom: 22px;
}

.about-inner p {
  font-size: 24px;
  color: #555;
  margin-bottom: 14px;
}

.btn-teal {
  display: inline-block;
  margin-top: 18px;
  background: transparent;
  border: 1px solid #0A4A6E;
  color: #0A4A6E;
  padding: 9px 28px;
  border-radius: 30px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-teal:hover {
  background: #0A4A6E;
  color: #fff;
}

/* ── DR ALLIE SPLIT ── */
.dr-section {
  position: relative;
  min-height: 420px;
  background: url('../images/ayesha-allie.jpg') center center / cover no-repeat;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.dr-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 50%;
}

.img-placeholder {
  background: #c0aea4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

.img-placeholder.tall {
  min-height: 420px;
  grid-column: span 1;
}

.img-placeholder.b { background: #b0c4c2; }

.dr-content {
  background: rgba(0,0,0,0.55);
  padding: 54px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

.dr-content p {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 14px;
  opacity: 0.92;
}

.dr-content .provider-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}

.dr-content .active-aligners {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── HOURS ── */
.hours-section {
  background: url('../images/bg.jpg') center center / cover no-repeat;
  padding: 80px 40px;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.hours-box {
  background: #fff;
  padding: 44px 70px;
  text-align: center;
  min-width: 90%;
  height: fit-content;
}

.hours-box h3 {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}

.hours-box .come-visit {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 22px;
}

.hours-box p {
  font-size: 24px;
  color: #555;
}

/* ── BRANDS ── */
.brands-section {
  background: #fff;
  padding: 54px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #444;
}

.brand-logo.active { 
    color: #5ab0a0; 
    font-size: 11px; 
    letter-spacing: 2px; 
}

/* ── CONTACT ── */
.contact-section {
  padding: 72px 100px;
  background: #fff;
}

.contact-section h2 {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 72px;
  font-weight: 400;
  color: #333;
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.contact-info i {
  color: #0A4A6E;
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info a { 
    color: #0A4A6E; 
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 2px solid #0A4A6E;
  padding: 18px 5px;
  font-size: clamp(14px, 2vw, 18px);
  font-family: Cambria, 'Times New Roman', serif;
  color: #555;
  outline: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 80px;
  resize: vertical;
  min-height: 80px;
}

.contact-form ::placeholder { color: #bbb; }

.btn-send {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 15px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover { background: var(--teal-dark); }

/* ── MAPS ── */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 0px;
}

.map-placeholder {
  background: #d4e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
  background: #546db8;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #fff;
  height:100px;
}

footer a { color: var(--teal); }

/* ── ABOUT PAGE ── */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 60px 100px;
}

.about-page-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 400;
  color: #666;
  letter-spacing: 0px;
  margin-bottom: 0px;
  text-transform: uppercase;
  line-height: 1.1;
}

.about-page-subtitle {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 28px;
  margin-top: 20px;
}

.about-page p {
  font-size: 18px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 22px;
  font-weight: 300;
}

.about-quals {
  list-style: disc;
  padding-left: 24px;
  margin-top: 10px;
}

.about-quals li {
  font-size: 18px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 6px;
}

.nav-active {
  color: var(--teal) !important;
}

/* ── REVIEWS PAGE ── */
.reviews-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.reviews-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 400;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.reviews-divider {
  border: none;
  border-top: 1px solid #666;
  margin: 0;
}

.review-item {
  padding: 28px 0;
}

.review-author {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 400;
  color: #666;
  margin-bottom: 12px;
}

.review-text {
  font-size: 18px;
  color: #666;
  line-height: 1.85;
}

.reviews-actions {
  display: flex;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 10px;
}

.btn-read-more {
  background: var(--teal);
  color: #fff;
  border-radius: 30px;
  padding: 10px 26px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.btn-read-more:hover { background: var(--teal-dark); }

.btn-leave-review {
  background: transparent;
  color: #444;
  border: 1px solid #aaa;
  border-radius: 30px;
  padding: 10px 26px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.btn-leave-review:hover {
  background: #444;
  color: #fff;
}

/* ── CONTACT PAGE ── */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.contact-page-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 400;
  color: #555;
  text-align: center;
  margin-bottom: 36px;
}

.location-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.loc-tab {
  background: #f0f0f0;
  border: none;
  padding: 12px 24px;
  font-family: Cambria, 'Times New Roman', serif;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  color: #666;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  flex: 1;
}

.loc-tab.active {
  background: #444;
  color: #fff;
}

.loc-tab:hover:not(.active) {
  background: #ddd;
}

.loc-panel { display: block; }
.loc-panel.hidden { display: none; }

.loc-map {
  width: 100%;
  margin-bottom: 0;
}

.loc-map iframe {
  display: block;
  width: 100%;
}

.loc-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 28px 0 16px;
  border-bottom: 1px solid #eee;
}

.loc-info-col {
  font-size: 18px;
  color: #555;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

.loc-info-col a {
  color: #0A4A6E;
}

.loc-select {
  padding-top: 20px;
}

.btn-select-location {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.btn-select-location:hover {
  background: var(--teal-dark);
}

/* ── DARK FOOTER ── */
.footer-dark {
  background: #2a3a4a;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #aaa;
}

.footer-dark a { color: var(--teal); }

/* ── NAV DROPDOWN ── */
.has-dropdown { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  list-style: none;
  z-index: 1001;
  border-top: 2px solid var(--teal);
}

.has-dropdown:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  padding: 13px 20px !important;
  font-size: 14px;
  color: #444 !important;
  border-bottom: 1px solid #f5f5f5;
  letter-spacing: 0.5px;
  font-weight: 400 !important;
}

.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { color: var(--teal) !important; background: #fafafa; }

/* ── NAV FLYOUT (Advanced Dentistry sub-services) ── */
.has-flyout { position: relative; }
.has-flyout > a { display: flex !important; justify-content: space-between; align-items: center; }

.nav-flyout {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  list-style: none;
  z-index: 1002;
  border-top: 2px solid var(--teal);
}

.has-flyout:hover .nav-flyout { display: block; }

.nav-flyout li a {
  display: block;
  padding: 13px 20px !important;
  font-size: 14px;
  color: #444 !important;
  border-bottom: 1px solid #f5f5f5;
  letter-spacing: 0.5px;
  font-weight: 400 !important;
}

.nav-flyout li:last-child a { border-bottom: none; }
.nav-flyout li a:hover,
.nav-flyout li a.nav-active { color: var(--teal) !important; background: #fafafa; }

/* ── PRACTICE CONTACT PAGE ── */
.practice-split {
  display: grid;
  grid-template-columns: 48% 52%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
}

.practice-map iframe {
  display: block;
  width: 100%;
  height: 500px;
}

.practice-info-panel {
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: #fff;
}

.practice-logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 6px;
}

.practice-doctor {
  font-size: 16px;
  color: #888;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.practice-phone {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 600;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 28px;
  line-height: 1;
}

.practice-phone span {
  color: var(--teal);
  font-size: 45px;
  letter-spacing: 0px;
}

.practice-detail {
  font-size: 18px;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.practice-detail2 {
  font-size: 15px;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
  
.practice-address {
  font-size: 15px;
  color: #666;
  margin-top: 16px;
  line-height: 1.6;
}

/* Send message section */
.send-message-section {
  padding: 60px 100px 80px;
  background: #fff;
}

.send-message-section h2 {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  color: #555;
  text-align: center;
  margin-bottom: 36px;
}

.practice-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-form input,
.practice-form textarea {
  border: none;
  border-bottom: 2px solid #0A4A6E;
  padding: 18px 5px;
  font-size: clamp(14px, 2vw, 16px);
  font-family: Cambria, 'Times New Roman', serif;
  color: #555;
  outline: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.practice-form textarea {
  height: 130px;
  resize: vertical;
  min-height: 100px;
}

.practice-form ::placeholder { color: #bbb; }

.btn-send-full {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 20px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-family: Cambria, 'Times New Roman', serif;
}

.btn-send-full:hover { background: var(--teal-dark); }

/* Appointment bar */
.appointment-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 997;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  overflow-x: hidden;
}

.appt-bar-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  font-weight: 600;
}

.appt-bar-numbers {
  font-size: 14px;
  color: #444;
}

.appt-bar-btn {
  background: var(--teal);
  color: #fff;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
}

.appt-bar-btn:hover { background: var(--teal-dark); }

.appt-bar-close {
  background: none;
  border: 1px solid #ccc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #aaa; 
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 40px;
  line-height: 1;
}



/* ── SERVICE PAGES ── */
.service-page { background: #fff; }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  padding: 48px 60px;
  max-width: 1250px;
  margin: 0 auto;
  align-items: start;
}

.service-content {
  padding-right: 48px;
  /* border-right: 1px solid #eee; */
}

.service-hero-img {
  width: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 28px;
}

.service-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 40px;
  text-transform: uppercase;
  font-weight: 400;
  color: #666;
  margin-bottom: 20px;
}

.service-intro {
  font-size: 17px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-section-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 500;
  color: #666;
  margin: 28px 0 16px;
}

.service-item-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 400;
  color: #666;
  margin: 22px 0 8px;
}

.service-item-text {
  font-size: 17px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 0;
}

.service-list {
  margin: 8px 0 16px 24px;
}
.service-list li {
  font-size: 17px;
  color: #666;
  line-height: 1.85;
}

.service-link {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.service-link:hover { color: var(--teal-dark); }

/* Sidebar */
.service-sidebar { padding-left: 36px; }

.sidebar-heading {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 20px;
}

.sidebar-contact-item { margin-bottom: 16px; }

.sidebar-label {
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  font-weight: 400;
  margin-bottom: 3px;
}

.sidebar-label i { font-size: 18px; margin-right: 4px; }

.sidebar-value {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-value a { color: #555; }
.sidebar-value a:hover { color: var(--teal); }

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-form input,
.sidebar-form textarea {
  border: none;
  border-bottom: 1px solid #0A4A6E;
  padding: 12px 0;
  font-size: clamp(12px, 1.5vw, 13px);
  font-family: Cambria, 'Times New Roman', serif;
  color: #555;
  outline: none;
  background: transparent;
  width: 100%;
  margin-bottom: 4px;
  box-sizing: border-box;
}

.sidebar-form textarea { height: 90px; resize: vertical; min-height: 80px; }
.sidebar-form ::placeholder { color: #bbb; }

.btn-sidebar-send {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  font-family: Cambria, 'Times New Roman', serif;
  transition: background 0.2s;
}

.btn-sidebar-send:hover { background: var(--teal-dark); }

/* Nav dropdown separator for services */
.nav-dropdown-sep { background: #f5f5f5; border-top: 1px solid #eee; }

.nav-dropdown-sep span {
  display: block;
  padding: 6px 20px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

/* ── ADVANCED DENTISTRY GRID PAGE ── */
.service-grid-page {
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid-title {
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  color: #444;
  text-align: center;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}

.service-grid-card {
  display: block;
  text-decoration: none;
}

.service-grid-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.service-grid-card span {
  display: block;
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 15px;
  color: #555;
  padding: 12px 0 0;
}

.service-grid-card:hover span { color: var(--teal); }

/* ── FLOATING CHAT BUTTON ── */
.chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 998;
  transition: background 0.2s;
  white-space: nowrap;
}
.chat-btn:hover { background: var(--teal-dark); }

/* ── MOBILE NAV HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #444;
  transition: transform 0.25s, opacity 0.25s;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE: LARGE DESKTOP (≥1400px) ── */
@media (min-width: 1400px) {
  body { font-size: 26px; }
  .top-bar { padding: 12px 60px; }
  nav { padding: 12px 60px; }
  .contact-section { padding: 100px 120px; }
  .send-message-section { padding: 80px 120px 100px; }
  .about-page { padding: 100px 100px 120px; }
  .service-grid-page { padding: 80px 100px; }
}

/* ── RESPONSIVE: TABLET (≤900px) ── */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
  .service-content {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .service-sidebar { padding-left: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: 1fr; }

  .practice-split { grid-template-columns: 1fr; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid-page { padding: 48px 40px; }

  .loc-info { grid-template-columns: 1fr; }

  .brands-section { flex-wrap: wrap; padding: 40px; gap: 28px; }

  .contact-section { padding: 48px 40px; }
  .send-message-section { padding: 48px 40px 60px; }

  .dr-section { min-height: auto; flex-direction: column; }
  .dr-images { width: 100%; order: 1; }
  .dr-content { width: 100%; order: 2; padding: 40px 32px; }
}

/* ── RESPONSIVE: MEDIUM PHONE (480px to 768px) ── */
@media (min-width: 481px) and (max-width: 767px) {
  body { font-size: 20px; }
  .hero { min-height: 380px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 18px; }

  .contact-section { padding: 50px 32px; }
  .contact-section h2 { font-size: 42px; }

  .about-page { padding: 50px 32px 80px; }
  .about-page-title { font-size: 32px; }
  .about-page-subtitle { font-size: 22px; }
  .about-page p { font-size: 17px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .service-grid-card img { height: 180px; }
}

/* ── RESPONSIVE: MOBILE (≤768px) ── */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar { padding: 10px 16px; flex-wrap: wrap; }
  .top-bar-right { display: none; }
  .logo-img { height: 50px; }
  .logo { gap: 8px; }
  .logo-text .sub { font-size: 8px; }
  .logo-text .tagline { font-size: 9px; }
  .logo-text .brand { font-size: 20px; }

  /* Nav - hamburger mode */
  nav {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
  }
  nav.nav-open .nav-links { display: flex; }

  .nav-links > li { border-bottom: 1px solid #f5f5f5; }
  .nav-links > li > a {
    padding: 14px 16px !important;
    font-size: 14px;
    width: 100%;
    display: block;
  }

  .nav-meta { display: none; }

  /* Disable hover dropdowns on mobile, use JS class toggle */
  .has-dropdown:hover .nav-dropdown { display: none !important; }
  .nav-dropdown {
    position: static !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: 3px solid var(--teal);
    padding-left: 12px;
    min-width: unset;
    display: none !important;
  }
  .has-dropdown.mobile-open .nav-dropdown { display: block !important; }

  .has-flyout:hover .nav-flyout { display: none !important; }
  .nav-flyout {
    position: static !important;
    box-shadow: none !important;
    border-top: none !important;
    left: auto !important;
    top: auto !important;
    border-left: 3px solid var(--teal);
    padding-left: 12px;
    min-width: unset;
    display: none !important;
  }
  .has-flyout.mobile-open .nav-flyout { display: block !important; }

  .nav-dropdown li a,
  .nav-flyout li a { padding: 10px 8px !important; }

  /* Hero */
  .hero { min-height: 360px; }
  .hero-content { height: auto; padding: 32px 20px; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
  .hero-eyebrow { font-size: 14px; }

  /* About */
  .about-section { padding: 40px 16px; }
  .about-inner { padding: 32px 24px; width: 100%; }
  .about-inner h2 { font-size: 24px; }
  .about-inner p { font-size: 16px; }

  /* Dr section */
  .dr-content { width: 100%; padding: 32px 20px; }

  /* Hours */
  .hours-section { height: auto; padding: 48px 20px; }
  .hours-box { padding: 28px 20px; min-width: unset; }
  .hours-box h3 { font-size: 18px; }
  .hours-box .come-visit { font-size: 14px; }
  .hours-box p { font-size: 16px; }

  /* Contact section (homepage) */
  .contact-section { padding: 40px 20px; }
  .contact-section h2 { font-size: 36px; }

  /* About page */
  .about-page { padding: 36px 20px 60px; }
  .about-page-title { font-size: 26px; }
  .about-page-subtitle { font-size: 17px; letter-spacing: 2px; }
  .about-page p { font-size: 16px; }

  /* Reviews page */
  .reviews-page { padding: 36px 20px 60px; }
  .reviews-title { font-size: 28px; }
  .review-author { font-size: 18px; }
  .review-text { font-size: 16px; }

  /* Contact page */
  .contact-page { padding: 36px 20px 60px; }

  /* Practice pages */
  .practice-map iframe { height: 280px; }
  .practice-info-panel { padding: 32px 20px; }
  .practice-phone { font-size: 28px; letter-spacing:0px; }
  .send-message-section { padding: 36px 20px 56px; }

  /* Service pages */
  .service-layout { padding: 28px 20px; }
  .service-grid-page { padding: 32px 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .service-grid-card img { height: 150px; }
  .service-hero-img { height: 200px; }

  /* Footer */
  footer, .footer-dark {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 20px;
  }

  /* Appointment bar */
  .appointment-bar {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .appt-bar-text { font-size: 10px; }
  .appt-bar-numbers { font-size: 12px; }
  .appt-bar-close { position: static; }

  /* Chat button - clear appointment bar if present */
  .has-appt-bar .chat-btn { bottom: 70px; }

  /* Logo text responsive */
  .location-btn { padding: 10px 16px; font-size: 13px; }

  /* Footer responsive */
  footer {
    height: auto;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  /* Brands section responsive */
  .brands-section {
    padding: 30px 16px;
    gap: 16px;
  }
  .brand-logo { font-size: 11px; }
}

/* ── RESPONSIVE: SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  body { font-size: 18px; }

  .hero { min-height: 300px; }
  .hero-content { padding: 20px 16px; }
  .hero-content h1 { font-size: 22px; line-height: 1.2; }
  .hero-content p { font-size: 14px; }
  .hero-eyebrow { font-size: 12px; }

  .contact-section h2 { font-size: 22px; }
  .contact-section { padding: 24px 16px; }

  .about-inner h2 { font-size: 18px; }
  .about-inner { padding: 20px 16px; }
  .about-inner p { font-size: 14px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .service-grid-card img { height: 100px; }
  .service-grid-card span { font-size: 12px; padding-top: 8px; }
  .service-grid-page { padding: 20px 16px; }

  .sidebar-heading { font-size: 16px !important; letter-spacing: 0.5px; }
  .sidebar-label { font-size: 12px !important; }
  .sidebar-value { font-size: 13px !important; }

  nav { padding: 8px 12px; }
  .top-bar { padding: 0 12px; }
  .logo-img { height: 45px; }
  .logo-text .brand { font-size: 16px; }

  .service-layout { padding: 16px 12px; }
  .service-title { font-size: 28px; }
  .service-intro { font-size: 15px; }
  .service-section-title { font-size: 20px; }
  .service-item-title { font-size: 18px; }
  .service-item-text { font-size: 15px; }

  .hours-box { padding: 20px 16px; }
  .hours-box h3 { font-size: 18px; }
  .hours-box .come-visit { font-size: 12px; }
  .hours-box p { font-size: 14px; }

  .practice-phone { font-size: 24px; }
  .practice-detail { font-size: 16px; }
  .practice-detail2 { font-size: 13px; }
  .practice-address { font-size: 13px; }

  .appointment-bar {
    padding: 6px 10px;
    gap: 6px;
  }
  .appt-bar-text { font-size: 9px; }
  .appt-bar-numbers { font-size: 11px; }

  .btn-outline,
  .btn-teal,
  .btn-send,
  .btn-read-more,
  .btn-select-location,
  .btn-send-full,
  .btn-sidebar-send {
    font-size: 12px;
    padding: 8px 16px;
  }

  .chat-btn { font-size: 11px; padding: 8px 14px; }

  .dr-content p { font-size: 14px; }
  .dr-content .provider-label { font-size: 9px; }
}

/* ── RESPONSIVE: EXTRA SMALL PHONE (≤360px) ── */
@media (max-width: 360px) {
  body { font-size: 16px; }

  .hero { min-height: 250px; }
  .hero-content { padding: 16px 12px; }
  .hero-content h1 { font-size: 18px; }
  .hero-content p { font-size: 12px; }

  .top-bar { padding: 6px 10px; }
  .logo-img { height: 40px; }
  .logo-text .brand { font-size: 14px; }
  .logo-text .sub { font-size: 7px; }
  .logo-text .tagline { font-size: 8px; }

  nav { padding: 6px 10px; }
  .nav-toggle span { width: 20px; }

  .about-page { padding: 20px 12px 40px; }
  .about-page-title { font-size: 20px; }
  .about-page-subtitle { font-size: 14px; }
  .about-page p { font-size: 14px; }
  .about-quals li { font-size: 14px; }

  .contact-section { padding: 20px 12px; }
  .contact-section h2 { font-size: 18px; }

  .service-layout { padding: 12px 10px; }
  .service-title { font-size: 22px; }
  .service-intro { font-size: 13px; }

  .sidebar-heading { font-size: 14px !important; }
  .sidebar-label { font-size: 11px !important; }
  .sidebar-value { font-size: 12px !important; }

  footer { padding: 10px 10px; font-size: 11px; }
}