/* Ancient Egypt Education Trust — hist- prefixed BEM. Breakpoints 1100/820/560. */

:root {
  --hist-sepia: #5c3a21;
  --hist-sepia-d: #41280f;
  --hist-sepia-soft: #efe6da;
  --hist-faience: #1f7a8c;
  --hist-faience-d: #145e6d;
  --hist-faience-soft: #dceef0;
  --hist-parchment: #fcf9f2;
  --hist-surface: #ffffff;
  --hist-surface-2: #f4eddf;
  --hist-ink: #2a1f15;
  --hist-ink-soft: #5d5043;
  --hist-line: #e2d6c4;
  --hist-line-d: #c9b89e;
  --hist-r: 4px;
  --hist-r-lg: 8px;
  --hist-sh: 0 10px 30px rgba(65,40,15,0.12);
  --hist-sh-sm: 0 2px 12px rgba(65,40,15,0.08);
  --hist-wrap: 1120px;
  --hist-head: "Hoefler Text", Garamond, "Adobe Garamond Pro", "EB Garamond", "Times New Roman", serif;
  --hist-body: "Charter", "Georgia", "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--hist-body); font-size: 18px; line-height: 1.72; color: var(--hist-ink); background: var(--hist-parchment); }
h1,h2,h3,h4 { font-family: var(--hist-head); line-height: 1.2; color: var(--hist-sepia); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 2.7rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }
a { color: var(--hist-faience-d); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--hist-sepia); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--hist-faience); outline-offset: 2px; }

.hist-wrap { width: 100%; max-width: var(--hist-wrap); margin: 0 auto; padding: 0 24px; }
.hist-eyebrow { display: inline-block; font-family: var(--hist-body); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hist-faience-d); font-weight: 700; margin-bottom: .8em; }
.hist-lead { font-size: 1.15rem; color: var(--hist-ink-soft); }

