/* ==========================================================================
   SolarSoft Media – Theme Styles (Bootstrap 5.3 compatible)
   Author: SolarSoft Media, LLC
   Purpose: Brand color variables, component overrides, utilities
   ========================================================================== */

/* Root Variables (Light Mode) */
:root {
  /* Brand */
  --ssm-primary: #0B0E1A;      /* Indigo Midnight */
  --ssm-primary-600: #3757FF;  /* Royal Blue */
  --ssm-accent: #7C3AED;       /* Electric Violet */
  --ssm-highlight: #22D3EE;    /* Sky Cyan */

  /* Neutrals */
  --ssm-surface: #F8FAFC;      /* Soft White */
  --ssm-muted: #94A3B8;        /* Slate */
  --ssm-neutral-900: #0A0A0B;  /* Rich Black */

  /* Typography */
  --ssm-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Shadows & Radii */
  --ssm-radius: 14px;
  --ssm-shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --ssm-shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --ssm-shadow-lg: 0 16px 40px rgba(0,0,0,.16);

  /* Transitions */
  --ssm-ease: cubic-bezier(.2,.8,.2,1);
  --ssm-speed: 180ms;
}

/* System Dark Mode Tweaks */
@media (prefers-color-scheme: dark) {
  :root {
    --ssm-surface: #0D1117;
    --ssm-muted: #9AA4B2;
  }
}

/* Base Resets/Typographic Rhythm */
html, body {
  background-color: var(--ssm-surface);
  color: var(--ssm-neutral-900);
  font-family: var(--ssm-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 { letter-spacing: -0.02em; font-weight: 800; }
h2, .h2 { letter-spacing: -0.01em; font-weight: 700; }
h3, .h3 { font-weight: 700; }
.lead { color: var(--ssm-muted); }

/* Links */
a {
  color: var(--ssm-primary-600);
  text-decoration: none;
  transition: color var(--ssm-speed) var(--ssm-ease);
}
a:hover, a:focus {
  color: var(--ssm-accent);
  text-decoration: underline;
}

/* Navbar Overrides */
.navbar {
  --bs-navbar-padding-y: 0.8rem;
  --bs-navbar-brand-font-size: 1.125rem;
  box-shadow: var(--ssm-shadow-sm);
  background: linear-gradient(
    180deg,
    rgba(11, 14, 26, 0.94) 0%,
    rgba(11, 14, 26, 0.88) 100%
  );
  backdrop-filter: blur(8px);
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler {
  color: #E6ECF3;
}
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: var(--ssm-highlight);
}

/* Buttons */
.btn-brand {
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-border-radius: calc(var(--ssm-radius) - 6px);
  --bs-btn-bg: var(--ssm-primary-600);
  --bs-btn-border-color: var(--ssm-primary-600);
  --bs-btn-color: #fff;
  box-shadow: var(--ssm-shadow-sm);
  transition: transform var(--ssm-speed) var(--ssm-ease), box-shadow var(--ssm-speed) var(--ssm-ease);
}
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--ssm-shadow-md);
  background-color: #2d46d6;
  border-color: #2d46d6;
}
.btn-outline-brand {
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-border-radius: calc(var(--ssm-radius) - 6px);
  --bs-btn-border-color: var(--ssm-primary-600);
  --bs-btn-color: var(--ssm-primary-600);
  background: transparent;
}
.btn-outline-brand:hover {
  background: rgba(55, 87, 255, .08);
}

/* Cards */
.card {
  border: 0;
  border-radius: var(--ssm-radius);
  box-shadow: var(--ssm-shadow-sm);
}
.card:hover {
  box-shadow: var(--ssm-shadow-md);
}

/* Hero Section */
.ssm-hero {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(34, 211, 238, .20), transparent 60%),
    linear-gradient(180deg, rgba(11,14,26,1) 0%, rgba(11,14,26,.92) 60%, rgba(11,14,26,.88) 100%);
  color: #EAF2FF;
}
.ssm-hero .lead { color: #C9D7F0; }

/* Section Utilities */
.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.section-muted {
  background: linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(248,250,252,.65) 100%);
}

/* Badges */
.badge-brand {
  background: linear-gradient(90deg, var(--ssm-primary-600), var(--ssm-accent));
  color: #fff;
  border-radius: 999px;
  padding: .5rem .75rem;
  font-weight: 600;
}

/* Forms */
.form-control:focus, .form-select:focus {
  border-color: var(--ssm-primary-600);
  box-shadow: 0 0 0 .2rem rgba(55, 87, 255, .25);
}

/* Footer */
.ssm-footer {
  background: #0A0F1C;
  color: #DCE6F7;
}
.ssm-footer a { color: #DCE6F7; }
.ssm-footer a:hover { color: var(--ssm-highlight); }

/* Media Helpers */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility Helpers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ssm-primary-600);
  color: #fff;
  padding: .5rem .75rem;
  z-index: 999;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }