/* ============================================================
   ARPANIA — Brand Token System
   Sourced directly from the Arpania case-study deck & logo:
   - Red DB2128, Charcoal 1A1A1A / panel 373E44, Navy 1F3A52
     (navy reserved for phase/section dividers, as in the deck)
   - Display: Playfair Display (bold serif headlines — matches
     the deck's "Strategic Management Consulting" treatment)
   - Body: Inter. Kickers: Inter, bold, uppercase, letter-spaced,
     in red — exactly as used throughout the deck.
   Signature: the diagonal red cover panel, carried from the
   deck's title slide into the hero and CTA.
   ============================================================ */

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

:root {
  --charcoal: #1a1a1a;
  --panel: #373e44;
  --navy: #1f3a52;
  --red: #db2128;
  --red-dark: #b31a20;
  --paper: #ffffff;
  --tint: #f2f2f2;
  --slate: #6c6c6c;
  --line: #c9c9c9;
  --line-soft: #e4e4e4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Kicker / eyebrow (matches deck's red uppercase labels) ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.kicker.on-dark { color: #ff8b8f; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  color: var(--charcoal);
}
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; }

p { margin: 0; color: var(--slate); }

.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}
.section-head p { margin-top: 14px; font-size: 17px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13.5px !important;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 78px 0 0 0; background: var(--paper); flex-direction: column; padding: 32px; gap: 24px; transform: translateY(-110%); transition: transform .25s ease; align-items: flex-start; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--charcoal); position: relative; transition: .2s;
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
}

/* ============================================================
   HERO — diagonal red panel, matching the deck's cover slide
   ============================================================ */
.hero {
  position: relative;
  background: var(--tint);
  overflow: hidden;
  min-height: 640px;
}
.hero-inner {
  position: relative;
  min-height: 640px;
}
.hero-bg-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
  z-index: 0;
}
.hero-divider {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  clip-path: polygon(0 0, 65% 0, 49% 100%, 0 100%);
  z-index: 1;
}
.hero-panel {
  position: absolute;
  inset: 0;
  background: var(--red);
  color: #fff;
  padding: 56px 64px 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 63% 0, 47% 100%, 0 100%);
  z-index: 2;
}
.hero-panel > * { max-width: 480px; }
.hero-panel .logo-chip {
  position: absolute;
  top: 44px;
  left: 64px;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
}
.hero-panel .logo-chip img { height: 30px; }
.hero-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0.92; }
.hero-kicker-italic { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 18px; margin-top: 10px; opacity: 0.95; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
  max-width: 14ch;
  margin-top: 22px;
  line-height: 1.1;
}
.hero-rule { width: 60px; height: 3px; background: #fff; margin-top: 26px; }
.hero-sub {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 16.5px;
  color: rgba(255,255,255,0.88);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f2f2f2; }
.btn-outline-white { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-white:hover { border-color: #fff; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--red); }

@media (max-width: 700px) {
  .hero, .hero-inner { min-height: unset; }
  .hero-bg-art, .hero-divider { display: none; }
  .hero-panel { position: static; clip-path: none; padding: 110px 24px 48px; }
  .hero-panel > * { max-width: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 92px 0; }
.section-alt { background: var(--tint); }

/* ---------- About (mirrors deck slide 2 layout exactly) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-grid .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  color: var(--red);
  margin-bottom: 36px;
}
.about-block + .about-block { margin-top: 36px; }
.about-block .kicker { margin-bottom: 10px; }
.about-block p { font-size: 16px; }

.services-panel {
  background: var(--tint);
  padding: 36px;
  border-radius: var(--radius);
}
.services-panel .kicker { margin-bottom: 20px; }
.svc-row { display: flex; gap: 18px; }
.svc-row + .svc-row { margin-top: 26px; }
.svc-icon {
  flex: none;
  width: 46px; height: 46px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 24px; height: 24px; stroke: #fff; }
.svc-row h4 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; font-family: var(--font-body); }
.svc-row p { font-size: 14px; line-height: 1.55; }

/* ---------- Services deep-dive (four pillars, per deck slide 7) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.pillar-card {
  background: var(--paper);
  padding: 36px 30px;
}
.pillar-icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.pillar-icon svg { width: 26px; height: 26px; stroke: #fff; }
.pillar-card h3 { font-size: 19px; margin-bottom: 12px; }
.pillar-card p { font-size: 14.5px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.ind-list { display: flex; flex-wrap: wrap; gap: 14px; }
.ind-chip { font-size: 15px; font-weight: 600; padding: 14px 24px; background: var(--tint); border-radius: 30px; color: var(--charcoal); }
.ind-chip.featured { background: var(--red); color: #fff; }
.ind-featured-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.ind-card { background: var(--navy); color: #fff; padding: 40px 34px; border-radius: var(--radius); min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; }
.ind-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.ind-card p { color: rgba(255,255,255,0.72); font-size: 14px; }
@media (max-width: 760px) { .ind-featured-row { grid-template-columns: 1fr; } }

/* ---------- Proof / case study teaser ---------- */
.proof { background: var(--charcoal); color: #fff; }
.proof-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.proof h2 { color: #fff; }
.proof p.body { color: rgba(255,255,255,0.72); margin-top: 18px; font-size: 16px; }
.proof-phases { display: grid; border-top: 1px solid rgba(255,255,255,0.14); }
.phase-row { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.phase-row .n { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 14px; flex: none; width: 30px; }
.phase-row .t { font-weight: 600; font-size: 15px; }
@media (max-width: 800px) { .proof-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-info dl { display: grid; gap: 24px; margin: 28px 0 0; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ic { flex: none; width: 40px; height: 40px; background: var(--tint); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.contact-info .ic svg { width: 20px; height: 20px; stroke: var(--red); }
.contact-info dt { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.contact-info dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }

form.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: var(--charcoal);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

/* ---------- CTA band (matches deck's closing slide) ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); max-width: 20ch; margin: 0 auto; font-style: italic; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 18px auto 0; max-width: 52ch; font-size: 16px; }

/* ---------- Footer ---------- */
footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo-chip { background: #fff; padding: 10px 16px; border-radius: var(--radius); display: inline-flex; }
.footer-logo-chip img { height: 24px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 14px; font-weight: 700; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--red); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   AI Products & Capabilities (homepage section)
   ============================================================ */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 40px; }
.ai-card { background: var(--paper); padding: 32px 28px; }
.ai-card .n { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 14px; }
.ai-card .ic { width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 14px 0 18px; }
.ai-card .ic svg { width: 23px; height: 23px; stroke: #fff; }
.ai-card h4 { font-family: var(--font-body); font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ai-card p { font-size: 14px; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }
