/* ==========================================================================
   Abracabazza — sections below Barry in Action
   About Barry, Reviews, FAQ, the final invitation and the footer additions.
   Mobile first; desktop from 900px, the same breakpoint as styles.css.
   Tokens come from :root in styles.css. Motion lives in motion.css.
   ========================================================================== */

/* Every new section is a positioning context for the suit decorations that
   motion.js drops in. Jump links clear the pinned header through the page's
   scroll-padding-top (styles.css), so no scroll-margin here: both would apply. */
.about,
.reviews,
.faq,
.invite {
  position: relative;
}

/* Multi-line headings: one span per line so motion can reveal line by line. */
.section-title__line {
  display: block;
}

/* --------------------------------------------------------------------------
   About Barry
   The same red as Barry in Action, so the two read as one stretch of the page.
   A fine rule marks the join. Phones: portrait first, cropped square so the
   copy is never pushed a full screen away. Desktop: portrait left, copy right.
   -------------------------------------------------------------------------- */

.about {
  padding: 0 var(--gutter) clamp(5rem, 13vw, 10rem);
  background: #8e111a;
  color: var(--ink);
}

.about__inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  max-width: 1320px;
  margin-inline: auto;
  padding-top: clamp(4rem, 11vw, 8rem);
  border-top: 1px solid rgba(245, 239, 228, 0.3);
}

.about__portrait {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-raised);
}

.about__portrait picture,
.about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about__portrait img {
  object-fit: cover;
  /* The square crop keeps his face and shoulders; headroom goes first. */
  object-position: 50% 22%;
}

.about__copy {
  display: grid;
  gap: 0;
  max-width: 58ch;
}

.about__copy .section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.about__copy p {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.9);
}

.about__copy p + p {
  margin-top: 1.1em;
}

/* Credibility line: a modest footnote, not a badge. */
.about__copy .about__credential {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 239, 228, 0.3);
  max-width: max-content;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(245, 239, 228, 0.84);
}

.about__credential a {
  color: var(--ink);
  text-decoration-color: rgba(240, 210, 143, 0.7);
  text-underline-offset: 0.25em;
  transition: color 0.2s ease;
}

.about__credential a:hover {
  color: var(--gold-light);
}

@media (min-width: 900px) {
  .about__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .about__portrait {
    width: min(100%, 30rem);
    /* Full 4:5 frame on desktop, no crop. */
    aspect-ratio: 4 / 5;
  }

  .about__portrait img {
    object-position: 50% 50%;
  }
}

/* --------------------------------------------------------------------------
   Reviews
   Charcoal for contrast. Three open panels (no boxes): photo slot, stars,
   quote, attribution. The eyebrow and bracketed copy make the template state
   plain until real reviews arrive.
   -------------------------------------------------------------------------- */

.reviews {
  padding: clamp(5rem, 13vw, 10rem) var(--gutter);
  background: var(--bg);
  color: var(--ink);
}

.reviews > * {
  max-width: 1320px;
  margin-inline: auto;
}

.reviews__intro {
  display: grid;
  gap: 1rem;
}

.reviews__lede {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
}

.reviews__grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  list-style: none;
}

.review {
  display: grid;
  gap: 0;
  align-content: start;
}

/* The photo slot: fills with <picture> the same way the Magic slots do. */
.review__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-raised);
}

.review__photo > :is(picture, img, .media-placeholder) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.review__photo img {
  object-fit: cover;
  object-position: var(--focus, 50% 35%);
}

/* On charcoal the raised tone alone is too quiet; a hairline keeps the slot legible. */
.review__placeholder {
  box-shadow: inset 0 0 0 1px rgba(245, 239, 228, 0.18);
}

.review__stars {
  display: flex;
  gap: 0.3rem;
  margin-top: 1.5rem;
  color: var(--gold);
}

