/*
Theme Name: Megasnacker
Theme URI: https://megasnacker.com
Author: Megasnacker
Author URI: https://megasnacker.com
Description: Official Megasnacker brand theme — From Bytes to Bites. Powering digital infrastructure and gourmet snacks under one roof.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://megasnacker.com/license
Text Domain: megasnacker
Tags: custom-menu, featured-images, full-width-template, post-thumbnails, custom-colors, custom-logo
*/

/* ============================================================
   CSS VARIABLES — MEGASNACKER BRAND SYSTEM
   ============================================================ */
:root {
  /* Brand Colors */
  --ms-yellow:       #FFC300;
  --ms-yellow-light: #FFD740;
  --ms-yellow-dark:  #E6A800;
  --ms-blue:         #0D2B8E;
  --ms-blue-mid:     #1A3DAF;
  --ms-blue-light:   #2451CC;
  --ms-navy:         #091D5F;
  --ms-white:        #FFFFFF;
  --ms-off-white:    #F5F6FA;
  --ms-gray:         #6B7280;
  --ms-gray-light:   #E5E7EB;
  --ms-dark:         #0A0F1E;

  /* Typography */
  --font-display:  'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:     'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(13,43,142,0.12);
  --shadow-md:  0 4px 16px rgba(13,43,142,0.16);
  --shadow-lg:  0 8px 32px rgba(13,43,142,0.22);
  --shadow-xl:  0 20px 60px rgba(13,43,142,0.28);
  --shadow-yellow: 0 8px 32px rgba(255,195,0,0.35);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ms-dark);
  background: var(--ms-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-giant {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.display-xl { font-size: clamp(2.5rem, 6vw, 5rem); }
.display-lg { font-size: clamp(2rem, 4vw, 3.5rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-yellow  { color: var(--ms-yellow); }
.text-blue    { color: var(--ms-blue); }
.text-white   { color: var(--ms-white); }
.text-gray    { color: var(--ms-gray); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.bg-yellow    { background-color: var(--ms-yellow); }
.bg-blue      { background-color: var(--ms-blue); }
.bg-navy      { background-color: var(--ms-navy); }
.bg-off-white { background-color: var(--ms-off-white); }
.bg-dark      { background-color: var(--ms-dark); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid         { display: grid; }
.hidden       { display: none; }

.section-pad  { padding: var(--space-3xl) 0; }
.section-pad-lg { padding: calc(var(--space-3xl) * 1.5) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--ms-blue);
  color: var(--ms-white);
  border-color: var(--ms-blue);
}
.btn--primary:hover {
  background: var(--ms-blue-light);
  border-color: var(--ms-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--yellow {
  background: var(--ms-yellow);
  color: var(--ms-blue);
  border-color: var(--ms-yellow);
}
.btn--yellow:hover {
  background: var(--ms-yellow-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

.btn--outline-white {
  background: transparent;
  color: var(--ms-white);
  border-color: var(--ms-white);
}
.btn--outline-white:hover {
  background: var(--ms-white);
  color: var(--ms-blue);
  transform: translateY(-2px);
}

.btn--outline-blue {
  background: transparent;
  color: var(--ms-blue);
  border-color: var(--ms-blue);
}
.btn--outline-blue:hover {
  background: var(--ms-blue);
  color: var(--ms-white);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.125rem 2.5rem; font-size: 1rem; }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.75rem; }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--yellow { background: var(--ms-yellow); color: var(--ms-blue); }
.badge--blue   { background: var(--ms-blue); color: var(--ms-white); }
.badge--white  { background: var(--ms-white); color: var(--ms-blue); }
.badge--outline { background: transparent; color: var(--ms-blue); border: 1.5px solid var(--ms-blue); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-header.header-dark {
  background: transparent;
}

.site-header.header-dark.scrolled {
  background: rgba(9,29,95,0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ms-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-blue);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ms-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.nav-menu a:hover { color: var(--ms-blue-light); }
.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after { transform: scaleX(1); }

.nav-cta { margin-left: var(--space-md); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ms-blue);
  transition: all 0.2s;
}

/* Dark nav variant */
.header-dark .site-logo .logo-text,
.header-dark .nav-menu a { color: var(--ms-white); }
.header-dark .nav-toggle span { background: var(--ms-white); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ms-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s var(--ease-out);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--ms-blue) !important;
  transition: background 0.15s;
}
.nav-dropdown a:hover { background: var(--ms-off-white); }
.nav-dropdown a::after { display: none; }

/* ============================================================
   HERO — SPLIT PANEL (HOME)
   ============================================================ */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding-top: 72px;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  overflow: hidden;
}

.hero-panel--blue {
  background: var(--ms-blue);
  color: var(--ms-white);
}

.hero-panel--yellow {
  background: var(--ms-yellow);
  color: var(--ms-blue);
}

/* Animated grid pattern */
.hero-panel--blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-panel--yellow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,43,142,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,43,142,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Center medallion */
.hero-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ms-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(255,255,255,0.3);
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

.hero-center-badge .badge-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ms-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.hero-center-badge .badge-sub {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ms-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.03); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ms-white);
  opacity: 0.5;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-section {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--ms-gray-light);
}

.mission-eyebrow {
  color: var(--ms-blue);
  margin-bottom: var(--space-lg);
}

.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ms-navy);
  max-width: 780px;
  margin: 0 auto var(--space-lg);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.01em;
}

.mission-quote em {
  color: var(--ms-blue-light);
  font-style: italic;
  font-weight: 900;
}

.mission-quote .text-underline {
  position: relative;
  display: inline-block;
}

.mission-quote .text-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ms-yellow);
  border-radius: 2px;
}

.mission-sub {
  color: var(--ms-gray);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--ms-blue);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

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

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--ms-white);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--ms-yellow);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================================
   ECOSYSTEM / PRODUCTS GRID
   ============================================================ */
