/* Brodski Technologies — Brand Styles */

:root {
  --charcoal: #1C242A;
  --cyan: #00A8CC;
  --white: #FFFFFF;
  --light-bg: #F8F9FA;
  --max-width: 1200px;
  --content-width: 800px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img {
    height: 44px;
  }
}

.logo a {
  display: block;
  line-height: 0;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop > a,
.nav-desktop .nav-parent {
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-parent {
  cursor: pointer;
  user-select: none;
}

.nav-parent::after {
  content: '▾';
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  display: none;
  z-index: 200;
}

.nav-parent:hover .nav-dropdown,
.nav-parent:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--charcoal);
  font-weight: 400;
}

.nav-dropdown a:hover {
  background: var(--light-bg);
  text-decoration: none;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-icon {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: background 0.3s;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s;
}

.mobile-menu-icon::before {
  top: -8px;
}

.mobile-menu-icon::after {
  top: 8px;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a,
.nav-mobile .mobile-nav-parent {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--charcoal);
  border-top: 1px solid #E5E7EB;
  min-height: 44px;
}

.mobile-nav-parent {
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.mobile-nav-children {
  display: none;
  background: var(--light-bg);
}

.mobile-nav-children.active {
  display: block;
}

.mobile-nav-children a {
  padding-left: 2.5rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.hero-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2A3642 50%, var(--charcoal) 100%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 36, 42, 0.32);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: var(--content-width);
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-lede {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  
  .hero-fallback {
    display: block;
    animation: none;
  }

  .hero-canvas {
    display: none;
  }
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Section */
section {
  padding: 4rem 0;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-subhead {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Focus Cards */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.focus-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.focus-card h3 {
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.focus-card p {
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.focus-card a {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-weight: 600;
}

.focus-card a::after {
  content: '→';
  margin-left: 0.5rem;
  transition: margin-left 0.2s;
}

.focus-card a:hover::after {
  margin-left: 0.75rem;
}

/* Page Header */
.page-header {
  background: var(--light-bg);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #E5E7EB;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-section a {
  color: var(--cyan);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-logo {
  height: 32px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
