/**
 * Pixel Media Services - Main Stylesheet (Pure Native CSS)
 * Light Theme, Apple/Stripe-level Cleanliness
 */

:root {
  --pms-primary: #1b68f4;
  --pms-primary-hover: #1251c8;
  --pms-primary-light: #eff6ff;
  --pms-secondary: #0284c7;
  --pms-secondary-hover: #0369a1;
  --pms-accent-blue: #2563eb;
  --pms-accent-sky: #38bdf8;
  --pms-success: #10b981;
  --pms-warning: #f59e0b;
  
  --pms-text-main: #0f172a;
  --pms-text-muted: #64748b;
  --pms-text-light: #94a3b8;
  --pms-bg-body: #f8fafc;
  --pms-bg-card: #ffffff;
  --pms-bg-alt: #f1f5f9;
  --pms-border-color: #e2e8f0;
  --pms-border-focus: #93c5fd;

  --pms-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --pms-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  --pms-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
  --pms-shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12);

  --pms-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pms-font-heading: 'Plus Jakarta Sans', var(--pms-font-sans);
  
  --pms-radius-sm: 8px;
  --pms-radius-md: 14px;
  --pms-radius-lg: 22px;
  --pms-radius-full: 9999px;
  --pms-container-max: 1220px;
  --pms-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pms-font-heading);
  color: var(--pms-text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--pms-primary);
  text-decoration: none;
  transition: var(--pms-transition);
}

a:hover {
  color: var(--pms-secondary);
}

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

.container {
  width: 100%;
  max-width: var(--pms-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 860px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Gradients & Colors */
.text-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-white { background-color: #ffffff; }
.bg-alt { background-color: var(--pms-bg-alt); }
.bg-primary-light { background-color: var(--pms-primary-light); }

/* Spacing */
.py-section { padding-top: 80px; padding-bottom: 80px; }
.py-section-sm { padding-top: 50px; padding-bottom: 50px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--pms-radius-full);
  transition: var(--pms-transition);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--pms-radius-sm);
}

.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: var(--pms-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--pms-secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: #ffffff;
  border: 1px solid var(--pms-border-color);
  color: var(--pms-text-main);
  box-shadow: var(--pms-shadow-sm);
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--pms-primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background-color: #f8fafc;
  color: #1e3a8a;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--pms-radius-full);
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  background-color: var(--pms-bg-alt);
  color: var(--pms-text-muted);
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pms-border-color);
  z-index: 1000;
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding img, .custom-logo, .custom-logo-link img {
  max-height: 44px !important;
  max-width: 220px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.brand-logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pms-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
}

.brand-sub { color: #0284c7; }

.main-navigation {
  display: none;
}

@media (min-width: 992px) {
  .main-navigation { display: block; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  padding: 8px 0;
}

.nav-menu a:hover {
  color: #2563eb;
}

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--pms-border-color);
  border-radius: var(--pms-radius-md);
  box-shadow: var(--pms-shadow-xl);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-menu li { position: relative; }
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  display: block;
}

.nav-menu .sub-menu li a:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  display: none;
}

@media (min-width: 768px) {
  .btn-header-cta { display: inline-flex; }
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: block;
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  position: absolute;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -7px; }
.hamburger-inner::after { content: ''; bottom: -7px; }

/* Mobile Drawer */
.mobile-navigation-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: var(--pms-shadow-xl);
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

.mobile-navigation-drawer.is-open { right: 0; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--pms-border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.mobile-nav-title { font-size: 18px; font-weight: 700; }
.mobile-nav-close { font-size: 28px; background: none; border: none; cursor: pointer; }
.mobile-nav-menu { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-menu a { font-size: 16px; font-weight: 600; color: #0f172a; display: block; }
.mobile-nav-cta { margin-top: 24px; }

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--pms-border-color);
}

.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1.2fr 1.5fr 1.5fr; }
}

.footer-logo img { max-height: 44px; width: auto; }
.footer-bio { color: #64748b; font-size: 14px; margin: 16px 0 20px; line-height: 1.6; }
.footer-heading { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links, .footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #64748b; font-size: 14px; }
.footer-links a:hover { color: #2563eb; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #64748b; }
.footer-social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon:hover { background-color: #2563eb; color: #ffffff; }
.footer-bottom {
  border-top: 1px solid var(--pms-border-color);
  padding: 24px 0;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) {
  .footer-bottom-container { flex-direction: row; }
}
.footer-legal-menu { list-style: none; display: flex; gap: 20px; }
.footer-legal-menu a { color: #64748b; }

/* Grid Helper Classes */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
