/* ===================================================
   WORLD DENTAL SPECIALITIES — Full Mouth Rehabilitation
   =================================================== */

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

:root {
  --teal:       #0194C5;
  --teal-dark:  #0194C5;
  --teal-light: #e8f8fb;
  --green:      #77BE0C;
  --dark:       #1a1a2e;
  --dark-footer:#1c1c2e;
  --text:       rgb(0, 0, 0);
  --text-light: #555555;
  --border:     #dddddd;
  --bg:         #ffffff;
  --bg-gray:    #f5f7f9;
  --white:      #ffffff;
  --bg-light:   #f5f7f8;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Maven Pro', Arial, sans-serif;
  --gutter:     20px;
  /* Matches the .container's own left inset (max-width:1230px, centered) at
     every viewport width, so headings/intros placed outside .container still
     line up with the grid content inside it instead of only at one width. */
  --edge:       max(var(--gutter), calc((100vw - 1230px) / 2 + var(--gutter)));
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}

#header { padding: 0 8.2rem 0 9rem !important; }
@media (min-width: 768px) and (max-width: 1024px) {
  #header { padding: 1rem 3.5rem !important; }
}
@media (max-width: 768px) {
  #header { padding: 1rem 1.5rem !important; }
}

#topsection .toplinks {
  padding: 1rem;
}
#topsection .toplinkscontainer {
  margin-left: 4rem;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  max-width: 1330px;
  margin: 0 auto;
}

.logo-placeholder {
  width: 140px;
  height: 44px;
  background: #d0e8ec;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  letter-spacing: 1px;
  text-decoration: none;
}

