/* RP Con (Pty) Ltd — Base: variables, reset, typography, layout utilities */

/* ===== CSS CUSTOM PROPERTIES ===== */

:root {
  --bg-dark: #0D1117;
  --surface-dark: #1A1F2E;
  --orange: #DC2626;
  --orange-hover: #EF4444;
  --orange-tint: #FEF2F2;
  --orange-border: #FCA5A5;
  --bg-light: #FAFAF9;
  --white: #FFFFFF;
  --text-dark: #111827;
  --text-light: #D1D5DB;
  --text-mid: #6B7280;
  --text-mid-2: #9CA3AF;
  --text-mid-3: #374151;
  --text-faint: #4B5563;
  --border: #E5E7EB;
  --border-dark: #2D3748;
  --footer-bg: #070A0E;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
}

/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== TYPOGRAPHY UTILITIES ===== */

.display {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.0;
}

.heading {
  font-family: 'Barlow Condensed', 'Inter Tight', sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ===== LAYOUT UTILITIES ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scale container on large and 4K screens */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
}

@media (min-width: 1920px) {
  .container { max-width: 1600px; padding: 0 40px; }
}

section {
  position: relative;
}

.section-pad {
  padding: 96px 0;
}

@media (max-width: 1024px) {
  .section-pad { padding: 64px 0; }
}

@media (max-width: 640px) {
  .section-pad { padding: 48px 0; }
}

@media (max-width: 380px) {
  .section-pad { padding: 40px 0; }
  .container { padding: 0 16px; }
}

.center {
  text-align: center;
}

.orange-line {
  width: 100%;
  height: 4px;
  background: var(--orange);
}

/* ===== PLACEHOLDER IMAGES ===== */

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      #2a2f3a 0,
      #2a2f3a 12px,
      #1f242f 12px,
      #1f242f 24px
    );
  color: #6B7280;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.placeholder-img.light {
  background:
    repeating-linear-gradient(
      135deg,
      #e8e6e0 0,
      #e8e6e0 12px,
      #dcd9d2 12px,
      #dcd9d2 24px
    );
  color: #6B7280;
}

.placeholder-img.warm {
  background:
    repeating-linear-gradient(
      135deg,
      #d6c5b3 0,
      #d6c5b3 12px,
      #c8b59f 12px,
      #c8b59f 24px
    );
  color: #5b4530;
}

.placeholder-img span {
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 0.15em;
}

.placeholder-img.light span,
.placeholder-img.warm span {
  background: rgba(0,0,0,0.55);
}

/* ===== SCROLL-IN ANIMATION ===== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .fade-in {
    transform: translateY(8px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
  }
}

/* ===== PAGE BODY OFFSET ===== */

.page-body {
  padding-top: 0;
}

body:not(.has-hero) .page-body {
  padding-top: 72px;
}

@media (max-width: 768px) {
  body:not(.has-hero) .page-body {
    padding-top: 60px;
  }
}
