/* =====================================================
   APC Innovate – Stylesheet
   Palette: Bold Red #C8102E, Dark Charcoal #1C1C1C,
            Off-White #F5F5F5, Mid Grey #6B7280,
            Light Grey #E8E8E8, Accent Orange #E85D04
   Type: 'Barlow' display, 'Inter' body
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C8102E;
  --red-dk: #a00d24;
  --charcoal: #1C1C1C;
  --white:  #F5F5F5;
  --grey:   #6B7280;
  --lgrey:  #E8E8E8;
  --orange: #E85D04;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: #fff;
}

a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo-text {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

.logo-text span { color: var(--red); }
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

nav > a, .nav-dd > a {
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

nav > a:hover, .nav-dd > a:hover, nav > a.active, .nav-dd > a.active {
  background: rgba(200,16,46,.2);
  color: #fff;
}

.nav-dd { position: relative; }

.nav-dd > a::after { content: ' ▾'; font-size: 10px; opacity: .6; }

.nav-dd .dd {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  padding: 6px 0;
  z-index: 200;
}

.nav-dd:hover .dd, .nav-dd:focus-within .dd { display: block; }

.nav-dd .dd a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,.8);
  font-size: 13.5px;
  border-radius: 0;
  transition: background .12s;
}
.nav-dd .dd a:hover { background: rgba(200,16,46,.15); color: #fff; }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  margin-left: 8px;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--red-dk) !important; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.65);
  padding: 48px 24px 24px;
  margin-top: 72px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--red); }

footer h4 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul a { color: rgba(255,255,255,.6); font-size: 14px; }
footer ul a:hover { color: var(--red); }
footer p { font-size: 14px; line-height: 1.7; }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--red); }

.footer-awards {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.award-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-align: center;
  letter-spacing: .04em;
}

/* ── PAGE WRAPPER ── */
.page { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  background: var(--charcoal);
  color: #fff;
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 38px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  letter-spacing: .01em;
}

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); color: #fff; }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-outline-white:hover { border-color: var(--red); color: var(--red); }

.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #333; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; }

/* ── STATS ── */
.stat-strip {
  background: var(--red);
  padding: 40px 24px;
}

.stat-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-item p {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── SECTION HEADERS ── */
.section { padding: 64px 0; }

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.section-body {
  font-size: 16px;
  color: var(--grey);
  max-width: 640px;
  line-height: 1.7;
}

/* ── TWO-COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-img {
  background: var(--lgrey);
  border-radius: 6px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 13.5px;
  font-style: italic;
  overflow: hidden;
}

/* ── PRODUCT CATEGORY CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--lgrey);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.cat-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.cat-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--lgrey) 0%, #d8d8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 13px;
  font-style: italic;
  overflow: hidden;
}

.cat-card-body { padding: 16px 18px 18px; }

.cat-card-title {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.cat-card-text { font-size: 13.5px; color: var(--grey); line-height: 1.55; }

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cat-card-link:hover { color: var(--red-dk); }

/* ── PRODUCT TILE GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.product-tile {
  background: #fff;
  border: 1px solid var(--lgrey);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}

.product-tile:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.product-tile-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--lgrey) 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 12px;
  font-style: italic;
}

.product-tile-body { padding: 12px 14px 14px; }

.product-tile h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-tile a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-tile a:hover { color: var(--red-dk); }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--charcoal);
  padding: 52px 24px 46px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(200,16,46,.12);
  pointer-events: none;
}

.page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.page-header h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.page-header p {
  margin-top: 12px;
  color: rgba(255,255,255,.68);
  font-size: 17px;
  max-width: 580px;
  line-height: 1.65;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { color: #ff4060; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--red);
  padding: 40px 24px;
  text-align: center;
}

.cta-strip h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.cta-strip p {
  color: rgba(255,255,255,.82);
  font-size: 15.5px;
  margin-bottom: 22px;
}

.cta-strip .btn-outline-white {
  border-color: rgba(255,255,255,.5);
}

/* ── CAPABILITIES ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.cap-item {
  background: var(--charcoal);
  border-radius: 6px;
  padding: 24px 22px;
  color: #fff;
}

.cap-icon { font-size: 28px; margin-bottom: 12px; }

.cap-item h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.cap-item p { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.55; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--lgrey);
  border-radius: 6px;
  padding: 28px 32px;
}

.contact-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -.01em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.contact-card p { font-size: 15px; color: var(--grey); line-height: 1.85; }
.contact-card strong { color: var(--charcoal); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--charcoal); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 13px;
  border: 1px solid var(--lgrey);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: #fdfdfd;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 6px;
  margin-top: 16px;
  filter: saturate(.75);
}

/* ── VALUES ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.value-card {
  border-left: 4px solid var(--red);
  background: #fff;
  border-top: 1px solid var(--lgrey);
  border-right: 1px solid var(--lgrey);
  border-bottom: 1px solid var(--lgrey);
  border-radius: 0 6px 6px 0;
  padding: 22px 24px;
}

.value-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.value-card p { font-size: 14px; color: var(--grey); line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 16px; gap: 10px; }
  nav { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-inner { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
