/* Hilda Baci Academy — shared site styles
   Header, footer, buttons, typography helpers, placeholder treatments and
   every section layout used across the four pages. One file, no build step —
   see design_handoff_hba_website/README.md for the spec this implements. */

@import url('base.css');

/* ---------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.accent-italic {
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
  }
}

/* ---------------------------------------------------------------------
   Buttons & links
   --------------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 20px 34px;
  border: none;
}

.btn-primary:hover {
  background: #d6941c;
  color: var(--accent-ink);
}

.btn-outline {
  display: inline-block;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--accent);
  padding: 11px 18px;
}

.link-secondary {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}

.link-secondary:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 17px 20px;
  }
}

/* ---------------------------------------------------------------------
   Header / navigation
   --------------------------------------------------------------------- */

.site-header {
  width: 100%;
}

.header-inner {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 54px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-nav);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
}

.mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 16px 18px;
  }

  .site-header .logo img {
    height: 42px;
  }

  .nav-list,
  .site-header .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-nav);
    cursor: pointer;
  }

  .mobile-panel {
    background: var(--ground-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px 18px 20px;
  }

  .mobile-panel:not(.is-open) {
    display: none;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .mobile-panel .nav-link {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }

  .mobile-panel .nav-link.is-active {
    color: var(--accent);
    border-bottom-color: var(--rule);
  }

  .mobile-panel .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 18px;
  }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.site-footer .logo img {
  height: 52px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a,
.footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-label);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 34px 18px 40px;
    gap: 20px;
  }

  .site-footer .logo img {
    height: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

/* ---------------------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------------------- */

.section {
  padding: 88px 48px;
}

.section--dense {
  padding: 72px 48px;
}

.section--alt {
  background: var(--ground-alt);
}

@media (max-width: 900px) {
  .section,
  .section--dense {
    padding: 46px 18px;
  }
}

.split {
  display: grid;
  gap: var(--col-gap);
}

.split--even {
  grid-template-columns: 1fr 1fr;
}

.split--wide {
  grid-template-columns: 1fr 1.6fr;
}

.split--lead {
  grid-template-columns: 1.15fr 1fr;
}

.split--bottom {
  align-items: end;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--col-gap);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Hairline grids: 1px gaps of the rule colour showing through, not borders. */

.hairline-grid {
  display: grid;
  background: var(--rule);
  gap: 1px;
}

.hairline-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.hairline-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.hairline-grid--4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.hairline-cell {
  background: var(--ground);
  padding: 38px 32px;
}

@media (max-width: 900px) {
  .hairline-grid--3,
  .hairline-grid--2 {
    grid-template-columns: 1fr;
  }

  .hairline-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .hairline-cell {
    padding: 24px 22px;
  }
}

/* ---------------------------------------------------------------------
   Placeholder treatments
   --------------------------------------------------------------------- */

.placeholder-photo {
  background-image: repeating-linear-gradient(135deg, #1B1511 0 12px, #221a14 12px 24px);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.placeholder-photo__caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-label);
}

@media (max-width: 900px) {
  .placeholder-photo {
    min-height: 240px;
    background-image: repeating-linear-gradient(135deg, #1B1511 0 11px, #221a14 11px 22px);
  }

  .placeholder-photo__caption {
    font-size: 10px;
  }
}

.placeholder-quote {
  border: 1px dashed var(--rule-dashed);
  padding: 28px;
}

.placeholder-quote__caption {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-label);
  margin-bottom: 18px;
}

.placeholder-quote__text {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 18px;
}

.placeholder-quote__attribution {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-label);
}

.portrait-slot {
  background-image: repeating-linear-gradient(135deg, #1B1511 0 12px, #221a14 12px 24px);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.portrait-slot span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-label);
}

@media (max-width: 900px) {
  .placeholder-quote__text {
    font-size: 24px;
    line-height: 1.3;
  }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
}

.hero--photo {
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: sepia(0.55) saturate(1.25) contrast(1.05) brightness(0.56);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--scrim-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 0 48px 64px;
  width: 100%;
}

.hero--plain {
  padding: 88px 48px 0;
}

.hero-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 16px 0 20px;
}

.hero-h1--inner {
  font-size: 82px;
}

.hero-sub {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-strong-body);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-sub + .hero-sub {
  margin-top: 16px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.hero-cta-aside {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-label);
}

.hero--plain .hero-content-inner {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .hero--photo {
    min-height: 530px;
  }

  .hero-media::after {
    background: var(--scrim-hero-mobile);
  }

  .hero-content,
  .hero--plain {
    padding: 40px 18px;
  }

  .hero-h1 {
    font-size: 52px;
  }

  .hero-h1--inner {
    font-size: 46px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero-cta-aside {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   Home — introduction
   --------------------------------------------------------------------- */

.intro-statement {
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.intro-body p {
  margin-bottom: 20px;
}

.intro-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .intro-statement {
    font-size: 28px;
    line-height: 1.22;
  }
}

/* ---------------------------------------------------------------------
   Home — stat band
   --------------------------------------------------------------------- */

.stat-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat-item {
  padding: 38px 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 52px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}

.stat-number--accent {
  color: var(--accent);
}

.stat-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-label);
}

@media (max-width: 900px) {
  .stat-number {
    font-size: 38px;
  }
}

/* ---------------------------------------------------------------------
   Home — what you can learn
   --------------------------------------------------------------------- */

.learn-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}

.learn-subline {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-strong-body);
}

