/* ========================================
   Forge Digital Theme CSS
   Fonts: Syne (headings), Outfit (body), DM Mono (accents)
   ======================================== */

:root {
  --white: #FFFFFF;
  --off-white: #FFFFFF;
  --dark-bg: #1A1A1A;
  --primary-text: #1A1A1A;
  --secondary-text: #6B6B6B;
  --accent-blue: #2563EB;
  --accent-hover: #1D4ED8;
  --border-color: #E5E5E3;
  --score-green: #10B981;
  --score-amber: #F59E0B;
  --score-red: #EF4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--primary-text);
  background-color: var(--white);
}

/* Subtle noise texture for paper quality */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
}

.font-syne {
  font-family: 'Syne', sans-serif;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.font-mono {
  font-family: 'DM Mono', monospace;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-text);
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}

/* ========================================
   Navigation
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  transition: all 0.2s ease;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-text);
  line-height: 1.2;
}

.logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-text);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--secondary-text);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link.active {
  color: var(--primary-text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--accent-blue);
}

.nav-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  display: inline-block;
}

.btn-get-started {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-get-started:hover {
  background-color: var(--accent-blue);
}

/* Mobile menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-text);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--dark-bg);
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-overlay a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.mobile-overlay a:hover,
.mobile-overlay a.active {
  color: var(--white);
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  background-color: transparent;
  color: var(--primary-text);
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  background-color: var(--white);
  color: var(--primary-text);
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-white:hover {
  background-color: var(--off-white);
  transform: translateY(-2px);
}

/* ========================================
   Cards
   ======================================== */

.card-light {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.card-light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-dark {
  background-color: var(--dark-bg);
  border-radius: 16px;
  padding: 40px;
  transition: box-shadow 0.2s ease;
}

.card-dark:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Sections
   ======================================== */

.bg-white {
  background-color: var(--white);
}

.bg-off-white {
  background-color: var(--off-white);
}

.bg-dark {
  background-color: var(--dark-bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

/* ========================================
   Grid System
   ======================================== */

.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

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

.col-7 {
  grid-column: span 1;
}

.col-5 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .col-7 {
    grid-column: span 7;
  }

  .col-5 {
    grid-column: span 5;
  }
}

/* ========================================
   Hero Blue Line
   ======================================== */

.blue-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent-blue);
}

.blue-line-short {
  width: 32px;
  height: 3px;
  background-color: var(--accent-blue);
}

/* ========================================
   Credibility Strip
   ======================================== */

.cred-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cred-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
}

/* ========================================
   Service Cards Asymmetric
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.services-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========================================
   Who We Work With
   ======================================== */

.work-with-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .work-with-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.work-with-small-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ========================================
   Service Detail Alternating
   ======================================== */

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 7fr 5fr;
  }

  .service-detail-grid.reversed {
    direction: rtl;
  }

  .service-detail-grid.reversed > * {
    direction: ltr;
  }
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.included-item:last-child {
  border-bottom: none;
}

.included-number {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--secondary-text);
  flex-shrink: 0;
}

.why-card {
  background-color: var(--off-white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* ========================================
   Contact Form
   ======================================== */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--primary-text);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--primary-text);
  transition: border-color 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   Audit Page
   ======================================== */

.audit-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .audit-input-row {
    flex-direction: row;
  }
}

.audit-input-row .form-input {
  flex: 1;
  padding: 16px;
}

.audit-results-card {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  background-color: var(--white);
}

@media (min-width: 1024px) {
  .audit-results-card {
    padding: 48px;
  }
}

.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.score-ring svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 64px;
  color: var(--primary-text);
}

.category-row {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border-color);
}

.category-row:first-child {
  border-top: none;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.progress-bar {
  height: 8px;
  background-color: var(--off-white);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.audit-cta-panel {
  margin-top: 48px;
  background-color: var(--off-white);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background-color: var(--dark-bg);
  color: var(--white);
}

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

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

.footer-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-link {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate > *:nth-child(1) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0ms; }
.hero-animate > *:nth-child(2) { animation: fadeInUp 0.6s ease forwards; animation-delay: 120ms; opacity: 0; }
.hero-animate > *:nth-child(3) { animation: fadeInUp 0.6s ease forwards; animation-delay: 240ms; opacity: 0; }
.hero-animate > *:nth-child(4) { animation: fadeInUp 0.6s ease forwards; animation-delay: 360ms; opacity: 0; }

/* ========================================
   Utilities
   ======================================== */

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

.max-w-560 {
  max-width: 560px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-640 {
  max-width: 640px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-3xl {
  max-width: 768px;
}

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

.rounded-xl {
  border-radius: 12px;
}

.rounded-2xl {
  border-radius: 16px;
}

.hidden {
  display: none;
}

/* ========================================
   Loading spinner
   ======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
