/* ==========================================================================
   CABL DESIGN STUDIO — CORE DESIGN SYSTEM & STYLESHEET
   Brand Colors:
   - Green (Tierra): #90E60F
   - Yellow (Tierra highlight): #FCFF4D
   - Blue (Neutro): #03CAFE
   - Brown (Fase): #372C2B
   - Background: Pure White #FFFFFF
   Fonts:
   - Titles / Subtitles: Panchang (Local OTF - Bold 700)
   - Body Texts: Clash Grotesk (Local OTF - Regular 400)
   ========================================================================== */

/* ==========================================================================
   LOCAL FONT-FACE DECLARATIONS — CLASH GROTESK (Body Text — Strictly Regular)
   ========================================================================== */
@font-face {
  font-family: 'Clash Grotesk';
  src: url('../assets/fonts/ClashGrotesk%20OTF/ClashGrotesk-Regular.otf') format('opentype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Grotesk';
  src: url('../assets/fonts/ClashGrotesk%20OTF/ClashGrotesk-Medium.otf') format('opentype');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   LOCAL FONT-FACE DECLARATIONS — PANCHANG (Display & Titles)
   ========================================================================== */
@font-face {
  font-family: 'Panchang';
  src: url('../assets/fonts/Pachang%20OTF/Panchang-Regular.otf') format('opentype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panchang';
  src: url('../assets/fonts/Pachang%20OTF/Panchang-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panchang';
  src: url('../assets/fonts/Pachang%20OTF/Panchang-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panchang';
  src: url('../assets/fonts/Pachang%20OTF/Panchang-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panchang';
  src: url('../assets/fonts/Pachang%20OTF/Panchang-Extrabold.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Electrical Palette */
  --cabl-green: #90E60F;
  --cabl-yellow: #FCFF4D;
  --cabl-blue: #03CAFE;
  --cabl-brown: #372C2B;
  --cabl-brown-light: #4F3F3E;
  
  /* Gradients */
  --cabl-grad-earth: linear-gradient(135deg, #90E60F 0%, #FCFF4D 100%);
  --cabl-grad-neutral: linear-gradient(135deg, #0288D1 0%, #03CAFE 100%);
  --cabl-grad-phase: linear-gradient(135deg, #241C1B 0%, #372C2B 100%);
  --cabl-grad-brand: linear-gradient(90deg, #90E60F, #FCFF4D, #03CAFE, #372C2B);

  /* Neutrals & Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFB;
  --bg-subtle: #F4F4F6;
  --bg-dark: #121214;
  --bg-dark-card: #1A1A1E;
  
  --text-primary: #121214;
  --text-secondary: #27272A;
  --text-muted: #52525B;
  --text-inverse: #FFFFFF;

  --border-light: #EDEDF2;
  --border-medium: #DCDCDE;
  --border-dark: #2A2A30;

  /* Typography */
  --font-display: 'Panchang', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Clash Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadow & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
  --shadow-glow-green: 0 0 35px rgba(144, 230, 15, 0.35);
  --shadow-glow-blue: 0 0 35px rgba(3, 202, 254, 0.35);
  --shadow-glow-yellow: 0 0 35px rgba(252, 255, 77, 0.35);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Typography Defaults — Titles and Subtitles in Panchang - Negrita (Bold, not Black) */
h1, h2, h3, h4, h5, h6, .font-display, .subtitle, .section-subtitle, .subheading {
  font-family: var(--font-display);
  font-weight: 700; /* Bold / Negrita */
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.7;
}

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

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

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

ul, ol {
  list-style: none;
}

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

.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-lg {
  padding: 140px 0;
  position: relative;
}

/* Badge & Category Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-earth {
  background: rgba(144, 230, 15, 0.15);
  color: #3b6b00;
  border: 1px solid rgba(144, 230, 15, 0.4);
}

.badge-neutral {
  background: rgba(3, 202, 254, 0.12);
  color: #016b88;
  border: 1px solid rgba(3, 202, 254, 0.35);
}

.badge-phase {
  background: rgba(55, 44, 43, 0.08);
  color: var(--cabl-brown);
  border: 1px solid rgba(55, 44, 43, 0.2);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--cabl-green);
  box-shadow: 0 0 10px var(--cabl-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(144, 230, 15, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(144, 230, 15, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(144, 230, 15, 0); }
}

/* Section Header Structure */
.section-header {
  margin-bottom: 60px;
}

.section-header.text-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Primary Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--cabl-brown);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(55, 44, 43, 0.25);
}

.btn-primary:hover {
  background-color: #121214;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-electric {
  background: var(--cabl-green);
  color: #121214;
  box-shadow: 0 8px 24px rgba(144, 230, 15, 0.35);
  font-weight: 700;
}

.btn-electric:hover {
  background: #a4f51e;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(144, 230, 15, 0.5);
}

.btn-cyan {
  background: var(--cabl-blue);
  color: #121214;
  box-shadow: 0 8px 24px rgba(3, 202, 254, 0.35);
}

.btn-cyan:hover {
  background: #39d9ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(3, 202, 254, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 20px 42px;
  font-size: 0.95rem;
}

/* Modern Electric Border Accent Line */
.electric-line {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--cabl-green) 0%, var(--cabl-yellow) 33%, var(--cabl-blue) 66%, var(--cabl-brown) 100%);
}

/* Background video container */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.22;
}

/* Responsive utilities */
@media (max-width: 991px) {
  .section {
    padding: 70px 0;
  }
  .section-lg {
    padding: 90px 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 2rem;
  }
}
