/* ==========================================================================
   Glacial Blocks — layout helpers, option utilities and editor neutralizers.
   Visual styling lives in css/webflow.css (the design); this file holds ONLY
   gl-* helpers the blocks need on top of it. Prints AFTER webflow.css.
   ========================================================================== */

/* ---- Section block: background / spacing tokens (default = design's .section) ---- */
.gl-section--dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}
.gl-section--dark h1,
.gl-section--dark h2,
.gl-section--dark h3,
.gl-section--dark h4,
.gl-section--dark h5,
.gl-section--dark h6,
.gl-section--dark .checklist li {
  color: var(--on-dark);
}
.gl-section--dark p,
.gl-section--dark li,
.gl-section--dark .txt-div._50 p,
.gl-section--dark .txt-div._50 div {
  color: var(--on-dark-soft);
}
.gl-section--dark .eyebrow {
  color: var(--canvas);
}
.gl-section--dark .checklist li {
  border-color: rgba(255, 255, 255, 0.15);
}
.gl-section--dark .checklist .tick {
  background: rgba(255, 255, 255, 0.1);
}
.gl-section--pad-none {
  padding: 0;
}
.gl-section--pad-small {
  padding: 40px 0;
}
.gl-section--pad-large {
  padding: 120px 0;
}
.gl-section--narrow > .container {
  max-width: 960px;
}
.gl-text-center {
  text-align: center;
}
.gl-text-center .eyebrow,
.gl-text-center .vein-mark {
  margin-left: auto;
  margin-right: auto;
}

/* the design's * reset zeroes margins: give stacked content blocks inside a section a rhythm */
.gl-section .container > * + *,
.gl-col > * + * {
  margin-top: 20px;
}
.gl-section .container > h2 + p,
.gl-section .container > .eyebrow + h2,
.gl-section .container > .eyebrow + h3,
.gl-col > .eyebrow + h2,
.gl-col > .eyebrow + h3 {
  margin-top: 0;
}
.gl-section .container > .gl-grid,
.gl-section .container > .checklist,
.gl-section .container > .gl-buttons,
.gl-section .container > .cta-dark-banner {
  margin-top: 40px;
}
.gl-section .container > ul:not(.checklist),
.gl-section .container > ol {
  padding-left: 1.4em;
}
.gl-section .container > ul:not(.checklist) li,
.gl-section .container > ol li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* ---- Grid primitive ---- */
.gl-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.gl-grid--center {
  align-items: center;
}
.gl-grid--gap-small {
  gap: 16px;
}
.gl-grid--gap-large {
  gap: 48px;
}
.gl-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.gl-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.gl-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.gl-cols-2-1 {
  grid-template-columns: 2fr 1fr;
}
.gl-cols-1-2 {
  grid-template-columns: 1fr 2fr;
}
@media (max-width: 1190px) {
  .gl-cols-3,
  .gl-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gl-cols-2-1,
  .gl-cols-1-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .gl-cols-2,
  .gl-cols-3,
  .gl-cols-4 {
    grid-template-columns: 1fr;
  }
}
/* swipe-on-mobile is a behaviour modifier: matched alone, appended outside any column preset */
@media (max-width: 768px) {
  .gl-swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .gl-swipe > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ---- Button row ---- */
.gl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.gl-buttons--center {
  justify-content: center;
}
.gl-buttons--right {
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .gl-buttons--stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .gl-buttons--stack-mobile .btn {
    width: 100%;
  }
}

/* ---- Visibility (Advanced tab) — Webflow medium/small breakpoints ---- */
@media (min-width: 992px) {
  .gl-hide-desktop {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .gl-hide-tablet {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .gl-hide-mobile {
    display: none !important;
  }
}

/* ---- Two-column order swapping — breakpoint = the design's own .split collapse (1190px) ---- */
@media (min-width: 1191px) {
  .gl-swap-desktop > :first-child {
    order: 2;
  }
  .gl-swap-desktop > :last-child {
    order: 1;
  }
}
@media (max-width: 1190px) {
  .gl-swap-mobile > :first-child {
    order: 2;
  }
  .gl-swap-mobile > :last-child {
    order: 1;
  }
}

/* ---- FAQ (native details/summary) — design tokens, no JS ---- */
.gl-faq {
  border-top: 1px solid var(--hairline);
}
.gl-faq-item {
  border-bottom: 1px solid var(--hairline);
}
.gl-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.gl-faq-item > summary::-webkit-details-marker {
  display: none;
}
.gl-faq-item > summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-right: 4px;
}
.gl-faq-item[open] > summary::after {
  transform: rotate(-135deg);
}
.gl-faq-item > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.gl-faq-body {
  padding: 0 0 24px;
  color: var(--body);
  line-height: 1.6;
}
.gl-faq-body > * + * {
  margin-top: 12px;
}

/* ---- Latest posts cards ---- */
.gl-post-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 4px 16px 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-universal);
}
.gl-post-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 24px 0px;
}
.gl-post-card__media {
  aspect-ratio: 1.6;
  background: var(--soft-cloud);
}
.gl-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gl-post-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gl-post-card__date {
  font-size: 13px;
  color: #7a7a7a;
}
.gl-post-card__title {
  font-size: 19px;
  line-height: 1.3;
}
.gl-post-card__title a {
  color: var(--ink);
}
.gl-post-card__title a:hover {
  color: var(--primary);
}
.gl-post-card__excerpt {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
}

