/* ============================================
   NFTY Custom Components
   ============================================ */

/* Navigation */
.nfty-nav {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 !important;
  min-height: 56px;
}

.nfty-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nfty-nav .navbar-brand {
  margin: 0;
  padding: 0;
  text-decoration: none !important;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nfty-nav .navbar-brand img {
  height: 35px;
  width: auto;
  display: block;
}

.nfty-nav .navbar-brand:hover,
.nfty-nav .navbar-brand:focus {
  text-decoration: none !important;
}

.nfty-nav .navbar-collapse {
  flex-grow: 0;
}

.nfty-nav .navbar-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

.nfty-nav .nav-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nfty-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.3s ease;
  display: inline-block;
}

.nfty-nav .nav-link:hover,
.nfty-nav .nav-link:focus,
.nfty-nav .nav-link.active {
  color: #ff6b35 !important;
  text-decoration: none !important;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

#home.hero-section.section-bg::before {
  background: rgba(0, 0, 0, 0.4) !important;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--nfty-orange);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 65ch;
}

/* Icon Box */
.icon-box {
  width: 64px;
  height: 64px;
  background: rgba(255, 107, 53, 0.15);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--nfty-orange);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 107, 53, 0.25);
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Dual Product Cards */
.product-card h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  font-weight: 700;
}

.product-card p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 65ch;
}

/* How It Works Steps */
.step-card {
  text-align: center;
  margin-bottom: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-8px);
}

.step-card .icon-box {
  width: 140px;
  height: 140px;
  background: rgba(255, 107, 53, 0.15);
  border: 3px solid rgba(255, 107, 53, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 4rem;
  color: var(--nfty-orange);
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--nfty-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.step-card h4 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.step-card p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Example Cards */
.example-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.2);
}

.example-card .card-body {
  padding: 1.5rem;
}

.example-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(0, 0, 0, 0.5);
}

.example-card-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--nfty-orange);
  text-align: left;
}

.example-step {
  padding: 0.75rem 0;
  border-bottom: none;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.example-step:last-child {
  margin-bottom: 0;
}

.example-step strong {
  color: var(--nfty-orange);
  display: inline;
  margin-right: 0.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
}

/* Use Case Carousel */
#useCasesCarousel {
  max-width: 900px;
  margin: 0 auto;
}

.carousel-inner {
  border-radius: 20px;
}

.use-case-slide {
  padding: 3rem 2rem;
  transition: all 0.4s ease;
}

.use-case-slide .icon-box {
  margin-bottom: 2.5rem;
}

.use-case-slide h4 {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.problem-solution {
  margin-bottom: 2rem;
}

.problem-solution strong {
  display: block;
  color: var(--nfty-orange);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.problem-solution p {
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 65ch;
}

/* Bootstrap Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--nfty-orange);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--nfty-orange-hover);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Bootstrap Carousel Indicators */
.carousel-indicators {
  margin-bottom: -2.5rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: var(--nfty-orange);
  width: 32px;
  border-radius: 6px;
}

/* Slideover Modal */
.slideover-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slideover-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.slideover-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  background: var(--nfty-dark-bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 2001;
}

.slideover-backdrop.active .slideover-panel {
  transform: translateX(0);
}

.slideover-header {
  padding: 2rem;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: var(--nfty-dark-bg);
  z-index: 10;
}

.slideover-header h3 {
  margin: 0;
  color: var(--nfty-orange);
  font-size: 1.75rem;
}

.slideover-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.slideover-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.slideover-body {
  padding: 2rem;
}

.slideover-content h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.slideover-content h4:first-child {
  margin-top: 0;
}

.slideover-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.slideover-content ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
}

.slideover-content ul li:last-child {
  border-bottom: none;
}

.slideover-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--nfty-orange);
  font-weight: 700;
}

.slideover-content ul li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--nfty-orange);
  background: var(--glass-hover);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

.form-success,
.form-error {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Footer */
.nfty-footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  color: var(--nfty-orange);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: min(350px, 65ch);
}

.footer-column h4 {
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--nfty-orange);
}

/* Mobile Menu */
.navbar-toggler {
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bootstrap Button Orange Theme Override */
.btn-primary {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #ff8555 !important;
  border-color: #ff8555 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

.btn-primary:active {
  background-color: #ff5520 !important;
  border-color: #ff5520 !important;
}

/* Bootstrap Offcanvas Dark Theme */
.offcanvas {
  background: var(--nfty-dark-bg);
  color: var(--text-secondary);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  color: var(--text-primary);
}

.offcanvas-body h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.offcanvas-body ul li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* CTA Card Titles - Force white text */
#contact .glass-card {
  color: #ffffff !important;
}

#contact .glass-card .card-title,
#contact .glass-card h5 {
  color: #ffffff !important;
  font-weight: 600;
}

#contact .glass-card .card-body {
  color: #ffffff !important;
}

/* How It Works Subhead */
.text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Responsive */
@media (max-width: 991px) {
  .nfty-nav .navbar-collapse {
    background: rgba(0, 0, 0, 0.98);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nfty-nav .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nfty-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    width: 100%;
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding-top: 60px;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .hero-cta-group .btn-nfty {
    width: 100%;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-contact a {
    display: block;
    margin: 0.5rem 0;
  }
  
  .slideover-panel {
    max-width: 100%;
  }
  
  .slideover-header,
  .slideover-body {
    padding: 1.5rem;
  }
}

/* CRITICAL: Bootstrap Button Orange Override - Must be last */
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible,
button.btn-primary:hover,
a.btn-primary:hover {
  background-color: #ff8555 !important;
  border-color: #ff8555 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

.btn.btn-primary:active,
button.btn-primary:active,
a.btn-primary:active {
  background-color: #ff5520 !important;
  border-color: #ff5520 !important;
  color: #ffffff !important;
}
