/* =========================================================
   Kadence GKM — CORE CSS (Golden Template)
   ========================================================= */


/* =========================
   Core Variables (Aliases only)
   ========================= */

:root {
  --surface: var(--global-palette9);
  --surface-light: var(--global-palette8);
  --brand-accent: var(--global-palette1);
  --brand-accent-light: var(--global-palette2);
  --border: var(--global-palette7);

  --heading-font: var(--global-heading-font-family);
  --heading-color: var(--global-palette3);
  --text-body: var(--global-palette4);
  --text-strong: var(--global-palette3);
}


/* =========================
   Kadence / Block Fixes
   ========================= */

/* SVG image normalization */
figure.wp-block-kadence-image.image-is-svg svg {
  width: 100%;
  height: auto;
}

/* Intrinsic container fixes */
.kt-blocks-info-box-media-container svg {
  max-width: 100%;
}

/* Background video safety */
.kb-blocks-bg-video-container,
.kb-blocks-bg-video {
  pointer-events: none;
}

/* Mobile background video visibility */
@media (max-width: 767px) {
  .kb-blocks-bg-video-container,
  .kb-blocks-bg-video {
    display: block !important;
    opacity: 1 !important;
  }
}


/* =========================
   GK Components
   ========================= */


/* ---------- Video Ratio ---------- */

.video-ratio {
  position: relative;
  padding-top: 56.25%;
}

.video-ratio > iframe,
.video-ratio > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ---------- Lazy Video Embed ---------- */

.gk-embed-video {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gk-embed-video img {
  width: 100%;
  height: auto;
  display: block;
}

.gk-embed-video .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.gk-embed-video .play-btn::before {
  content: "▶";
  font-size: 3em;
  color: var(--text-strong);
}


/* ---------- Service List ---------- */

ul.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  position: relative;
  padding-left: 5em;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 2em;
  line-height: 1;

  background-image: var(--gk-bullet-large);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: calc(var(--gk-bullet-large-set, 0) * 1.25em);
  height: calc(var(--gk-bullet-large-set, 0) * 1.25em);
  opacity: var(--gk-bullet-large-set, 0);
  content: "";
}

.service-list li > strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.service-list .meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-body);
}


/* ---------- Tech List ---------- */

ul.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-list li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tech-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1.25em;
  line-height: 1;

  background-image: var(--gk-bullet-small);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: calc(var(--gk-bullet-small-set, 0) * 0.75em);
  height: calc(var(--gk-bullet-small-set, 0) * 0.75em);
  opacity: var(--gk-bullet-small-set, 0);
  content: "";
}


/* ---------- FAQ ---------- */

.gkfaq {
  --faq-left-gap: 64px;
  --faq-icon-size: 40px;
  margin: 2.5rem 0 0;
}

.gkfaq dt,
.gkfaq dd {
  margin: 0;
}

.gkfaq dt {
  margin-top: 12px;
}

.gkfaq dt:first-of-type {
  margin-top: 0;
}

.gkfaq .gkfaq-toggle {
  appearance: none;
  background: var(--surface);
  border-bottom: 1px solid var(--brand-accent);
  width: 100%;
  padding: 26px 24px 26px var(--faq-left-gap);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--text-strong);
}

.gkfaq .gkfaq-toggle::before {
  content: "+";
  position: absolute;
  left: calc((var(--faq-left-gap) - var(--faq-icon-size)) / 2);
  top: 50%;
  transform: translateY(-50%);
  width: var(--faq-icon-size);
  height: var(--faq-icon-size);
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
    padding-bottom: 2px;
}

.gkfaq .gkfaq-toggle[aria-expanded="true"]::before {
  content: "–";
}

.gkfaq dd {
  padding: 20px var(--faq-left-gap) 24px;
  line-height: 1.65;
  color: var(--text-body);
}

.gkfaq.is-enhanced dd {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 var(--faq-left-gap) 0;
  transition: max-height .34s ease, padding .34s ease, opacity .24s ease, transform .34s ease;
}

.gkfaq.is-enhanced dt.is-open + dd {
  opacity: 1;
  transform: translateY(0);
  padding: 20px var(--faq-left-gap) 85px;
}


/* =========================
   Utilities
   ========================= */

.two-columns {
  columns: 2;
  column-gap: 2em;
}

.showoverflow {
  overflow: visible !important;
}

/* =========================
   Hidden but crawlable phone numbers
   ========================= */
