/*
Theme Name: LicenseToCarry Modernized
Theme URI: https://licensetocarry.com
Author: Advisory Engineering & Analytics, LLC
Author URI: https://aea-innovations.com
Description: Modernized dark-mode glassmorphic theme for LicenseToCarry.com.
Version: 1.0.1
Text Domain: ltc-modernized
*/

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  /* Color Palette (Sleek Dark Mode) */
  --bg-base: #020b14;
  --bg-surface: #071524;
  --bg-surface-glass: rgba(10, 25, 41, 0.7);
  --border-color: rgba(249, 115, 22, 0.15);
  --border-color-glow: rgba(249, 115, 22, 0.4);
  
  --primary: #f97316; /* Safety Orange */
  --primary-rgb: 249, 115, 22;
  --primary-hover: #ea580c;
  
  --secondary: #eab308; /* Amber Gold */
  --secondary-rgb: 234, 179, 8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #020b14;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Glow Shadows */
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.15);
  --shadow-glow-strong: 0 0 35px rgba(249, 115, 22, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border: 2px solid var(--bg-base);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Headings & Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Links & Buttons */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--text-inverse);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(249, 115, 22, 0.05);
  border-color: var(--secondary);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
}

.site-header.scrolled {
  background: rgba(2, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
  padding: 12px 0;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-left {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 36px;
}

.hero-cta-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-badges {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-badge-icon {
  color: var(--primary);
  font-weight: bold;
}

/* Hero Asset Display */
.hero-asset-container {
  position: relative;
}

.hero-illustration {
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(2, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-glass);
}

.badge-overlay-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.badge-overlay-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-inverse);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   Innovations / Cards Grid
   ========================================================================== */
.innovations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.innov-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.innov-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.innov-card p {
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ==========================================================================
   Instructor Section
   ========================================================================== */
.instructor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.instructor-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glass);
}

.instructor-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.instructor-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.instructor-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.instructor-desc {
  margin-bottom: 24px;
}

.credentials-list {
  list-style: none;
}

.credentials-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.credentials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: bold;
}

/* ==========================================================================
   Guarantee Section
   ========================================================================== */
.guarantee-box {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: center;
  border-left: 5px solid var(--primary);
}

.guarantee-badge {
  font-size: 3.5rem;
}

.guarantee-box h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(10, 25, 41, 0.3);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Active State */
.faq-item.active {
  background: rgba(10, 25, 41, 0.6);
  border-color: var(--border-color-glow);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content height */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #01070e;
  border-top: 1px solid rgba(249, 115, 22, 0.1);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-disclaimer {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-badge, .hero-cta-wrap, .hero-trust-badges {
    justify-content: center;
  }
  
  .hero-asset-container {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .innovations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .instructor-img-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .instructor-text {
    text-align: center;
  }
  
  .credentials-list li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .innovations-grid {
    grid-template-columns: 1fr;
  }
  
  .guarantee-box {
    grid-template-columns: 1fr;
    text-align: center;
    border-left: none;
    border-top: 5px solid var(--primary);
    padding-top: 24px;
  }
}
