/* ==========================================================================
   BLD Academy — design system
   Tokens verified from live site 12 Aug 2026:
   headings DM Serif Display 400 · body DM Sans · ink #1A1A2E ·
   cream #FAF8F5 · amber #D97706 · square buttons
   ========================================================================== */

:root {
  --ink: #1a1a2e;
  --ink-70: rgba(26, 26, 46, 0.7);
  --ink-55: rgba(26, 26, 46, 0.55);
  --cream: #faf8f5;
  --white: #ffffff;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-tint: rgba(217, 119, 6, 0.09);
  --green: #16a34a;
  --blue: #2563eb;
  --line: rgba(26, 26, 46, 0.1);
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, .bld-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

h4, h5 { font-family: var(--font-body); font-weight: 700; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }

.bld-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-70); max-width: 44em; }

.bld-accent { color: var(--amber); }

.bld-center { text-align: center; }
.bld-center .bld-lede { margin-inline: auto; }

/* ---- Layout ------------------------------------------------------------ */

.bld-wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.bld-section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.bld-section--white { background: var(--white); }
.bld-section--ink { background: var(--ink); color: var(--cream); }
.bld-section--ink h2, .bld-section--ink h3 { color: var(--cream); }
.bld-section--ink .bld-lede { color: rgba(250, 248, 245, 0.75); }

/* ---- Header / nav ------------------------------------------------------ */

.bld-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.bld-header__in {
  max-width: var(--max); margin-inline: auto; padding: 0.9rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.bld-logo img { height: 44px; width: auto; }
.bld-nav { display: flex; align-items: center; gap: 2rem; }
.bld-nav a {
  color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none;
}
.bld-nav a:hover { color: var(--amber-dark); }
.bld-nav__toggle {
  display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer;
}
.bld-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 760px) {
  .bld-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1.25rem var(--pad); gap: 1.1rem; align-items: flex-start;
  }
  .bld-nav.is-open { display: flex; }
  .bld-nav__toggle { display: block; }
}

/* ---- Buttons & pills --------------------------------------------------- */

.bld-btn, .wp-block-button__link.bld-btn-style {
  display: inline-block; padding: 0.85rem 1.9rem;
  background: var(--ink); color: var(--white) !important;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  border: 2px solid var(--ink); border-radius: 0; text-decoration: none !important;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.bld-btn:hover { background: transparent; color: var(--ink) !important; }

.bld-btn--amber { background: var(--amber); border-color: var(--amber); }
.bld-btn--amber:hover { background: transparent; color: var(--amber-dark) !important; }

.bld-btn--ghost { background: transparent; color: var(--ink) !important; }
.bld-btn--ghost:hover { background: var(--ink); color: var(--white) !important; }

.bld-section--ink .bld-btn { background: var(--cream); border-color: var(--cream); color: var(--ink) !important; }
.bld-section--ink .bld-btn:hover { background: transparent; color: var(--cream) !important; }

.bld-pill {
  display: inline-block; padding: 0.45rem 1.1rem; border: 1px solid var(--amber);
  color: var(--amber-dark); background: var(--white); border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; margin-bottom: 1.4rem;
}

.bld-badge {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 700; color: var(--white); letter-spacing: 0.02em;
}
.bld-badge--green { background: var(--green); }
.bld-badge--blue { background: var(--blue); }
.bld-badge--amber { background: var(--amber); }

/* ---- Cards ------------------------------------------------------------- */

.bld-cards { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
@media (max-width: 900px) { .bld-cards { grid-template-columns: 1fr; } }

.bld-card {
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.bld-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.bld-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bld-card__media .bld-badge { position: absolute; left: 1rem; bottom: 1rem; }
.bld-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; text-align: left; }
.bld-card__body h3 { margin-bottom: 0.4em; }
.bld-card ul { margin: 0 0 1.4rem; padding: 0; list-style: none; color: var(--ink-70); }
.bld-card ul li { padding-left: 1.4em; position: relative; margin-bottom: 0.45em; }
.bld-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.bld-card .bld-btn { margin-top: auto; align-self: flex-start; }

/* ---- Feature grid (Why choose us / mission points) --------------------- */

.bld-features { display: grid; gap: 2rem; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; }
@media (max-width: 900px) { .bld-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bld-features { grid-template-columns: 1fr; } }
.bld-feature h3 { font-size: 1.3rem; }
.bld-feature h3::before {
  content: ""; display: block; width: 34px; height: 4px; background: var(--amber); margin-bottom: 0.9rem;
}
.bld-feature p { color: var(--ink-70); margin: 0; }
.bld-section--ink .bld-feature p { color: rgba(250, 248, 245, 0.72); }

/* ---- Stats / fact strip ------------------------------------------------ */

.bld-facts {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  grid-template-columns: repeat(5, 1fr); margin-top: 2.5rem;
}
@media (max-width: 900px) { .bld-facts { grid-template-columns: repeat(2, 1fr); } }
.bld-fact { background: var(--white); padding: 1.4rem 1.2rem; }
.bld-fact strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.bld-fact span { color: var(--ink-55); font-size: 0.95rem; }

/* ---- Gallery ----------------------------------------------------------- */

.bld-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; }
@media (max-width: 760px) { .bld-gallery { grid-template-columns: repeat(2, 1fr); } }
.bld-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---- FAQ (native <details>) -------------------------------------------- */

.bld-faq { max-width: 46rem; margin: 2.5rem auto 0; }
.bld-faq details { background: var(--white); border: 1px solid var(--line); margin-bottom: 0.75rem; }
.bld-faq summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 3rem;
}
.bld-faq summary::-webkit-details-marker { display: none; }
.bld-faq summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--amber); font-weight: 400;
}
.bld-faq details[open] summary::after { content: "–"; }
.bld-faq details > div { padding: 0 1.4rem 1.2rem; color: var(--ink-70); }

