/* ============================================================
   ALIGN HEALTH CO — Component CSS
   New components introduced for About / Service / Audience /
   Contact prototype pages. Loaded after nav.css. All class names
   line up with WP patterns at wp/theme/align-health-co/patterns/.
   ============================================================ */

/* ============================================================
   PAGE HERO — variant of the homepage hero for inner pages.
   Smaller min-height, breadcrumb kicker, single primary CTA.
   ============================================================ */

.page-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-80);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(2, 63, 74, 0.95) 0%,
      rgba(2, 63, 74, 0.88) 45%,
      rgba(2, 63, 74, 0.55) 75%,
      rgba(2, 63, 74, 0.35) 100%
    ),
    url('../images/beach4.jpg') center / cover no-repeat;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-20);
}
.page-hero__kicker a {
  color: inherit;
  text-decoration: none;
}
.page-hero__kicker a:hover { color: #fff; }

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-30);
}

.page-hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  margin-bottom: var(--space-40);
}

.page-hero .btn-group {
  display: flex;
  gap: var(--space-20);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .page-hero { min-height: 520px; padding-block: var(--space-70); }
}

/* ============================================================
   TEXT BLOCK — narrative section, optional pull-quote
   ============================================================ */

.text-block {
  max-width: 760px;
  margin-inline: auto;
}

.text-block__lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-foreground);
  margin-bottom: var(--space-30);
}

.text-block p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-body);
  margin-bottom: var(--space-30);
}

.text-block h3 {
  margin-top: var(--space-40);
  margin-bottom: var(--space-20);
  font-size: 1.375rem;
  color: var(--color-foreground);
}

.text-block__pull {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-20) var(--space-30);
  margin: var(--space-40) 0;
  font-size: 1.125rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--color-foreground);
  background: rgba(0, 181, 200, 0.05);
  border-radius: 0 8px 8px 0;
}

.text-block__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-10);
}
.text-block__link:hover { gap: 0.6rem; }

/* Page-copy lists — restore bullets that the global `ul, ol { list-style: none }` strips */
.text-block ul,
.text-block ol {
  margin: 0 0 var(--space-30);
  padding-left: 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-body);
}

.text-block ul { list-style: disc; }
.text-block ol { list-style: decimal; }

.text-block li {
  margin-bottom: 0.55rem;
  padding-left: 0.35rem;
}

.text-block li::marker {
  color: var(--color-primary);
}

.text-block li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CALLOUT — high-contrast insight / consent block
   variants: .callout--consent (teal), .callout--insight (navy)
   ============================================================ */

.callout {
  position: relative;
  border-radius: 14px;
  padding: var(--space-50) var(--space-40);
  max-width: 920px;
  margin-inline: auto;
}

.callout__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-20);
}

.callout__title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  margin-bottom: var(--space-20);
}

.callout p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-20);
}

.callout p:last-child { margin-bottom: 0; }

.callout__quote {
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  padding: var(--space-20) 0 0;
  border-top: 1px solid currentColor;
  opacity: 0.92;
}

/* Opening + closing quote marks render around `.callout__quote-text`
   so the closing quote sits before the "— Attribution" attribution. */
.callout__quote-text::before,
.callout__quote-text::after {
  font-family: 'din1451', Georgia, serif;
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  opacity: 0.5;
}

.callout__quote-text::before { content: '"'; margin-right: 0.2rem; }
.callout__quote-text::after  { content: '"'; margin-left: 0.2rem; }

/* Consent variant — bright accent border on a soft surface */
.callout--consent {
  background: linear-gradient(135deg, rgba(0, 181, 200, 0.10), rgba(0, 181, 200, 0.04));
  border: 1px solid rgba(0, 181, 200, 0.30);
  color: var(--color-foreground);
}
.callout--consent .callout__label { color: #00a4b6; }

/* Insight variant — dark navy block, white type */
.callout--insight {
  background: #023F4A;
  color: #fff;
}
.callout--insight .callout__label { color: #5fd4e2; }
.callout--insight .callout__quote { border-top-color: rgba(255, 255, 255, 0.18); }

@media (max-width: 768px) {
  .callout { padding: var(--space-40) var(--space-30); }
}

/* ============================================================
   ICON LIST — bulleted list with icon swatch per item
   Used: Mining/FIFO common presentations.
   ============================================================ */

.icon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-20) var(--space-40);
  max-width: 920px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--color-border);
}

