/* ============================================
   BREAKING ADS — DESIGN SYSTEM
   ============================================ */

:root {
  /* Colour */
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --grey-50: #fafaf9;
  --grey-100: #edece8;
  --grey-200: #d6d4ce;
  --grey-300: #b8b5ad;
  --grey-400: #8a867d;
  --grey-600: #5c5850;
  --grey-800: #2e2c28;
  --accent: #6B2130;
  --accent-hover: #8a2e40;
  --accent-light: rgba(107,33,48,0.08);

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: clamp(32px, 3.5vw, 44px);
  --text-4xl: clamp(40px, 5vw, 64px);
  --text-5xl: clamp(48px, 6vw, 80px);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  /* Layout */
  --max-width: 1200px;
  --gutter: 48px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: var(--text-base);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-xl); }

.label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.body-lg { font-size: var(--text-lg); color: var(--grey-600); line-height: 1.7; }
.body-md { font-size: var(--text-md); color: var(--grey-600); line-height: 1.7; }
.body-sm { font-size: var(--text-sm); color: var(--grey-400); line-height: 1.6; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-3xl) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  height: 72px;
  display: flex; align-items: center;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo {
  font-weight: 900; font-size: 17px; color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo .slash, .footer-brand .slash { color: var(--accent); margin: 0 1px; }

/* Trusted By logo strip */
.trusted-logo-box {
  width: 100%;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trusted-logo-box img,
.trusted-logo-box img[style] {
  width: 100% !important;
  height: 80px !important;
  object-fit: contain !important;
  display: block !important;
}
/* Nav links - flat a elements only */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-300);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links .nav-cta {
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
}
.nav-links .nav-cta:hover {
  background: var(--grey-100);
  color: var(--black);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 600;
  padding: 14px 32px; border-radius: 8px;
  transition: all 0.2s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: var(--grey-800); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--grey-200);
}
.btn-outline:hover { border-color: var(--black); }
.btn-lg { padding: 18px 40px; font-size: var(--text-base); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--grey-100); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  padding: var(--space-md);
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--grey-200);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.card-dark {
  background: var(--grey-800);
  border-color: transparent;
  color: var(--white);
}
.card-dark:hover { background: #353330; }

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
  width: 100%; border-radius: 12px; overflow: hidden;
  position: relative; background: var(--grey-100);
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-label {
  display: none;
}

/* ============================================
   STATS
   ============================================ */
.stat { }
.stat-number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
}
.stat-label { font-size: var(--text-sm); color: var(--grey-400); margin-top: 6px; font-weight: 500; }

/* ============================================
   DIVIDERS & BACKGROUNDS
   ============================================ */
.bg-off-white { background: var(--off-white); }
.bg-black { background: var(--black); color: var(--white); }
.bg-dark { background: var(--grey-800); color: var(--white); }
.divider { height: 1px; background: var(--grey-100); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--black); padding: var(--space-xl) 0 var(--space-lg); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-brand { font-weight: 900; font-size: 17px; color: var(--white); margin-bottom: 12px; }
.footer-desc { font-size: var(--text-sm); color: var(--grey-400); line-height: 1.7; max-width: 280px; }
.footer-heading {
  font-size: var(--text-sm); font-weight: 700; color: var(--white);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-link {
  display: block; font-size: var(--text-sm); color: var(--grey-400);
  padding: 4px 0; transition: color 0.2s; font-weight: 700;
}
.footer-link:hover { color: #6b2130; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--space-lg); padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: var(--text-xs); color: var(--grey-600); }

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel { background: var(--black); }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

/* ============================================
   SERVICES GRID (homepage)
   ============================================ */
.services-grid a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.services-grid a.services-cta:hover {
  background: #8a2b3e;
  border-color: #8a2b3e;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-lg); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-xl) 0; }
  .section-lg { padding: var(--space-2xl) 0; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Services grid mobile */
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Trusted logos mobile */
  .trusted-logos { grid-template-columns: repeat(2, 1fr) !important; }

  /* Mobile nav */
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--black); padding: var(--space-md) var(--gutter);
    gap: 0;
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: block;
  }
  .nav-links.open .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }
}
