/* ==========================================================================
   Chiron Psychological — Home (v1, 10/22). Measured from the live page at
   1440px; the tablet and phone layouts are new (the WordPress ones were
   Elementor's automatic stacking).
   ========================================================================== */

/* --- 1. Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 965px; display: flex; flex-direction: column; color: var(--paper); overflow: hidden; background: var(--heading); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,25,5,.55) 0%, rgba(32,25,5,.42) 45%, rgba(32,25,5,.55) 100%); }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; max-width: calc(var(--narrow) + 30px); padding: 265px 15px 60px; }
.hero__title { max-width: 784px; font-size: 82px; line-height: .95; font-weight: 400; letter-spacing: .5px; color: var(--paper); }
.hero__lede { max-width: 784px; margin-top: 30px; font-size: 18px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 38px; margin-top: 39px; padding-left: 17px; }
.hero__actions .btn { font-size: 18px; font-weight: 700; padding: 15px 30px; }
.hero__reviews { display: flex; align-items: center; gap: 60px; }
.hero__reviews-text { font-size: 18px; line-height: 1; font-weight: 500; }
.hero__strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: auto; padding: 40px 2px 0 28px;
  border-top: 1px solid rgba(190,137,0,.45); }
.hero__strip li { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.6; font-weight: 500; }
.hero__strip .icon { width: 20px; height: 20px; }

/* --- 2. About -------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 690px) minmax(0, 655px); justify-content: space-between; gap: 55px; align-items: start; }
/* The collage as live (Hipno): the tall photo has a notch cut from its top-left corner (the theme's mask shape) and the
   reviews card sits in the notch; the small photo under the card. Percentages so it scales the same at every width. */
.about__media { position: relative; width: 100%; aspect-ratio: 690 / 678; }
/* Reviews card (10/23, Brandon: no demo faces; let the stars, "Patient Reviews" and the 200+ circle fill the card).
   Everything is sized in cqw (1cqw = 1% of the collage's width), so the card fills the notch the same way at every width. */
.about__media { container-type: inline-size; }
.review-card { position: absolute; z-index: 2; left: 0; top: 0; width: 57.4%; height: 28cqw; display: flex; align-items: center; justify-content: space-between; gap: 3cqw;
  padding: 0 4.6cqw; border-radius: var(--radius); background: rgba(238,236,230,.98); }
.review-card__info { min-width: 0; }
.review-card__stars { display: flex; gap: .5cqw; align-items: center; color: var(--gold); }
.review-card__stars .icon { width: clamp(12px, 3.3cqw, 23px); height: clamp(12px, 3.3cqw, 23px); }
.review-card__text { margin-top: 1.6cqw; font-family: var(--serif); font-size: clamp(16px, 4.3cqw, 30px); line-height: 1.15; font-weight: 500; color: var(--heading); }
.review-card__badge { flex: none; width: clamp(48px, 15cqw, 104px); height: clamp(48px, 15cqw, 104px); border-width: 3px; font-size: clamp(16px, 4.6cqw, 32px); box-shadow: 0 6px 18px rgba(32,25,5,.12); }
.about__img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--tall { left: 41.3%; top: 0; width: 56.5%; height: 100%; border-radius: 0;
  -webkit-mask: url("../assets/img/notch-mask.svg") center / 100% 100% no-repeat; mask: url("../assets/img/notch-mask.svg") center / 100% 100% no-repeat; }
.about__img--small { left: 0; bottom: 0; width: 37%; height: 65.8%; }
.about__lede { margin-top: 30px; font-size: 16px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__vision { margin-top: 30px; font-family: var(--serif); font-size: 18px; line-height: 1.6; font-weight: 500; }
.about__cols .checklist { margin-top: 28px; }
.about__body > .btn { margin-top: 40px; }

/* --- 3. Services ---------------------------------------------------------------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 80px; }
.svc-card { position: relative; display: block; aspect-ratio: 447 / 431; overflow: hidden; border-radius: var(--radius); color: var(--paper); }
.svc-card picture, .svc-card img { width: 100%; height: 100%; }
.svc-card img { object-fit: cover; transition: transform .8s var(--ease); }
/* Overlay (10/23, Brandon: like live's but lighter): live is a flat rgb(32,25,5) at 50%; ours is a flat 32% of the same
   colour plus the soft top/bottom shading under the title and the link. Lifts a little on hover. */
.svc-card::after { content: ""; position: absolute; inset: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(180deg, rgba(32,25,5,.38) 0%, rgba(32,25,5,0) 34%, rgba(32,25,5,0) 60%, rgba(32,25,5,.45) 100%), rgba(32,25,5,.32); }
.svc-card:hover::after { opacity: .82; }
.svc-card__title { position: absolute; z-index: 1; top: 30px; left: 30px; right: 30px; font-size: 32px; line-height: 1; font-weight: 400; color: var(--paper); }
.svc-card__more { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 16px; line-height: 1.2; font-weight: 500; }
.svc-card__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card:hover img { transform: scale(1.05); }
.svc-card:hover .svc-card__more .icon { transform: translateX(4px); }

/* --- 4. Why choose us --------------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: 447px minmax(0, 1fr); gap: 30px; align-items: start; }
.why__media { position: relative; z-index: 2; }  /* the turning badge sits over the photo beside it */
.why__media picture { overflow: hidden; border-radius: var(--radius); }
.why__media picture img { width: 100%; height: auto; aspect-ratio: 447 / 724; object-fit: cover; }
/* The badge as live: the gold disc (181px, the ring of text 131px over it), the whole thing turning. */
.why__badge { position: absolute; right: -101px; bottom: -16px; width: 181px; height: 181px; border-radius: 50%; display: grid; place-items: center; animation: ring-spin 12s linear infinite; }
.why__badge img { width: 161px; height: 161px; border-radius: 50%; }
.why__ring { position: absolute; left: 25px; top: 25px; width: 131px; height: 131px; overflow: visible; }
.why__ring text { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: 1.3px; fill: #351F14; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .why__badge { animation: none; } }
.why__lede { margin-top: 30px; font-size: 16px; line-height: 1.6; font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.features li { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--heading); }
.features__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--gold); color: #fff; flex: none; }
.features__icon .icon { width: 22px; height: 22px; stroke-width: 1.4; }
.why__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 40px; }
.why__small { overflow: hidden; border-radius: var(--radius); }
.why__small img { width: 100%; aspect-ratio: 447 / 335; object-fit: cover; }
.why__text p { margin: 15px 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; }

