/* AiandWEglobal.com homepage — white header with navy and gold accents,
   Buddy (left) and the Ai & WE Book (right) side by side at the same height on every screen size. */
.hb {
  --hb-navy: #14264f;
  --hb-ink: #14213d;
  --hb-gold: #c9a227;
  --hb-gold-2: #f2cf5b;
  --hb-pale: #eef3fb;
  --hb-serif: "Fraunces", "DejaVu Serif", Georgia, serif;
  --hb-sans: "Nunito Sans", "DejaVu Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The hero is sized so Buddy, the book and all three buttons fit in the first screen. */
  --hb-pad: clamp(.5rem, 2.5vw, 2rem);
  --hb-w: min(1220px, 100vw - 2 * var(--hb-pad), max(300px, (100svh - 230px) * 2));
  background: #fff;
  color: var(--hb-ink);
  font-family: var(--hb-sans);
  overflow-x: hidden;
}
/* The page stays white: the navy footer follows the content and ends just below the
   WEPARTYglobal.com link, so no navy fills the rest of tall phone screens. */
html:has(body.hb), body.hb { background: #fff; }

.hb-head-row { width: min(1220px, 100% - 2 * var(--hb-pad)); margin-inline: auto; }
.hb-main { width: var(--hb-w); margin-inline: auto; }

/* Header — one compact row plus the navy tagline band */
.hb-head { background: #fff; border-bottom: 3px solid var(--hb-gold); }
.hb-head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: clamp(.3rem, .9vw, .55rem) 0; }
.hb-brand { font: 800 clamp(1.35rem, 3vw, 2.2rem)/1 var(--hb-serif); color: var(--hb-navy); text-decoration: none; white-space: nowrap; }
.hb-amp { color: var(--hb-gold); }
.hb-head-right { display: flex; align-items: center; gap: clamp(.35rem, 1.2vw, 1rem); min-width: 0; }
.hb-domain { font: 700 clamp(.8rem, 1.9vw, 1.3rem)/1 var(--hb-sans); color: var(--hb-navy); text-decoration: none; white-space: nowrap; }
.hb-domain:hover { text-decoration: underline; text-decoration-color: var(--hb-gold); }
.hb .lang { display: flex; align-items: center; gap: .2rem; }
.hb .lang select { font-size: clamp(.72rem, 1.4vw, .85rem); padding: .25rem .3rem; max-width: clamp(5.5rem, 16vw, 11rem); border: 1px solid var(--hb-navy); border-radius: 6px; color: var(--hb-navy); background: #fff; }
.hb-band { margin: 0; padding: clamp(.28rem, .8vw, .45rem) .5rem; background: var(--hb-navy); color: #fff; text-align: center; font: 800 clamp(.95rem, 2.3vw, 1.5rem)/1.2 var(--hb-serif); }
.hb #translation-status { width: min(1220px, 100% - 1rem); margin: .3rem auto 0; }
.hb #translation-status:empty { display: none; }

/* Main */
.hb-main { padding: clamp(.45rem, 1.3vw, 1rem) 0 clamp(.8rem, 2vw, 1.5rem); }

/* Hero: Buddy on the left, the Book on the right. Column widths follow each picture's
   shape (748x798 and 1320x963) so both pictures are exactly the same height, shown whole and unchanged. */
.hb-hero { display: flex; gap: clamp(.4rem, 1.4vw, 1.2rem); align-items: stretch; }
.hb-hero > section { min-width: 0; display: flex; flex-direction: column; gap: clamp(.4rem, 1vw, .8rem); }
.hb-buddy { flex: 0.9373 1 0; }
.hb-book { flex: 1.3707 1 0; }
.hb-art-btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: clamp(6px, 1vw, 12px); overflow: hidden; }
.hb-art-btn:focus-visible, .hb-pdf-hotspot:focus-visible { outline: 3px solid var(--hb-gold); outline-offset: 3px; }
.hb-buddy img, .hb-book-art img { width: 100%; height: auto; display: block; }
.hb-book-art { position: relative; border-radius: clamp(6px, 1vw, 12px); overflow: hidden; }
/* The "Open the FREE PDF" button printed in the picture opens the complete book (no overlay drawn on top). */
.hb-pdf-hotspot { position: absolute; left: 27.5%; right: 27.5%; top: 74.5%; height: 8.8%; border-radius: 999px; }

/* Buttons under both pictures, on one line */
.hb-actions { display: flex; gap: clamp(.3rem, 1vw, .8rem); }
.hb-btn { flex: 1 1 0; min-width: 0; min-height: clamp(2.6rem, 5vw, 4rem); box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; padding: .35rem .5rem; border-radius: 999px; font: 800 clamp(.72rem, 1.6vw, 1.3rem)/1.1 var(--hb-sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.hb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.hb-btn:focus-visible { outline: 3px solid var(--hb-gold); outline-offset: 2px; }
.hb-btn-talk { border: 2px solid var(--hb-navy); background: linear-gradient(180deg, var(--hb-gold-2), var(--hb-gold)); color: var(--hb-navy); font-family: var(--hb-serif); }
.hb-btn-read { background: var(--hb-navy); color: #fff; border: 2px solid var(--hb-navy); }
.hb-btn-free { background: linear-gradient(180deg, var(--hb-gold-2), var(--hb-gold)); color: var(--hb-navy); border: 2px solid var(--hb-navy); }

/* Table of Contents / 30 Articles — side by side */
.hb-links { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.35rem, 1.3vw, 1.1rem); margin-top: clamp(.45rem, 1.3vw, 1.1rem); }
.hb-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: clamp(.55rem, 1.6vw, 1.2rem) .5rem; border-radius: clamp(8px, 1.4vw, 16px); background: var(--hb-pale); border-top: 3px solid var(--hb-gold); text-align: center; text-decoration: none; color: var(--hb-ink); transition: background-color .15s ease; min-width: 0; }
.hb-link:hover { background: #dbe6f6; }
.hb-link-title { font: 800 clamp(1rem, 2.6vw, 2rem)/1.1 var(--hb-serif); color: var(--hb-navy); }
.hb-link-sub { font: 400 clamp(.75rem, 1.5vw, 1.1rem)/1.3 var(--hb-sans); }
.hb-link:hover .hb-link-sub { text-decoration: underline; }

/* Footer */
.hb-foot { background: var(--hb-navy); color: #fff; text-align: center; padding: clamp(.8rem, 2vw, 1.4rem) 1rem calc(clamp(.8rem, 2vw, 1.4rem) + env(safe-area-inset-bottom, 0px)); border-top: 3px solid var(--hb-gold); }
.hb-global { display: inline-block; }
.hb-foot #google_translate_element { display: block; height: 0; margin: 0; overflow: hidden; }
.hb-motto { margin: 0 0 .35rem; font: 800 clamp(1.05rem, 2.6vw, 2rem)/1.2 var(--hb-serif); }
.hb-global { font: 600 clamp(.95rem, 2vw, 1.4rem)/1.2 var(--hb-sans); color: var(--hb-gold-2); text-decoration: none; letter-spacing: .02em; }
.hb-global:hover { color: #fff; text-decoration: underline; }
.hb-global:focus-visible { outline-color: #fff; }

/* Cell phones: buttons get a little smaller so the labels fit. */
@media (max-width: 700px) {
  .hb-btn { font-size: clamp(.6rem, 2.7vw, .85rem); padding: .3rem .25rem; border-width: 1.5px; }
}
@media (max-width: 360px) {
  .hb-domain { font-size: .72rem; }
  .hb .lang select { max-width: 4.8rem; }
}