/* Buttons — soft rounded, underline-on-hover ghost */
.hist-btn { display: inline-block; font-family: var(--hist-head); font-size: 1rem; font-weight: 600; padding: 12px 28px; border-radius: var(--hist-r-lg); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.hist-btn--primary { background: var(--hist-sepia); color: #fff; }
.hist-btn--primary:hover { background: var(--hist-sepia-d); color: #fff; }
.hist-btn--faience { background: var(--hist-faience); color: #fff; }
.hist-btn--faience:hover { background: var(--hist-faience-d); color: #fff; }
.hist-btn--ghost { background: transparent; color: var(--hist-sepia); border-color: var(--hist-line-d); }
.hist-btn--ghost:hover { border-color: var(--hist-sepia); text-decoration: underline; }

/* Header */
.hist-header { background: var(--hist-surface); border-bottom: 1px solid var(--hist-line); position: sticky; top: 0; z-index: 40; }
.hist-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.hist-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.hist-brand__mark { width: 42px; height: 42px; border-radius: var(--hist-r); background: var(--hist-sepia); color: var(--hist-faience-soft); display: grid; place-items: center; font-family: var(--hist-head); font-weight: 700; font-size: 1.25rem; }
.hist-brand__name { font-family: var(--hist-head); font-weight: 600; font-size: 1.22rem; color: var(--hist-sepia); }
.hist-nav { display: flex; align-items: center; gap: 3px; }
.hist-nav__link { font-family: var(--hist-head); font-size: 1rem; color: var(--hist-ink-soft); text-decoration: none; padding: 8px 13px; border-radius: var(--hist-r); }
.hist-nav__link:hover, .hist-nav__link[aria-current="page"] { color: var(--hist-sepia); background: var(--hist-sepia-soft); }
.hist-nav__link--cta { background: var(--hist-faience); color: #fff; margin-left: 8px; }
.hist-nav__link--cta:hover { background: var(--hist-faience-d); color: #fff; }
.hist-nav__toggle { display: none; background: none; border: 2px solid var(--hist-line-d); border-radius: var(--hist-r); padding: 8px 11px; cursor: pointer; font-size: 1.1rem; color: var(--hist-sepia); }

/* Hero — full-bleed timeline band + offset card */
.hist-hero { position: relative; background: linear-gradient(135deg, var(--hist-sepia) 0%, var(--hist-sepia-d) 100%); color: #fff; padding: 0; }
.hist-hero__band { display: flex; justify-content: space-between; gap: 8px; padding: 16px 24px; background: rgba(0,0,0,0.18); font-family: var(--hist-head); font-size: .82rem; letter-spacing: .04em; flex-wrap: wrap; }
.hist-hero__band span { color: var(--hist-faience-soft); white-space: nowrap; }
.hist-hero__body { max-width: var(--hist-wrap); margin: 0 auto; padding: 60px 24px 90px; }
.hist-hero__title { color: #fff; font-size: 3.1rem; max-width: 760px; }
.hist-hero__lead { font-size: 1.18rem; color: rgba(255,255,255,0.88); max-width: 660px; }
.hist-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hist-hero__card { max-width: var(--hist-wrap); margin: -56px auto 0; padding: 0 24px; position: relative; }
.hist-hero__card-inner { background: var(--hist-surface); border: 1px solid var(--hist-line); border-radius: var(--hist-r-lg); box-shadow: var(--hist-sh); padding: 28px 32px; }

/* Sections */
.hist-section { padding: 60px 0; }
.hist-section--alt { background: var(--hist-surface-2); }
.hist-section__head { max-width: 720px; margin-bottom: 36px; }

/* Cards */
.hist-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hist-card { background: var(--hist-surface); border: 1px solid var(--hist-line); border-radius: var(--hist-r-lg); overflow: hidden; box-shadow: var(--hist-sh-sm); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.hist-card:hover { transform: translateY(-4px); box-shadow: var(--hist-sh); }
.hist-card__media { aspect-ratio: 3/2; background: var(--hist-faience-soft); overflow: hidden; }
.hist-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hist-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.hist-card__tag { font-family: var(--hist-head); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hist-faience-d); font-weight: 700; margin-bottom: 8px; }
.hist-card__link { margin-top: auto; font-weight: 600; }

/* Steps */
.hist-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hist-step { background: var(--hist-surface); border: 1px solid var(--hist-line); border-left: 4px solid var(--hist-faience); border-radius: var(--hist-r-lg); padding: 26px 24px; }
.hist-step__num { font-family: var(--hist-head); font-size: 2rem; color: var(--hist-faience); margin-bottom: 8px; }

/* Timeline */
.hist-timeline { border-left: 3px solid var(--hist-line-d); margin-left: 8px; padding-left: 28px; max-width: 760px; }
.hist-timeline__item { position: relative; margin-bottom: 30px; }
.hist-timeline__item::before { content: ""; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--hist-faience); border: 3px solid var(--hist-parchment); }
.hist-timeline__era { font-family: var(--hist-head); font-weight: 700; color: var(--hist-sepia); font-size: 1.15rem; }
.hist-timeline__date { font-size: .85rem; color: var(--hist-faience-d); text-transform: uppercase; letter-spacing: .08em; }

/* Two-column */
.hist-twocol { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 44px; align-items: start; }
.hist-callout { background: var(--hist-faience); color: #fff; border-radius: var(--hist-r-lg); padding: 30px 28px; }
.hist-callout h3 { color: #fff; }
.hist-callout p { color: rgba(255,255,255,0.9); }

/* Table */
.hist-table-wrap { overflow-x: auto; }
.hist-table { width: 100%; border-collapse: collapse; background: var(--hist-surface); border: 1px solid var(--hist-line); border-radius: var(--hist-r); overflow: hidden; font-size: .94rem; }
.hist-table th, .hist-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hist-line); }
.hist-table th { background: var(--hist-sepia-soft); color: var(--hist-sepia); font-family: var(--hist-head); }
.hist-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.hist-faq { max-width: 820px; }
.hist-faq__item { background: var(--hist-surface); border: 1px solid var(--hist-line); border-radius: var(--hist-r); margin-bottom: 12px; overflow: hidden; }
.hist-faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-family: var(--hist-head); font-size: 1.08rem; font-weight: 600; color: var(--hist-sepia); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.hist-faq__icon { color: var(--hist-faience-d); transition: transform .2s; }
.hist-faq__q[aria-expanded="true"] .hist-faq__icon { transform: rotate(45deg); }
.hist-faq__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; }
.hist-faq__a[data-open="true"] { padding: 0 22px 20px; max-height: 640px; }

/* Plans */
.hist-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.hist-plan { background: var(--hist-surface); border: 1px solid var(--hist-line); border-radius: var(--hist-r-lg); padding: 30px 26px; }
.hist-plan--featured { border-color: var(--hist-faience); box-shadow: var(--hist-sh); }
.hist-plan__price { font-family: var(--hist-head); font-size: 2.2rem; color: var(--hist-sepia); }
.hist-plan__price span { font-size: .9rem; color: var(--hist-ink-soft); }
.hist-plan__list { list-style: none; padding: 0; margin: 16px 0 22px; }
.hist-plan__list li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--hist-line); font-size: .94rem; }
.hist-plan__list li::before { content: "𓂀"; position: absolute; left: 0; color: var(--hist-faience-d); }

/* Form */
.hist-form { display: grid; gap: 16px; max-width: 640px; }
.hist-field { display: grid; gap: 6px; }
.hist-field label { font-family: var(--hist-head); font-weight: 600; font-size: .95rem; color: var(--hist-sepia); }
.hist-field input, .hist-field select, .hist-field textarea { font-family: var(--hist-body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--hist-line-d); border-radius: var(--hist-r); background: var(--hist-surface); color: var(--hist-ink); }
.hist-field input:focus, .hist-field select:focus, .hist-field textarea:focus { border-color: var(--hist-faience); outline: none; box-shadow: 0 0 0 3px var(--hist-faience-soft); }
.hist-form__status { display: none; padding: 13px 16px; border-radius: var(--hist-r); background: var(--hist-faience-soft); color: var(--hist-faience-d); font-weight: 700; font-size: .92rem; }
.hist-form__status[data-show="true"] { display: block; }
.hist-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--hist-ink-soft); }
.hist-consent input { margin-top: 4px; }

/* Banner */
.hist-banner { background: var(--hist-sepia); color: #fff; padding: 50px 0; }
.hist-banner h1 { color: #fff; }
.hist-banner p { color: rgba(255,255,255,0.85); max-width: 680px; margin: 0; }
.hist-crumb { font-size: .82rem; color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.hist-crumb a { color: var(--hist-faience-soft); }

.hist-prose { max-width: 820px; }
.hist-prose h2 { margin-top: 1.6em; }
.hist-prose ul { padding-left: 22px; }
.hist-prose li { margin-bottom: 9px; }

/* Footer */
.hist-footer { background: var(--hist-sepia-d); color: rgba(255,255,255,0.8); padding: 52px 0 28px; margin-top: 10px; }
.hist-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.hist-footer h4 { color: #fff; font-family: var(--hist-head); font-size: 1.05rem; margin-bottom: 14px; }
.hist-footer ul { list-style: none; padding: 0; margin: 0; }
.hist-footer li { margin-bottom: 9px; }
.hist-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: .92rem; }
.hist-footer a:hover { color: var(--hist-faience-soft); }
.hist-footer address { font-style: normal; font-size: .9rem; line-height: 1.8; }
.hist-footer__legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  h1 { font-size: 2.3rem; }
  .hist-hero__title { font-size: 2.5rem; }
  .hist-cards, .hist-steps, .hist-plans { grid-template-columns: repeat(2, 1fr); }
  .hist-twocol { grid-template-columns: 1fr; }
  .hist-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hist-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--hist-surface); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; border-bottom: 1px solid var(--hist-line); gap: 2px; }
  .hist-nav[data-open="true"] { display: flex; }
  .hist-nav__link--cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .hist-nav__toggle { display: block; }
  .hist-cards, .hist-steps, .hist-plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.95rem; }
  .hist-hero__title { font-size: 2.1rem; }
  .hist-hero__body { padding: 44px 24px 80px; }
  .hist-footer__grid { grid-template-columns: 1fr; }
  .hist-wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