.gk-hidden-phones {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gk-hidden-phones a {
  display: block;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {

  .service-list li {
    padding-left: 3.5em;
  }

  .tech-list li {
    padding-left: 1.75em;
  }

  .gkfaq {
    --faq-left-gap: 52px;
    --faq-icon-size: 34px;
  }

  .gkfaq .gkfaq-toggle {
    padding: 18px 16px 18px var(--faq-left-gap);
    font-size: 1rem;
  }
}


/* =========================================================
   GKM — Rich Service Sections (added for SFDC service pages)
   Section rhythm · panels · options grid · media+checklist ·
   numbered steps · 2-column FAQ cards
   Live ACF wrapper is .kb-dynamic-html
   ========================================================= */

/* ---------- Section rhythm / spacing ---------- */
.kb-dynamic-html section.section-gk {
  margin-bottom: 3.75rem;
}

.kb-dynamic-html section.section-gk:last-child {
  margin-bottom: 0;
}

.kb-dynamic-html section.section-gk > p {
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

/* ---------- Eyebrow (inherits the site's global H6) ---------- */
.kb-dynamic-html h6.eyebrow {
  margin: 0 0 .5rem;
}

/* ---------- Section heading emphasis ---------- */
.kb-dynamic-html .gk-heading {
  margin: 0 0 1rem;
}

.kb-dynamic-html .gk-heading em {
  font-style: normal;
}

/* ---------- Background panels ---------- */
.kb-dynamic-html section.gk-panel-white,
.kb-dynamic-html section.gk-panel-cream {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: 3.75rem;
}

.kb-dynamic-html section.gk-panel-white {
  background: #ffffff;
}

.kb-dynamic-html section.gk-panel-cream {
  background: #EDE2D8;
}

/* ---------- Options card grid (Types of Dental Implants) ---------- */
.kb-dynamic-html .gk-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 .5rem;
}

.kb-dynamic-html .gk-options .opt-card {
  text-align: left;
}

.kb-dynamic-html .gk-options .opt-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
}

.kb-dynamic-html .gk-options .opt-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 .4rem;
  color: var(--heading-color);
}

.kb-dynamic-html .gk-options .opt-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--text-body);
}

/* ---------- Media + checklist split ---------- */
.kb-dynamic-html .gk-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.75rem;
  align-items: center;
  margin: 2.25rem 0 .5rem;
}

.kb-dynamic-html .gk-split .gk-split-media img {
  width: 100%;
  height: auto;
  display: block;
}

.kb-dynamic-html .check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kb-dynamic-html .check-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  min-height: 2rem;
  display: flex;
  align-items: center;
  color: var(--text-strong);
}

.kb-dynamic-html .check-list li:last-child {
  margin-bottom: 0;
}

.kb-dynamic-html .check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: #74B29D;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- Numbered process steps ---------- */
.kb-dynamic-html .gk-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 .5rem;
  counter-reset: gkstep;
}

.kb-dynamic-html .gk-steps .step::before {
  counter-increment: gkstep;
  content: counter(gkstep);
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--heading-color);
  color: #EEE4D5;
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.kb-dynamic-html .gk-steps .step h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 .4rem;
  color: var(--heading-color);
}

.kb-dynamic-html .gk-steps .step p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-body);
}

/* ---------- FAQ — 2-column cards (native <details>) ---------- */
.kb-dynamic-html .gk-faq {
  columns: 2;
  column-gap: 1.5rem;
  margin-top: 1.75rem;
}

.kb-dynamic-html .gk-faq-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
}

.kb-dynamic-html .gk-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-strong);
}

.kb-dynamic-html .gk-faq-item > summary::-webkit-details-marker {
  display: none;
}

.kb-dynamic-html .gk-faq-item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: .62rem;
  height: .62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .25s ease;
}

.kb-dynamic-html .gk-faq-item[open] > summary {
  background: #CFC1B0;
}

.kb-dynamic-html .gk-faq-item[open] > summary::after {
  transform: translateY(10%) rotate(225deg);
}

.kb-dynamic-html .gk-faq-item .gk-faq-a {
  padding: 1.1rem 1.4rem 1.35rem;
  background: var(--surface);
  line-height: 1.65;
  color: var(--text-body);
}

.kb-dynamic-html .gk-faq-item .gk-faq-a p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .kb-dynamic-html .gk-options,
  .kb-dynamic-html .gk-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .kb-dynamic-html .gk-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .kb-dynamic-html .gk-faq {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .kb-dynamic-html .gk-options,
  .kb-dynamic-html .gk-steps {
    grid-template-columns: 1fr;
  }
}
