/* ============================================
   SERVICE PAGE STYLES — Dental Serenity
   Extends style.css. Reuses design tokens.
   ============================================ */

/* ======== SERVICE HERO ======== */
.service-hero {
  margin-top: var(--nav-offset);
  position: relative;
  height: 78vh;
  min-height: 620px;
  max-height: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.service-hero-media {
  position: relative;
  overflow: hidden;
}
.service-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6%;
  background: var(--ink);
  color: var(--white);
}
.service-hero-text h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 480px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.service-hero-text h1 span {
  display: block;
  font-weight: 300;
  color: var(--teal);
}
.service-hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.service-hero-text .eyebrow {
  color: var(--teal);
}
.service-hero-text .eyebrow::before {
  background: rgba(255,255,255,.25);
}

/* ======== BREADCRUMB ======== */
.breadcrumb {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.75rem;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .current { color: var(--white); }
.breadcrumb span:not(.current) { color: rgba(255,255,255,.25); }

/* Nav active state */
.nav-links a.is-active { color: var(--ink); }

/* ======== CANDIDATE / SITUATION GRID ======== */
.candidate-section {
  padding: 8rem 0;
  background: var(--off-white);
}
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cand-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.cand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.cand-card:hover::before { transform: scaleX(1); }
.cand-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.cand-icon {
  width: 52px; height: 52px;
  background: var(--teal-light);
  color: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.cand-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.cand-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======== PROCESS SECTION ======== */
.process-section {
  padding: 8rem 0;
  background: var(--white);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.process-step {
  padding: 2.75rem 2rem;
  border-right: 1px solid var(--border);
  transition: all .25s;
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step:hover {
  background: var(--cool-gray);
}
.process-num {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.process-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.process-step p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======== COMPARE (INVISALIGN vs BRACES) ======== */
.compare-section {
  background: var(--ink);
  color: var(--white);
  padding: 8rem 0;
}
.compare-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.compare-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.compare-text p {
  color: rgba(255,255,255,.55);
  line-height: 1.8;
}
.compare-table {
  border-top: 1px solid rgba(255,255,255,.12);
}
.compare-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2.5rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}
.compare-row > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.compare-row > div:first-child {
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .08em;
  padding-top: .2rem;
}
.compare-row.compare-head {
  padding: .75rem 0 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.compare-row.compare-head > div {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.3;
}
.compare-row.compare-head > div:first-child { color: transparent; }
.compare-row strong {
  color: var(--white);
  font-weight: 700;
}

/* ======== COST CARDS ======== */
.cost-intro {
  max-width: 780px;
  margin: 0 0 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cost-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.cost-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.cost-card-alt {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cost-card-alt h3,
.cost-card-alt .cost-price { color: var(--white); }
.cost-card-alt p { color: rgba(255,255,255,.6); }
.cost-card-alt .cost-list li { color: rgba(255,255,255,.75); }
.cost-card-alt .cost-list li::before { background: var(--teal); }

.cost-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 10px;
  border: 1px solid var(--teal);
  margin-bottom: 1.5rem;
}
.cost-card-alt .cost-tag {
  color: var(--teal);
  border-color: rgba(94,184,168,.5);
}
.cost-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.cost-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.cost-price span {
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -.01em;
}
.cost-card-alt .cost-price span { color: rgba(255,255,255,.5); }
.cost-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.cost-list {
  list-style: none;
  display: grid;
  gap: .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.cost-card-alt .cost-list { border-top-color: rgba(255,255,255,.12); }
.cost-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: var(--text);
}
.cost-list li::before {
  content: '';
  width: 8px; height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ======== FAQ ======== */
.faq-section {
  padding: 8rem 0;
  background: var(--off-white);
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.faq-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.faq-heading p {
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  transition: all .25s;
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.faq-item summary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.75;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .service-hero { grid-template-columns: 1fr; height: auto; min-height: auto; max-height: none; overflow: visible; }
  .service-hero-media { min-height: 380px; }
  .service-hero-text { padding: 3.5rem 6%; }
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
  .compare-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cost-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .candidate-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; }
  .process-step:last-child { border-bottom: none; }
  .compare-row { grid-template-columns: minmax(110px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; font-size: .82rem; }
  .compare-row.compare-head > div { font-size: .62rem; }
}

/* ============================================
   EXTRAS — Article/Doctor/Location templates
   ============================================ */

/* ==== ARTICLE HERO (FAQ posts) ==== */
.article-hero {
  padding: calc(var(--nav-offset) + 4rem) 0 3.5rem;
  background: linear-gradient(180deg, #f8f4ee 0%, #ffffff 100%);
}
.article-hero .breadcrumb { margin-bottom: 1.5rem; }
.article-hero .eyebrow { color: var(--brand); }
.article-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: .5rem 0 0;
  color: var(--ink);
  max-width: 820px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-body {
  padding: 4.5rem 0 6rem;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 4.5rem;
  align-items: start;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content h4 { font-size: 1.15rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content p {
  margin: 0 0 1.25rem;
}
.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}
.article-content li {
  margin-bottom: .5rem;
}
.article-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-content a:hover {
  color: var(--teal);
}
.article-content strong { font-weight: 700; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.article-content blockquote {
  border-left: 3px solid var(--teal);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(0,0,0,.75);
}

/* ==== ARTICLE ASIDE ==== */
.article-aside {
  position: sticky;
  top: calc(var(--nav-offset) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.aside-card {
  padding: 1.75rem;
  border-radius: 12px;
  background: #f8f4ee;
  border: 1px solid var(--border);
}
.aside-card .eyebrow {
  color: var(--brand);
  font-size: .7rem;
  margin-bottom: .5rem;
}
.aside-card h3,
.aside-card h4 {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}
.aside-card p {
  margin: 0 0 1rem;
  font-size: .95rem;
  color: rgba(0,0,0,.75);
  line-height: 1.55;
}
.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}
.aside-phones {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-phones li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.aside-phones li:last-child { border-bottom: none; }
.aside-phones li span {
  color: rgba(0,0,0,.6);
  font-weight: 500;
}
.aside-phones li a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* ==== RELATED SECTION ==== */
.related-section {
  padding: 4rem 0;
  background: #f8f4ee;
  border-top: 1px solid var(--border);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.related-list li:hover { border-color: var(--teal); }
.related-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color .2s ease;
}
.related-list a::before {
  content: '→ ';
  color: var(--teal);
  transition: transform .2s ease;
  display: inline-block;
}
.related-list a:hover {
  color: var(--brand);
}
.related-list a:hover::before {
  transform: translateX(3px);
}

/* ==== DOCTORS FULL GRID (doctors/ index) ==== */
.doctors-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.doctors-grid-full .doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.doctors-grid-full .doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.doctors-grid-full .doctor-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.doctors-grid-full .doctor-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.doctors-grid-full .doctor-body h3 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.doctors-grid-full .doctor-body .school {
  color: var(--brand);
  font-size: .85rem;
  margin-bottom: .75rem;
  font-weight: 500;
}
.doctors-grid-full .doctor-body p {
  color: rgba(0,0,0,.7);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.btn-link {
  color: var(--teal);
  font-weight: 600;
  font-size: .95rem;
  align-self: flex-start;
}
.btn-link::after {
  content: ' →';
  transition: transform .2s ease;
  display: inline-block;
}
.doctor-card:hover .btn-link::after {
  transform: translateX(3px);
}

/* ==== DOCTOR HERO (individual bio) ==== */
.doctor-hero .doctor-credentials {
  color: var(--brand);
  font-weight: 500;
  font-size: 1.05rem;
  margin: .5rem 0 1.75rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .article-aside {
    position: static;
    order: 2;
  }
  .related-list {
    grid-template-columns: 1fr;
  }
  .doctors-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-hero { padding: calc(var(--nav-offset) + 2.5rem) 0 2rem; }
  .article-body { padding: 3rem 0 4rem; }
  .doctors-grid-full { grid-template-columns: 1fr; }
  .doctors-grid-full .doctor-card img { height: 220px; }
}

/* ============================================
   FEATURE BANDS — alternating content sections
   Used to split scraped copy into visual bands
   ============================================ */

.feature-band {
  padding: 5.5rem 0;
}

.feature-band.feature-teal {
  background: #eaf6f4;
}
.feature-band.feature-cream {
  background: #f8f4ee;
}
.feature-band.feature-ink {
  background: var(--ink);
  color: #fff;
}
.feature-band.feature-ink .feature-text .eyebrow { color: rgba(255,255,255,.55); }
.feature-band.feature-ink h2 { color: #fff; }
.feature-band.feature-ink .feature-body { color: rgba(255,255,255,.85); }
.feature-band.feature-ink .feature-body a { color: var(--teal-lite, #7dd3c0); }
.feature-band.feature-ink .feature-body strong { color: #fff; }

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-layout-right .feature-media { order: 0; }
.feature-layout-right .feature-text { order: 1; }
.feature-layout-left .feature-text { order: 0; }
.feature-layout-left .feature-media { order: 1; }

.feature-text .eyebrow {
  color: var(--brand);
  margin-bottom: .75rem;
}
.feature-text h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--ink);
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feature-body {
  font-size: 1.02rem;
  line-height: 1.7;
}
.feature-body p:first-child { margin-top: 0; }
.feature-body p:last-child { margin-bottom: 0; }

.feature-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ==== CONTACT FORM ==== */
.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(0,0,0,.65);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  font: inherit;
  font-weight: 600;
}
.contact-form .form-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: rgba(0,0,0,.55);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

@media (max-width: 900px) {
  .feature-band { padding: 4rem 0; }
  .feature-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature-layout-right .feature-media,
  .feature-layout-right .feature-text,
  .feature-layout-left .feature-text,
  .feature-layout-left .feature-media { order: initial; }
  .feature-media { aspect-ratio: 16/10; }
}
