/* ============================================================
   HP AI Academy — styles.css (SHARED BASE)
   Fonts, design tokens, typography, buttons, header, footer,
   legal pages. Every page loads this file.
   Homepage-only styles live in css/home.css.
   ============================================================ */
/* ---------- Brand font: HP Forma DJR Office ---------- */
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HP Forma DJR"; src: url("../assets/ttf/HPFormaDJROffice-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --black:   #000000;
  --ink:     #14141A;          /* near-black, dark sections */
  --ink-2:   #1E1E28;
  --white:   #FFFFFF;
  --gray:    #595959;
  --gray-2:  #8A8A93;
  --line:    #E4E4E8;
  --bg-soft: #F5F5F7;

  --accent:      #024AD8;      /* electric blue */
  --accent-soft: #E8EFFC;
  --hp-blue:     #0096D6;

  /* Pyramid band colours (from the master deck) */
  --shape:  #1946D2;
  --lead:   #F4694E;
  --learn:  #45718C;

  --font: "HP Forma DJR", "Archivo", Arial, Helvetica, sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.8,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; font-family: var(--font); color: var(--black); background: var(--white);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6.5vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 22px; }
p  { font-size: 16px; color: var(--gray); margin: 0 0 1em; }
.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.lede { font-size: 19px; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--black); color: var(--white); padding: 13px 30px; font-size: 15px; font-weight: 700; border: 2px solid var(--black); border-radius: 0; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--on-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--on-dark:hover { background: transparent; color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-dark:hover { background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 42px; width: auto; }
.nav__logo span { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { font-size: 15px; }
.nav__links a:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #B9BEC9; }
.section__head { max-width: 780px; margin-bottom: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #C9C9CF; padding: 56px 0 40px; }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer span { font-size: 13px; color: #8A8A93; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.site-footer .footer-brand img { height: 36px; }
.site-footer .footer-brand b { color: var(--white); font-size: 17px; }
.footer-tag { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #8A8A93; margin: -16px 0 28px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { max-width: 72ch; color: var(--gray); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal__date { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal__back { margin-top: 40px; font-weight: 700; }
.legal__back a { text-decoration: none; }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
}
