/* =========================================================================
   ALL POINTS COVERED MERCHANDISING
   Master Design System & Stylesheet
   Domain: apcmerchandising.co.za
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-red: #d32f2f;
  --color-red-dark: #b71c1c;
  --color-red-light: #ef5350;
  --color-red-vivid: #ff3838;
  --color-navy: #0f2b5c;
  --color-navy-dark: #071733;
  --color-navy-deep: #050f24;
  --color-navy-light: #1e3a8a;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --shadow-sm: 0 4px 14px rgba(15, 43, 92, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 43, 92, 0.1);
  --shadow-lg: 0 22px 55px rgba(15, 43, 92, 0.16);
  --shadow-red: 0 8px 25px rgba(211, 47, 47, 0.35);
  --shadow-red-glow: 0 0 30px rgba(255, 56, 56, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Top Sister Bar */
.sister-bar {
  background: var(--color-navy-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 2px solid var(--color-red);
  text-align: center;
}
.sister-bar a {
  color: #ff8a80;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.35rem;
}
.sister-bar a:hover { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.6); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 43, 92, 0.08);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}
.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 80px;
  max-height: 84px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo-link:hover .logo-img {
  transform: scale(1.03);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}
.btn-red:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--color-red-vivid) 0%, var(--color-red) 100%);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.45);
}
.btn-navy {
  background: var(--color-navy);
  color: #ffffff;
}
.btn-navy:hover {
  background: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 43, 92, 0.3);
}
.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-navy);
  color: #ffffff;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
}

/* Badges */
.badge-red {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  background: rgba(211, 47, 47, 0.1);
  color: var(--color-red);
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* Hero Section with High-Contrast Crisp White Typography */
.hero {
  position: relative;
  padding: 6.5rem 0 5.5rem;
  background: linear-gradient(180deg, rgba(7, 23, 51, 0.94) 0%, rgba(15, 43, 92, 0.90) 65%, rgba(7, 23, 51, 0.96) 100%),
              url('images/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(7, 23, 51, 0.6));
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}
.hero .hero-title {
  color: #ffffff !important;
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.hero .hero-title span {
  color: #ff4d4d !important;
  text-shadow: 0 0 30px rgba(255, 77, 77, 0.45);
}
.hero .hero-desc {
  color: #f1f5f9 !important;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero .badge-red {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.hero .btn-outline:hover {
  background: #ffffff;
  color: var(--color-navy);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Tilted Picture Frame Component */
.tilted-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 1.5rem auto;
}
.tilted-image-wrap .tilt-card-bg {
  position: absolute;
  inset: -10px -10px -10px -10px;
  background: linear-gradient(135deg, var(--color-red), var(--color-navy));
  border-radius: 22px;
  transform: rotate(-3.5deg);
  z-index: 1;
  opacity: 0.92;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.35);
}
.tilted-image-wrap.tilt-right .tilt-card-bg {
  transform: rotate(3.5deg);
  background: linear-gradient(135deg, var(--color-navy), var(--color-red));
  box-shadow: 0 15px 35px rgba(15, 43, 92, 0.35);
}
.tilted-image-wrap:hover .tilt-card-bg {
  transform: rotate(-5.5deg) scale(1.02);
  opacity: 1;
}
.tilted-image-wrap.tilt-right:hover .tilt-card-bg {
  transform: rotate(5.5deg) scale(1.02);
  opacity: 1;
}
.tilted-image-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.55);
  display: block;
  object-fit: cover;
}
.tilted-image-wrap .tilt-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(7, 23, 51, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tilted-image-wrap .tilt-floating-badge span.dot {
  width: 9px;
  height: 9px;
  background: #ff4d4d;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px #ff4d4d;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Operational Live Stats Strip */
.stats-strip {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid var(--color-red);
  padding: 2.25rem 0;
  color: #ffffff;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.stat-item h3 span { color: #ff4d4d; }
.stat-item p {
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-navy-dark); color: #ffffff; }
.section-dark h2, .section-dark h3 { color: #ffffff !important; }
.section-dark p { color: #cbd5e1 !important; }
.section-header { text-align: center; max-width: 740px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-navy); }
.section-header p { font-size: 1.05rem; color: var(--color-text-muted); }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red);
}
.service-card-img-wrap {
  position: relative;
  margin: -2.25rem -2.25rem 1.5rem -2.25rem;
  height: 200px;
  overflow: hidden;
}
.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img-wrap img {
  transform: scale(1.07);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(211, 47, 47, 0.08);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--color-red);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--color-navy); }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; flex-grow: 1; }
.service-link {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-link:hover { color: var(--color-red); gap: 0.65rem; }

/* Operational Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.pillar-card {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pillar-card h4 { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--color-navy); }
.pillar-card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* Sister Synergy Showcase */
.synergy-wrapper {
  background: linear-gradient(135deg, #071733 0%, #0f2b5c 60%, #163875 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}
.synergy-wrapper h3 {
  color: #ffffff !important;
  font-size: 2.2rem;
  margin-bottom: 1.15rem;
}
.synergy-wrapper p {
  color: #e2e8f0 !important;
  font-size: 1.05rem;
  line-height: 1.7;
}
.synergy-wrapper .badge-red {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.sister-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: var(--color-navy);
}
.sister-box img { max-height: 75px; margin: 0 auto 1.25rem; border-radius: 8px; }
.sister-box h4 { font-size: 1.25rem; margin-bottom: 0.65rem; color: var(--color-navy); }
.sister-box p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.35rem; }

/* Contact Form & Info */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
.contact-info {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.contact-info h3 {
  color: var(--color-navy);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.contact-item-row:last-child { border-bottom: none; }
.contact-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-navy); }
.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
}
textarea.form-control { resize: vertical; min-height: 125px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Checklists */
.check-list { list-style: none; margin: 1.25rem 0; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.12);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--color-navy-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--color-red);
  font-size: 0.925rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: #cbd5e1; max-width: 320px; }
.footer h4 { color: #ffffff; font-size: 1.15rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a:hover { color: #ffffff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: #ff8a80; font-weight: 600; }

@media (max-width: 992px) {
  .hero-content, .synergy-wrapper, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .hero-title { font-size: 2.65rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
}