/* ---- Forms / GHL embeds ------------------------------------------------ */

.bld-form-embed { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem; margin-top: 2rem; }
.bld-form-embed iframe { width: 100%; border: 0; min-height: 640px; display: block; }

/* ---- Contact info blocks ----------------------------------------------- */

.bld-info-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
@media (max-width: 860px) { .bld-info-grid { grid-template-columns: 1fr; } }
.bld-info { background: var(--white); border: 1px solid var(--line); padding: 1.75rem; }
.bld-info h2 { font-size: 1.5rem; }
.bld-info p { color: var(--ink-70); }
.bld-info a.bld-strong-link { font-weight: 600; font-size: 1.1rem; }

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

.bld-cta-band { text-align: center; }
.bld-cta-band .bld-btn { margin: 0.4rem 0.5rem; }

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

.bld-footer { background: var(--ink); color: rgba(250, 248, 245, 0.72); font-size: 0.97rem; }
.bld-footer__in {
  max-width: var(--max); margin-inline: auto; padding: 3.5rem var(--pad) 2rem;
  display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 860px) { .bld-footer__in { grid-template-columns: 1fr; } }
.bld-footer h3 {
  color: var(--cream); font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.bld-footer ul { list-style: none; margin: 0; padding: 0; }
.bld-footer li { margin-bottom: 0.55rem; }
.bld-footer a { color: rgba(250, 248, 245, 0.72); }
.bld-footer a:hover { color: var(--cream); }
.bld-footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; filter: invert(1) brightness(1.6); }
.bld-footer__legal {
  max-width: var(--max); margin-inline: auto; padding: 1.4rem var(--pad) 2.2rem;
  border-top: 1px solid rgba(250, 248, 245, 0.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.bld-footer__legal a { color: rgba(250, 248, 245, 0.72); margin-left: 1.2rem; }

/* ---- WhatsApp floating button ------------------------------------------- */

.bld-wa {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.bld-wa:hover { transform: scale(1.06); }
.bld-wa svg { width: 30px; height: 30px; fill: #fff; }

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

.bld-hero { padding-block: clamp(3.5rem, 9vw, 6.5rem); text-align: center; }
.bld-hero--left { text-align: left; }
.bld-hero__media { margin-top: 3rem; }
.bld-hero__media img { width: 100%; max-height: 560px; object-fit: cover; }

.bld-hero-split { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 900px) { .bld-hero-split { grid-template-columns: 1fr; } }

.bld-callout {
  border-left: 4px solid var(--amber); background: var(--amber-tint);
  padding: 1rem 1.3rem; margin: 1.6rem 0; color: var(--ink); max-width: 40em;
}
.bld-hero:not(.bld-hero--left) .bld-callout { margin-inline: auto; }

/* ---- Misc / WP alignment ------------------------------------------------- */

.alignwide { max-width: var(--max); margin-inline: auto; }
.aligncenter { margin-inline: auto; text-align: center; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.wp-block-separator { border: 0; border-top: 1px solid var(--line); max-width: var(--max); }

/* Video embeds */
.bld-video video, .bld-video iframe { width: 100%; max-width: 720px; margin-inline: auto; display: block; }