.team-img{
    width: 10%;
    border-radius: 50% 50% 50% 50%;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Maven Pro', Arial, sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0;
  border-radius: 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.btn-nav {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-family: 'Maven Pro', Arial, sans-serif;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-nav:hover { background: var(--teal-dark); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-image-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.hero-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,151,178,0.3);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

a, li, p, ul{
  font-family: "Maven Pro", sans-serif;
  line-height: 1.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  /* top padding includes a 90px offset so text isn't hidden under the
     fixed-position site header (#topsection .header-container), which
     sits outside normal document flow and would otherwise overlap it */
  padding: 150px 0 60px;
  max-width: 1600px;
  margin-left: var(--edge);
  width: 100%;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: 3.7rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 26px;
  max-width: 780px;
  margin-left: 0;
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.25rem;
  font-style: var(--font-body);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.2;
  margin-left: 0;
}
.btn-outline-white {
  display: inline-block;
  border: 2px solid #fff;
  font-family: "Maven Pro", Arial, sans-serif;
  color: #397587;
  background: white;
  padding: 6px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 400;
  margin-left: 0;
  margin-bottom: 50px;
  transition: background 0.2s, color 0.2s;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ---- GENERAL SECTION ---- */
.section {
  padding: 45px 0;
}
.section h2{
  font-family: var(--font-head);
  font-size: 3.3rem;
  letter-spacing: 0;
  max-width: 1230px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.container h2{

}

h1, h2, h3, h4, h5, h6{
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 20px;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

p {
  margin-left: 5px;
  color: var(--text);
  font-size: 1.19rem;
}

.process-card p{
  margin-top: 8px;
}

.section-sub {
  max-width: 100%;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Maven Pro', Arial, sans-serif;
  font-weight: 400;
}

.section.team-section h2 {
  margin-left: var(--edge);
  font-family: var(--font-head);
  font-size: 3.3rem;
  letter-spacing: 0;
  max-width: 1200px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section li,
.section .section-desc,
.section .section-body-text {
  text-align: left;
}

.team-text-col p{
  font-size: 1.19rem;
}

.team-section-intro {
  margin-left: var(--edge);
  max-width: 1100px;
}
.team-section-intro p {
  margin-bottom: 1px;
  margin-left: 5px;
}

.team-text-col .blue-list {
  grid-template-columns: 1fr;
  gap: 4px 24px;
}

.team-text-col{
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 24px;
  font-size: 14px;
  color: var(--text);
}

.team-intro{
  margin-left: var(--edge);
  margin-top: 15px;
}

.section-desc {
  font-size: 1.19rem;
  color: rgb(0, 0, 0);
  max-width: 100%;
  line-height: 1.7;
  margin-bottom: 15px;
  padding: 0;
}
.section-body-text {
  font-size: 1.19rem;
  color: black;
  max-width: 100%;
  padding: 0;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 16px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-dark); }

/* ---- BLUE BULLET LIST ---- */
.blue-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.blue-list li {
  font-size: 1.19rem;
  color: var(--text);
  padding: 4px 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.blue-list li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 3px;
  display: inline-block;
  object-fit: contain;
}
.blue-list li::before {
  display: none;
}

/* ---- SIGNS SECTION ---- */
.signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.sign-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 250;
  color: var(--text);
}
.sign-icon {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;
}
.sign-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.icon-fallback { font-size: 20px; }

/* ---- WHAT IS SECTION ---- */
.what-section { background: var(--bg); }
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.what-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 24px;
  font-size: 14px;
}
.what-card p { margin-bottom: 8px; color: var(--text);  font-size: 1.19rem; }
.treatments-cols {
  display: flex;
  gap: 24px;
}

/* ---- PROCESS SECTION ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.process-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 20px 16px;
  font-size: 13px;
  color: var(--text-light);
}
.process-card h3 {
  font-family: var(--font-sans);
  font-size: 1.39rem;
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0 8px;
  min-height: 65px;
}
.step-badge {
  display: inline-block;
  border: 1.5px solid var(--green);
  color: var(--dark);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.step-badge.step-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---- BEFORE & AFTER ---- */
.before-after-section { background: var(--bg); }
.ba-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 0px;
  align-items: start;
}
.ba-left h2 { margin-bottom: 0px; max-width: 580px; }
.ba-left p { font-size: 1.19rem; color: var(--text); padding-top:5%;max-width: 630px;}
.ba-right{
  background: var(--bg-gray);
  padding: 18px;
  border-radius: 10px;
  max-width: 840px;
  height: 96%;
  width: 100%;
  margin-left: auto;
}
.ba-accordion-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ba-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--text);
}
.ba-accordion-header:hover { color: var(--teal); }
.ba-toggle { font-size: 18px; color: var(--teal); }
.fa-solid.fa-caret-up:before,
.fa-solid.fa-caret-down:before {
  color: #000 !important;
  font-size: 0.8rem !important;
}
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  height: 120px;
  padding: 10px 0;
}
.ba-accordion-body{
  max-height: 150px;
  overflow: hidden;
}
.ba-img-wrapper { position: relative; }
.ba-img-placeholder {
  width: 95%;
  height: 100px;
  background: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  border: 1px dashed var(--border);
}
.ba-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}
.ba-label.before { background: rgba(255,255,255,0.9); color: var(--dark); border: 0.5px solid var(--green); }
.ba-label.after  { background: var(--green); color: #fff; }

/* ---- TEAM SECTION ---- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.team-grid > .team-img-col { order: 2; }
.team-grid > div:last-child { order: 1; }
.team-text-col h2 { margin-bottom: 16px; }
.team-text-col p { font-size: 1.19rem; color: var(--text); margin-bottom: 16px; max-width: 680px; margin-top: 10px;}
.oval-img-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-left: 10px;
}
.oval-img {
  width: 135%;
  /*border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;*/
  display: block;
  /* aspect-ratio: 4/3; */
  object-fit: contain;
  /* border: 5px solid var(--teal); */
}
.oval-img-placeholder {
  width: 100%;
  margin: 10px 0px 10px 0px;
  /* aspect-ratio: 4/3; */
  background: linear-gradient(135deg, var(--teal-light), #cce9f0);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  /* border: 5px solid var(--teal); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--teal-dark);
  text-align: center;
  padding: 20px;
}
.oval-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-start;
  padding-left: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.dot.active { background: var(--teal); }




/* ---- QUIZ SECTION ---- */
.quiz-section { background: var(--bg); padding: 45px 0; }
.quiz-section .quiz-box {
  background: var(--teal);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 32px 44px 24px;
  color: #fff;
  max-width: 100%;
}

.quiz-section .quiz-container {
  background: var(--bg-gray);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 22px 24px;
  color: var(--dark);
  max-width: 100%;
  /* .quiz-inner, .quiz-nav, and #quizTreatmentPlanBtn are flex children so
     their visual order (button above/below nav) can be controlled per
     breakpoint - see the `order` values below and in the mobile queries. */
  display: flex;
  flex-direction: column;
}
  
.quiz-section .quiz-box h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 3.3rem;
  color: var(--white);
  margin-bottom: 10px;
}
.quiz-section .quiz-box > p {
  font-size: 1.19rem;
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 400;
  font-family: var(--font-body);
}



