/* ==========================================================================
   bamq — B2B Media & PR
   Design system + layout
   ========================================================================== */

:root {
  --red:        #E42520;
  --red-dark:   #8E1310;
  --ink:        #14100F;
  --paper:      #FFFFFF;
  --cream:      #FAF7F5;
  --muted:      #8A8078;
  --line:       rgba(20, 16, 15, 0.10);
  --maxw:       1180px;
  --pad-x:      clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
input, textarea, button { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

@keyframes bamq-heartbeat {
  0%, 28%, 70%, 100% { transform: scale(1); }
  14% { transform: scale(1.13); }
  42% { transform: scale(1.08); }
}

/* --------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--red); }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo { display: block; padding: 2px 0; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: color 0.15s;
}
.nav-link:hover { color: rgba(255, 255, 255, 0.7); }
.nav-link.is-active { color: rgba(255, 255, 255, 0.65); }

.nav-cta {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 9px 20px;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover, .nav-cta.is-active { background: #fff; color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--pad-x);
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: max-height 0.28s ease, padding 0.28s ease;
  }
  .nav-links.is-open {
    max-height: 360px;
    padding: 8px var(--pad-x) 20px;
  }
  .nav-link, .nav-cta { width: 100%; padding: 14px 0; }
  .nav-cta { border: 0; margin-top: 6px; }
  .nav-cta:hover { background: none; color: rgba(255,255,255,0.7); }
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 34px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--red); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------------------------------------------------- Sections */
section { position: relative; }
.section-bordered { border-top: 1px solid var(--line); }

.hero { padding: clamp(72px, 13vh, 150px) 0 clamp(80px, 12vh, 140px); }
.hero h1 {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 16ch;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero p {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 44ch;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.hero-actions { margin-top: clamp(36px, 5vw, 52px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); }

.page-head { padding: clamp(64px, 10vw, 120px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 {
  margin: clamp(20px, 3vw, 28px) 0 0;
  max-width: 20ch;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-head p {
  margin: clamp(22px, 3vw, 30px) 0 0;
  max-width: 52ch;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.section-title {
  margin: 0 0 clamp(44px, 6vw, 72px);
  max-width: 24ch;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------- Services grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc-card { background: var(--paper); padding: clamp(28px, 3.4vw, 42px); }
.svc-card .num { display: block; font-size: 13px; font-weight: 500; color: var(--red); margin-bottom: 22px; }
.svc-card h3 { margin: 0 0 14px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.svc-card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Detailed service block (services page) */
.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.svc-detail .num { font-size: 13px; font-weight: 500; color: var(--red); }
.svc-detail h2 { margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.svc-detail .lead { margin: 0 0 22px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.svc-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.svc-detail li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; background: var(--red); }
@media (max-width: 720px) { .svc-detail { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Approach (red band) */
.band { background: var(--red); color: #fff; }
.band .eyebrow { color: rgba(255, 255, 255, 0.72); }
.band h2 {
  margin: clamp(32px, 5vw, 52px) 0 clamp(20px, 3vw, 28px);
  max-width: 22ch;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.band .band-lead {
  margin: 0 0 clamp(52px, 7vw, 80px);
  max-width: 52ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.band-item { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 26px; }
.band-item h3 { margin: 0 0 12px; font-size: 19px; font-weight: 500; color: #fff; }
.band-item p { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); text-wrap: pretty; }

/* --------------------------------------------------------------- Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(32px, 4vw, 48px);
  padding: clamp(56px, 7vw, 88px) 0;
}
.stat .value { font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .label { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------- Quote */
.quote { padding: clamp(64px, 8vw, 104px) 0; }
.quote blockquote { margin: 0; max-width: 34ch; }
.quote p {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.quote footer { margin-top: 26px; font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------- Case studies */
.cases { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case {
  background: var(--paper);
  padding: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.case .sector { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.case h3 { margin: 14px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.case p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.case-metrics span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 14px;
}
@media (max-width: 720px) { .case { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.contact-info h1, .contact-info h2 {
  margin: 0 0 22px;
  max-width: 18ch;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-info .lead { margin: 0 0 clamp(36px, 5vw, 48px); max-width: 40ch; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.contact-list { display: grid; gap: 20px; font-size: 16px; }
.contact-list .row { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-list .k { min-width: 74px; color: var(--muted); font-size: 14.5px; }

.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 22px; }
.form label { display: grid; gap: 9px; }
.form .field-label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.form input, .form textarea {
  border: 0;
  border-bottom: 1px solid rgba(20, 16, 15, 0.2);
  background: transparent;
  padding: 11px 2px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.form textarea { border: 1px solid rgba(20, 16, 15, 0.15); padding: 12px; line-height: 1.5; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--red); }
.form textarea:focus { border-color: var(--red); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form .consent input { flex: 0 0 auto; }
.form .fineprint { font-size: 13px; color: var(--muted); }
.form button { justify-self: start; }

.alert { padding: 14px 18px; font-size: 15px; border: 1px solid var(--line); }
.alert-success { background: #f2faf3; border-color: #bfe3c4; color: #1c6b2b; }
.alert-error { background: #fdf2f2; border-color: #f0c4c2; color: #8E1310; }
.field-error { border-bottom-color: var(--red) !important; }

/* --------------------------------------------------------------- CTA strip */
.cta-strip { background: var(--ink); color: var(--cream); }
.cta-strip .wrap { padding: clamp(56px, 7vw, 96px) var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; color: #fff; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) var(--pad-x) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(36px, 5vw, 64px);
}
.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-label { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-about { margin: 0; max-width: 34ch; font-size: 15.5px; line-height: 1.65; color: rgba(250, 247, 245, 0.82); text-wrap: pretty; }
.footer-link { font-size: 15.5px; color: var(--cream); }
.footer-link:hover { color: var(--red); }
.footer-text { font-size: 15.5px; line-height: 1.55; color: var(--cream); max-width: 26ch; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250, 247, 245, 0.28);
  font-size: 13px; font-weight: 500; color: var(--cream);
  transition: background 0.15s, color 0.15s;
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x) 36px;
  border-top: 1px solid rgba(250, 247, 245, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--muted); }
