/* F4Bio homepage: page-specific styling only.
   Shared header, navigation, footer and cookies stay in global.css. */
:root {
  --green: #003e2f;
  --gold: #bfa97e;
  --ink: #111;
  --muted: #444;
  --bg: #fff;
  --line: #e8edea;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }

/* Opening statement */
.hero {
  background: linear-gradient(180deg, #e6f2ef 0%, #fff 80%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 20px 55px;
  text-align: center;
}
.hero-logo { height: 112px; margin-bottom: 16px; display: inline-block; }
.hero h1 {
  color: var(--green);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.23;
  font-weight: 600;
  margin: 0 auto 18px;
}
.hero-heading-main, .hero-heading-sub { display: block; }
.hero-heading-main { white-space: nowrap; }
.hero-heading-sub { margin-top: .1em; }
.hero p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 790px;
  margin: 0 auto;
}

/* Two equally prominent entry points */
.branches-section {
  background: #f5f8f6;
  padding: 38px 20px 44px;
}
.branches-grid {
  max-width: 1030px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.branch-card {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 220px;
  padding: 26px 28px;
  color: var(--green);
  background: #fff;
  border: 1px solid #d6e0db;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 62, 47, .045);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.branch-card:hover {
  border-color: #bfa97e;
  box-shadow: 0 9px 24px rgba(0, 62, 47, .11);
  transform: translateY(-2px);
}
.branch-card:focus-visible { outline-offset: 4px; }
.branch-card-heading { display: flex; align-items: center; gap: 14px; }
.branch-card h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}
.branch-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.branch-icon svg { width: 25px; height: 25px; }
.branch-icon-consulting { background: #e7f2ef; color: #007b68; }
.branch-icon-talent { background: #faf2e5; color: #b78029; }
.branch-card p {
  color: #344b44;
  font-size: .97rem;
  line-height: 1.65;
  margin: 0;
}
.branch-link {
  margin-top: auto;
  padding-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #005d49;
  font-size: .97rem;
  font-weight: 600;
}
.branch-card:hover .branch-link { text-decoration: underline; text-underline-offset: 3px; }
/* Avoid a blank strip between the two cards and the shared footer. */
body > footer { margin-top: 0; }

@media (max-width: 760px) {
  .hero-inner { padding: 58px 20px 42px; }
  .hero-logo { height: 73px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(1.72rem, 6.2vw, 2.4rem); }
  .hero-heading-main { white-space: normal; }
  .hero p { font-size: .96rem; line-height: 1.65; }
  .branches-section { padding: 26px 16px 34px; }
  .branches-grid { grid-template-columns: 1fr; gap: 16px; }
  .branch-card { min-height: 0; padding: 23px 24px; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .branch-card { transition: none; }
}