.quiz-section .quiz-inner {
  background: var(--bg-gray);
  border-radius: 10px;
  max-width: 100%;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 14px;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.quiz-qnum { color: var(--dark); }

.quiz-counter{
  background: #eee;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 1.17rem;
  color: var(--text-light);
}



.quiz-options { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.quiz-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.19rem;
  color: var(--text);
  cursor: pointer;
}
.quiz-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.quiz-fields input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quiz-fields input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
  outline: none;
}
.quiz-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-right: 50px;
  margin-top: 16px;
  order: 2;
}
/* "Get My Treatment Plan" link, moved out of quiz-step[data-step="5"] so it
   can be ordered independently of the Previous/Next row; JS toggles its
   display (only shown on the final step) via updateQuiz() in script.js. */
#quizTreatmentPlanBtn {
  order: 1;
  display: none;
  margin-top: 16px;
}
.btn-quiz-prev, .btn-quiz-next {
  padding: 8px 16px;
  border-radius: 24px;
  font-family: 'Maven Pro', Arial, sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-quiz-prev {
  background: var(--teal);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
/* Previous reads "← Previous" (arrow first) on desktop, so its arrow span
   needs order:-1 to jump ahead of the label. Next/Submit already read
   "Next →" / "Submit →" (arrow last) in natural DOM order, so no reorder
   is needed there - see updateQuiz() in script.js, which now builds this
   button's innerHTML the same way. */
.btn-quiz-prev .quiz-nav-arrow { order: -1; }
.btn-quiz-prev:hover { background: var(--dark); }
.btn-quiz-next {
  background: var(--teal);
  color: var(--white);
}
.btn-quiz-next:hover { background: #374151; }

/* ---- COST SECTION ---- */
.cost-section { background: var(--bg); }
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 10px;
}
.cost-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}
.cost-card p { margin-bottom: 12px; }

/* ---- INSURANCE SECTION ---- */
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 10px;
}
.insurance-grid > .insurance-img-col { order: 2; }
.insurance-grid > .insurance-text-col { order: 1; }
.advanced-text-col h2{
  margin-bottom: 16px;
  max-width: 100%;
  width: 100%;
  font-size: 2.5rem;
  line-height: 1.3;
  white-space: normal;
}
.insurance-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 15px;

}

/* ---- ADVANCED SECTION ---- */
.advanced-section { background: var(--bg); }
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.advanced-text-col p { font-size: 1.19rem; color: var(--text); margin-bottom: 14px; max-width: 790px; }

/* ---- FAQ + CONTACT ---- */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
/* The heading is now a grid item (moved inside .faq-contact-grid) so its
   order can differ on mobile (form, then heading, then FAQ accordion).
   Spanning both columns keeps it full-width above the two columns on
   desktop, matching how it looked before the move. */
.faq-contact-grid > h2 { grid-column: 1 / -1; }
.contact-form-box {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 28px;
}
.contact-form-box h3 {
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 20px;
}
.contact-form-box input,
.contact-form-box textarea {
  display: block;
  width: 100%;
  border: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 10px;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
  background: white;
  font-family: var(--font-sans);
  resize: vertical;
}

.advanced-section h2{
  margin-left: var(--edge);
}

.contact-form-box input:focus,
.contact-form-box textarea:focus { outline: none; border-color: var(--teal); }
.btn-submit {
  display: block;
  width: 100%;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-size: 1.19rem;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--teal-dark); }

