/* ==========================================================
   about.css  -  Amma's Ingredients  -  About page only
   Everything is scoped under .about-page, so it cannot leak
   into header / cart / footer styles. Theme colours match
   the rest of the site (terracotta + cream, Playfair/Nunito).
   ========================================================== */

.about-page {
  --ab-primary: #b94a1a;
  --ab-primary-hover: #9c3f14;
  --ab-primary-light: #fdf0eb;
  --ab-primary-border: #f5cfc0;
  --ab-dark: #2c2c2c;
  --ab-text: #2c2c2c;
  --ab-muted: #666;          /* 5.7:1 on white (AA). The old #777 was 4.5:1, borderline */
  --ab-white: #fff;
  --ab-border: #ebebeb;
  --ab-bg: #fdf8f6;
  --ab-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --ab-shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.1);
  --ab-font: 'Nunito', sans-serif;
  --ab-font-head: 'Playfair Display', serif;

  font-family: var(--ab-font);
  color: var(--ab-text);
  overflow-x: hidden;
  overflow-x: clip;
}

.about-page *,
.about-page *::before,
.about-page *::after { box-sizing: border-box; }

/* :where() keeps these resets at zero specificity so component classes always override them */
.about-page :where(h1, h2, h3) {
  font-family: var(--ab-font-head);
  color: var(--ab-dark);
  line-height: 1.2;
  margin: 0;
}
.about-page :where(p) { margin: 0; }
.about-page :where(ul, ol) { margin: 0; padding: 0; list-style: none; }

.about-page a:focus-visible,
.about-page button:focus-visible,
.about-page summary:focus-visible,
.about-page [tabindex="0"]:focus-visible {
  outline: 3px solid var(--ab-primary);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.ab-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ab-section { padding: 88px 0; }
.ab-section--tint {
  background: var(--ab-bg);
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
}
.ab-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ab-title { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 16px; }
.ab-copy { font-size: 16px; line-height: 1.8; color: var(--ab-muted); }
.ab-copy + .ab-copy { margin-top: 16px; }
.ab-copy a,
.ab-faq__a a {
  color: var(--ab-primary);
  font-weight: 700;
  text-underline-offset: 3px;
}
.ab-copy a:hover,
.ab-faq__a a:hover { color: var(--ab-primary-hover); }

/* ---------- Buttons ---------- */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 15px/1.2 var(--ab-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.ab-btn--primary { background: var(--ab-primary); color: #fff; }
.ab-btn--primary:hover {
  background: var(--ab-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 74, 26, 0.28);
}
.ab-btn--ghost {
  background: #fff;
  color: var(--ab-primary);
  border-color: var(--ab-primary-border);
}
.ab-btn--ghost:hover { border-color: var(--ab-primary); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.ab-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ab-bg);
  border-bottom: 1px solid var(--ab-border);
  padding: 64px 0 88px;
  text-align: center;
}
.ab-hero::before,
.ab-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.ab-hero::before {
  width: 380px; height: 380px;
  top: -130px; left: -110px;
  background: radial-gradient(circle, var(--ab-primary-light), transparent 70%);
}
.ab-hero::after {
  width: 460px; height: 460px;
  bottom: -190px; right: -130px;
  background: radial-gradient(circle, #fbe3d6, transparent 70%);
}

.ab-crumbs ol {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--ab-muted);
}
.ab-crumbs li + li::before { content: "/"; margin-right: 8px; color: #b5b5b5; }
.ab-crumbs a { color: var(--ab-primary); text-decoration: none; font-weight: 600; }
.ab-crumbs a:hover { text-decoration: underline; }

.ab-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
}
.ab-hero__lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ab-muted);
}
.ab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.ab-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ab-primary-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-dark);
}
.ab-chips i { color: var(--ab-primary); }

/* ---------- Story ---------- */
.ab-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ab-collage { position: relative; height: 480px; }
.ab-collage__main,
.ab-collage__sub {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--ab-shadow-lg);
  transition: transform 0.25s ease-out;
}
.ab-collage__main {
  top: 0; left: 0;
  width: 80%; height: 85%;
  transform: translate(calc(var(--tx, 0px) * -1), calc(var(--ty, 0px) * -1));
}
.ab-collage__sub {
  bottom: 0; right: 0;
  width: 55%; height: 55%;
  border: 5px solid #fff;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}
.ab-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ab-primary-light), #fbe3d6);
  color: var(--ab-primary);
  font-size: 56px;
}

/* ---------- Tabs: what we make ---------- */
.ab-tabs { max-width: 940px; margin: 0 auto; }
.ab-tablist {
  display: none;               /* shown only when JS has initialised the tabs */
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.ab-tabs.is-ready .ab-tablist { display: flex; }
.ab-tab {
  appearance: none;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--ab-primary-border);
  background: #fff;
  color: var(--ab-primary);
  font: 700 15px/1.2 var(--ab-font);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ab-tab:hover { border-color: var(--ab-primary); }
.ab-tab[aria-selected="true"] {
  background: var(--ab-primary);
  border-color: var(--ab-primary);
  color: #fff;
}
.ab-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 18px;
  box-shadow: var(--ab-shadow);
}
.ab-panel[hidden] { display: none; }
.ab-panel + .ab-panel { margin-top: 20px; }
.ab-tabs.is-ready .ab-panel + .ab-panel { margin-top: 0; }
.ab-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 20px;
  background: var(--ab-primary-light);
  border: 1px solid var(--ab-primary-border);
  color: var(--ab-primary);
  font-size: 34px;
}
.ab-panel h3 { font-size: 24px; margin-bottom: 10px; }
.ab-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ab-primary);
  font-weight: 700;
  text-underline-offset: 3px;
}
.ab-link:hover { color: var(--ab-primary-hover); }

