/* Barakah Global — Seed House Folio company info (unique folio layout) */

.page-company-folio {
  --fo-bg: #eaf2ec;
  --fo-paper: #fbfaf6;
  --fo-ink: #13261f;
  --fo-soft: #4a6357;
  --fo-line: rgba(19, 38, 31, 0.12);
  --fo-moss: #1f6b4f;
  --fo-moss-bright: #2f9a6a;
  --fo-saffron: #e09a1b;
  --fo-saffron-deep: #c47d0a;
  --fo-plate: #0f2a22;
  --fo-shadow: 0 18px 40px rgba(15, 42, 34, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  font-family: var(--font-body);
  color: var(--fo-ink);
  background:
    radial-gradient(ellipse 65% 40% at 0% 0%, rgba(31, 107, 79, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(224, 154, 27, 0.11), transparent 50%),
    linear-gradient(180deg, var(--fo-bg) 0%, #fff 48%, #e7f0ea 100%);
}

.a32-folio {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* ——— Masthead ——— */
.a32-folio-mast {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 3.5rem) 0 2.85rem;
  color: #f7fbf8;
  background: linear-gradient(122deg, #0f2a22 0%, #184a38 48%, #12362d 100%);
}
.a32-folio-mast-glow {
  position: absolute;
  width: min(50vw, 440px);
  height: min(50vw, 440px);
  right: -12%;
  top: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 154, 27, 0.3), transparent 68%);
  animation: a32-fo-glow 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes a32-fo-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-7%, 9%) scale(1.08); opacity: 1; }
}
.a32-folio-mast-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}
.a32-folio-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: rgba(247, 251, 248, 0.65);
}
.a32-folio-crumb a {
  color: rgba(247, 251, 248, 0.9);
  text-decoration: none;
  font-weight: 600;
}
.a32-folio-crumb a:hover {
  color: var(--fo-saffron);
}
.a32-folio-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 35, "WONK" 0.45;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.a32-folio-mast h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.a32-folio-lede {
  margin: 0;
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(247, 251, 248, 0.78);
}
.a32-folio-mark {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 7rem;
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  background: rgba(251, 250, 246, 0.1);
  border: 1px dashed rgba(224, 154, 27, 0.55);
  text-align: center;
  transform: rotate(3deg);
  animation: a32-fo-mark 7s ease-in-out infinite;
}
@keyframes a32-fo-mark {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-4px); }
}
.a32-folio-mark span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 251, 248, 0.55);
}
.a32-folio-mark strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--fo-saffron);
  line-height: 1;
}
.a32-folio-mark em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(247, 251, 248, 0.7);
}

/* ——— Shell ——— */
.a32-folio-shell {
  position: relative;
  z-index: 2;
  margin-top: -1.35rem;
  display: grid;
  gap: 1.25rem;
}

/* ——— Meters ——— */
.a32-folio-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.a32-folio-meter {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: var(--fo-shadow);
  animation: a32-fo-rise 0.5s ease both;
}
.a32-folio-meters .a32-folio-meter:nth-child(2) { animation-delay: 0.06s; }
.a32-folio-meters .a32-folio-meter:nth-child(3) { animation-delay: 0.12s; }
@keyframes a32-fo-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.a32-folio-meter strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fo-moss);
  line-height: 1;
}
.a32-folio-meter span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fo-soft);
}

/* ——— Story ticket ——— */
.a32-folio-story {
  display: grid;
  grid-template-columns: auto 1fr;
  border-radius: 1.35rem;
  overflow: hidden;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: var(--fo-shadow);
}
.a32-folio-story-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 3.5rem;
  padding: 1.25rem 0.6rem;
  background: linear-gradient(180deg, var(--fo-plate), #1a4d3a);
  color: #f7fbf8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.a32-folio-story-rail span:nth-child(2) {
  color: var(--fo-saffron);
}
.a32-folio-story-body {
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
}
.a32-folio-story-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fo-moss);
}
.a32-folio-story-body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.a32-folio-story-body p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--fo-soft);
  max-width: 62ch;
}
.a32-folio-story-body p:last-child {
  margin-bottom: 0;
}
.a32-folio-story-muted {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(31, 107, 79, 0.06);
  border-left: 3px solid var(--fo-saffron);
  color: var(--fo-ink) !important;
  font-weight: 600;
}