.star {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.review__quote {
  margin: 1rem 0 0;
}

.review__quote p {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
}

.review__attribution {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .reviews__intro {
    grid-template-columns: 1fr minmax(0, 26rem);
    align-items: end;
    gap: 2rem;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review__photo {
    aspect-ratio: 4 / 5;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   Native details/summary. Keyboard and no-JS come free; the +/x is CSS.
   Desktop: heading on the left, questions on the right.
   -------------------------------------------------------------------------- */

.faq {
  padding: 0 var(--gutter) clamp(5rem, 13vw, 10rem);
  background: var(--bg);
  color: var(--ink);
}

.faq__inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  max-width: 1320px;
  margin-inline: auto;
  padding-top: clamp(4rem, 11vw, 8rem);
  border-top: 1px solid var(--line);
}

.faq__intro {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.faq__intro p:not(.eyebrow) {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
}

.faq__list {
  border-bottom: 1px solid var(--line);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.25rem 0;
  list-style: none;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--gold-light);
}

.faq__question:focus-visible {
  outline-offset: 2px;
}

/* Plus that turns into a cross when the answer is open. */
.faq__question::after {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s var(--ease-out);
}

.faq__item[open] > .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 1.5rem;
}

.faq__answer p {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.faq__answer a {
  color: var(--gold-light);
  text-underline-offset: 0.2em;
}

.faq__answer a:hover {
  color: var(--gold);
}

@media (min-width: 900px) {
  .faq__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .faq__question {
    padding: 1.5rem 0;
  }

  .faq__answer {
    padding-right: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Final invitation
   One idea, centred, with room around it.
   -------------------------------------------------------------------------- */

.invite {
  display: grid;
  justify-items: center;
  gap: 0;
  min-height: 70svh;
  align-content: center;
  padding: clamp(6rem, 18vw, 12rem) var(--gutter);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.invite .section-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 9.5vw, 5.75rem);
}

.invite__lede {
  max-width: 34ch;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--ink-soft);
}

.invite .btn {
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 479.98px) {
  .invite .btn {
    width: 100%;
    letter-spacing: 0.14em;
  }
}

/* --------------------------------------------------------------------------
   Footer
   One compact composition on the page's content width. Main row: brand
   (most of the space) | Instagram text link | Sydney Magic Club affiliation,
   all sharing one vertical centre. A hairline, then a slim utility row with
   the section nav left and the privacy link right. Every footer rule is
   here; styles.css carries none.
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter) clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer__inner {
  max-width: 1320px;
  margin-inline: auto;
}

/* Main row. Mobile: a single deliberate stack; desktop: three columns. */
.site-footer__main {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.site-footer__wordmark {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 15%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer__tagline {
  max-width: 34ch;
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Contact: a small icon and the handle as plain text, no box. */
.site-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  max-width: max-content;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.site-footer__instagram svg {
  flex: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-footer__instagram:hover,
.site-footer__instagram:hover svg {
  color: var(--gold-light);
}

/* Affiliation: Barry's club role, stated plainly. The emblem is the club's
   own mark (the IBM emblem); it sits on a warm-white disc so the black artwork
   stays legible on charcoal. Never animate it. */
.site-footer__affiliation {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  max-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__emblem {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  background: var(--ink);
}

.site-footer__emblem img {
  width: 100%;
  height: 100%;
}

.site-footer__affiliation-text {
  display: grid;
  gap: 0.1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.site-footer__affiliation-text strong {
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-footer__affiliation-text span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.site-footer__affiliation:hover strong {
  color: var(--gold-light);
}

/* Utility row under the one divider. The 44px link boxes supply the row's
   vertical breathing room, so the padding around them stays small. */
.site-footer__utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 0.375rem;
  border-top: 1px solid var(--line);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Same small-caps treatment as the header nav. */
.site-footer__nav a,
.site-footer__privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* Side padding pulled back with a matching negative margin: short words
     like FAQ still get a 44px-wide hit box while the text stays on the
     content edge and the gaps read unchanged. */
  padding-inline: 0.5rem;
  margin-inline: -0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__privacy:hover {
  color: var(--gold-light);
}

/* On a phone the privacy link takes its place at the end of the wrapped
   nav; from 900px it moves to the right edge of the row. */
.site-footer__privacy {
  margin-right: 0;
}

@media (min-width: 900px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: clamp(2rem, 4vw, 4rem);
  }

  .site-footer__privacy {
    margin-left: auto;
    margin-right: -0.5rem;
  }

  .site-footer__affiliation-text {
    white-space: nowrap;
  }
}
