/* ==========================================================================
   Wyzaerd Consulting — 2026 Site Styles
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --color-bg-primary: #0d0b14;
  --color-bg-secondary: #201a2e;
  --color-bg-tertiary: #241e33;
  --color-bg-elevated: #2d2640;

  --color-purple: #8651BC;
  --color-purple-light: #a87cdb;
  --color-purple-dark: #6b3fa0;
  --color-purple-glow: rgba(134, 81, 188, 0.3);

  --color-accent: #818cf8;
  --color-accent-light: #a5b4fc;
  --color-gold: #d4a843;

  --color-text: #f0f0f5;
  --color-text-secondary: rgba(240, 240, 245, 0.75);
  --color-text-muted: rgba(240, 240, 245, 0.5);

  --color-border: rgba(134, 81, 188, 0.2);
  --color-border-hover: rgba(134, 81, 188, 0.5);

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 4rem;
  --max-width: 1200px;
  --section-padding: clamp(4rem, 10vh, 8rem);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--color-purple-glow);
}

/* --- Font Face --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Base --- */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.35;
  color: var(--color-text);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 1.75rem + 2.5vw, 4rem); }
h2 { font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.75rem); }

p { color: var(--color-text-secondary); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-purple);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  z-index: 101;
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-purple);
  border-radius: 1px;
}

.nav-cta {
  background: var(--color-purple);
  color: var(--color-text) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--color-purple-light) !important;
}

.nav-cta.active::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px auto;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
}

/* --- Hero --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(134, 81, 188, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    var(--color-bg-primary);
  position: relative;
}

.hero-logo {
  width: clamp(200px, 30vw, 350px);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(134, 81, 188, 0.4));
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 30px rgba(134, 81, 188, 0.3)); }
  to   { filter: drop-shadow(0 0 50px rgba(134, 81, 188, 0.5)); }
}

.hero-title {
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  color: var(--color-purple-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero-years {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  opacity: 0.5;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* --- Products --- */
#products {
  padding: var(--section-padding) 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(134, 81, 188, 0.3));
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.product-card .product-type {
  font-size: 0.9rem;
  color: var(--color-purple-light);
  font-weight: 500;
}

.product-card .product-pitch {
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-card .product-desc {
  margin-bottom: 1.5rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-features span {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(134, 81, 188, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-purple);
  color: var(--color-text);
}

.btn-primary:hover {
  background: var(--color-purple-light);
}

.btn-outline {
  border: 1px solid var(--color-border-hover);
  color: var(--color-purple-light);
}

.btn-outline:hover {
  background: rgba(134, 81, 188, 0.1);
  border-color: var(--color-purple);
}

/* --- Services --- */
#services {
  padding: var(--section-padding) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.service-card .fa {
  font-size: 2rem;
  color: var(--color-purple);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

/* --- Expertise --- */
#expertise {
  padding: var(--section-padding) 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.expertise-spotlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.spotlight-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 3px solid var(--color-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spotlight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.spotlight-card .spotlight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.spotlight-card ul {
  margin-top: 0.75rem;
}

.spotlight-card li {
  padding: 0.2rem 0;
  color: var(--color-text-secondary);
  padding-left: 1rem;
  position: relative;
}

.spotlight-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-purple);
}

/* Verticals */
.verticals {
  margin-bottom: 2rem;
}

.verticals h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.vertical-tags {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: center;
  gap: 0.5rem 0.6rem;
}

.vertical-tags span {
  padding: 0.4rem 1.1rem;
  background: rgba(134, 81, 188, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Client list */
.client-list h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.client-names {
  columns: 1;
  gap: 1rem;
}

.client-names li {
  padding: 0.35rem 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  break-inside: avoid;
}

.client-names a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.client-names a:hover {
  color: var(--color-purple-light);
}

/* --- About --- */
#about {
  padding: var(--section-padding) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  line-height: 1.35;
}

.about-content h3 {
  color: var(--color-purple-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.about-content h3:first-of-type {
  margin-top: 0;
}

.competency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.competency-tags a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.competency-tags a:hover {
  background: rgba(134, 81, 188, 0.15);
  border-color: var(--color-purple);
  color: var(--color-text);
  transform: translateY(-1px);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--color-purple-light);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.resume-link:hover {
  color: var(--color-text);
}

/* --- Blog --- */
#blog {
  padding: var(--section-padding) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.blog-cards {
  max-width: 700px;
  margin: 0 auto;
}

.blog-card {
  display: block;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.blog-card:hover {
  border-color: var(--color-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--color-purple-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.blog-card p {
  margin-bottom: 1.25rem;
}

.blog-card-read {
  color: var(--color-accent-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.blog-card:hover .blog-card-read {
  color: var(--color-text);
}

/* --- Contact --- */
#contact {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(134, 81, 188, 0.12) 0%, transparent 60%),
    var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-card {
  max-width: 500px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
  border-radius: 16px;
  padding: 1.5rem 2.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-card .contact-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 20px rgba(134, 81, 188, 0.3));
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-card > p {
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact-method:hover {
  color: var(--color-purple-light);
}

.contact-method .fa {
  font-size: 1.2rem;
  color: var(--color-purple);
  width: 1.5rem;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.footer-items a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-items a:hover {
  color: var(--color-purple-light);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-logo {
    animation: none;
  }
  .scroll-indicator::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .client-names {
    columns: 2;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-spotlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-names {
    columns: 3;
  }
  .contact-methods {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Desktop nav */
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 100;
    padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
  }
  .nav-drawer.open {
    transform: translateX(0);
  }
  .nav-drawer a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition-fast);
  }
  .nav-drawer a:hover {
    color: var(--color-text);
  }
  .nav-drawer .nav-cta {
    display: inline-block;
    margin-top: 1rem;
    border-bottom: none;
    text-align: center;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  .nav-overlay.open {
    display: block;
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}
