/* AWH Group — Base Styles */
/* Mobile-first, no JS frameworks, pure CSS */

:root {
  --color-primary: #1a1a2e;
  --color-accent: #0066ff;
  --color-bg: #0d0d1a;
  --color-surface: #16213e;
  --color-text: #e0e0e0;
  --color-text-muted: #a0a0b0;
  --color-white: #ffffff;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* Company accent overrides */
body.company-niche-digest { --color-accent: #ff6b35; }
body.company-growth-forge { --color-accent: #00c853; }
body.company-botops { --color-accent: #2196f3; }

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

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

body {
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

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

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-white);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* ---- NAV ---- */
.nav {
  background: var(--color-primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover { opacity: 0.9; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---- SECTIONS ---- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-surface);
}

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

/* ---- COMPANY GRID (Homepage) ---- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.company-card {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.company-card-accent {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.company-card h3 { margin-bottom: 0.5rem; }

.company-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.company-card .btn {
  font-size: 0.9rem;
  padding: 0.625rem 1.5rem;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.feature-item h3 {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-accent);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.pricing-card h3 { margin-bottom: 0.5rem; }

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 1rem 0;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--color-accent);
  font-weight: 700;
}

/* ---- HOW IT WORKS ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-surface));
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--color-primary);
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---- RESPONSIVE ---- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  .hero h1 { font-size: 3.5rem; }

  .company-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile small (480px and below) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .btn { width: 100%; }
  .pricing-card { padding: 1.5rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
  }
}