/* --- 5. How it works -------------------------------------------------------------------- */
.steps__title { max-width: 700px; }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 77px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; }
.step__title { max-width: 210px; font-size: 28px; line-height: 1.1; font-weight: 400; color: var(--heading); }
.step p { max-width: 210px; margin-top: 7px; font-family: var(--serif); font-size: 15px; line-height: 1.6; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; border-radius: 8px; background: var(--gold-hover);
  font-family: var(--serif); font-size: 50px; line-height: 1; font-weight: 600; color: #fff; }
.step--down .step__num { margin-top: 30px; }
.step--up .step__num { margin-bottom: 27px; }
.step:nth-child(3), .step:nth-child(4) { padding-top: 12px; }
/* The dashed path from one step to the next: as live, 60% of the column wide, right-aligned, centred on the column
   (original drawing; the theme's arrow files are not used). */
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 0; width: 32%; aspect-ratio: 102 / 200; transform: translateY(-50%); pointer-events: none;
  background: url('../assets/img/step-path-down.svg') no-repeat center / contain; }
.step--up:not(:last-child)::after { background-image: url('../assets/img/step-path-up.svg'); }

/* --- 6. FAQs ------------------------------------------------------------------------------ */
/* As live: the group photo behind, fixed while the page scrolls, under a 82% wash of the heading colour. */
.faqs { position: relative; isolation: isolate; color: var(--paper); background: var(--olive) url('../assets/img/faq-bg-1920.jpg') center / cover no-repeat; background-attachment: fixed; }
.faqs::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--heading); opacity: .82; }
@media (max-width: 1024px), (hover: none) { .faqs { background-attachment: scroll; } }
.faqs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.faqs .h-md { font-weight: 600; color: var(--paper); }
.ask-card { width: min(400px, 100%); margin-top: 40px; padding: 30px; border-radius: var(--radius); background: var(--gold); }
.ask-card__title { max-width: 9em; font-size: 28px; line-height: 1.15; font-weight: 400; color: var(--paper); }
.ask-card__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 23px; line-height: 1.6; }
.ask-card__phone .icon { width: 25px; height: 25px; }
.ask-card__phone:hover { color: var(--heading); }

/* --- 7. Appointment ------------------------------------------------------------------------- */
.appt { padding: 50px 0 100px; background: linear-gradient(180deg, var(--paper) 50%, var(--gold) 50%); }
.appt__card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 100px; border-radius: var(--radius); background: var(--paper); }
.appt__form { position: relative; }
.appt__form iframe { position: relative; z-index: 1; display: block; width: 100%; min-width: 100%; height: 1400px; border: 0; }  /* Jotform's handler grows it to the form (2872px on the live page) */
/* Behind the form: what shows while Jotform loads, or where frames are blocked (the preview). */
.appt__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.appt__fallback strong { font-size: 22px; font-weight: 500; color: var(--heading); }
.appt__lede { margin-top: 30px; font-family: var(--serif); font-size: 16px; line-height: 1.6; font-weight: 600; }
.appt__item { display: flex; align-items: center; gap: 20px; padding: 40px 0; }
.appt__item + .appt__item { border-top: 1px solid var(--line); }
.appt__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; color: var(--gold); flex: none; }
.appt__icon .icon { width: 60px; height: 60px; }
.appt__h { font-size: 28px; line-height: 1.1; font-weight: 400; color: var(--heading); }
.appt__item p { margin-top: 2px; font-family: var(--serif); font-size: 18px; line-height: 1.6; font-weight: 600; }
.appt__item a:hover { color: var(--gold); }