.ecosystem-section {
  padding: var(--space-3xl) 0;
  background: var(--ms-off-white);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header .section-eyebrow {
  color: var(--ms-blue);
  margin-bottom: var(--space-md);
}

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

.product-card {
  background: var(--ms-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ms-gray-light);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--ms-blue);
}

.product-card--featured {
  background: var(--ms-blue);
  border-color: var(--ms-blue);
  color: var(--ms-white);
}
.product-card--featured:hover { border-color: var(--ms-blue-light); }

.product-card--yellow {
  background: var(--ms-yellow);
  border-color: var(--ms-yellow);
}

.product-card-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
}

.product-icon--blue    { background: var(--ms-blue); }
.product-icon--yellow  { background: var(--ms-yellow); }
.product-icon--white   { background: rgba(255,255,255,0.15); }
.product-icon--blue-lt { background: rgba(13,43,142,0.08); }

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--ms-blue);
}

.product-card--featured .product-name { color: var(--ms-yellow); }
.product-card--yellow .product-name   { color: var(--ms-blue); }

.product-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--ms-gray);
  margin-bottom: var(--space-xl);
  flex: 1;
}

.product-card--featured .product-desc { color: rgba(255,255,255,0.75); }
.product-card--yellow .product-desc   { color: rgba(13,43,142,0.75); }

.product-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap 0.2s;
}

.product-link:hover { gap: var(--space-sm); }
.product-link .arrow { font-size: 1.1em; }
.product-card--featured .product-link { color: var(--ms-yellow); }

/* ============================================================
   FEATURED MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--ms-yellow);
  overflow: hidden;
  padding: var(--space-md) 0;
  border-top: 3px solid var(--ms-blue);
  border-bottom: 3px solid var(--ms-blue);
}

.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ms-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-blue);
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   WHY MEGASNACKER — FEATURES
   ============================================================ */
.features-section {
  padding: var(--space-3xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.features-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-visual-inner {
  text-align: center;
  color: var(--ms-white);
}

.features-visual-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.features-list { display: flex; flex-direction: column; gap: var(--space-xl); }

.feature-item { display: flex; gap: var(--space-lg); align-items: flex-start; }

.feature-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ms-yellow);
  color: var(--ms-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
}

.feature-content h3 {
  font-size: 1.2rem;
  color: var(--ms-blue);
  margin-bottom: var(--space-xs);
}

.feature-content p {
  font-size: 0.925rem;
  color: var(--ms-gray);
  line-height: 1.65;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ms-blue);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,195,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,195,0,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.cta-band-text h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--ms-white);
  margin-bottom: var(--space-md);
}

.cta-band-text p {
  color: rgba(255,255,255,0.7);
  max-width: 460px;
}

.cta-band-actions { display: flex; gap: var(--space-md); flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ms-dark);
  color: var(--ms-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ms-yellow);
  margin-bottom: var(--space-md);
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 300px;
}

.footer-socials { display: flex; gap: var(--space-md); }

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all 0.2s;
}
.social-link:hover { background: var(--ms-yellow); color: var(--ms-blue); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-yellow);
  margin-bottom: var(--space-lg);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-md); }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ms-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,195,0,0.5);
}

/* ============================================================
   PAGE HERO — INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--ms-blue);
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
  color: var(--ms-white);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,195,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,195,0,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-badge { margin-bottom: var(--space-lg); }

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--ms-white);
  margin-bottom: var(--space-lg);
}

.page-hero h1 span { color: var(--ms-yellow); }

.page-hero .hero-desc {
  max-width: 560px;
  color: rgba(255,255,255,0.75);
}

/* Yellow page hero */
.page-hero--yellow {
  background: var(--ms-yellow);
  color: var(--ms-blue);
}
.page-hero--yellow::before {
  background-image:
    linear-gradient(rgba(13,43,142,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,43,142,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero--yellow h1 { color: var(--ms-blue); }
.page-hero--yellow h1 span { color: var(--ms-navy); }
.page-hero--yellow .hero-desc { color: rgba(13,43,142,0.75); }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.content-cols--reverse { direction: rtl; }
.content-cols--reverse > * { direction: ltr; }

.content-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ms-off-white);
  position: relative;
}

.content-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-blue-light) 100%);
}