/* ---- Phone field with country code dropdown ---- */
.contact-form-box .phone-field {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.contact-form-box .phone-field select.country-code {
  flex: 0 0 auto;
  width: auto;
  max-width: 108px;
  min-width: 84px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 6px;
  font-size: 15px;
  color: var(--text);
  background: white;
  font-family: var(--font-sans);
}
.contact-form-box .phone-field input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.contact-form-box .phone-field select.country-code:focus,
.contact-form-box .phone-field input[type="tel"]:focus {
  outline: none;
  border-color: var(--teal);
}
@media (max-width: 360px) {
  .contact-form-box .phone-field select.country-code {
    max-width: 90px;
    min-width: 74px;
    font-size: 13px;
    padding: 10px 4px;
  }
}

/* FAQ */
.faq-col h2 { margin-bottom: 20px; }
.faq-item {
  border-bottom: 2px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 1.19rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  gap: 12px;
}
.faq-toggle {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  flex-shrink: 0;
  background-image: url("images/arrow-drop-down.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease, background-image 0.2s ease;
}
.faq-item.active .faq-toggle,
.faq-item.open .faq-toggle {
  background-image: url("images/arrow-drop-down-up.png");
}
.faq-answer {
  max-width: 95%;
  font-size: 1.09rem;
  color: var(--text-light);
  padding-bottom: 16px;
  display: none;
  line-height: 1.75;
  font-weight: 400;
}
.faq-item.active .faq-answer,
.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark-footer);
  color: #ccc;
  position: relative;
  padding-top: 0;
}
.footer-wave {
  line-height: 0;
  overflow: hidden;
  height: 80px;
}
.footer-wave svg { display: block; width: 100%; height: 80px; }
.footer-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-col h4,
.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Maven Pro', Arial, sans-serif;
}
.footer-col h4:first-child,
.footer-col h5:first-child { margin-top: 0; }
.footer-col p {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
  font-family: 'Maven Pro', Arial, sans-serif;
}
.footer-col p i { margin-right: 6px; color: var(--teal); }
.footer-col ul,
.footer-links { list-style: none; padding: 0; }
.footer-col ul li,
.footer-links li { margin-bottom: 5px; }
.footer-col ul a,
.footer-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.78rem;
  transition: color 0.2s;
  font-family: 'Maven Pro', Arial, sans-serif;
}
.footer-col ul a:hover,
.footer-links a:hover { color: var(--teal); }
.hours-table { border-collapse: collapse; font-size: 0.8rem; width: 100%; }
.hours-table td { padding: 4px 0; color: #aaa; }
.hours-table td:last-child { color: #888; text-align: right; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.78rem;
  transition: color 0.2s;
  font-family: 'Maven Pro', Arial, sans-serif;
}
.footer-nav a:hover { color: var(--teal); }
.footer-socials,
.footer-social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.social-icon:hover { opacity: 0.8; }
.social-icon.yt,
.social-icon.youtube  { background: #ff0000; color: #fff; }
.social-icon.ig,
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-icon.fb,
.social-icon.facebook  { background: #1877f2; color: #fff; }
.partner-badge,
.goethe-badge {
  width: 60px;
  height: 40px;
  background: #1a3a6e;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.6rem;
  color: #fff;
  font-weight: 700;
  padding: 4px;
  line-height: 1.3;
}
.footer-copyright,
.copyright {
  text-align: center;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: #666;
  margin: 0;
}

.section.faq-contact-section h2{
  margin-bottom: -20px;
}


/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: block; }
  .hero-content h1 { font-size: 32px; }
  /* Only h1 had a mobile size reduction here; the paragraph stayed at its
     desktop 1.25rem (20px), making it nearly as large as the 22px heading
     on small phones. Match tourism.css's hero treatment (28px/16px). */
  .hero-content p { font-size: 16px; }
  .section { padding: 30px 0; }
  .section h2 { font-size: 2.3rem; }
  .section.team-section h2 { font-size: 2.3rem; }
  .signs-grid { grid-template-columns: 1fr; }
  .what-grid, .process-grid, .ba-grid,
  .team-grid, .cost-grid, .insurance-grid,
  .advanced-grid, .faq-contact-grid { grid-template-columns: 1fr; }
  .faq-contact-grid { gap: 24px; }
  /* Form first, then the "Frequently Asked Questions" heading, then the
     FAQ accordion itself - instead of the heading sitting above the form. */
  .faq-contact-grid > .contact-form-col { order: 1; }
  .faq-contact-grid > h2 { order: 2; }
  .faq-contact-grid > .faq-col { order: 3; }
  .team-grid > .team-img-col,
  .team-grid > div:last-child { order: initial; }
  .insurance-grid > .insurance-img-col,
  .insurance-grid > .insurance-text-col { order: initial; }
  .team-section-intro { margin-left: 0; }
  .team-text-col .blue-list { grid-template-columns: 1fr; }
  /* These two used to be `.quiz-box{...}` / `.quiz-box h2{...}` (one class),
     which is LESS specific than the base `.quiz-section .quiz-box` /
     `.quiz-section .quiz-box h2` rules (two classes) - the base rules were
     silently winning and these "mobile" overrides never actually applied. */
  .quiz-section { padding: 30px 0; }
  .quiz-section .quiz-box { padding: 20px; }
  .quiz-section .quiz-box h2 { font-size: 24px; }
  /* .oval-img ships a `width:118%` inline style (bleed effect for the desktop
     2-col team layout); once .team-grid stacks to 1 column on mobile that
     same 118% overflows the narrow column and misaligns the photo. */
  .oval-img { width: 100% !important; margin-left: 0 !important; }
  .oval-img-container { max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* "Get My Treatment Plan" below Previous/Next on mobile (desktop keeps it
     above, via the order values set in the base rules). */
  .quiz-nav { order: 2; margin-right: 0; }
  #quizTreatmentPlanBtn { order: 3; }
  /* Keep arrow + label on one line (row, same as desktop) but shrink the
     button itself so the Previous/Next/Submit row fits mobile comfortably.
     Fixed width + centered content so Previous/Next/Submit all render the
     same size on mobile despite "Previous" being longer than "Submit"/"Next". */
  .btn-quiz-prev, .btn-quiz-next {
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 3px;
    width: 88px;
    justify-content: center;
  }
  /* Touch taps can trigger :hover and leave it "stuck" until the user taps
     elsewhere, which looked like the button turning black/dark on mobile.
     Force it back to teal at all times on mobile - no hover-driven color
     change on a touch device anyway. */
  .btn-quiz-prev:hover,
  .btn-quiz-next:hover {
    background: var(--teal);
  }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 22px; }
  .section { padding: 24px 0; }
  .section h2 { font-size: 22px; }
  .section.team-section h2 { font-size: 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quiz-fields { grid-template-columns: 1fr; }
  .quiz-section { padding: 24px 0; }
  .quiz-section .quiz-box { padding: 16px; }
  .quiz-section .quiz-box h2 { font-size: 20px; }
  .oval-img-container { max-width: 260px; }
  .top-bar-right { display: none; }
}
.logo-container { margin-left: -50px; }
/* ==== ADDED: real mobile nav (the page header's own #menu/.hamburger
   had no working mobile behavior at all - #menu stayed at width:450%
   and .hamburger was permanently display:none) + reset of the fixed
   130px/135px left offsets used across sections, which pushed content
   off-screen on small viewports. Pair with the matching JS added to
   script.js (toggles the "mobile-open" class below). ==== */
@media screen and (max-width: 900px) {
  /* Page <head> ships an inline <style> with `.logo-container img {
     margin-left: -35px}` to compensate for whitespace baked into the
     desktop logo file. Once that same header's own padding shrinks at
     max-width:768px (also inline), -35px pushes the logo past the left
     edge of the screen. !important is required to win over the inline
     style, since it comes later in the <head> than this stylesheet. */
  .logo-container img { margin-left: -10px !important; }
  #menu { display: none !important; }
  .hamburger {
    display: flex !important;
    width: 26px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
  }
  .hamburger .top, .hamburger .meat, .hamburger .bottom {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 2px;
  }
  .toplinkscontainer { margin-left: 0 !important; }
  #menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto !important;
    background: #fff;
    padding: 16px 24px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 999;
    gap: 14px !important;
  }
  #menu.mobile-open .menu-item { width: 100%; }
  #menu.mobile-open .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    padding-left: 12px;
  }
  .team-section-intro,
  .section.team-section h2,
  .team-intro,
  .advanced-section h2 {
    margin-left: 20px !important;
  }
  /* This h2 is now a grid item inside .faq-contact-grid (moved there so it
     could be reordered below the form), so it already sits at the same
     left edge as the form/FAQ content via .container's own padding - the
     old margin-left:20px was stacking an extra, misaligned indent on top
     of that. Also tighten the 80px gap down to the first FAQ question
     (32px margin + 48px grid gap) and make the heading bold. */
  .section.faq-contact-section h2 {
    margin-left: 0 !important;
    margin-bottom: 8px !important;
    font-weight: 700;
  }

}