/* --- Narrow desktop (1025–1279): the desktop layout in a narrower container --------------------- */
@media (max-width: 1279px) and (min-width: 1025px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .svc-card__title { font-size: 26px; }
  .why__grid { grid-template-columns: 380px minmax(0, 1fr); }
  .why__badge { right: -70px; }
  .step__title { font-size: 24px; }
  .appt__card { padding: 60px; gap: 50px; }
}

/* --- Tablet (to 1024, the WordPress tablet layout): collage centred then the text; two service cards a row,
   the third centred; Why Choose Us as text, then the photo pair, then the tall photo; steps two a row; the FAQ
   card above the list; the form alone in its card with the details above it; the header keeps its button. --- */
@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__inner { padding: 190px var(--pad) 80px; }
  .hero__title { font-size: 80px; }
  .hero__lede { margin-top: 26px; }
  .hero__strip { margin-top: 110px; padding: 32px 0 0; gap: 12px 14px; }
  .hero__strip li { font-size: 14px; gap: 8px; }
  .hero__strip .icon { width: 17px; height: 17px; }

  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: center; }
  .about__media { width: min(100%, 608px); }
  /* Tablet and phone: the same notched collage, scaled; the card sits in the notch, nothing overlaps (10/22, Brandon). */
  .about__body { width: 100%; }
  .h-sm { font-size: 28px; }

  .svc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
  .svc-card { width: calc(50% - 15px); aspect-ratio: 368 / 320; }
  .svc-card__title { font-size: 28px; }

  .why__grid { grid-template-columns: 1fr; gap: 30px; }
  .why__media { order: 3; max-width: none; margin-top: 10px; }
  .why__media picture img { aspect-ratio: 765 / 612; }
  .why__media picture { border-radius: var(--radius); }
  .why__badge { right: 24px; bottom: 24px; width: 140px; height: 140px; }
  .why__badge img { width: 124px; height: 124px; }
  .why__ring { left: 19px; top: 19px; width: 102px; height: 102px; }
  .why__lede { margin-top: 15px; }
  .features { margin-top: 30px; }
  .features li { font-size: 18px; }
  .why__row { margin-top: 30px; }

  .steps__list { grid-template-columns: 1fr 1fr; gap: 40px 30px; margin-top: 52px; }
  .step::after { display: none; }
  .step, .step:nth-child(3), .step:nth-child(4) { padding-top: 0; }
  .step__title { max-width: none; font-size: 25.72px; }
  .step p { max-width: none; }
  .step--down .step__num { margin-top: 20px; }
  .step--up .step__num { margin-bottom: 17px; }
  .step--up:nth-child(4) { padding-top: 0; }

  .faqs__grid { grid-template-columns: 1fr; gap: 30px; }
  .faqs .h-md { font-size: 28px; }
  .ask-card { margin-top: 28px; }
  .ask-card__title { font-size: 25.72px; }
  .faq__item + .faq__item { padding-top: 20px; }
  .faq__q { padding-bottom: 20px; }
  .faq__item.is-open .faq__q { padding-bottom: 12px; }
  .faq__a { padding-bottom: 20px; }

  .appt { padding: 25px 0 50px; }
  .appt__card { grid-template-columns: 1fr; gap: 40px; padding: 30px 15px 15px; }
  .appt__info { order: -1; padding: 0 15px; }
  .appt__lede { margin-top: 20px; }
  .appt__item { padding: 24px 0; }
  .appt__form iframe { height: 1400px; }
}

/* --- Phone ------------------------------------------------------------------------------------------ */
@media (max-width: 639px) {
  .hero__inner { padding-top: 150px; padding-bottom: 48px; }
  .hero__title { font-size: 44px; line-height: 1; }
  .hero__lede { font-size: 16px; }
  .hero__actions { padding-left: 0; gap: 20px 24px; }
  .hero__reviews { gap: 14px; }
  .hero__reviews-text { font-size: 16px; }
  .hero__strip { display: grid; grid-template-columns: 1fr; margin-top: 56px; padding-top: 28px; gap: 10px; }
  .hero__strip li { font-size: 17px; }
  .about__img--small { border-radius: 14px; }
  .about__lede, .why__lede { margin-top: 24px; }
  .about__cols { grid-template-columns: 1fr; gap: 28px; }
  .about__vision { margin-top: 16px; }
  .about__cols .checklist { margin-top: 16px; }
  .svc-card { width: 100%; }
  .features { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .why__row { grid-template-columns: 1fr; }
  .why__badge { right: 12px; bottom: 12px; width: 120px; height: 120px; }
  .why__badge img { width: 106px; height: 106px; }
  .why__ring { left: 17px; top: 17px; width: 86px; height: 86px; }
  .step__title { font-size: 24px; }
  .ask-card__title, .appt__h { font-size: 24px; }
  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .step--down .step__num { order: -1; margin: 0 0 20px; }
  .step__num { width: 72px; height: 72px; font-size: 36px; }
  .ask-card { padding: 24px; }
  .appt__card { padding: 24px 12px 12px; gap: 24px; }
  .appt__info { padding: 0 8px; }
  .appt__fallback { padding: 24px; }
}