.rich-text h2 { color: var(--ms-blue); margin-bottom: var(--space-lg); font-size: clamp(1.75rem, 3vw, 2.75rem); }
.rich-text h3 { color: var(--ms-blue); margin-bottom: var(--space-md); font-size: 1.4rem; }
.rich-text p  { color: var(--ms-gray); margin-bottom: var(--space-md); line-height: 1.7; }
.rich-text ul { margin-bottom: var(--space-md); }
.rich-text li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--ms-gray);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.rich-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-yellow);
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--ms-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 2px solid var(--ms-gray-light);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--ms-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--popular {
  background: var(--ms-blue);
  border-color: var(--ms-blue);
  color: var(--ms-white);
  transform: scale(1.04);
}

.pricing-card--popular:hover {
  transform: scale(1.04) translateY(-4px);
  border-color: var(--ms-blue-light);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: var(--space-md);
}
.pricing-card--popular .pricing-plan { color: var(--ms-yellow); }

.pricing-price {
  margin-bottom: var(--space-lg);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ms-blue);
  line-height: 1;
}
.pricing-card--popular .price-amount { color: var(--ms-white); }

.price-period {
  font-size: 0.875rem;
  color: var(--ms-gray);
}
.pricing-card--popular .price-period { color: rgba(255,255,255,0.6); }

.pricing-desc {
  font-size: 0.9rem;
  color: var(--ms-gray);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--ms-gray-light);
}
.pricing-card--popular .pricing-desc {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

.pricing-features { margin-bottom: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--ms-dark);
}
.pricing-card--popular .pricing-feature { color: rgba(255,255,255,0.85); }

.pricing-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ms-yellow);
  color: var(--ms-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--ms-off-white);
  padding: var(--space-3xl) 0;
}

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

.testimonial-card {
  background: var(--ms-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1.5px solid var(--ms-gray-light);
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--ms-yellow);
  line-height: 0.5;
  margin-bottom: var(--space-lg);
  display: block;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ms-dark);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ms-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ms-yellow);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ms-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-role {
  font-size: 0.8rem;
  color: var(--ms-gray);
  margin-top: 1px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ms-blue);
  margin-bottom: var(--space-lg);
}

.contact-info p {
  color: var(--ms-gray);
  margin-bottom: var(--space-xl);
}

.contact-methods { display: flex; flex-direction: column; gap: var(--space-lg); }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--ms-yellow);
  color: var(--ms-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: 2px;
}

.contact-method-text span { font-size: 0.9rem; color: var(--ms-gray); }

/* WP Forms / Contact Form 7 styling */
.contact-form-wrapper {
  background: var(--ms-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1.5px solid var(--ms-gray-light);
  box-shadow: var(--shadow-md);
}

.ms-form { display: flex; flex-direction: column; gap: var(--space-lg); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }

.form-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  border: 1.5px solid var(--ms-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ms-dark);
  background: var(--ms-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 3px rgba(13,43,142,0.1);
}

.form-textarea, textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   BLOG / NEWS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.post-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ms-white);
  border: 1.5px solid var(--ms-gray-light);
  transition: all 0.3s var(--ease-out);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ms-blue);
}

.post-thumb {
  aspect-ratio: 16/9;
  background: var(--ms-blue);
  overflow: hidden;
  position: relative;
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-cat {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.post-content { padding: var(--space-xl); }

.post-meta {
  font-size: 0.8rem;
  color: var(--ms-gray);
  margin-bottom: var(--space-sm);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ms-blue);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--ms-gray);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-more {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap 0.2s;
}
.post-read-more:hover { gap: var(--space-sm); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-split       { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel       { padding: var(--space-2xl) var(--space-xl); min-height: 50vh; }
  .hero-center-badge { display: none; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .products-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .content-cols     { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .cta-band-inner   { flex-direction: column; text-align: center; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .pricing-card--popular { transform: scale(1); }
  .pricing-card--popular:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  :root { --space-3xl: 4rem; --space-2xl: 2.5rem; }
  .container { padding: 0 var(--space-lg); }

  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--ms-white);
    padding: var(--space-xl);
    gap: var(--space-lg);
    z-index: 999;
    overflow-y: auto;
    align-items: flex-start;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .products-grid    { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .hero-title       { font-size: clamp(3rem, 12vw, 5rem); }
}
