/*
Theme Name: Forge-Quote
Theme URI: https://forge-quote.com
Description: Custom theme for Forge-Quote - Smart Fabrication Quoting
Author: Forge-Quote
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: forge-quote
*/

:root {
  --background: 220 25% 5%;
  --foreground: 0 0% 95%;
  --card: 220 20% 8%;
  --card-foreground: 0 0% 95%;
  --primary: 25 95% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 15% 15%;
  --secondary-foreground: 0 0% 95%;
  --muted: 220 15% 20%;
  --muted-foreground: 220 10% 60%;
  --accent: 25 95% 53%;
  --accent-foreground: 0 0% 100%;
  --border: 220 15% 20%;
  --ring: 25 95% 53%;
  --radius: 0.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary));
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, hsl(25 95% 53%) 0%, hsl(35 100% 60%) 50%, hsl(25 95% 53%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effects */
.glass {
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: linear-gradient(145deg, rgba(25, 30, 40, 0.8) 0%, rgba(15, 20, 30, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glow effects */
.glow-text {
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
}

/* Gradient border */
.gradient-border {
  position: relative;
  background: hsl(var(--card));
  border-radius: var(--radius);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, hsl(25 95% 53%), hsl(35 100% 60%), hsl(25 95% 53%));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.6s ease-out forwards; }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 40, 60, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, hsl(220 25% 5%) 0%, hsl(220 20% 8%) 100%);
}

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, hsl(25 95% 53%) 0%, hsl(25 95% 45%) 100%);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  border: none;
  cursor: pointer;
  font-size: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: hsl(var(--foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: inherit;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Icon container */
.icon-container {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Stats counter */
.stat-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, hsl(25 95% 53%) 0%, hsl(35 100% 60%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-blur {
  background: rgba(10, 15, 25, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Link underline */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(25 95% 53%);
  transition: width 0.3s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* Section reveal animations */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Utility classes */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-20 { margin-top: 5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.object-cover { object-fit: cover; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }
.text-orange-500 { color: #f97316; }
.bg-orange-500 { background-color: #f97316; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.opacity-10 { opacity: 0.1; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Responsive */
@media (min-width: 640px) {
  .sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-hidden { display: none; }
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-flex-row { flex-direction: row; }
  .md-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md-text-5xl { font-size: 3rem; line-height: 1; }
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg-block { display: block; }
  .hero-headline { font-size: 4.5rem !important; }
  .step-connector { display: block !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline { font-size: 3.75rem !important; }
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block; }
  .desktop-nav { display: none !important; }
  #mobile-menu-btn { display: block !important; }
  .hero-headline { font-size: 2.5rem !important; }
  .footer-inner { flex-direction: column !important; text-align: center; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: flex; }
  .desktop-nav { display: flex !important; }
  #mobile-menu-btn { display: none !important; }
}

/* Connector line for steps */
.step-connector {
  position: absolute;
  top: 3rem;
  left: 100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.5) 0%, transparent 100%);
}

/* Hero image overlay */
.hero-image-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 1.5rem;
  filter: blur(48px);
}

/* CTA gradient background */
.cta-bg {
  background:
    linear-gradient(to right, rgba(234, 88, 12, 0.2), rgba(249, 115, 22, 0.1)),
    linear-gradient(to bottom, transparent, hsl(220, 25%, 5%));
}

/* Particle */
.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #f97316;
}

/* Footer border */
.footer-border {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Icon SVG sizing */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* SVG icon color */
.icon-orange { color: #f97316; }
.icon-white { color: #fff; }

svg.icon-orange { stroke: #f97316; fill: none; }
svg.icon-white { stroke: #fff; fill: none; }

/* Mobile menu */
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: block;
}

/* Nav transition */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.nav-fixed.scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Floating card positioning */
.floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
}

/* Image glow wrapper */
.image-glow-wrapper {
  position: relative;
}
.image-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 1.5rem;
  filter: blur(32px);
}

/* WordPress overrides */
.wp-site-blocks, .entry-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Page content styling for dark theme */
.page-content h1 { font-size: 2rem; font-weight: 700; color: #fff; margin: 2rem 0 1rem; }
.page-content h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 1.75rem 0 0.75rem; }
.page-content h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 1.5rem 0 0.75rem; }
.page-content h4 { font-size: 1.125rem; font-weight: 600; color: #e5e7eb; margin: 1.25rem 0 0.5rem; }
.page-content p { color: #d1d5db; margin-bottom: 1.25rem; }
.page-content a { color: #f97316; text-decoration: underline; transition: color 0.2s; }
.page-content a:hover { color: #fb923c; }
.page-content ul, .page-content ol { color: #d1d5db; margin: 1rem 0 1.25rem 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content ul li { list-style-type: disc; }
.page-content ol li { list-style-type: decimal; }
.page-content blockquote {
  border-left: 4px solid #f97316;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(249, 115, 22, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #d1d5db;
  font-style: italic;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #d1d5db;
}
.page-content th { background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 600; }
.page-content hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 2rem 0; }
.page-content img { border-radius: 0.5rem; margin: 1.5rem 0; }
.page-content strong { color: #fff; }
.page-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #f97316;
}
.page-content pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-content pre code { background: none; padding: 0; color: #d1d5db; }

/* WordPress block styles on dark theme */
.wp-block-separator { border-color: rgba(255, 255, 255, 0.1) !important; }
.has-background { border-radius: 0.5rem; }
