/* ============================================================
   TABLE OF CONTENTS
   2.  Global Reset & Base Styles
   3.  Typography
   4.  Utility Classes
   5.  Search Component
   6.  Hero Section
   7.  Section Headers & Labels
   8.  Conditions Section
   9.  Info / About Section
   10. Services Section
   11. Testimonials Section
   12. Team Section
   13. CTA Section
   14. Contact Bar & Contact Cards
   15. FAQ Module
   16. Featured List
   17. Footer
   18. Diamond Gallery Section
   19. Inline Trigger
   20. Media Queries (consolidated)
============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Brand Colors */
  --dark: #153b37;
  --dark-mid: #1a4a45;
  --mid: #2a635c;
  --light: #3e857c;
  --lightest: #4a9e94;
  --accent: #e8a087;
  --accent-light: #f2c4b3;
  --accent-glow: rgba(232, 160, 135, 0.4);
  --white: #ffffff;
  --off-white: #f8fafa;
  --gray-light: #e8eeee;
  --text-dark: #1a2e2b;
  --text-muted-dark: #4a5f5c;
  --text-light: #d4e5e2;
  --text-muted-light: rgba(212, 229, 226, 0.6);

  /* Search Component */
  --search-ring: var(--color-accent);
  --search-border: #e5e7eb;
  --search-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
  --radius: 14px;
  --h-pad: 1.1rem;
  --btn-bg: var(--color-accent);
  --btn-fg: #fff;
}


/* ============================================================
   2. GLOBAL RESET & BASE STYLES
============================================================ */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  /* clip, NOT hidden: overflow-x:hidden on <body> (with <html> also clipping, see
     tmj-tokens.css) makes body a scroll container and silently disables every
     position:sticky descendant -- Socials rail, /technology/ + /symptoms/ indexes.
     clip clips identically but creates no scroll container. (2026-09-24) */
  overflow-x: clip;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Lightbox */
.mfp-img {
  background: #fff;
  padding: 5%;
}


/* ============================================================
   3. TYPOGRAPHY
============================================================ */
body #main-content {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
}

#page-container h1,
#page-container h2,
#page-container h3,
#page-container h4,
#page-container h5,
#page-container h6 {
  line-height: 1em !important;
  padding-bottom: 0px;
}

.accent-font {
  color: var(--light) !important;
  font-style: italic !important;
}

.under-text {
  font-size: .5em !important;
  line-height: .8em !important;
  display: block !important;
}

/* ============================================================
   4. UTILITY CLASSES
============================================================ */
.center { text-align: center; }
.left   { text-align: left; }
.right  { text-align: right; }

.white * { color: white; }
.force-dark { color: var(--dark) !important; }

.section-dark     { background: var(--dark); color: var(--text-light); }
.section-white    { background: var(--white); color: var(--text-dark); }
.section-off-white { background: var(--cream); color: var(--text-dark); }

/* A11y */
.site-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   5. SEARCH COMPONENT
============================================================ */
.site-search {
  width: 100%;
  margin: 0;
}

.site-search .search-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  background: var(--search-bg);
  color: var(--search-fg);
  border: 1px solid var(--search-border);
  border-radius: var(--radius);
  box-shadow: var(--search-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.06s ease;
}

.site-search .search-wrap:hover {
  transform: translateY(-1px);
}

.site-search .search-ico {
  position: absolute;
  left: 0.9rem;
  width: 20px;
  height: 20px;
  fill: var(--color-dark);
  pointer-events: none;
}

.site-search .search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.9rem calc(1.1rem + 0rem) 0.9rem var(--h-pad);
  padding-left: calc(var(--h-pad) + 1.8rem);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.3;
}

.site-search .search-input::placeholder {
  color: var(--search-muted);
}

.site-search .search-btn {
  margin: 4px;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  padding: 0.7rem 1rem;
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-search .search-btn:hover  { opacity: 0.95; }
.site-search .search-btn:active { transform: translateY(1px); }

.site-search .search-input:focus-visible ~ .search-btn,
.site-search .search-input:focus-visible,
.site-search .search-wrap:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--search-ring) 25%, transparent);
  border-color: color-mix(in srgb, var(--search-ring) 60%, var(--search-border));
}

.full-bleed .site-search .search-wrap {
  border-radius: 0;
}


/* ============================================================
   6. HERO SECTION
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(62, 133, 124, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(232, 160, 135, 0.08) 0%, transparent 40%);
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 40%);
}

/* Floating Diamonds */
.hero-diamonds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes floatDiamond {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  25%       { transform: rotate(45deg) translate(20px, -30px); }
  50%       { transform: rotate(45deg) translate(-10px, 20px); }
  75%       { transform: rotate(45deg) translate(15px, 10px); }
}

.floating-diamond {
  position: absolute;
  background: var(--light);
  transform: rotate(45deg);
  opacity: 0.1;
  animation: floatDiamond 25s infinite ease-in-out;
}

.floating-diamond:nth-child(1) { width: 80px;  height: 80px;  left: 5%;   top: 20%;    animation-delay: 0s; }
.floating-diamond:nth-child(2) { width: 40px;  height: 40px;  left: 15%;  top: 60%;    animation-delay: -5s;  opacity: 0.15; }
.floating-diamond:nth-child(3) { width: 120px; height: 120px; right: 10%; top: 15%;    animation-delay: -10s; opacity: 0.05; }
.floating-diamond:nth-child(4) { width: 60px;  height: 60px;  right: 20%; bottom: 20%; animation-delay: -15s; }
.floating-diamond:nth-child(5) { width: 30px;  height: 30px;  left: 40%;  top: 10%;    animation-delay: -8s;  opacity: 0.2; background: var(--accent); }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  padding-top: 6rem;
  color: var(--text-light);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text {
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards 0.3s;
  max-width: 650px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Home uses the eyebrow as the page H1 (SEO: topic + location); keep it looking like an eyebrow,
   not a heading — heading font/weight/line-height come from the generic h1 rules. */
h1.hero-label {
  font-family: inherit;
  font-weight: inherit;
}
/* #page-container h1 { line-height: 1em !important } (above) would otherwise squash it to 12px. */
#page-container h1.hero-label { line-height: inherit !important; }

.hero-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-display);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* Mobile: the clamp minimum (2.8rem/~45px) is too large on small screens for long
   hero titles — scale it down below 640px. */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }
}

/* `.white *` only colours descendants, so a hero title with a bare text node
   before its <span> (e.g. "Laser <span>Therapy in Cleveland</span>") left that
   bare text dark. Colour the element itself white too. (Home's title is all
   spans, so this is a no-op there; every service hero needs it.) */
.hero-title.white { color: #ffffff; }

/*.hero-title span:not(.animate-words) { 
color: var(--accent); 
}*/

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  max-width: 1080px !important;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}


