/* ============================================
   FABRITORIUM — Global Stylesheet
   The Art and Science of Impact
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:   #1B2A4A;
  --sand:   #F5D98B;
  --teal:   #3DBFBF;
  --coral:  #E8523A;
  --orange: #F5A623;
  --white:  #FFFFFF;
  --offwhite: #F8F7F4;
  --grey:   #6B7280;
  --lightgrey: #E5E7EB;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1200px;
  --section-pad: 96px 24px;
  --section-pad-sm: 64px 24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--lightgrey);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-img {
  height: 44px;
  width: auto;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav__logo-tagline {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
}
.nav__logo-tagline span.t { color: var(--teal); }
.nav__logo-tagline span.c { color: var(--coral); }
.nav__logo-tagline span.o { color: var(--orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--teal); }
.nav__links a.active { color: var(--teal); }

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--teal) !important; color: var(--white) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ── Page wrapper (offset for fixed nav) ── */
.page-body { padding-top: 72px; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 120px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(61,191,191,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(245,166,35,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.hero__eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__eyebrow span { opacity: 0.5; }
.hero__eyebrow .pill-teal  { color: var(--teal); }
.hero__eyebrow .pill-coral { color: var(--coral); }
.hero__eyebrow .pill-orange { color: var(--orange); }

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.75;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover { background: transparent; color: var(--teal); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--white); }
.btn--dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--dark:hover { background: var(--teal); border-color: var(--teal); }

/* ── Color-block sections ── */
.section { padding: var(--section-pad); }
.section--offwhite { background: var(--offwhite); }
.section--navy { background: var(--navy); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }
.section--sand { background: var(--sand); color: var(--navy); }
.section--coral { background: var(--coral); color: var(--white); }

.section__inner { max-width: var(--max-w); margin: 0 auto; }

/* ── Typography helpers ── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.6;
}
.eyebrow--teal { color: var(--teal); opacity: 1; }
.eyebrow--coral { color: var(--coral); opacity: 1; }
.eyebrow--orange { color: var(--orange); opacity: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); }

.display-xl {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.display-md {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}
.body-lead {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.85;
}
.body-sm { font-size: 0.9rem; line-height: 1.65; }

/* ── Three pillars strip ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: 56px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.pillar:last-child { border-right: none; }
.pillar__icon {
  font-size: 2rem;
  margin-bottom: 20px;
}
.pillar__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar--advisory .pillar__label { color: var(--teal); }
.pillar--tech .pillar__label { color: var(--coral); }
.pillar--venture .pillar__label { color: var(--orange); }
.pillar__h { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.pillar__p { font-size: 0.9rem; opacity: 0.75; line-height: 1.7; }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col--flip { direction: rtl; }
.two-col--flip > * { direction: ltr; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  padding: 36px 32px;
}
.card--navy { background: var(--navy); color: var(--white); border-color: transparent; }
.card__tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card__h { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card__p { font-size: 0.88rem; opacity: 0.75; line-height: 1.7; }

/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--lightgrey);
}
.team-card__img {
  aspect-ratio: 3/2;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.team-card__body { padding: 28px; }
.team-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.team-card__bio { font-size: 0.85rem; line-height: 1.7; color: var(--grey); }
.team-card__clients {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--grey);
}
.team-card__clients strong { color: var(--navy); }

/* ── Stat row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin: 64px 0;
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat__n {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__l { font-size: 0.8rem; opacity: 0.6; letter-spacing: 0.05em; }

/* ── Contact form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid--full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.field input,
.field textarea,
.field select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { opacity: 0.4; color: var(--white); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--navy); color: var(--white); }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 24px 32px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p {
  font-size: 0.88rem;
  opacity: 0.55;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__col ul li a:hover { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: 0.4;
}

/* ── Color accent divider ── */
.color-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 33.3%, var(--coral) 33.3%, var(--coral) 66.6%, var(--orange) 66.6%, var(--orange) 100%);
}

/* ── Insights / blog ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.insight-card {
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,42,74,0.1);
}
.insight-card__img {
  aspect-ratio: 16/9;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.insight-card__body { padding: 24px; }
.insight-card__tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--teal);
}
.insight-card__h { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.insight-card__p { font-size: 0.82rem; color: var(--grey); line-height: 1.6; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px 72px;
}
.page-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero__breadcrumb {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 24px;
}
.page-hero__h {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
}
.page-hero__sub {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.7;
  margin-top: 20px;
  max-width: 580px;
  line-height: 1.7;
}

/* ── Track record table ── */
.track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 32px;
}
.track-table th {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--lightgrey);
}
.track-table td {
  padding: 16px;
  border-bottom: 1px solid var(--lightgrey);
  vertical-align: top;
  line-height: 1.5;
}
.track-table tr:hover td { background: var(--offwhite); }
.track-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.track-tag--advisory { background: rgba(61,191,191,0.12); color: var(--teal); }
.track-tag--tech { background: rgba(232,82,58,0.1); color: var(--coral); }
.track-tag--venture { background: rgba(245,166,35,0.12); color: #b07800; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--flip { direction: ltr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
  :root { --section-pad: 56px 20px; }
  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
