/* ============================================
   STEELCORE PEB — Global Styles
   Design tokens, reset, typography, utilities
   ============================================ */

:root {
  /* Brand palette */
  --steel-grey: #4A4A4A;
  --steel-grey-dark: #2A2A2A;
  --steel-grey-light: #6B6B6B;
  --industrial-blue: #1E3A5F;
  --industrial-blue-dark: #142538;
  --industrial-blue-light: #2C5282;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --accent-orange: #FF6B00;
  --accent-orange-dark: #E55A00;

  /* Semantic */
  --bg-primary: var(--white);
  --bg-secondary: var(--off-white);
  --bg-dark: var(--industrial-blue-dark);
  --text-primary: var(--steel-grey-dark);
  --text-secondary: var(--steel-grey);
  --text-muted: #8A8A8A;
  --text-on-dark: var(--white);
  --border: #E5E7EB;
  --border-dark: #3A4A5F;

  /* Typography */
  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 76px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 37, 56, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 37, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 37, 56, 0.12);
  --shadow-xl: 0 24px 60px rgba(20, 37, 56, 0.18);

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--industrial-blue-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-orange);
}

/* ===== Layout utilities ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section--dark {
  background: var(--industrial-blue-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--grey {
  background: var(--bg-secondary);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-16);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  margin-top: var(--space-4);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent-orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.35);
}

.btn--secondary {
  background: var(--industrial-blue);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--industrial-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--industrial-blue-dark);
  border-color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--industrial-blue);
  padding: 12px 0;
}

.btn--ghost:hover {
  color: var(--accent-orange);
  gap: var(--space-3);
}

.btn .arrow {
  transition: transform var(--transition-base);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ===== Dividers / decorative ===== */
.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--accent-orange);
  margin-bottom: var(--space-6);
}

/* ===== Scroll reveal (AOS-lite fallback) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="slide-left"] {
  transform: translateX(-40px);
}

[data-reveal="slide-left"].is-visible {
  transform: translateX(0);
}

[data-reveal="slide-right"] {
  transform: translateX(40px);
}

[data-reveal="slide-right"].is-visible {
  transform: translateX(0);
}

[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal-delay="500"] { transition-delay: 500ms; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 1100;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.whatsapp-float:hover {
  background: #1EBE5B;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.75);
  outline-offset: 2px;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-header { margin-bottom: var(--space-12); }
  .container { padding: 0 var(--space-4); }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