.icon-list__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 181, 200, 0.12);
  color: var(--color-primary);
}

.icon-list__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-list__label {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-body);
  padding-top: 0.35rem;
}

@media (max-width: 768px) {
  .icon-list { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   NUMBERED STEPS — care plan with explicit step labels
   ============================================================ */

.numbered-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-30);
  max-width: 1100px;
  margin-inline: auto;
}

.numbered-steps--count-5 {
  grid-template-columns: repeat(6, 1fr);
}

.numbered-steps--count-5 .numbered-step {
  grid-column: span 2;
}

.numbered-steps--count-5 .numbered-step:nth-child(n + 4) {
  grid-column: span 3;
}

.numbered-step {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 12px;
  padding: var(--space-40) var(--space-30);
  position: relative;
}

.numbered-step__num {
  position: absolute;
  top: -18px;
  left: var(--space-30);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.numbered-step__phase {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-10);
  margin-top: var(--space-20);
}

.numbered-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: var(--space-20);
  line-height: 1.3;
}

.numbered-step__body {
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--color-muted);
}

@media (max-width: 992px) {
  .numbered-steps { grid-template-columns: repeat(2, 1fr); }
  .numbered-steps--count-5 .numbered-step,
  .numbered-steps--count-5 .numbered-step:nth-child(n + 4) { grid-column: auto; }
}
@media (max-width: 600px) {
  .numbered-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE CARDS — related-services grid (used on service +
   audience pages)
   ============================================================ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-30);
  max-width: 1100px;
  margin-inline: auto;
}

.service-card {
  background: var(--color-foreground);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 181, 200, 0.55);
  box-shadow: 0 14px 30px rgba(2, 63, 74, 0.22);
}

.service-card__label {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 181, 200, 0.22);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  line-height: 1.2;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  padding-top: 32px;
}

.service-card__body {
  font-size: 0.9875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}
.service-card__link:hover { gap: 0.6rem; }
.service-card__link::after { content: '→'; }

/* ============================================================
   TEAM PROFILES — large image beside practitioner bio
   ============================================================ */

.team-profile-section {
  padding-block: var(--space-50);
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  max-width: 1100px;
  margin-inline: auto;
}

.team-profile__photo {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(2, 63, 74, 0.14);
  overflow: hidden;
  min-height: 460px;
}

.team-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center top;
}

.team-profile--dr-jacob .team-profile__photo img,
.team-profile--dr-altus .team-profile__photo img {
  object-fit: contain;
  object-position: center top;
  background: #f6f8f8;
}

.team-profile__content {
  align-self: center;
}

.team-profile__name {
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.team-profile__role {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-30);
  text-transform: uppercase;
}

.team-profile__bio {
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.75;
}

.team-profile__bio p {
  margin-bottom: 1.25rem;
}

.team-profile__qualifications {
  margin-top: var(--space-30);
}

.team-profile__qualifications h3 {
  color: var(--color-foreground);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.team-profile__qualifications ul {
  color: var(--color-body);
  display: grid;
  gap: 0.45rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.2rem;
}

.team-profile__actions {
  margin-top: var(--space-30);
}

.team-card-section {
  padding-block: var(--space-30);
}

.team-card--small-profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-40);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  text-align: left;
}

.team-card--small-profile .team-card__photo {
  width: 220px;
  height: 220px;
  margin: 0;
}

.team-card--small-profile .team-card__photo img {
  transform: scale(1.08);
  transform-origin: center;
}

.team-card--lindy-brigg .team-card__photo img {
  object-position: center;
  transform: scale(1);
}

.team-card--morag-marshall .team-card__photo img {
  object-position: 50% center;
  transform: scale(1);
}

.team-card--colleen-gould .team-card__photo img {
  object-position: 48% 34%;
  transform: scale(1.48);
}

.team-card--small-profile .team-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.team-card--small-profile .team-card__bio p {
  margin-bottom: 1rem;
}

.team-card__qualifications {
  margin-top: var(--space-20);
}