/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-light);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.btn-secondary::after {
  content: "";
  /* The box stays 40px; on hover the line stretches to 60px via transform, which paints
     past the box without changing the button's width. Animating `width` 40→60 widened the
     button, wrapped it to the next line, lost the hover and unwrapped it — a flicker loop
     wherever the hero copy column is tight (owner report 2026-09-09). */
  width: 40px;
  height: 1px;
  background: var(--light);
  transform-origin: left center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-secondary:hover {
  color: var(--accent-light);
}

.btn-secondary:hover::after {
  transform: scaleX(1.5);
  background: var(--accent);
}

/* Hero Trust Badges */
.hero-trust {
  display: flex;
  flex-wrap: wrap; /* 3 items + 2rem gaps overran 320–340px phones (2026-09-24) */
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(62, 133, 124, 0.3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted-light);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}


/* ============================================================
   7. SECTION HEADERS & LABELS
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header.no-margin {
  margin-bottom: 0px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-label::before {
  clip-path: polygon(100% 0, 100% 100%, 0 50%, 0 50%);
}

.section-label::after {
  clip-path: polygon(0 0, 100% 50%, 100% 50%, 0% 100%);
}

.section-dark .section-label::before {
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section-dark .section-label::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-section);
  font-weight: 300;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-dark .section-subtitle {
  color: var(--text-muted-light);
}


/* ============================================================
   8. CONDITIONS SECTION
============================================================ */
.conditions {
  padding: 8rem 0;
  position: relative;
}

.conditions-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

/* Four cards used to wrap 3 + 1 (an orphan centred under the row); with exactly four, fit them on one row. */
.conditions-grid:has(> .condition-card:nth-child(4):last-child) > .condition-card { flex-basis: calc(25% - 1.125rem); }
.condition-card {
  flex: 0 1 375px;
  position: relative;
  padding: 2.5rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  text-align: center;
  transition: all 0.5s ease;
  overflow: hidden;
}

.condition-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.condition-card-number {z-index: 10; color: white; position: absolute;top: 50%; left: 50%; transform: translate(-50%,-50%)}

.condition-card:hover::before {
  transform: scaleX(1);
}

.condition-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(21, 59, 55, 0.1);
  border-color: transparent;
}

.condition-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.condition-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--light);
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.condition-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.condition-card:hover .condition-icon::before {
  inset: -5px;
  border-color: var(--accent);
}

.condition-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-card);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.condition-desc {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}


/* ============================================================
   9. INFO / ABOUT SECTION
============================================================ */
.info-diamond-accent {
  position: absolute;
  top: 50%;
  left: -40px;
  width: 80px;
  height: 80px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.8;
}

.info-content {
  position: relative;
  z-index: 2;
}

.info-content.dark p {
  color: var(--dark);
}

.info-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-title);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/*.info-title span {
  color: var(--accent);
}*/

.info-text {
  color: var(--text-muted-light);
  margin-bottom: 1.25rem;
}

.info-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.info-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* The bullet diamond. Sized and aligned against the h4 it labels rather than
   against nothing (2026-08-25).

   WAS: a 24px box with `inset: 2px`, i.e. a 20px square rotated 45deg — 28px on the
   diagonal, and it bled 4px out of its own box on every side. Against a 1.1rem
   (17.6px) title that is a bullet bigger than the words it points at, and it was
   the heaviest diamond on the site: every other one in the system — .section-label,
   .hero-label, .hero-callout__label — is a 7-8px dot.

   NOW: the BOX is exactly one h4 line tall (tmj-tokens.css pins headings to
   `line-height: 1em !important`, so 1.1rem is the whole line box, not an estimate),
   which makes align-items:flex-start line the box up with the title by itself. The
   diamond then centres inside that box, so it sits on the title's optical centre at
   any font size — no magic offset to re-tune if the type scale moves.
   11px square = 15.6px on the diagonal: legibly a bullet, still subordinate to the
   17.6px title, and in family with the rest of the theme's diamonds. */
.info-feature-icon {
  /* 16px, not 11px: an 11px square on its diagonal is 15.56px, and the old rule let
     that overhang leak out of a too-small box — which is why the diamond hung left
     of everything under it once .info-feature stacks to a column at 560px. Box it
     properly and the row's `gap: 1rem` measures from the diamond's real edge. */
  width: 16px;
  height: 1.1rem;
  flex-shrink: 0;
  position: relative;
}

.info-feature-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

.info-feature h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-feature p {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}


/* ============================================================
   10. SERVICES SECTION
============================================================ */
.services {
  padding: 8rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark) 0%, transparent 60%);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--white);
	font-size: 1.2rem !important;
}

.service-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 3em;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3em;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.service-desc,
.service-card .service-desc {
  font-size: 1em !important;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  max-height: 0;
}

.service-card:hover .service-desc {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
	.service-content {
		font-size: 1rem !important;
	}
	.service-content .service-title {
		font-size: 1.5em !important;
	}
	.service-content p.service-desc {
		font-size: .8em !important;
	}
	.service-image {
		aspect-ratio: 1/1.5 !important
	}
	@media (max-width: 980px) {
  .service-image::after {
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.3) 100%)!important;
  }
} 
}


/* ============================================================
   11. TESTIMONIALS SECTION
============================================================ */
.testimonials {
  padding: 8rem 0;
  position: relative;
}

.testimonials-container {
  position: relative;
  margin-top: 3rem;
}

.testimonials-slider {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 40px content-box;
}

@supports not (overflow-clip-margin: 1px) {
  .testimonials-slider {
    overflow: hidden;
    padding: 40px 0;
    margin: -40px 0;
  }
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 2rem 1rem 3rem;
  flex-shrink: 0;
}

.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-image {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 25px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-image::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px solid var(--light);
  transform: rotate(3deg);
  pointer-events: none;
}

.testimonial-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  transform: rotate(45deg);
  pointer-events: none;
}

.testimonial-content {
  position: relative;
}

.testimonial-quote-mark {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  position: relative;
}

.testimonial-quote-mark::before,
.testimonial-quote-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  transform: rotate(45deg);
}

.testimonial-quote-mark::after {
  left: 24px;
}

.testimonial-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-diamond {
  width: 50px;
  height: 50px;
  position: relative;
}

.author-diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--light), var(--accent));
  transform: rotate(45deg);
}

.author-info h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid var(--light);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.slider-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.slider-btn:hover::before {
  transform: scale(1);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--light);
  stroke-width: 1.5;
  fill: none;
  position: relative;
  z-index: 2;
  transition: stroke 0.3s ease;
}

.slider-btn:hover svg {
  stroke: var(--white);
}

.slider-dots {
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid var(--light);
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--accent);
  border-color: var(--accent);
}


