/* ==========================================================================
   IP SERVICES - AUTHENTIC BRAND DESIGN SYSTEM & COLOR SCHEME
   Website: https://ipservices.com/
   Color Palette: IP Services Red (#c00202), Deep Navy (#003466), Clean White (#ffffff)
   ========================================================================== */

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

:root {
  /* Official IP Services Brand Palette */
  --ips-red: #c00202;
  --ips-red-hover: #a00101;
  --ips-red-light: #ff4d4d;
  --ips-red-subtle: rgba(192, 2, 2, 0.08);
  --ips-red-glow: rgba(192, 2, 2, 0.25);

  --ips-navy: #003466;
  --ips-navy-dark: #002244;
  --ips-navy-light: #0b457e;
  --ips-navy-subtle: rgba(0, 52, 102, 0.06);

  --ips-blue-accent: #0066cc;
  --ips-cyan: #0284c7;
  --ips-cyan-light: #b3ecff;
  
  --ips-gold: #f59e0b;
  --ips-emerald: #10b981;

  /* Theme Surfaces (Light Base matching live website) */
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-dark-section: #001733;
  --bg-footer: #020b18;

  /* Text Colors */
  --text-main: #334155;
  --text-heading: #003466;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-navy: rgba(0, 52, 102, 0.2);
  --border-red: rgba(192, 2, 2, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-in-out;
  --shadow-sm: 0 2px 8px rgba(0, 52, 102, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 52, 102, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 52, 102, 0.12);
  --shadow-red: 0 6px 20px rgba(192, 2, 2, 0.25);
  --shadow-navy: 0 6px 20px rgba(0, 52, 102, 0.25);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  padding-top: 124px;
}

@media (max-width: 1200px) {
  body {
    padding-top: 116px;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 106px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 96px;
  }
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Buttons matching Website Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: normal;
  word-break: normal;
  line-height: 1.35;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    padding: 12px 16px;
    font-size: 0.88rem;
    max-width: 100%;
  }
}

.btn-primary {
  background: var(--ips-red);
  color: var(--text-white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--ips-red-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 2, 2, 0.35);
}

.btn-navy {
  background: var(--ips-navy);
  color: var(--text-white);
  box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
  background: var(--ips-navy-dark);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--ips-navy);
  color: var(--ips-navy);
}

.btn-outline:hover {
  background: var(--ips-navy);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(192, 2, 2, 0.1);
  border: 1px solid rgba(192, 2, 2, 0.25);
  color: var(--ips-red);
}

.badge-navy {
  background: rgba(0, 52, 102, 0.1);
  border: 1px solid rgba(0, 52, 102, 0.25);
  color: var(--ips-navy);
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 50px auto;
}

.section-header .section-tag {
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.section-header h2 span.highlight {
  color: var(--ips-red);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