/* ---- Location info ---- */
.gl-location {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.gl-location__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gl-location__details h3 {
  margin-bottom: 4px;
}
.gl-location__map iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 30px 0px;
}
.gl-location__phones a {
  font-weight: 500;
}
@media (max-width: 1190px) {
  .gl-location {
    grid-template-columns: 1fr;
  }
}

/* ---- Doctor profile: CPT-sourced variant keeps the design's split ---- */
.gl-doctor .subhead {
  margin-bottom: 0;
}

/* ---- Focus visibility (never removed, only styled) ---- */
.btn:focus-visible,
.service-image-card:focus-visible,
.gl-post-card a:focus-visible,
.footer-legal a:focus-visible,
.symptom-div a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.hero .btn:focus-visible,
.cta-dark-banner .btn:focus-visible {
  outline-color: #ffffff;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }
  .hero-slide:first-child {
    opacity: 1;
  }
  .symptom-div,
  .service-image-card,
  .service-image-card img,
  .gl-post-card,
  .btn {
    transition: none;
  }
}

/* ==========================================================================
   EDITOR ONLY — keep the canvas honest and editable
   ========================================================================== */
.editor-styles-wrapper {
  padding-top: 0 !important; /* webflow.css offsets body:not(.home) for the fixed nav — no nav in the canvas */
}
.editor-styles-wrapper .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.editor-styles-wrapper .hero {
  height: 640px;
}
.editor-styles-wrapper .hero-slide {
  animation: none;
  opacity: 0;
}
.editor-styles-wrapper .hero-slide:first-child {
  opacity: 1;
}
.editor-styles-wrapper .gl-hide-desktop,
.editor-styles-wrapper .gl-hide-tablet,
.editor-styles-wrapper .gl-hide-mobile {
  display: revert !important;
  opacity: 0.55;
}
.editor-styles-wrapper .gl-editor-hint {
  font-size: 12px;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.editor-styles-wrapper img[data-gl-swap] {
  cursor: pointer;
}
.editor-styles-wrapper .gl-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 2px dashed var(--hairline);
  border-radius: 12px;
  color: #7a7a7a;
  font-size: 14px;
  cursor: pointer;
  background: var(--canvas);
}

/* ---- Display heading block ---- */
.gl-heading > h2,
.gl-heading > h3,
.gl-heading > h4 {
  margin-bottom: 0;
}
.gl-heading > .vein-mark {
  margin-bottom: 0;
}
.gl-heading + p,
.gl-heading + ul,
.gl-heading + .gl-grid {
  margin-top: 20px;
}
.eyebrow + .gl-heading,
.gl-section .container > .eyebrow + .gl-heading,
.gl-col > .eyebrow + .gl-heading {
  margin-top: 0;
}