.learn-grid {
  margin-top: 48px;
}

.learn-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.learn-card--wide {
  grid-column: 1 / -1;
}

.learn-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.learn-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}

.learn-body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .learn-title {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------------------
   Home — who it's for
   --------------------------------------------------------------------- */

.who-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 16px;
}

.who-closing {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-strong-body);
}

.who-list {
  list-style: none;
}

.who-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-strong-body);
}

.who-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.who-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .who-item {
    font-size: 17px;
    line-height: 1.65;
  }
}

/* ---------------------------------------------------------------------
   Home — how we learn
   --------------------------------------------------------------------- */

.how-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: sepia(0.4) saturate(1.2) contrast(1.04) brightness(0.82);
}

.how-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 16px;
}

.how-body p {
  margin-bottom: 20px;
}

.how-body p:last-child {
  margin-bottom: 0;
}

.pillars {
  margin-top: 48px;
}

.pillar-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.pillar-body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .how-photo img {
    min-height: 240px;
  }
}

/* ---------------------------------------------------------------------
   Home — beyond the classroom
   --------------------------------------------------------------------- */

.beyond-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 16px;
}

.beyond-body p {
  margin-bottom: 20px;
}

.beyond-closing {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Home — our community
   --------------------------------------------------------------------- */

.community-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}

.community-body p {
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------
   Home — the vision
   --------------------------------------------------------------------- */

.vision-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 76px;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-wrap: pretty;
  margin-bottom: 48px;
}

.vision-grid p {
  margin-bottom: 20px;
}

.vision-pull {
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 40px;
  line-height: 1.2;
  color: var(--ink);
}

@media (max-width: 900px) {
  .vision-headline {
    font-size: 42px;
    line-height: 1.02;
  }
}

/* ---------------------------------------------------------------------
   Final CTA band
   --------------------------------------------------------------------- */

.final-cta {
  padding: 104px 48px;
  text-align: center;
}

.final-cta-statement {
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.final-cta-body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-strong-body);
  max-width: 60ch;
  margin: 0 auto 36px;
}

.cta-band {
  padding: 88px 48px;
  text-align: center;
}

@media (max-width: 900px) {
  .final-cta,
  .cta-band {
    padding: 46px 18px;
  }

  .final-cta-statement {
    font-size: 34px;
    line-height: 1.12;
  }
}

/* ---------------------------------------------------------------------
   About — chapters
   --------------------------------------------------------------------- */

.about-hero-content {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.chapter {
  padding: 72px 48px;
  border-bottom: 1px solid var(--rule);
}

.chapter-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}

.chapter-numeral {
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 52px;
  color: var(--rule);
}

.chapter-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 44px;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}

.chapter-body {
  max-width: 62ch;
}

.chapter-body p {
  margin-bottom: 20px;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

.chapter-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: sepia(0.4) saturate(1.2) contrast(1.04) brightness(0.82);
}

.ladder {
  margin-top: 32px;
  list-style: none;
}

.ladder-cell {
  padding: 24px 20px;
}

.ladder-index {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.ladder-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-strong-body);
}

.chapter--vision {
  border-bottom: none;
}

@media (max-width: 900px) {
  .chapter {
    padding: 46px 18px;
  }

  .chapter-heading {
    font-size: 32px;
  }

  .chapter-photo img {
    height: 240px;
  }

  .ladder.hairline-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Testimonials — statement & groupings
   --------------------------------------------------------------------- */

.statement-heading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}

.statement-body p {
  margin-bottom: 20px;
}

.statement-body p:last-child {
  margin-bottom: 0;
}

.grouping {
  padding: 72px 48px;
  border-bottom: 1px solid var(--rule);
}

.grouping-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}

.grouping-description {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
}

.quote-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .grouping {
    padding: 46px 18px;
  }

  .quote-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */

.page-contact {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-contact main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-contact .final-cta {
  margin-top: auto;
}

.contact-band .hairline-cell {
  padding: 64px;
}

.contact-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-label);
  margin-bottom: 16px;
}

.contact-value {
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  font-size: 40px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .contact-band .hairline-cell {
    padding: 32px 22px;
  }

  .contact-value {
    font-size: 26px;
  }
}