/* ---------- Heritage + standards cards ---------- */
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  box-shadow: var(--ab-shadow);
}
.ab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(185, 74, 26, 0.12);
  border-color: var(--ab-primary-border);
}
.ab-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--ab-primary-light);
  border: 1px solid var(--ab-primary-border);
  color: var(--ab-primary);
  font-size: 20px;
}
.ab-card h3 { font-size: 20px; margin-bottom: 10px; }
.ab-card p { font-size: 15px; line-height: 1.7; color: var(--ab-muted); }

/* ---------- Timeline ---------- */
.ab-timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 56px; }
.ab-timeline__line {
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--ab-primary-border);
}
.ab-timeline__fill {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--ab-primary);
  transform-origin: top;
  transform: scaleY(0);
}
.ab-timeline__item {
  position: relative;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  box-shadow: var(--ab-shadow);
}
.ab-timeline__item:last-child { margin-bottom: 0; }
.ab-timeline__item:hover {
  transform: translateX(6px);
  border-color: var(--ab-primary);
  box-shadow: var(--ab-shadow-lg);
}
.ab-timeline__dot {
  position: absolute;
  left: -56px; top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ab-primary-border);
  color: var(--ab-primary);
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.ab-timeline__item.is-visible .ab-timeline__dot,
html:not(.js) .ab-timeline__dot {
  background: var(--ab-primary);
  border-color: var(--ab-primary);
  color: #fff;
}
.ab-timeline__year {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ab-primary-light);
  border: 1px solid var(--ab-primary-border);
  color: var(--ab-primary);
  font-size: 13px;
  font-weight: 800;
}
.ab-timeline__item h3 { font-size: 20px; margin-bottom: 6px; }
.ab-timeline__item p { font-size: 15px; line-height: 1.7; color: var(--ab-muted); }

/* ---------- Promise ---------- */
.ab-promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ab-checks { display: grid; gap: 14px; margin-top: 24px; }
.ab-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  box-shadow: var(--ab-shadow);
  font-size: 15px;
  font-weight: 700;
  color: var(--ab-dark);
}
.ab-checks i { margin-top: 3px; color: var(--ab-primary); }
.ab-promise__media {
  height: 440px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--ab-shadow-lg);
}
.ab-promise__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ (native <details>, no JS needed) ---------- */
.ab-faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.ab-faq details {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  box-shadow: var(--ab-shadow);
  transition: border-color 0.2s ease;
}
.ab-faq details[open] { border-color: var(--ab-primary); }
.ab-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ab-dark);
}
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ab-primary);
  transition: transform 0.2s ease;
}
.ab-faq details[open] summary::after { transform: rotate(45deg); }
.ab-faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.8; color: var(--ab-muted); }

/* ---------- Closing call to action ---------- */
.ab-cta {
  padding: 84px 0;
  background: var(--ab-dark);
  color: #fff;
  text-align: center;
}
.ab-cta__quote {
  max-width: 800px;
  margin: 0 auto 28px;
  font-family: var(--ab-font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
.ab-cta a:focus-visible { outline-color: #fff; }

/* ---------- Quotations with attribution ---------- */
.ab-quote {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-left: 4px solid var(--ab-primary);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--ab-shadow);
}
.ab-quote--center { max-width: 760px; margin: 0 auto 40px; }
.ab-quote blockquote { margin: 0; }
.ab-quote blockquote p {
  font-family: var(--ab-font-head);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ab-dark);
}
.ab-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--ab-muted); }
.ab-quote cite { font-style: normal; font-weight: 700; }
.ab-quote a { color: var(--ab-primary); text-underline-offset: 3px; }
.ab-quote a:hover { color: var(--ab-primary-hover); }

/* ---------- Sources list ---------- */
.ab-sources {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 22px;
  list-style: decimal;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ab-muted);
}
.ab-sources li::marker { color: var(--ab-primary); font-weight: 700; }
.ab-sources cite { font-style: normal; font-weight: 700; }
.ab-sources a { color: var(--ab-primary); text-underline-offset: 3px; }
.ab-sources a:hover { color: var(--ab-primary-hover); }

/* ---------- Motion (only when the visitor allows it) ---------- */
.ab-reveal {
  transition: opacity 0.7s ease var(--d, 0s), translate 0.7s ease var(--d, 0s),
              transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.js .ab-reveal { opacity: 0; translate: 0 28px; }
.js .ab-reveal.is-visible { opacity: 1; translate: 0 0; }

@keyframes ab-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.ab-hero h1,
.ab-hero__lead,
.ab-hero .ab-actions { animation: ab-rise 0.7s ease both; }
.ab-hero__lead { animation-delay: 0.1s; }
.ab-hero .ab-actions { animation-delay: 0.2s; }

@keyframes ab-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.ab-tabs.is-ready .ab-panel:not([hidden]) { animation: ab-fade 0.35s ease; }

@media (prefers-reduced-motion: reduce) {
  .about-page *,
  .about-page *::before,
  .about-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .ab-reveal { opacity: 1; translate: 0 0; }
  .ab-timeline__fill { transform: scaleY(1) !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ab-section { padding: 64px 0; }
  .ab-story,
  .ab-promise { grid-template-columns: 1fr; gap: 40px; }
  .ab-cards { grid-template-columns: 1fr; }
  .ab-collage { height: 360px; }
  .ab-promise__media { height: 320px; }
  .ab-panel { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
  .ab-wrap { padding: 0 18px; }
  .ab-hero { padding: 44px 0 64px; }
  .ab-timeline { padding-left: 48px; }
  .ab-timeline__dot { left: -48px; width: 36px; height: 36px; }
  .ab-timeline__line { left: 17px; }
  .ab-timeline__item { padding: 20px; }
  .ab-btn { width: 100%; justify-content: center; }
}