/* =====================================================================
   About us - /about-us
   The family story beside real photos, what visitors say, charity
   partners (#animate-4 - the homepage links here), Ecologi, the trail.
   ===================================================================== */

/* ---------- Opener ---------- */

.ab-hero .lx-lede { max-width: 40ch; }
.ab-hero .lx-actions { margin-top: 30px; }

/* ---------- Story: photos beside the text ---------- */

.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.ab-story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); }
.ab-story-photos figure { margin: 0; border-radius: var(--lx-radius); overflow: hidden; background: var(--lx-raise); }
.ab-story-photos img { width: 100%; height: 100%; object-fit: cover; }
.ab-story-photos .ab-wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.ab-story-photos .ab-sq { aspect-ratio: 1; }
@media (min-width: 901px) {
  .ab-story-photos { position: sticky; top: calc(var(--lx-nav-h) + 32px); }
}

.ab-story-copy h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.ab-story-copy .lx-lede { margin-top: 22px; color: var(--lx-ink); max-width: 30ch; }
.ab-story-copy p:not(.lx-lede) { margin-top: 18px; color: var(--lx-ink-2); max-width: 62ch; }
.ab-story-copy p:not(.lx-lede) strong { color: var(--lx-ink); font-weight: 600; }

@media (max-width: 900px) {
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-story-photos { order: 2; }
}

/* ---------- Visitors: quotes + photos ---------- */

