/* ==========================================================================
   MSG ELECTRONICS - Complete Brand-Matched Stylesheet
   Palette: Deep Navy Blue (#0b3b75) & Solar Orange (#f97316 / #ea580c)
   Features: Animated Light Hero, Floating CTAs, Bento Grid & Zero Layout Shift
   ========================================================================== */

:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  
  /* Brand Navy Blues */
  --primary: #0b3b75;
  --primary-hover: #072a55;
  --primary-light: #edf4fc;
  
  /* Brand Solar Orange & Gold */
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #fff7ed;
  --accent-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  
  /* Electric Orbit Cyan */
  --cyan-accent: #0088eb;
  
  --text-main: #0b1a30;
  --text-muted: #566a85;
  --border: #e2e8f0;
  --border-focus: #0b3b75;
  
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 8px;
  
  --shadow-sm: 0 1px 3px rgba(11, 59, 117, 0.05);
  --shadow-md: 0 4px 18px -2px rgba(11, 59, 117, 0.08);
  --shadow-hover: 0 16px 32px -4px rgba(11, 59, 117, 0.14);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
  }
}

@keyframes floatOrbOne {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(45px, 35px) scale(1.15);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatOrbTwo {
  0% {
    transform: translate(0, 0) scale(1.1);
  }
  50% {
    transform: translate(-40px, -30px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1.1);
  }
}

@keyframes gridPan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

.anim-fade {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Top Utility Bar */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

/* Floating Navigation */
.header-sticky {
  position: sticky;
  top: 12px;
  z-index: 1000;
  margin: 10px auto 0;
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 100px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

/* Brand Logo */
.brand-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  max-width: 220px;
  height: auto;
  overflow: hidden;
}

.brand-img-logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu a:hover, 
.nav-menu a.active {
  color: var(--primary);
}

.btn-nav {
  background: var(--accent-gradient);
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: var(--transition);
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

/* Hero Section with Animated Light Background */
.hero {
  position: relative;
  padding: 105px 0 75px;
  text-align: center;
  overflow: hidden;
  background-color: #ffffff;
  background-image: 
    linear-gradient(to right, rgba(11, 59, 117, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 59, 117, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPan 25s linear infinite;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(11, 59, 117, 0.12) 0%, rgba(0, 136, 235, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  animation: floatOrbOne 14s ease-in-out infinite;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: 5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(234, 88, 12, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
  animation: floatOrbTwo 16s ease-in-out infinite;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.badge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid #fed7aa;
  color: var(--accent-hover);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: pulseGlow 2.8s infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-solid, 
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-solid {
  background: var(--accent-gradient);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Bento Grid System */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 45px;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* Grid Column Spans */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.bento-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bento-card:hover .bento-media img {
  transform: scale(1.05);
}

.bento-body {
  padding: 26px;
  flex-grow: 1;
}

.tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-light);
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.bento-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.bento-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature Checklists */
.tick-list {
  list-style: none;
  margin-top: 14px;
}

.tick-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Stats Counter Row */
.stats-strip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Forms */
.form-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 59, 117, 0.12);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.alert-ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-err { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 60px 0 25px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 35px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.footer-col p, 
.footer-col li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.footer-col ul { 
  list-style: none; 
}

.footer-col a { 
  color: var(--text-muted); 
  text-decoration: none; 
  transition: var(--transition); 
}

.footer-col a:hover { 
  color: var(--accent-hover); 
}

.footer-sub {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Sticky Floating Action Buttons (Left Call / Right WhatsApp)
   ========================================================================== */

.float-btn {
  position: fixed;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}

.float-call {
  left: 24px;
  background: linear-gradient(135deg, #0b3b75, #004890);
}

.float-whatsapp {
  right: 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.float-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  pointer-events: none;
  z-index: -1;
}

.float-call .float-pulse {
  animation: radarNavy 2.2s infinite;
}

.float-whatsapp .float-pulse {
  animation: radarGreen 2.2s infinite;
}

@keyframes radarNavy {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 59, 117, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(11, 59, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 59, 117, 0);
  }
}

@keyframes radarGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.float-call:hover {
  box-shadow: 0 12px 28px rgba(11, 59, 117, 0.45);
}

.float-whatsapp:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.float-btn:hover .float-icon {
  transform: scale(1.15) rotate(-6deg);
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

@media (max-width: 900px) {
  .col-12, 
  .col-8, 
  .col-7, 
  .col-6, 
  .col-5, 
  .col-4 {
    grid-column: span 12 !important;
  }

  .brand-wrapper {
    max-width: 180px;
    justify-content: center;
  }

  .brand-img-logo {
    max-width: 170px;
    height: 38px;
    object-position: center;
  }

  .bento-grid {
    gap: 16px;
  }

  .bento-body {
    padding: 20px;
  }

  .navbar {
    border-radius: var(--radius-lg);
    flex-direction: column;
    gap: 12px;
  }

  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-bar { 
    display: none; 
  }

  body { 
    padding-bottom: 70px; 
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .form-panel {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .float-btn {
    bottom: 18px;
    padding: 14px;
    border-radius: 50%;
  }

  .float-call {
    left: 16px;
  }

  .float-whatsapp {
    right: 16px;
  }

  .float-label {
    display: none;
  }

  .float-pulse {
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .brand-wrapper {
    max-width: 150px;
  }

  .brand-img-logo {
    max-width: 140px;
    height: 32px;
  }
}