﻿/* Shared page-type rules for 100% Chiropractic Austin Rosedale pages.
   Keep broad layout decisions here so condition pages do not borrow unrelated page classes. */

.clinic-100-percent-chiropractic-rosedale:is(.page-type-pillar, .page-type-landing, .page-type-article) {
  background: #fbf8f2;
}

.clinic-100-percent-chiropractic-rosedale:is(.page-type-pillar, .page-type-landing, .page-type-article) .care-header {
  min-height: 112px;
}

.clinic-100-percent-chiropractic-rosedale:is(.page-type-pillar, .page-type-landing, .page-type-article) .care-header .care-nav {
  align-items: center;
}

.page-type-pillar .component-hero,
.page-type-pillar .hero-section,
.page-type-landing .component-hero,
.page-type-landing .hero-section,
.page-type-article .component-hero,
.page-type-article .hero-section {
  background: #fbf8f2;
}

.page-type-pillar .component-hero {
  min-height: clamp(560px, 46vw, 740px);
}

.page-type-landing .component-hero,
.page-type-landing .hero-section {
  min-height: clamp(540px, 44vw, 720px);
}

.page-type-article .component-hero,
.page-type-article .hero-section {
  min-height: clamp(500px, 40vw, 660px);
}

.page-type-pillar .component-hero h1,
.page-type-pillar .hero-section h1 {
  max-width: 13ch;
  font-size: clamp(3.6rem, 5.45vw, 6.15rem) !important;
  line-height: .95 !important;
  letter-spacing: 0;
}

.page-type-landing .component-hero h1,
.page-type-landing .hero-section h1 {
  max-width: 14ch;
  font-size: clamp(3.35rem, 5.15vw, 5.9rem) !important;
  line-height: .96 !important;
  letter-spacing: 0;
}

.page-type-article .component-hero h1,
.page-type-article .hero-section h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 4.55vw, 5.25rem) !important;
  line-height: 1 !important;
  letter-spacing: 0;
}

.page-type-pillar .hero-lede,
.page-type-landing .hero-lede,
.page-type-article .hero-lede {
  max-width: 58ch;
}

.page-type-pillar .component-hero-media > img,
.page-type-pillar .component-hero-media img,
.page-type-pillar .hero-media img,
.page-type-landing .component-hero-media > img,
.page-type-landing .hero-media img,
.page-type-article .component-hero-media > img,
.page-type-article .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-type-pillar .component-hero-media,
.page-type-pillar .hero-media,
.page-type-landing .component-hero-media,
.page-type-landing .hero-media,
.page-type-article .component-hero-media,
.page-type-article .hero-media {
  overflow: hidden;
}

.component-guide-card,
.component-related-grid a {
  overflow: hidden;
}

.component-guide-card .guide-card-thumb,
.component-related-grid .guide-card-thumb,
.component-related-grid img {
  display: block;
  width: 100% !important;
  height: clamp(150px, 13vw, 210px) !important;
  aspect-ratio: 1.45 / 1;
  object-fit: cover !important;
  object-position: center !important;
}

.component-guide-card .guide-card-thumb[src$=".svg"],
.component-related-grid .guide-card-thumb[src$=".svg"],
.component-related-grid img[src$=".svg"] {
  padding: 1rem;
  object-fit: contain !important;
  background: #f5efe6;
}

.component-card-grid article img,
.approach-grid article > img,
.therapies-section img,
.doctor-section img {
  max-width: 100%;
  height: auto;
}

.component-card-grid article > img {
  width: 100%;
  height: clamp(170px, 18vw, 250px) !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.page-type-pillar .care-eyebrow,
.page-type-landing .care-eyebrow,
.page-type-article .care-eyebrow {
  letter-spacing: .04em;
}

@media (max-width: 980px) {
  .page-type-pillar .component-hero,
  .page-type-landing .component-hero,
  .page-type-article .component-hero {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .page-type-pillar .component-hero h1,
  .page-type-landing .component-hero h1,
  .page-type-article .component-hero h1 {
    font-size: clamp(3rem, 9vw, 4.85rem) !important;
  }
}

@media (max-width: 760px) {
  .page-type-pillar .care-header,
  .page-type-landing .care-header,
  .page-type-article .care-header {
    min-height: auto;
  }

  .page-type-pillar .component-hero h1,
  .page-type-landing .component-hero h1,
  .page-type-article .component-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 11vw, 3.55rem) !important;
  }

  .component-guide-card .guide-card-thumb,
  .component-related-grid .guide-card-thumb,
  .component-related-grid img {
    height: clamp(170px, 44vw, 230px) !important;
  }
}

/* Shared component layer.
   These classes describe UI shape, not page topic, so future pages can reuse
   the same premium clinic patterns without borrowing condition/service names. */
.component-hero,
.component-hero-copy,
.component-hero-media,
.component-related-grid,
.component-card-grid,
.component-icon-grid,
.component-guide-card,
.component-icon-card {
  min-width: 0;
}

.component-hero-media > img,
.component-hero-media picture > img,
.component-guide-card img,
.component-related-grid img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

.component-section-heading {
  max-width: 760px;
}

.component-icon-grid img[src$=".svg"],
.component-icon-card img[src$=".svg"],
.component-card-grid img[src$=".svg"],
.component-related-grid img[src$=".svg"] {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  object-fit: contain;
}

.component-check-list {
  list-style: none;
}

.component-cta-panel {
  overflow: hidden;
}

.component-supporting-note {
  color: var(--muted, #66746c);
}