.team-card__qualifications h3 {
  color: var(--color-foreground);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.team-card__qualifications ul {
  color: var(--color-body);
  display: grid;
  gap: 0.35rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.2rem;
}

.team-card__actions {
  margin-top: var(--space-20);
}

/* ============================================================
   CONTACT INFO — large NAP block on Contact page
   ============================================================ */

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-40);
  max-width: 920px;
  margin-inline: auto;
  background: var(--color-surface, #f8fafc);
  border-radius: 14px;
  padding: var(--space-50);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-info__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-foreground);
  line-height: 1.55;
}

.contact-info__value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-info__value a:hover { border-bottom-color: var(--color-primary); }

.contact-info__cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
  margin-top: var(--space-20);
}

@media (max-width: 768px) {
  .contact-info { grid-template-columns: 1fr; padding: var(--space-40) var(--space-30); }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-30);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-foreground);
}

.contact-form__field label .optional {
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 0.35rem;
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 181, 200, 0.15);
}

.contact-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__note {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-30);
  flex-wrap: wrap;
}

.contact-form__actions .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form__turnstile {
  min-height: 65px;
}

.contact-form__turnstile[hidden] {
  display: none;
}

.contact-form__status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 1.4em;
}

.contact-form__status[data-state="success"] {
  color: var(--color-primary);
}

.contact-form__status[data-state="error"] {
  color: #b42318;
}

@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   MAP EMBED — full-width Google Maps section
   ============================================================ */

.map-embed {
  position: relative;
  width: 100%;
  height: 460px;
  background: var(--color-surface, #f8fafc);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.map-embed iframe,
.map-embed__placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-embed__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-muted);
  background:
    repeating-linear-gradient(
      45deg,
      var(--color-surface, #f8fafc) 0,
      var(--color-surface, #f8fafc) 12px,
      #eef2f6 12px,
      #eef2f6 24px
    );
}

.map-embed__placeholder svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .map-embed { height: 340px; }
}

/* ============================================================
   BREADCRUMB — minimal trail above page hero on inner pages
   (rendered inside .page-hero__kicker; this is fallback only)
   ============================================================ */

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-20);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li::after { content: '/'; margin-left: 0.4rem; color: var(--color-border); }
.breadcrumb li:last-child::after { content: none; }

/* ============================================================
   PAGE SECTION HEADER — centered with constraint
   ============================================================ */

.page-section__header {
  max-width: 760px;
  margin: 0 auto var(--space-50);
  text-align: center;
}

.page-section__header .section__label {
  margin-bottom: var(--space-10);
}

/* ============================================================
   IMAGE PLACEHOLDER — for diagram slots that need art later
   ============================================================ */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface, #f8fafc);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: var(--space-50);
  min-height: 220px;
  text-align: center;
}

/* ============================================================
   AHPRA NOTE — common AHPRA-compliance line treatment
   ============================================================ */

.ahpra-strip {
  background: rgba(0, 181, 200, 0.05);
  color: var(--color-muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: var(--space-20) var(--space-30);
  line-height: 1.6;
  border-radius: 8px;
  max-width: 760px;
  margin-inline: auto;
}

/* ============================================================
   APPROACH TWO-COL — image left, pillars stacked right.
   Used in the homepage Our Approach section.
   ============================================================ */

.approach-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-60);
  align-items: stretch;
  margin-top: var(--space-50);
}

.approach-two-col__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
}

.approach-two-col__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.approach-two-col__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-30);
  justify-content: center;
}

.approach-two-col__pillars .pillar-card {
  text-align: left;
  padding: var(--space-30) var(--space-30);
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-30);
  align-items: center;
}

.approach-two-col__pillars .pillar-card__icon {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  margin: 0;
}

.approach-two-col__pillars .pillar-card__title {
  margin: 0;
  align-self: end;
}

.approach-two-col__pillars .pillar-card__body {
  margin: 0;
  align-self: start;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .team-profile {
    grid-template-columns: 1fr;
  }

  .team-profile__photo,
  .team-profile__photo img {
    min-height: 420px;
  }

  .team-card--small-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .team-card--small-profile .team-card__photo {
    margin-inline: auto;
  }

  .approach-two-col {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }

  .approach-two-col__image {
    min-height: 280px;
  }

  .approach-two-col__pillars .pillar-card {
    padding: var(--space-30);
  }
}
