/* HFAI site — supplemental styles on top of the UI kit */

/* === v2 fix pass ==================================================== */

/* 1. Define brand variables the kit references but never declared.
      Fixes: blank hero card (gradient was invalid), icon chips
      invisible until hover, accent colors falling back to nothing. */
:root {
  --hfai-teal-deep: #2E6E6E;
  --hfai-teal-pale: #DCEAE9;
}

/* 2. Prevent any stray horizontal scroll on small screens */
html, body { overflow-x: hidden; }

/* 3. Soften the tri-color accent strips (read as a broken loading bar) */
.hfai-hero::before,
.hfai-footer::before {
  height: 3px;
  background: linear-gradient(90deg, var(--hfai-teal), var(--hfai-navy));
}

/* 4. Footer logo slightly larger */
.hfai-footer img { height: 72px; }

/* === v3 fix pass ==================================================== */

/* 5. Hero collage polish: removed the "Now booking · 2026" badge,
      raised the chart line contrast, brightened the card label. */
.hfai-hero__collage .badge { display: none; }
.hfai-hero__collage .photo svg { opacity: 0.45; }
.hfai-hero__collage .photo .label { color: rgba(255,255,255,0.85); }

/* 6. Tablet: hero stacks, collage sits below the copy */
@media (max-width: 1100px) {
  .hfai-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hfai-hero__collage { height: 400px; width: 100%; max-width: 540px; margin: 0 auto; }
}

/* 7. Mobile + small tablet: wrap the nav, tighten spacing, drop collage */
@media (max-width: 900px) {
  .hfai-header__inner {
    flex-wrap: wrap; justify-content: center;
    row-gap: 8px; padding: 12px 16px;
  }
  .hfai-header img { height: 32px; }
  .hfai-nav { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .hfai-nav a { font-size: 12px; }
  .hfai-nav .hfai-cta-mini { padding: 8px 14px; font-size: 11px; }

  .hfai-hero { padding: 56px 24px 72px; }
  .hfai-hero h1 { font-size: clamp(36px, 9.5vw, 48px); }
  .hfai-hero__collage { display: none; }

  .hfai-section { padding-left: 20px; padding-right: 20px; }
  .page-hero { padding: 60px 20px 48px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .split { gap: 32px; }
  .hfai-fullbleed { padding-left: 24px; padding-right: 24px; }
}

/* === base supplemental styles ======================================= */

.hfai-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hfai-teal-deep);
  background: var(--hfai-teal-pale);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}

/* Interior page hero */
.page-hero {
  background:
    radial-gradient(60% 80% at 100% 0%, var(--hfai-teal-pale) 0%, transparent 60%),
    var(--hfai-cream);
  padding: 88px 32px 64px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.04em; color: var(--hfai-navy);
  margin: 0 0 16px;
}
.page-hero p {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--hfai-slate); max-width: 720px; margin: 0 auto;
}

/* Two-column split (image + copy) */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img {
  width: 100%; border-radius: 16px;
  box-shadow: var(--shadow-md, 0 8px 30px rgba(26,34,48,0.10));
}

/* Photo card */
.img-card { width: 100%; border-radius: 16px; display: block;
  box-shadow: 0 8px 30px rgba(26,34,48,0.10); }

/* FAQ accordion */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--hfai-line, #E5E7EC);
  border-radius: 12px; margin-bottom: 12px; padding: 4px 22px;
}
.faq summary {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; color: var(--hfai-navy);
  padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; font-size: 22px; color: var(--hfai-teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul {
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--hfai-slate); margin: 0 0 16px;
}

/* Contact form */
.hfai-form { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.hfai-form label {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfai-navy);
  display: block; margin-bottom: 6px;
}
.hfai-form input, .hfai-form textarea {
  width: 100%; padding: 13px 16px; font-family: var(--font-body);
  font-size: 16px; color: var(--hfai-ink);
  border: 1px solid var(--hfai-slate-pale); border-radius: 10px;
  background: #fff; box-sizing: border-box;
}
.hfai-form input:focus, .hfai-form textarea:focus {
  outline: 2px solid var(--hfai-teal); border-color: transparent;
}
.hfai-form button {
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--hfai-navy); color: #fff; border: 0;
  padding: 16px 34px; border-radius: 999px; cursor: pointer;
  justify-self: start;
}
.hfai-form button:hover { background: var(--hfai-teal-deep); }

/* Numbered phase list (services) */
.phase { display: grid; grid-template-columns: 64px 1fr; gap: 24px; margin-bottom: 40px; }
.phase .num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--hfai-navy); color: var(--hfai-navy);
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.phase h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px;
  color: var(--hfai-navy); margin: 6px 0 8px; }
.phase p, .phase li { font-family: var(--font-body); font-size: 16px;
  line-height: 1.6; color: var(--hfai-slate); }
.phase .deliverable { font-weight: 600; color: var(--hfai-teal-deep); }

/* Utility */
.center { text-align: center; }
.mt-48 { margin-top: 48px; }
.section-narrow { max-width: 820px; margin: 0 auto; }

/* === v3 density pass ================================================
   Tighter vertical rhythm; images constrained so copy leads. */
.hfai-hero { padding: 48px 32px 56px; }
.hfai-hero__inner { grid-template-columns: 1.3fr 0.7fr; gap: 48px; }
.hfai-hero h1 { font-size: clamp(38px, 4.4vw, 58px); margin: 16px 0 18px; }
.hfai-hero p { margin: 0 0 26px; }
.hfai-hero__collage { height: 400px; }
.hfai-section { padding: 60px 32px; }
.hfai-section__head { margin: 0 auto 36px; }
.hfai-section__head p { margin-bottom: 0; }
.hfai-fullbleed { padding: 84px 32px; }
.page-hero { padding: 52px 32px 40px; }
.page-hero p { font-size: 17px; }
.hfai-card { padding: 26px 24px 24px; }
.hfai-card .icon-wrap { margin-bottom: 16px; }
.split { gap: 44px; }
.split img { max-width: 440px; justify-self: center; }
.img-card { max-width: 720px; margin: 0 auto; }
.mt-48 { margin-top: 28px; }
.phase { margin-bottom: 28px; }
.hfai-footer { padding-top: 8px; }
.faq details { padding: 2px 20px; }
.faq summary { padding: 13px 0; }
@media (max-width: 900px) {
  .hfai-section { padding: 44px 20px; }
  .hfai-fullbleed { padding: 64px 24px; }
  .page-hero { padding: 40px 20px 32px; }
}