/* ——— Aisle rail ——— */
.a32-folio-aisles {
  border-radius: 1.35rem;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: var(--fo-shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}
.a32-folio-aisles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.a32-folio-aisles-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.a32-folio-aisles-head a {
  font-weight: 700;
  color: var(--fo-moss);
  text-decoration: none;
}
.a32-folio-aisles-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.a32-folio-aisle-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.a32-folio-aisle {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  gap: 0.2rem;
  min-width: 8.5rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--fo-line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.a32-folio-aisle:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 79, 0.35);
  background: linear-gradient(145deg, #fff, #f3f7f4);
}
.a32-folio-aisle em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fo-saffron-deep);
}
.a32-folio-aisle strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ——— Perks ——— */
.a32-folio-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.a32-folio-perks li {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: 0 10px 24px rgba(15, 42, 34, 0.06);
}
.a32-folio-perks em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fo-saffron-deep);
}
.a32-folio-perks span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ——— Registry facts ——— */
.a32-folio-registry {
  border-radius: 1.35rem;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: var(--fo-shadow);
  overflow: hidden;
}
.a32-folio-registry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--fo-line);
  background: linear-gradient(180deg, rgba(243, 247, 244, 0.9), var(--fo-paper));
}
.a32-folio-registry-tag {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fo-moss);
}
.a32-folio-registry-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.a32-folio-registry-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 107, 79, 0.1);
  color: var(--fo-moss);
}
.a32-folio-facts {
  margin: 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.a32-folio-facts > div {
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--fo-line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.a32-folio-facts > div:hover {
  border-color: rgba(31, 107, 79, 0.28);
  transform: translateY(-2px);
}
.a32-folio-fact-wide {
  grid-column: 1 / -1;
}
.a32-folio-facts dt {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fo-soft);
}
.a32-folio-facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  word-break: break-word;
}

/* ——— Channels ——— */
.a32-folio-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.a32-folio-channel {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  box-shadow: 0 10px 24px rgba(15, 42, 34, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
a.a32-folio-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 79, 0.35);
}
.a32-folio-channel em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fo-saffron-deep);
}
.a32-folio-channel strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.a32-folio-channel span {
  font-size: 0.88rem;
  color: var(--fo-soft);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

/* ——— Actions ——— */
.a32-folio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.a32-folio-btn-primary,
.a32-folio-btn-soft,
.a32-folio-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.a32-folio-btn-primary {
  background: var(--fo-saffron);
  color: var(--fo-ink);
  border-color: var(--fo-saffron);
  box-shadow: 0 10px 24px rgba(224, 154, 27, 0.28);
}
.a32-folio-btn-primary:hover {
  background: var(--fo-saffron-deep);
  border-color: var(--fo-saffron-deep);
  color: #fff;
  transform: translateY(-1px);
}
.a32-folio-btn-soft {
  background: rgba(31, 107, 79, 0.1);
  color: var(--fo-moss);
  border-color: rgba(31, 107, 79, 0.2);
}
.a32-folio-btn-soft:hover {
  background: rgba(31, 107, 79, 0.16);
}
.a32-folio-btn-ghost {
  background: transparent;
  color: var(--fo-ink);
  border-color: var(--fo-line);
}
.a32-folio-btn-ghost:hover {
  border-color: rgba(31, 107, 79, 0.35);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .a32-folio-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .a32-folio-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .a32-folio-mast-inner {
    grid-template-columns: 1fr;
  }
  .a32-folio-mark {
    justify-self: start;
    transform: none;
  }
  .a32-folio-story {
    grid-template-columns: 1fr;
  }
  .a32-folio-story-rail {
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: row;
    width: auto;
    padding: 0.75rem 1rem;
  }
  .a32-folio-meters,
  .a32-folio-channels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .a32-folio-perks,
  .a32-folio-facts {
    grid-template-columns: 1fr;
  }
  .a32-folio-actions {
    flex-direction: column;
  }
  .a32-folio-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a32-folio-mast-glow,
  .a32-folio-mark,
  .a32-folio-meter {
    animation: none !important;
  }
  .a32-folio-aisle,
  .a32-folio-btn-primary,
  .a32-folio-facts > div {
    transition: none !important;
  }
}