/* ============================================================
   12. TEAM SECTION
============================================================ */
.team {
  padding: 8rem 0;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-grid.col2 {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid.col3 {
  grid-template-columns: repeat(3, 1fr);
}


.team-card {
  text-align: center;
}

.team-image {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-image::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.team-card:hover .team-image::before {
  opacity: 1;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
}

.team-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ============================================================
   13. CTA SECTION
============================================================ */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(62, 133, 124, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(62, 133, 124, 0.03) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(62, 133, 124, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(62, 133, 124, 0.03) 75%);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-section);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

/*.cta-title span {
	color: var(--accent);
}*/

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

/* Diamond CTA Button */
.diamond-cta {
  position: relative;
  width: 180px;
  height: 180px;
  cursor: pointer;
  background: none;
  border: none;
}

.cta-ring {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
}

.cta-ring::before,
.cta-ring::after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid var(--light);
  opacity: 0.3;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-ring::after {
  inset: -40px;
  opacity: 0.15;
}

.diamond-cta:hover .cta-ring::before {
  inset: -35px;
  opacity: 0.5;
  border-color: var(--accent);
}

.diamond-cta:hover .cta-ring::after {
  inset: -60px;
  opacity: 0.25;
  border-color: var(--accent);
}

.cta-diamond-shape {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  background: linear-gradient(
    135deg,
    rgba(62, 133, 124, 0.15) 0%,
    rgba(62, 133, 124, 0.05) 50%,
    rgba(232, 160, 135, 0.1) 100%
  );
  border: 1px solid var(--light);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cta-diamond-shape::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0.4;
}

.diamond-cta:hover .cta-diamond-shape {
  background: linear-gradient(
    135deg,
    rgba(62, 133, 124, 0.25) 0%,
    rgba(232, 160, 135, 0.15) 50%,
    rgba(62, 133, 124, 0.2) 100%
  );
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(62, 133, 124, 0.3);
  transform: rotate(45deg) scale(1.05);
}

/* CTA Corner Accents */
.cta-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-corner--top    { top: -6px;    left: 50%;  transform: translateX(-50%) rotate(45deg); }
.cta-corner--bottom { bottom: -6px; left: 50%;  transform: translateX(-50%) rotate(45deg); }
.cta-corner--left   { left: -6px;   top: 50%;   transform: translateY(-50%) rotate(45deg); }
.cta-corner--right  { right: -6px;  top: 50%;   transform: translateY(-50%) rotate(45deg); }

.diamond-cta:hover .cta-corner {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.diamond-cta:hover .cta-corner--top    { top: -15px; }
.diamond-cta:hover .cta-corner--bottom { bottom: -15px; }
.diamond-cta:hover .cta-corner--left   { left: -15px; }
.diamond-cta:hover .cta-corner--right  { right: -15px; }

/* CTA Pulse Animation */
@keyframes ctaPulse {
  0%   { transform: rotate(45deg) scale(1);   opacity: 0.3; }
  100% { transform: rotate(45deg) scale(1.5); opacity: 0; }
}

.cta-pulse {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  border: 1px solid var(--light);
  opacity: 0;
  animation: ctaPulse 3s infinite ease-out;
}

.cta-pulse:nth-child(2) { animation-delay: 1s; }
.cta-pulse:nth-child(3) { animation-delay: 2s; }

.diamond-cta:hover .cta-pulse {
  animation-play-state: paused;
  opacity: 0;
}

/* CTA Button Content */
.cta-btn-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.5s ease;
}

.diamond-cta:hover .cta-btn-content {
  transform: scale(1.05);
}

.cta-btn-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
  stroke: var(--light);
  stroke-width: 1.5;
  fill: none;
  transition: all 0.5s ease;
}

.diamond-cta:hover .cta-btn-icon {
  stroke: var(--dark);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transform: translateY(-3px);
}

.cta-btn-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

.cta-phone {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted-dark);
}

.cta-phone a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cta-phone a:hover {
  color: var(--accent);
}


/* ============================================================
   14. CONTACT BAR & CONTACT CARDS
============================================================ */

/* Contact Bar (dark strip) */
.contact-bar {
  padding: 4rem 0;
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-light);
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  position: relative;
}

.contact-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--light);
  transform: rotate(45deg);
}

.contact-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.contact-item h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

/* Contact Cards (grid) */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 3.5rem 2rem 2.5rem;
  border: 1px solid var(--gray-light);
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover::before,
.contact-card.active::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(21, 59, 55, 0.1);
  border-color: transparent;
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.contact-card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--light);
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.contact-card-icon::after {
  content: '';
  position: absolute;
  inset: 15px;
  background: transparent;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-card-icon::before {
  inset: -5px;
}

.contact-card:hover .contact-card-icon::after {
  background: var(--accent-glow);
}

.contact-card-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  z-index: 2;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon svg {
  stroke: var(--light);
}

.contact-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin: 0;
}

.contact-card a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent);
}


/* Contact Links */

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--text-dark);
	transition: color 0.3s ease;
}

.contact-link:hover {
	color: var(--accent);
}

.contact-link svg {
	width: 20px;
	height: 20px;
	stroke: var(--light);
	stroke-width: 1.5;
	fill: none;
	flex-shrink: 0;
	transition: stroke 0.3s ease;
}

.contact-link:hover svg {
	stroke: var(--accent);
}

.contact-link span {
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
}

@media (max-width: 600px) {
	.contact-links {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
}

/* ============================================================
   15. FAQ MODULE
============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.faq-intro .section-title {
  color: var(--text-light);
}

.faq-intro .section-title strong {
  color: var(--white);
}

.faq-intro p {
  color: var(--text-muted-light);
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(62, 133, 124, 0.2);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(62, 133, 124, 0.05);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(62, 133, 124, 0.1);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ============================================================
   16. FEATURED LIST
============================================================ */
.featured-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.featured-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0; /* owner 2026-09-10: no vertical padding on list items */
  border-bottom: 1px solid var(--gray-light);
}

/* When content follows the list, keep paragraph rhythm below it */
.featured-list:not(:last-child) {
  margin-bottom: 20px !important;
}

/* Heading directly labeling a list: group it with the list, keep paragraph rhythm above */
.info-subtitle:has(+ .featured-list) {
  margin-top: 8px;
}

.featured-list li:first-child {
  padding-top: 0px;
}

.featured-list li:last-child {
  border-bottom: none;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.section-dark .featured-list li {
  border-bottom-color: rgba(62, 133, 124, 0.2);
}

.featured-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 0.5rem;
}


/* ============================================================
   17. FOOTER
============================================================ */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted-light);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.footer-links {
  list-style: none !important;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-links.sidebar a {
  width: 100% !important;
  display: flex;
  align-items: center;
  line-height: 1em;
  color: var(--dark);
  gap: .5em;
  margin: 1em 0px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(62, 133, 124, 0.2);
  font-size: 0.8rem;
  color: var(--text-muted-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--light);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0.5;
}

.footer-social a:hover::before {
  border-color: var(--accent);
  background: var(--accent);
  opacity: 1;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--text-light);
  position: relative;
  z-index: 2;
  transition: fill 0.3s ease;
}

.footer-social a:hover svg {
  fill: var(--dark);
}


/* ============================================================
   18. DIAMOND GALLERY SECTION
============================================================ */
.diamond-gallery {
  background: var(--dark);
  min-height: 100vh;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.gallery-diamonds {
  position: relative;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.diamond-row {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin-top: -40px;
}

.diamond-row:first-child {
  margin-top: 0;
}

.diamond-row.offset {
  margin-left: 70px;
}

.gallery-diamond {
  width: 140px;
  height: 140px;
  transform: rotate(45deg);
  overflow: hidden;
  border: 3px solid var(--dark);
  flex-shrink: 0;
  position: relative;
}

.gallery-diamond img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: transform 0.5s ease;
}

.gallery-diamond:hover img {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1.1);
}

.gallery-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 4rem 3rem;
  color: var(--text-light);
}

.gallery-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
}

.label-diamond {
  width: 24px;
  height: 24px;
  border: 1px solid var(--light);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-diamond::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(0deg);
}

.gallery-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--h-title);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.gallery-title strong {
  font-weight: 500;
  color: var(--white);
  display: block;
  font-size: 1.15em;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: var(--accent-light);
  margin-bottom: 3rem;
  font-style: italic;
}

.gallery-edition {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
}

.gallery-author {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 3rem;
}

.gallery-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(62, 133, 124, 0.3);
}

.gallery-stat {
  display: flex;
  flex-direction: column;
}

.gallery-stat .stat-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.gallery-stat .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-top: 0.5rem;
}