.ab-visitors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; list-style: none; }
.ab-visitors img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--lx-radius); }
@media (max-width: 760px) {
  .ab-visitors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Charity partners ---------- */

#animate-4 { scroll-margin-top: var(--lx-nav-h); }
.ab-charities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.ab-charity { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0 32px; border-top: 1px solid var(--lx-paper-line); }
.ab-charity-logo { height: 64px; display: flex; align-items: center; margin-bottom: 20px; }
.ab-charity-logo img { max-height: 64px; max-width: 170px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.ab-charity h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.02em; }
.ab-charity p { margin-top: 8px; font-size: 15px; color: var(--lx-paper-ink-2); }
.ab-charity .lx-link { margin-top: auto; padding-top: 14px; min-height: 44px; font-size: 15px; }
@media (max-width: 960px) { .ab-charities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ab-charities { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ecologi ---------- */

.ab-eco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ab-eco-img { width: 100%; height: auto; }
.ab-eco-copy .lx-lede { margin-top: 18px; }
.ab-eco-copy p:not(.lx-lede) { margin-top: 16px; color: var(--lx-paper-ink-2); max-width: 58ch; }
.ab-eco-copy p a { color: var(--lx-link-light); text-underline-offset: 3px; }
.ab-eco-copy .lx-actions { margin-top: 28px; }
@media (max-width: 860px) {
  .ab-eco { grid-template-columns: minmax(0, 1fr); }
  .ab-eco-img { max-width: 520px; }
}

/* ---------- On the trail ---------- */

.ab-trail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.ab-trail .lx-tile { aspect-ratio: 4 / 5; }
.ab-trail .lx-tile:first-child { aspect-ratio: auto; }
.ab-trail-note { margin-top: 20px; font-size: 14px; color: var(--lx-ink-3); max-width: 70ch; }
.ab-trail-foot { margin-top: 28px; }
@media (max-width: 860px) {
  .ab-trail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ab-trail .lx-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ab-trail .lx-tile { aspect-ratio: 1; }
}

/* =====================================================================
   Warm and cosy: mirror ball, polaroids, pinned notes
   ===================================================================== */

/* A warmer evening: amber and rose glows over the navy, and a mirror ball's
   reflections drifting behind everything */
.ab-page { background: #140c1c; }
.ab-mirrorball { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ab-mirrorball video { width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: none !important; }
.ab-mirrorball::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 30%, rgba(255, 153, 51, .10), transparent 50%), radial-gradient(ellipse at 85% 70%, rgba(204, 0, 102, .10), transparent 50%); }
.ab-page .lx-light { background: #fbf4e9; }

/* Handwriting for the playful touches */
.ab-page .ab-pol figcaption, .ab-note span, .ab-pull p { font-family: "Caveat", "Segoe Print", cursive; }

/* ---------- Hero with a scatter of polaroids ---------- */
.ab-hero { padding-top: clamp(64px, 9vw, 120px); }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ab-hero .lx-display { font-size: clamp(3rem, 7.4vw, 6.25rem); }
.ab-hero .lx-lede { margin-top: 20px; max-width: 34ch; }
.ab-hero .lx-actions { margin-top: 30px; }
.ab-polaroids { position: relative; height: clamp(380px, 40vw, 520px); }

.ab-pol {
  position: absolute; margin: 0; padding: 12px 12px 0; background: #fffdf8; border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 24px 50px -18px rgba(0, 0, 0, .75), 0 0 40px -10px rgba(255, 190, 120, .35);
  transition: transform .5s var(--lx-ease);
}
.ab-pol img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 2px; filter: saturate(1.15) brightness(1.06) sepia(.06) !important; }
.ab-pol figcaption { padding: 10px 4px 12px; text-align: center; color: #2b1d33; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.1; font-weight: 700; }
.ab-pol::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(249, 192, 84, .55); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.ab-pol:hover { transform: rotate(0deg) scale(1.03) !important; z-index: 5; }
.ab-pol--1 { width: 52%; left: 4%; top: 6%; transform: rotate(-7deg); z-index: 2; }
.ab-pol--2 { width: 42%; right: 2%; top: 0; transform: rotate(6deg); z-index: 1; }
.ab-pol--3 { width: 44%; left: 34%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
@media (max-width: 860px) {
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-polaroids { height: clamp(320px, 88vw, 440px); max-width: 480px; width: 100%; margin: 0 auto; }
}

/* ---------- Pinned notes: things we're proud of ---------- */
.ab-proud { padding-top: 0; }
.ab-proud .lx-h3 { margin-bottom: clamp(24px, 3.5vw, 36px); }
.ab-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.ab-note {
  position: relative; padding: 26px 18px 20px; text-align: center; border-radius: 3px; color: #2b1d33;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .7);
  transition: transform .4s var(--lx-ease);
}
.ab-note:nth-child(odd) { transform: rotate(-2.5deg); }
.ab-note:nth-child(even) { transform: rotate(2deg) translateY(6px); }
.ab-note:hover { transform: rotate(0) translateY(-4px); }
.ab-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #ff7ab8, #cc0066 70%); box-shadow: 0 3px 4px rgba(0, 0, 0, .35); }
.ab-note--gold { background: #ffe3a3; }
.ab-note--pink { background: #ffd1e5; }
.ab-note--cream { background: #fff4dc; }
.ab-note strong { display: block; font: 800 clamp(2rem, 3.6vw, 2.75rem)/1 var(--lx-font-display); letter-spacing: -0.03em; color: #cc0066; }
.ab-note span { display: block; margin-top: 8px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.1; font-weight: 700; }
.ab-note span i { font-size: .8em; color: #cc0066; }
@media (max-width: 760px) { .ab-notes { grid-template-columns: 1fr 1fr; row-gap: 26px; } }

/* ---------- Story: copy beside two taped polaroids ---------- */
.ab-story-section .ab-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ab-story-copy p:not(.lx-lede) { color: #e7e2ee; font-size: 17px; line-height: 1.65; }
.ab-story-copy p + p { margin-top: 14px; }
.ab-story-copy .lx-lede { margin: 18px 0 20px; color: #ffe1b3; }
.ab-story-copy strong { color: var(--lx-gold); }
.ab-pull { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lx-gold); }
.ab-pull p { margin: 0 !important; font-size: clamp(1.75rem, 3vw, 2.25rem) !important; line-height: 1.15 !important; color: #ffd38a !important; font-weight: 700; }
.ab-story-side { position: relative; display: grid; gap: 34px; padding-top: 30px; }
.ab-story-side .ab-pol { position: relative; width: 86%; }
.ab-pol--4 { transform: rotate(4deg); margin-left: 10%; }
.ab-pol--5 { transform: rotate(-5deg); }
@media (max-width: 860px) {
  .ab-story-section .ab-story { grid-template-columns: 1fr; }
  .ab-story-side { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 0; }
  .ab-story-side .ab-pol { width: 100%; margin: 0; }
}

/* ---------- Visitors as a polaroid row ---------- */
.ab-visitors--pol li { background: #fffdf8; padding: 8px 8px 22px; border-radius: 3px; box-shadow: 0 16px 30px -16px rgba(43, 29, 51, .55); transition: transform .4s var(--lx-ease); }
.ab-visitors--pol li:nth-child(odd) { transform: rotate(-2deg); }
.ab-visitors--pol li:nth-child(even) { transform: rotate(2deg); }
.ab-visitors--pol li:hover { transform: rotate(0) scale(1.03); }
.ab-visitors--pol img { border-radius: 2px !important; }

/* Charity cards: soft and friendly */
.ab-page .ab-charity { background: #fffdf8; border-radius: var(--lx-radius); box-shadow: 0 12px 30px -20px rgba(43, 29, 51, .5); }
.ab-page #ab-charity-title em { color: #cc0066; }
.ab-page .ab-charities { gap: 16px; }
.ab-page .ab-charity { padding: 24px; border-top: 0; }

/* On the trail: three photos, all the same square size */
.ab-trail { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(14px, 2vw, 24px); }
.ab-trail .lx-tile, .ab-trail .lx-tile:first-child { aspect-ratio: auto !important; grid-column: auto !important; }
.ab-trail .lx-tile img { aspect-ratio: 1 / 1; height: auto; }
@media (max-width: 640px) { .ab-trail { grid-template-columns: 1fr 1fr !important; } .ab-trail .lx-tile:last-child { grid-column: 1 / -1 !important; } .ab-trail .lx-tile:last-child img { aspect-ratio: 2 / 1; } }

/* Charities: everything centred in each card */
.ab-page .ab-charity { align-items: center; text-align: center; }
.ab-page .ab-charity-logo { display: flex; justify-content: center; width: 100%; }
.ab-page .ab-charity p { margin-left: auto; margin-right: auto; }
.ab-page .ab-charity .lx-link { justify-content: center; }

/* Phones: charity cards two to a row, logo + name + link (the one-line description is dropped) */
@media (max-width: 560px) {
  .ab-page .ab-charities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ab-page .ab-charity { padding: 16px 10px 8px; }
  .ab-charity-logo { height: 48px; margin-bottom: 10px; }
  .ab-charity-logo img { max-height: 48px; max-width: 100%; }
  .ab-charity h3 { font-size: 0.9375rem; }
  .ab-charity p { display: none; }
  .ab-charity .lx-link { padding-top: 4px; font-size: 14px; }
}
