/* ==========================================================================
   C.I. PINNACLE LIMITED - Approved Light Glass Design System
   Pure Light Aesthetic, Frosted Glass, Single Content Grid & High Contrast Text
   ABSOLUTE NO-DARK-SURFACE STANDARD (White, Off-White, Soft Translucent Glass)
   ========================================================================== */

:root {
  /* Brand Identity Colors */
  --cip-blue: #0047BA;
  --cip-blue-light: #2563EB;
  --cip-blue-dark: #003080;
  --cip-blue-glow: rgba(0, 71, 186, 0.20);
  --cip-cyan: #0284C7;
  --cip-cyan-light: #E0F2FE;
  
  /* WhatsApp Commerce Colors */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BA5A;
  --whatsapp-green-glow: rgba(37, 211, 102, 0.25);

  /* Light Canvas & Surface Tones (Approved Bright Clean Aesthetic) */
  --bg-canvas: #F8FAFC;
  --bg-canvas-subtle: #F1F5F9;
  --bg-surface-white: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-surface-card: rgba(255, 255, 255, 0.92);
  --bg-surface-hover: rgba(255, 255, 255, 1);
  --bg-glass-tint: rgba(240, 247, 255, 0.75);

  /* High-Contrast Crisp Typography Tones (Dark on Light) */
  --text-primary: #0F172A;     /* Deep slate primary headings & titles */
  --text-secondary: #334155;   /* Dark charcoal body text */
  --text-muted: #64748B;       /* Slate muted meta & secondary labels */
  --text-subtle: #94A3B8;      /* Borders and inactive indicators */
  --text-brand: #0047BA;       /* C.I. Pinnacle brand blue */
  --text-inverse: #FFFFFF;     /* Text on colored buttons */
  
  /* Commerce & Inventory Status Tones */
  --status-in-stock: #059669;
  --status-low-stock: #D97706;
  --status-deal: #E11D48;
  --status-new: #0284C7;
  --status-gold: #B45309;

  /* Global Light Glassmorphic Tokens */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-subtle: rgba(255, 255, 255, 0.75);
  --glass-bg-card: rgba(255, 255, 255, 0.92);
  --glass-bg-hover: rgba(255, 255, 255, 0.98);
  --glass-blur: blur(16px);
  --glass-blur-heavy: blur(24px) saturate(180%);
  --glass-border: 1px solid rgba(226, 232, 240, 0.85);
  --glass-border-white: 1px solid rgba(255, 255, 255, 0.95);
  --glass-border-subtle: 1px solid rgba(241, 245, 249, 0.9);
  --glass-border-hover: 1px solid rgba(0, 71, 186, 0.35);
  --glass-border-active: 1px solid rgba(0, 71, 186, 0.65);

  /* Elevation Shadows (Soft Clean Light Elevation) */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.04), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 48px -10px rgba(0, 71, 186, 0.08), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glass: 0 16px 36px -8px rgba(0, 71, 186, 0.07), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-glow-blue: 0 4px 20px -2px rgba(0, 71, 186, 0.25);
  --shadow-glow-whatsapp: 0 4px 20px -2px rgba(37, 211, 102, 0.30);
  
  /* Consistent Corner Radii Scale */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;

  /* Global Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.16s var(--ease-smooth);
  --transition-normal: 0.26s var(--ease-spring);
  --transition-slow: 0.40s var(--ease-spring);

  /* Unified Single Global Grid Width */
  --container-max: 1280px;
  --container-gutter: 24px;
  --section-spacing-y: 56px;
}

@media (max-width: 768px) {
  :root {
    --container-gutter: 16px;
    --section-spacing-y: 40px;
  }
}

/* ==========================================================================
   CSS Reset & Base Rules (Light Canvas)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.5;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 71, 186, 0.04) 0%, rgba(248, 250, 252, 1) 70%),
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

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

ul, ol {
  list-style: none;
}

/* Accessible hidden element */
.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;
}

/* ==========================================================================
   Global Content Grid Alignment
   ========================================================================== */
.container,
.content-grid-boundary {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Unified Section Spacing Scale */
.section {
  padding-top: var(--section-spacing-y);
  padding-bottom: var(--section-spacing-y);
  position: relative;
  width: 100%;
}

.section-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

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

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 71, 186, 0.08);
  color: var(--cip-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 71, 186, 0.18);
  align-self: flex-start;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.15rem;
  }
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}

/* ==========================================================================
   Typography Hierarchy (High Contrast Dark Text on Light Surfaces)
   ========================================================================== */
h1, .h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: 3rem;
  }
}

h2, .h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
}

h3, .h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
}

h4, .h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--cip-blue) 0%, var(--cip-blue-light) 60%, var(--cip-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-blue { color: var(--cip-blue); }
.text-cyan { color: var(--cip-cyan); }
.text-gold { color: var(--status-gold); }
.text-green { color: var(--whatsapp-green); }

/* ==========================================================================
   Unified Button Component System (Light Theme)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-size: 0.90rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Brand Button */
.btn-primary {
  background: linear-gradient(135deg, var(--cip-blue) 0%, var(--cip-blue-light) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--cip-blue-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cip-blue-light) 0%, #3B82F6 100%);
  box-shadow: 0 6px 20px var(--cip-blue-glow);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* WhatsApp Conversion Button */
.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp-green) 0%, #20BA5A 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--whatsapp-green-glow);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #27E06E 0%, var(--whatsapp-green) 100%);
  box-shadow: 0 6px 22px var(--whatsapp-green-glow);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Light Glass Interactive Button */
.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: #FFFFFF;
  border-color: rgba(0, 71, 186, 0.35);
  color: var(--cip-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Secondary Clean Outline Button */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 71, 186, 0.3);
  color: var(--cip-blue);
}

.btn-outline:hover {
  background: rgba(0, 71, 186, 0.06);
  border-color: var(--cip-blue);
  color: var(--cip-blue);
  transform: translateY(-1px);
}

/* Button Sizing Variations */
.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-pill);
}

.btn-icon-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-pill);
}

/* Badges & Micro-Indicators (Light Surfaces) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge-instock {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-deal {
  background: rgba(244, 63, 94, 0.12);
  color: #BE123C;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-new {
  background: rgba(2, 132, 199, 0.12);
  color: #0369A1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-condition {
  background: rgba(0, 71, 186, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 71, 186, 0.15);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
