/* =========================================
   STP INSTALL — MAIN.CSS
   Design system, variables, reset, layout
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --red:        #b71219;
  --red-dark:   #8f0d13;
  --red-glow:   rgba(183, 18, 25, 0.25);
  --dark:       #2b2b2b;
  --dark-2:     #1e1e1e;
  --dark-3:     #141414;
  --gray:       #f3f3f3;
  --gray-2:     #e8e8e8;
  --gray-3:     #c0c0c0;
  --text:       #1a1a1a;
  --text-muted: #666666;
  --white:      #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Manrope', sans-serif;

  --radius:    4px;
  --radius-md: 8px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(183, 18, 25, 0.35);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --gap:       clamp(16px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--dark);
}

h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 40px); }
h4 { font-size: clamp(18px, 2.5vw, 28px); }

p {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--text-muted);
}

strong { color: var(--text); font-weight: 700; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--dark {
  background: var(--dark);
}

.section--gray {
  background: var(--gray);
}

.section--darker {
  background: var(--dark-2);
}

/* ── GRID ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

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

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

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ── DIVIDER LINE ── */
.line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 16px 0;
}

.line--center {
  margin: 16px auto;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── PHONE LINK ── */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--red);
}

.phone-link svg {
  flex-shrink: 0;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 14px 0;
  background: var(--gray);
  border-bottom: 1px solid var(--gray-2);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs__item:last-child {
  color: var(--text);
  font-weight: 600;
}

.breadcrumbs__item a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumbs__item a:hover {
  color: var(--red);
}

.breadcrumbs__sep {
  color: var(--gray-3);
  font-size: 11px;
}

/* ── NOISE TEXTURE OVERLAY ── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

/* ── UTILITY ── */
.text-red   { color: var(--red); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.fw-700     { font-weight: 700; }
.fw-800     { font-weight: 800; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.mt-32      { margin-top: 32px; }
.mb-0       { margin-bottom: 0; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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