/* ============================================================
   19. INLINE TRIGGER
============================================================ */
.inline-trigger {
  position: relative;
  display: inline-block;
  transform: skew(-10deg);
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.inline-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.inline-trigger:hover {
  transform: skew(-10deg) scale(1.05);
}

.inline-trigger:hover::after {
  transform: scaleX(1);
}


/* ============================================================
   20. MEDIA QUERIES
============================================================ */

/* --- 1024px and below --- */
@media (max-width: 1024px) {

  /* Hero */
  .hero-image {
    width: 100%;
    clip-path: none;
    opacity: 0.3;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
  }

  /* Grids */
  .conditions-grid  { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: 1fr; }
  .team-grid        { grid-template-columns: repeat(2, 1fr) !important; }
  .contact-grid     { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-cards    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonial-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-image {
    max-width: 300px;
    margin: 25px auto;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-intro {
    position: static;
    text-align: center;
  }

  .faq-intro .section-label {
    justify-content: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .gallery-diamonds {
    padding: 4rem 2rem;
    align-items: center;
  }

  .diamond-row.offset {
    margin-left: 35px;
  }

  .gallery-diamond {
    width: 100px;
    height: 100px;
  }

  .diamond-row {
    margin-top: -25px;
  }

  .gallery-content {
    padding: 4rem 2rem;
    text-align: center;
    align-items: center;
  }

  .gallery-stats {
    justify-content: center;
  }
}

/* --- 768px and below --- */
@media (max-width: 768px) {

  .nav-links {
    display: none;
  }

  .conditions-grid {
    grid-template-columns: 1fr;
  }

  .about-features,
  .info-features {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 3rem auto 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Visibility */
  .hide-on-mobile  { display: none; }
}

/* --- 640px and below --- */
@media (max-width: 640px) {
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .services-grid   { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr  !important; }
  .testimonial-inner { grid-template-columns: 1fr; }
}

/* --- 600px and below --- */
@media (max-width: 600px) {

  /* Gallery */
  .gallery-diamond {
    width: 80px;
    height: 80px;
  }

  .diamond-row {
    margin-top: -20px;
  }

  .diamond-row.offset {
    margin-left: 25px;
  }

  /* FAQ */
  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
  }

  /* Contact Cards */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 3rem 1.5rem 2rem;
  }
}

/* --- 560px and below --- */
@media (max-width: 560px) {
  .site-search .search-btn {
    padding: 0.6rem 0.8rem;
  }

  .site-search .search-input {
    padding-left: calc(var(--h-pad) + 1.6rem);
  }

  .site-search .search-ico {
    left: 0.8rem;
    width: 18px;
    height: 18px;
  }

  .info-feature {
    flex-direction: column;
  }
}

/* --- Desktop only --- */
@media (min-width: 767px) {
  .hide-on-desktop { display: none; }
}

.ac-inline-link {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.1);
  text-align: center;
  width: fit-content;
  transition: all .2s ease;
  box-shadow: 0px 5px 15px rgba(0,0,0,.03)
}
.ac-inline-link::after {
	content: "";
  display: inline-block;
  font-size: 20px;
  vertical-align: middle;
  margin-left: 0px;
  width: 0;
  height: 0;
  background-image: url('/wp-content/uploads/2026/05/download-package-svgrepo-com.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: all .2s ease
}

.ac-inline-link:hover {
  background: var(--color-accent);
  color: white;
}
.ac-inline-link:hover::after {
  margin-left: 10px;
  width: 1em;
  height: 1em;
}

/* 2026-07-16: lead-in paragraph before a featured-list — drop its padding-bottom so the gap above the first list item matches the 20px below (dyskinesia/fatigue/teeth-sensitivity) */
.info-text:has(+ .featured-list) { padding-bottom: 0px; }
/* ============================================================
   CONDITIONS GRID → MOBILE SLIDER            (added 2026-07-31)
   ------------------------------------------------------------
   At <=768px the wrapping flex grid becomes a horizontal,
   snap-scrolling track that deliberately reveals a slice of the
   next card, so the row reads as swipeable without needing
   arrows or dots.

   NOTE: the earlier `.conditions-grid { grid-template-columns: ... }`
   declarations in the 1024 / 768 / 640 blocks above are INERT --
   .conditions-grid is `display: flex`, not `display: grid`, so
   grid-template-columns has never applied. They are left in place
   (harmless) and do not conflict with anything below.
   ============================================================ */
@media (max-width: 768px) {

  .conditions-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1rem;

    /* Break out of .s-container so the peeking card runs all the
       way to the screen edge, then re-inset the first card. */
    margin-inline: calc(50% - 50vw);
    padding-inline: 1.25rem;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;

    /* No scrollbar -- the half-visible card is the affordance. */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .conditions-grid::-webkit-scrollbar { display: none; }

  /* ~72% of the viewport leaves roughly a fifth of the next card
     showing. Clamped so large phones / small tablets show two
     cards plus a peek instead of one giant card. */
  .conditions-grid > .condition-card {
    flex: 0 0 clamp(240px, 72%, 360px);
    scroll-snap-align: start;
  }

  /* The desktop lift-on-hover fires from a swipe tap on touch and
     makes the track feel unstable -- keep the card planted. */
  .conditions-grid > .condition-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Focus ring for the keyboard-scrollable region (see tmj-components.js). */
  .conditions-grid:focus-visible {
    outline: 2px solid var(--accent, #e8a087);
    outline-offset: 4px;
  }
}

/* ============================================================================
 * MIGRATION ADDITIONS — TMJ Utah
 *
 * A. SHARED COMPONENT CSS, promoted out of per-page post meta.
 *    On the example site, the CSS for several components in the section
 *    vocabulary — the quiz cards, the contact hero/form card, the contact map,
 *    the .ac-card grids, the .ac-ofp tab panel, featured lists — was pasted into
 *    the _ac_custom_css post meta of individual pages (inc/page-assets.php prints
 *    it per page, frequently duplicated twice within one blob). Any page built
 *    without that meta rendered the component unstyled: the quiz cards came out
 *    as full-width raw SVGs.
 *
 *    These are the example's own rules, deduplicated (1,437 -> 245) and with the
 *    65 rules that hard-code example-site page background images removed. This
 *    restores the example's rendering site-wide; it changes no design decision.
 * ============================================================================ */
/* Parallax CTA button breathing room. */
.btn-primary.cta { margin-top: 2em; }
/* ===== Screening quiz cards (module CSS not in shared theme; contains the SVG icons) ===== */
.quiz-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.quiz-card { position: relative; padding: 3rem; background: linear-gradient(135deg, #1a4a45, #153b37); border: 1px solid rgba(62,133,124,0.3); overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.quiz-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(21,59,55,0.3); }
.quiz-card::before { content: ''; position: absolute; top: 0%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(232,160,135,0.1) 0%, transparent 70%); transition: transform 0.6s ease; }
.quiz-card:hover::before { transform: scale(1.8); }
.quiz-card-content { position: relative; z-index: 2; }
.quiz-icon { width: 60px; height: 60px; margin-bottom: 1.5rem; position: relative; }
.quiz-icon::before { content: ''; position: absolute; inset: 0; background: #e8a087; transform: rotate(45deg); transition: transform 0.4s ease; }
.quiz-card:hover .quiz-icon::before { transform: rotate(45deg) scale(1.1); }
.quiz-icon svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 28px; height: 28px; stroke: #153b37; stroke-width: 1.5; fill: none; }
.quiz-card h3 { font-size: var(--h-feature); font-weight: 400; color: #d4e5e2; margin-bottom: 0.75rem; }
#page-container .quiz-card .p-text { font-weight: 300; font-size: 0.95rem; line-height: 1.7; color: rgba(212,229,226,0.6) !important; margin-bottom: 1.5rem !important; }
.quiz-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; background: transparent; border: 1px solid #e8a087; color: #e8a087; text-decoration: none; font-family: 'Libre Franklin', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.4s ease; position: relative; overflow: hidden; width: fit-content; margin-top: 1.5rem; }
.quiz-link::before { content: ''; position: absolute; inset: 0; background: #e8a087; transform: translateX(-100%); transition: transform 0.4s ease; }
.quiz-link span, .quiz-link svg { position: relative; z-index: 1; }
.quiz-link:hover::before { transform: translateX(0); }
.quiz-link:hover { color: #153b37; }
.quiz-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.3s ease; }
.quiz-link:hover svg { transform: translateX(4px); }
@media (max-width: 1024px) { .quiz-cta-inner { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .quiz-card { padding: 2rem 1.5rem; } }
/* Card titles are <p> that in live inherit Divi's global p{padding-bottom:1em}
; the anchor reset
   stripped it. Restore it, scoped to condition-card titles only. */
.condition-title { padding-bottom: 1em; }
/* Parallax CTA button breathing room (live had inline .btn-primary.cta{margin-top:2em}
). */
.btn-primary.cta { margin-top: 2em; }
/* ===== Adults / Children tabbed component (ac-ofp) — module CSS not in shared theme ===== */
.ac-ofp {
	--ofp-radius: 16px;
	--theme-main: #153b37;
	--theme-accent: #153b37;
	padding: 0;
	box-sizing: border-box;
}
.ac-ofp * { box-sizing: border-box; }
/* Tabs */
.ac-ofp__tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.ac-ofp__tab {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 34px !important;
	border: 2px solid var(--theme-main) !important;
	background: transparent !important;
	color: var(--theme-main) !important;
	border-radius: 50px !important;
	font-size: 17px; font-weight: 700; cursor: pointer;
	transition: all .25s ease; line-height: 1;
}
.ac-ofp__tab i { font-size: 18px; }
/* This build draws the tab icons as inline SVG rather than FontAwesome <i>,
   so they need an explicit box — an SVG has no font-size to inherit. */
.ac-ofp__tab svg { width: 18px; height: 18px; flex-shrink: 0; fill: none;
	stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Was `.ac-ofp__tab:hover` (0,2,0), which outranks `.ac-ofp__tab--active`
   (0,1,0) regardless of source order — so the tab you just clicked kept white
   text on a near-transparent hover background and was unreadable until the
   pointer moved away. Exclude the active tab. */
.ac-ofp__tab:not(.ac-ofp__tab--active):hover { background: rgba(0,0,0,.04) !important; }
.ac-ofp__tab--active {
	background: var(--theme-main) !important;
	color: #fff !important;
	box-shadow: 0 8px 22px -8px var(--theme-main);
}
/* Panels */
.ac-ofp__panel { display: none; animation: ac-ofp-fade .35s ease; }
.ac-ofp__panel--active { display: block; }
@keyframes ac-ofp-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Force every panel photo to the same 3:2 crop so switching tabs (e.g. to a 16:9
   source image) doesn't change the panel's height. */
.ac-ofp__panel .s-imgwrap img { aspect-ratio: 3/2; object-fit: cover; }
/* Intro */
.ac-ofp__intro { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.ac-ofp__title { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; color: var(--theme-main) !important; margin: 0 0 14px; }
.ac-ofp__title span { color: var(--theme-accent) !important; font-weight: 600; }
.ac-ofp__intro p { font-size: 17px; line-height: 1.7; opacity: .85; margin: 0; }
/* Grid */
.ac-ofp__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
/* Cards */
.ac-ofp__card {
	background: #fff; border-radius: var(--ofp-radius); padding: 32px;
	box-shadow: 0 18px 45px -28px rgba(0,0,0,.35);
	border: 1px solid rgba(0,0,0,.05); height: 100%;
}
.ac-ofp__card--symptoms { background: linear-gradient(160deg, var(--theme-main) 0%, var(--theme-accent) 140%); color: #fff; }
.ac-ofp__card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ac-ofp__card-head i { font-size: 26px; color: var(--theme-accent); }
.ac-ofp__card--symptoms .ac-ofp__card-head i { color: #fff; }
.ac-ofp__card-head h3 { font-size: 21px; margin: 0; line-height: 1.25; color: var(--theme-main) !important; }
.ac-ofp__card--symptoms .ac-ofp__card-head h3 { color: #fff !important; }
.ac-ofp__card-note { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 4px 0 20px; }
/* Service list */
.ac-ofp__list { list-style: none; margin: 0 0 22px; padding: 0; }
.ac-ofp__list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 15.5px; line-height: 1.5; }
.ac-ofp__list li:last-child { border-bottom: none; }
.ac-ofp__list i { color: var(--theme-accent); margin-top: 4px; font-size: 13px; }
.ac-ofp__emphasis { font-size: 14.5px; line-height: 1.65; opacity: .8; border-left: 3px solid var(--theme-accent); padding-left: 16px; margin: 0; }
/* Symptoms list */
.ac-ofp__symptoms { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.ac-ofp__symptoms li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; line-height: 1.45; border-bottom: 1px solid rgba(255,255,255,.15); }
.ac-ofp__symptoms i { margin-top: 3px; font-size: 14px; opacity: .9; width: 18px; text-align: center; flex-shrink: 0; }
/* Responsive */
@media (max-width: 980px) { .ac-ofp__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
	.ac-ofp__card { padding: 24px; }
	.ac-ofp__symptoms { grid-template-columns: 1fr; }
	.ac-ofp__tab { padding: 12px 24px !important; font-size: 15px; }
}
/* ===== TMJ Jaw Pain (symptom page) — clean-section chrome =====
   Rounded-card + contact-sidebar scaffold. This is the SHARED symptom/blog
   card pattern (identical to theme blog.css .ac-card-* / .ac-sb-*), inlined
   here because blog.css is only enqueued on blog pages. When batching the
   symptom + location groups, promote this block to an always-loaded theme
   file (components.css) and delete it from the per-page CSS. */

/* dark-green frame around the white card */
.sym-section { background: #1a4a45; padding: 150px 0 60px; }
.sym-section .ac-card-row { background: #fff; }
/* --- shared rounded-card scaffold --- */
.ac-card-section { width: 100%; }
.ac-card-row {
  width: 90%;
  max-width: 1296px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 30px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ac-card-content {
  width: 74.25%;
  background: #fff;
  border-radius: 25px;
  padding: 30px;
  box-sizing: border-box;
}
.ac-card-sidebar { width: 22.75%; box-sizing: border-box; }
/* H1 page title inside the card */
.sym-title { margin: 0 0 76px; }
.sym-title h1 {
  font-family: "Gilda Display", Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
  color: #333;
  margin: 0;
}
/* --- contact sidebar --- */
.ac-sb-logo { margin: 0 0 18px; }
.ac-sb-logo img { display: block; width: 100%; max-width: 281px; height: auto; }
.ac-sb-divider { height: 1px; background: #dce3e3; margin: 18px 0 20px; }
.footer-links.sidebar { padding: 0 !important; }
.footer-links.sidebar h3 {
  font-family: "Gilda Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}
.footer-links.sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #153b37;
  text-decoration: none;
  margin: 16px 0;
  word-break: break-word;
}
.footer-links.sidebar a i {
  width: 16px;
  font-size: 16px;
  color: #153b37;
  flex-shrink: 0;
  text-align: center;
}
.footer-links.sidebar a:hover { color: #3a8780; }
.footer-links.sidebar.ac-sb-find { margin-top: 10px; }
.ac-sb-form { margin: 12px 0 18px; }
/* --- responsive: stack card on tablet/phone --- */
@media (max-width: 980px) {
  .sym-section { padding: 100px 0 40px; }
  .ac-card-row { flex-direction: column; padding: 20px; }
  .ac-card-content, .ac-card-sidebar { width: 100%; }
  .ac-card-sidebar { margin-top: 30px; }
  .sym-title { margin-bottom: 40px; }
  .sym-title h1 { font-size: 30px; line-height: 1.15; }
}
@media (max-width: 767px) {
  .ac-card-row { width: 100%; padding: 15px; }
}
/* --- SPACING: Divi row-padding equivalent (27/27) --- */
.sym-section .ac-card-content { padding-top: 57px; padding-bottom: 57px; }
/* Card titles are <p> that in live inherit Divi p{padding-bottom:1em}
. */
.condition-title { padding-bottom: 1em; }
/* Removed a duplicated re-paste of the .ac-ofp block that sat here (the migration
   note above records that the source pasted these rules twice per page and the
   dedupe missed this copy). It repeated `.ac-ofp__panel { display: none }` AFTER
   `.ac-ofp__panel--active { display: block }`. Both are specificity (0,1,0), so
   source order decided and every panel stayed hidden — the tabs styled and
   switched correctly while no panel ever rendered. */
/* ===== Screening quiz cards (module CSS not in shared theme) ===== */
/* Services for Adults/Children tabs */
.svc-tabs .tabs-nav{display:flex;justify-content:center;gap:.75rem;margin-bottom:2.5rem;flex-wrap:wrap}
.svc-tabs .tab-btn{font-family:"Libre Franklin",sans-serif;font-size:.95rem;font-weight:600;padding:.85rem 1.75rem;border-radius:999px;border:1px solid var(--color-border);background:#fff;color:var(--color-dark);cursor:pointer;transition:all .3s ease}
.svc-tabs .tab-btn.active{background:var(--color-dark);color:#fff;border-color:var(--color-dark)}
.svc-tabs .tab-panel{display:none}
.svc-tabs .tab-panel.active{display:block}
.svc-cols{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:stretch;max-width:1080px;margin:2rem auto 0}
.svc-card-light,.svc-card-dark{padding:2.5rem 2rem;border-radius:2px}
.svc-card-light{background:#fff;border:1px solid var(--color-border);box-shadow:var(--shadow)}
.svc-card-dark{background:var(--color-dark);color:#fff}
.svc-card-title{font-family:"Cormorant Garamond",serif;font-weight:500;font-size:1.5rem;margin:0 0 .35rem}
.svc-card-dark .svc-card-title{color:#fff}
.svc-card-sub{font-size:.9rem;color:var(--text-muted-dark);margin:0 0 1.25rem}
.svc-card-dark .svc-card-sub{color:rgba(255,255,255,.75)}
.svc-list{list-style:none;margin:0;padding:0}
.svc-list li{position:relative;padding:.55rem 0 .55rem 1.9rem;font-size:.95rem;border-bottom:1px solid rgba(21,59,55,.08)}
.svc-card-dark .svc-list li{border-bottom-color:rgba(255,255,255,.12);color:rgba(255,255,255,.92)}
.svc-list li:last-child{border-bottom:none}
.svc-list li::before{content:"";position:absolute;left:0;top:50%;width:10px;height:10px;background:var(--color-button);transform:translateY(-50%) rotate(45deg)}
/* Explore Our Treatments card grid */
.ac-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:1200px;margin:0 auto}
.ac-card{display:flex;flex-direction:column;justify-content:center;min-height:270px;text-align:center;padding:2.5rem 1.75rem;background:var(--off-white,#f8f9fa);border:1px solid var(--color-border);text-decoration:none;position:relative;overflow:hidden;transition:all .4s ease}
.ac-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#3a8780,var(--color-button));transform:scaleX(0);transition:transform .4s ease}
.ac-card:hover::before{transform:scaleX(1)}
.ac-card:hover{transform:translateY(-8px);box-shadow:0 20px 50px rgba(21,59,55,.1);border-color:transparent}
.ac-card .condition-title{margin-top:0}
@media (max-width:1024px){.ac-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){.svc-cols{grid-template-columns:1fr}.ac-cards{grid-template-columns:1fr}}
/* fix: ac-card uses .condition-title/.condition-desc which inherit near-invisible .ac-card p color */
.ac-card .condition-title{ color:#153b37; }
.ac-card .condition-desc{ color:#5a6b6a; }
/* ===== Pediatric Sleep/Orofacial tabs (ac-ofp) — module CSS, not in shared theme ===== */
.ac-ofp {
  --ofp-radius: 16px;
  --theme-main: #153b37;
  --theme-accent: #153b37;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
; the anchor reset
   stripped it, so each card was ~20px short. Restore it, scoped to card titles only. */
.condition-title { padding-bottom: 1em; }
/* Card titles are <p> that in live inherit Divi's p{padding-bottom:1em}
; restore it. */
.condition-title { padding-bottom: 1em; }
/* "Contact Carly Today" inline contact row. */
.nutrition-contact {
	display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center;
	margin-top: 1.5rem;
}
.nutrition-contact a {
	color: #fff; text-decoration: none; font-size: 1.05rem;
	display: inline-flex; align-items: center; gap: 0.6rem;
}
.nutrition-contact a:hover { opacity: 0.85; }
/* ===== 2026-08-06 client content update ===== */

/* "Tools & Services" list (dark section, diamond bullets matching the site motif). */
.ac-tools-list { margin: 1.35em 0 0; padding: 0; list-style: none; }
.ac-tools-list li {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 0 32px;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(212, 229, 226, 0.85);
}
.ac-tools-list li:last-child { margin-bottom: 0; }
.ac-tools-list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.5em;
	width: 10px;
	height: 10px;
	background: #e8a087;
	transform: rotate(45deg);
}
/* ===== Tabbed content component (.ac-tabs) =====
   Used by "Who Can Benefit From Nutrition Counseling?" (light) and "A Message
   From Carly" (.ac-tabs--dark). Light is the default so it matches the site's
   existing ac-ofp pill tabs; the dark modifier exists because dark-teal tabs on
   an s--dark section render invisible. ONE inline script (after the Carly
   section) drives every .ac-tabs instance on the page. */
.ac-tabs { margin-top: 1.6rem; }
.ac-tabs__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.ac-tabs__tab {
	display: inline-flex;
	align-items: center;
	padding: 11px 22px !important;
	border: 1px solid rgba(21, 59, 55, 0.25) !important;
	background: transparent !important;
	color: #153b37 !important;
	border-radius: 50px !important;
	font-family: 'Libre Franklin', sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ac-tabs__tab:hover { background: rgba(21, 59, 55, 0.06) !important; border-color: #153b37 !important; }
.ac-tabs__tab--active,
.ac-tabs__tab--active:hover {
	background: #153b37 !important;
	border-color: #153b37 !important;
	color: #fff !important;
}
.ac-tabs__tab:focus-visible { outline: 2px solid #e8a087; outline-offset: 3px; }
/* Centered variant — for sections whose .section-header is text-align:center.
   Not used on the Carly instance, whose heading/body are left-aligned in a
   narrow column, where centred tabs would float out of line. */
.ac-tabs--center .ac-tabs__tabs { justify-content: center; }
.ac-tabs--center .ac-tabs__panel--active { max-width: 920px; margin-left: auto; margin-right: auto; }
/* Dark-section variant (coral accent, matching .quiz-link on dark). */
.ac-tabs--dark .ac-tabs__tab { border-color: rgba(212, 229, 226, 0.35) !important; color: #d4e5e2 !important; }
.ac-tabs--dark .ac-tabs__tab:hover { background: rgba(232, 160, 135, 0.14) !important; border-color: #e8a087 !important; color: #fff !important; }
.ac-tabs--dark .ac-tabs__tab--active,
.ac-tabs--dark .ac-tabs__tab--active:hover {
	background: #e8a087 !important;
	border-color: #e8a087 !important;
	color: #153b37 !important;
}
.ac-tabs__panel { display: none; animation: ac-tabs-fade .35s ease; }
.ac-tabs__panel--active { display: block; }
.ac-tabs__panel .info-text:last-child { margin-bottom: 0; }
@keyframes ac-tabs-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
/* Plain styled lists — replaces the old .ac-cond-card boxes. */
.ac-tabs__list { list-style: none; margin: 0; padding: 0; column-gap: 56px; }
.ac-tabs__list li {
	break-inside: avoid;
	position: relative;
	margin: 0 0 16px;
	padding: 0 0 0 30px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #475569;
}
.ac-tabs__list li:last-child { margin-bottom: 0; }
.ac-tabs__list li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 9px;
	height: 9px;
	background: #e8a087;
	transform: rotate(45deg);
}
.ac-tabs--dark .ac-tabs__list li { color: rgba(212, 229, 226, 0.85); }
/* Steady Carly's column so switching tabs doesn't bounce the section height.
   Deliberately NOT applied to the benefit lists, whose panels range from 2 to
   14 items — a shared min-height there would strand huge whitespace. */
@media (min-width: 1025px) {
	.ac-tabs--dark .ac-tabs__panel--active { min-height: 300px; }
}
/* Only long lists split into columns; short ones stay a single tidy column. */
@media (min-width: 769px) {
	.ac-tabs__list--2col { columns: 2; }
}
@media (max-width: 600px) {
	.ac-tabs__tab { padding: 10px 16px !important; font-size: 0.76rem; }
	.ac-tabs__tabs { gap: 8px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-tabs__panel { animation: none; }
	.ac-tabs__tab { transition: none; }
}
/* Intro photo: keep it left-aligned and capped like live (max-height 700, natural width). */
.s--light .s-2col .s-col-img .s-imgwrap { text-align: left; }
.s--light .s-2col .s-col-img .s-imgwrap > img { width: auto; max-width: 100%; max-height: 700px; }
/* Card titles are <p>; restore the 1em bottom padding the anchor reset stripped. */
.condition-title { padding-bottom: 1em; }
/* Intro infographic: keep it centered, capped, not stretched to full column width. */
.s--light .s-2col .s-col-img .s-imgwrap { text-align: center; }
.s--light .s-2col .s-col-img .s-imgwrap > img { width: auto; max-width: 100%; max-height: 560px; }
/* About-Laser photo: keep it left-aligned and capped like live (max-height 700, natural width). */
.s--light .s-2col .s-col-img .s-imgwrap { text-align: left; }
; the anchor reset
   stripped it. Restore it, scoped to card titles only. */
.condition-title { padding-bottom: 1em; }
/* Intro body-diagram (TRIGGER-POINT_2, portrait): center it and cap height like staging. */
.s--light .s-2col .s-col-img .s-imgwrap { text-align: center; }
.s--light .s-2col .s-col-img .s-imgwrap > img { width: auto; max-width: 100%; max-height: 620px; }
/* Intro infographic: cap its height so it sits balanced in the column like staging. */
.s--light .s-2col .s-col-img .s-imgwrap > img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
/* About Us (Anchor) — page-specific CSS */

/* "Non Surgical Solutions" accent span (Divi module custom_css: selector span{color:#E8A087}
).
   Only the symptom-cards header has a <span> inside a .section-title on this page;
   .info-title spans (intro/team) are intentionally left uncolored. */
.section-title span { color: var(--accent, #e8a087); }
/* Quiz CTA cards — module CSS relocated by Divi, restored (media-scoped) */
.quiz-card{position:relative;padding:3rem;background:linear-gradient(135deg,#1a4a45,#153b37);border:1px solid rgba(62,133,124,0.3);overflow:hidden;transition:transform 0.4s ease,box-shadow 0.4s ease}
.quiz-card:hover{transform:translateY(-5px);box-shadow:0 25px 50px rgba(21,59,55,0.3)}
.quiz-card::before{content:'';position:absolute;top:0%;right:-50%;width:100%;height:100%;background:radial-gradient(circle,rgba(232,160,135,0.1) 0%,transparent 70%);transition:transform 0.6s ease}
.quiz-card:hover::before{transform:scale(1.8)}
.quiz-card-content{position:relative;z-index:2}
.quiz-icon{width:60px;height:60px;margin-bottom:1.5rem;position:relative}
.quiz-icon::before{content:'';position:absolute;inset:0;background:#e8a087;transform:rotate(45deg);transition:transform 0.4s ease}
.quiz-card:hover .quiz-icon::before{transform:rotate(45deg) scale(1.1)}
.quiz-icon svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:28px;height:28px;stroke:#153b37;stroke-width:1.5;fill:none}
.quiz-card h3{font-size:var(--h-feature);font-weight:400;color:#d4e5e2;margin-bottom:0.75rem}
#page-container .quiz-card .p-text{font-weight:300;font-size:0.95rem;line-height:1.7;color:rgba(212,229,226,0.6)!important;margin-bottom:1.5rem!important}
.quiz-link{display:flex;align-items:center;gap:0.75rem;padding:0.85rem 1.5rem;background:transparent;border:1px solid #e8a087;color:#e8a087;text-decoration:none;font-family:'Libre Franklin',sans-serif;font-size:0.8rem;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;transition:all 0.4s ease;position:relative;overflow:hidden;width:fit-content;margin-top:1.5rem}
.quiz-link::before{content:'';position:absolute;inset:0;background:#e8a087;transform:translateX(-100%);transition:transform 0.4s ease}
.quiz-link span,.quiz-link svg{position:relative;z-index:1}
.quiz-link:hover::before{transform:translateX(0)}
.quiz-link:hover{color:#153b37}
.quiz-link svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;transition:transform 0.3s ease}
.quiz-link:hover svg{transform:translateX(4px)}
@media (max-width:1024px){.quiz-cta-inner{grid-template-columns:1fr}}
@media (max-width:600px){.quiz-card{padding:2rem 1.5rem}}
/* Symptom-cards section had TWO Divi rows (header + cards) each 27/27; .s--rowpad
   restores one, this restores the gap between them. */
.symptom-cards-grid { margin-top: 54px; }
/* Locations We Serve — 4-up compact city pills, title-only cards */
.ac-cards--loc{grid-template-columns:repeat(4,1fr);gap:10px;margin:1.75rem 0 0}
.ac-cards--loc .ac-card{padding:10px 16px;background:#fff;border-radius:12px}
.ac-cards--loc a.ac-card{text-decoration:none;color:inherit;transition:box-shadow .15s ease,transform .15s ease}
.ac-cards--loc a.ac-card:hover{box-shadow:0 3px 10px rgba(0,0,0,.06);transform:translateY(-1px)}
.ac-cards--loc .ac-card h4{margin:0;font-size:1rem;font-weight:600;line-height:1.3}
@media (max-width:1024px){.ac-cards--loc{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.ac-cards--loc{grid-template-columns:1fr}}
.contact-hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:start}
.chf-card{background:#fff;padding:2.25rem 2rem;box-shadow:0 24px 60px rgba(0,0,0,0.18)}
.chf-title{font-family:'Gilda Display',Georgia,serif;font-size:1.6rem;font-weight:500;color:#153b37;margin:0 0 0.25rem}
.chf-sub{font-style:italic;font-size:0.9rem;color:#5a6b68;margin:0 0 1.25rem}
@media (max-width:980px){.contact-hero-grid{grid-template-columns:1fr;gap:36px}}
/* Contact info cards */
.contact-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.contact-card{text-align:center;padding:2.5rem 1.5rem;border:1px solid rgba(21,59,55,0.1);background:rgba(255,255,255,.8)}
.contact-card-icon{position:relative;width:82px;height:82px;margin:0 auto 1.5rem}
.contact-card-icon::before{content:"";position:absolute;inset:8px;border:1px solid #3e857c;transform:rotate(45deg)}
.contact-card-icon .cci-d{position:absolute;inset:20px;background:#e8a087;transform:rotate(45deg)}
/* Icon must read on the white card; the earlier rule (~line 1546) and the hover rule (~1553) own the accent/light swap. */
.contact-card-icon svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;stroke:var(--accent);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.contact-card h3{font-family:'Gilda Display',Georgia,serif;font-size:1.35rem;font-weight:500;color:#153b37;margin:0 0 0.75rem}
.contact-card p{font-size:0.95rem;line-height:1.7;color:#5a6b68;margin:0}
.contact-card a{color:#3e857c;text-decoration:none}
.contact-card a:hover{text-decoration:underline}
@media (max-width:980px){.contact-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.contact-cards{grid-template-columns:1fr;max-width:360px;margin:0 auto}}
/* Full-bleed Google map with breathing room (matches staging section padding) */
.contact-map{width:100%;line-height:0;padding:51px 0}
.contact-map iframe{display:block;width:100%;height:450px;border:0}
/* Accent span in section titles (matches About anchor convention) */
.section-title span { color: var(--accent, #e8a087); }
/* Intro before/after diagram: keep it capped and centered like live. */
.s--light .s-2col .s-col-img .s-imgwrap { text-align: center; }
/* Resources main content: white rounded card + sticky sidebar form */
.res-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,300px);gap:2rem;align-items:start}
.res-main{background:#fff;border-radius:25px;padding:40px;min-width:0}
.res-main .section-header{margin-bottom:1.5rem}
.res-main .section-header + [id^="apd-"],
.res-main .section-header + .anchor-post-grid,
.res-main .section-header + .anchor-social-feed{margin-bottom:3rem}
.res-main > *:last-child{margin-bottom:0}
.res-sidebar{position:sticky;top:96px}
.res-suggest{background:#fff;border-radius:25px;padding:2rem}
.res-suggest .info-title{font-size:1.5rem;margin-top:.5rem}
@media (max-width:980px){
  .res-layout{grid-template-columns:1fr}
  .res-main{padding:24px}
  .res-sidebar{position:static}
}
/* Quiz CTA cards */
.res-main .anchor-post-grid,.res-main [id^="apd-"]{max-width:100%;}
.res-main .anchor-post-grid > *{flex-wrap:wrap;}
/* module CSS relocated by Divi, restored (media-scoped) */
/* Privacy Policy (in-place anchor conversion) — page-specific CSS */
/* Numbered section headings: serif sub-headers already come from .info-subtitle;
   pin their color for the white body section. */
.info-content.dark .info-subtitle{ color: var(--dark); margin-top: 2rem; }
.info-content.dark .info-subtitle:first-child{ margin-top: 0; }
/* Policy lists on the white body */
.info-content.dark ul{ margin: 0 0 1.25rem; padding-left: 1.4rem; list-style: disc; }
.info-content.dark li{ color: var(--text-muted-dark); line-height: 1.7; margin-bottom: 0.5rem; }
.info-content.dark li strong{ color: var(--dark); }
.info-content.dark a{ color: var(--light); text-decoration: underline; }
.info-content.dark a:hover{ color: var(--accent); }
.sym-quiz-band .btn-primary.cta{margin-top:2em}
/* Quiz CTA screening cards — module CSS relocated by Divi, restored (media-scoped) */
.ac-thankyou .s-2col{ align-items:center; }
.ac-thankyou .info-title{ margin-bottom: 1.25rem; }
.ac-thankyou .btn-primary{ margin-top: 1rem; }
.ac-ty-stackwrap{ max-width: 480px; margin: 0 auto; }
@media (max-width:980px){
  .ac-thankyou{ padding-top: 130px; padding-bottom: 64px; }
  .ac-ty-stackwrap{ max-width: 340px; margin-top: 8px; }
}
.s-quiz .s-2col{ align-items: start; }

/* ============================================================================
 * B. MIGRATION FIXES — three defects surfaced by the per-page render checks.
 * ============================================================================ */

/* B1. Linkable condition cards. The example uses <div class="condition-card">;
 *     migrated hub pages need the same card to link to its child page, and a bare
 *     <a> inherits the UA underline. Same visual result, now clickable — without
 *     this every hub body needs an inline text-decoration override. */
a.condition-card,
a.condition-card:hover,
a.condition-card:focus {
	text-decoration: none;
	color: inherit;
}

/* B2. Prose images inside post bodies. The example site's own posts carry no
 *     in-body images, so nothing ever constrained one; every migrated article
 *     opens with a lead image that otherwise renders at its natural width and
 *     bursts the column. */
.et_pb_post_content img {
	max-width: 100%;
	height: auto;
}

/* B3. Trust-banner logo on mobile — authored at 480px, overflows below ~430px. */
@media (max-width: 600px) {
	.tmj-banner-stat img {
		max-width: 100%;
		height: auto;
	}
}


/* Breathe/Sleep/Heal/Live panels put the heading INSIDE the text column beside
   the photo, so the panel needs no .ac-ofp__intro. .s-2col already centres its
   columns vertically, which keeps the heading optically level with the image.
   Give the in-column heading its own spacing. */
.s-col-text > .info-content > .ac-ofp__title { margin: 0 0 6px; }

/* ---------- CTA band actions ---------- */
/*
 * In a centred CTA band the three actions have to read as one set. Two things stop
 * that by default: .hero-buttons never sets align-items, so a taller item stretches
 * the rest, and .btn-secondary is a left-aligned "link with a trailing rule" — an
 * affordance that works in a hero but reads as a stray mark next to a solid button.
 * Scoped to .s-prf so the hero styling it was designed for is untouched.
 */
.s-prf .hero-buttons {
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
}

.s-prf .hero-buttons .btn-primary,
.s-prf .hero-buttons .btn-secondary {
  min-height: 54px;
  padding: 1rem 1.75rem;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  /* the outlined actions carry a 1px border; the solid one needs a transparent
     border of the same width or it sits 2px shorter than its neighbours */
  border: 1px solid transparent;
  /* .cta adds a top margin meant for a standalone button; inside the group it
     drops that action below the others */
  margin: 0;
}

.s-prf .hero-buttons .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.s-prf .hero-buttons .btn-secondary::after { display: none; }

.s-prf .hero-buttons .btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* .contact-card-icon with a Font Awesome <i>
   -----------------------------------------
   Owner review 2026-09-16: the four cards under "Forms and Downloads" on
   /for-patients/ showed a tiny glyph sitting on the TOP VERTEX of the diamond
   instead of inside it.

   Cause: this component only ever positioned an `svg` child (two rules, the
   later one minified near line 2903). Font Awesome here is the WEBFONT build
   (`font-awesome/6.5.2/css/all.min.css`), which leaves `<i class="fa-...">` as
   an `<i>` — it is never swapped for an `<svg>`, so the selector matched
   nothing and the glyph fell into normal flow at the top of the 80px box.

   /contact-us/ uses the same component with real inline `<svg>` and has always
   rendered correctly, so the svg rules are left exactly as they are. This adds
   the `<i>` case alongside them, because a Font Awesome `<i>` is already the
   site's convention elsewhere (`.offer-card__icon`, the `.ac-ofp__tab` blocks)
   and both should work in one card component.

   Must stay AFTER the minified `.contact-card-icon svg` rule above — equal
   specificity, so source order decides. */
.contact-card-icon > i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  z-index: 2;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-card-icon > i {
  color: var(--light);
}

/* The card itself as the link.
   `.contact-card a { text-decoration:none }` above only covers a link NESTED
   inside the card, which is how /contact-us/ is built (`<div class="contact-card">`
   with an inner `<a>`). /for-patients/ makes the whole card the anchor
   (`<a class="contact-card">`), so that rule never matched and the browser's
   default underline landed on the heading AND every line of body copy.
   Same root cause as the `<i>` rule above: one component, two markup shapes. */
a.contact-card,
a.contact-card:hover {
  text-decoration: none;
}

a.contact-card h3,
a.contact-card p {
  text-decoration: none;
}
