/* ============================================
   GSAP Website Templates Page Styles
   ============================================ */

/* --- Root Variables --- */
:root {
  --wt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --wt-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --wt-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --wt-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --wt-glow: 0 0 20px rgba(0, 255, 102, 0.25);
  --wt-glow-strong: 0 0 30px rgba(0, 255, 102, 0.4);
}

/* ========== HERO SECTION ========== */
.wt-hero {
  background: var(--gs-darker);
  position: relative;
  overflow: hidden;
}

/* Position the background animation behind the content */
.wt-hero .hero-bg-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wt-hero-content {
  position: relative;
  z-index: 2;
}

.wt-badge-container {
  display: flex;
  justify-content: center;
}

.wt-hero-title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
}

.wt-hero-title .text-primary {
  background: linear-gradient(135deg, #00FF66 0%, #00CC88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wt-hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.wt-hero-cta {
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== VALUE PROPOSITION SECTION ========== */
.wt-value-props {
  background: var(--gs-dark);
  padding: 5rem 2rem;
}

.wt-value-card {
  position: relative;
  background: var(--gs-darker);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: var(--wt-transition);
  overflow: hidden;
}

.wt-value-card:hover {
  border-color: var(--gs-primary);
  background: rgba(0, 255, 102, 0.05);
  transform: translateY(-4px);
  box-shadow: var(--wt-glow);
}

.wt-value-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 102, 0.15);
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: var(--wt-transition);
}

.wt-value-card:hover .wt-value-icon {
  background: rgba(0, 255, 102, 0.25);
  transform: scale(1.1);
}

.wt-value-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.wt-value-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== TEMPLATES SECTION HEADER ========== */
.wt-templates-section {
  background: var(--gs-dark);
  padding: 5rem 2rem;
}

.wt-section-header {
  margin-bottom: 3rem;
}

.wt-section-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* ========== FILTER BUTTONS ========== */
.wt-filter-controls {
  justify-content: center;
  margin-bottom: 3rem;
}

.wt-filter-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 102, 0.4);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: var(--wt-transition);
  white-space: nowrap;
}

.wt-filter-btn:hover {
  border-color: var(--gs-primary);
  color: var(--gs-primary);
  background: rgba(0, 255, 102, 0.1);
}

.wt-filter-btn.active {
  background: var(--gs-primary);
  color: var(--gs-dark);
  border-color: var(--gs-primary);
}

.wt-filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 102, 0.3);
}

/* ========== TEMPLATES GRID ========== */
.wt-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (min-width: 1200px) {
  .wt-templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .wt-templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .wt-templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========== TEMPLATE CARDS ========== */
.wt-template-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--wt-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wt-template-card:hover {
  border-color: rgba(0, 255, 102, 0.35);
  background: rgba(0, 255, 102, 0.03);
  transform: translateY(-8px);
  box-shadow: var(--wt-glow-strong);
}

/* Card Preview Area */
.wt-card-preview {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.1) 0%, rgba(0, 204, 136, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wt-card-preview i {
  font-size: 3rem;
  color: #fff;
  opacity: 0.8;
  transition: var(--wt-transition);
}

.wt-template-card:hover .wt-card-preview i {
  font-size: 3.5rem;
  opacity: 1;
}

/* Individual Preview Backgrounds */
.wt-preview-restaurant {
  background: linear-gradient(135deg, rgba(255, 120, 60, 0.15) 0%, rgba(255, 100, 40, 0.1) 100%);
}

.wt-preview-real-estate {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.15) 0%, rgba(80, 130, 255, 0.1) 100%);
}

.wt-preview-saas {
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.15) 0%, rgba(0, 204, 136, 0.1) 100%);
}

.wt-preview-fitness {
  background: linear-gradient(135deg, rgba(255, 80, 120, 0.15) 0%, rgba(255, 60, 100, 0.1) 100%);
}

.wt-preview-photography {
  background: linear-gradient(135deg, rgba(180, 120, 180, 0.15) 0%, rgba(160, 100, 160, 0.1) 100%);
}

.wt-preview-agency {
  background: linear-gradient(135deg, rgba(255, 180, 60, 0.15) 0%, rgba(255, 160, 40, 0.1) 100%);
}

.wt-preview-dental {
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.15) 0%, rgba(80, 180, 255, 0.1) 100%);
}

.wt-preview-law-firm {
  background: linear-gradient(135deg, rgba(150, 100, 200, 0.15) 0%, rgba(130, 80, 180, 0.1) 100%);
}

.wt-preview-construction {
  background: linear-gradient(135deg, rgba(255, 150, 80, 0.15) 0%, rgba(255, 130, 60, 0.1) 100%);
}

.wt-preview-salon {
  background: linear-gradient(135deg, rgba(255, 120, 180, 0.15) 0%, rgba(255, 100, 160, 0.1) 100%);
}

.wt-preview-plumber {
  background: linear-gradient(135deg, rgba(80, 180, 220, 0.15) 0%, rgba(60, 160, 200, 0.1) 100%);
}

.wt-preview-auto-repair {
  background: linear-gradient(135deg, rgba(200, 100, 50, 0.15) 0%, rgba(180, 80, 30, 0.1) 100%);
}

.wt-preview-coffee-shop {
  background: linear-gradient(135deg, rgba(180, 100, 60, 0.15) 0%, rgba(160, 80, 40, 0.1) 100%);
}

.wt-preview-yoga-studio {
  background: linear-gradient(135deg, rgba(150, 200, 180, 0.15) 0%, rgba(130, 180, 160, 0.1) 100%);
}

.wt-preview-wedding-planner {
  background: linear-gradient(135deg, rgba(255, 150, 180, 0.15) 0%, rgba(255, 130, 160, 0.1) 100%);
}

.wt-preview-plant-shop {
  background: linear-gradient(135deg, rgba(100, 200, 100, 0.15) 0%, rgba(80, 180, 80, 0.1) 100%);
}

.wt-preview-pet-services {
  background: linear-gradient(135deg, rgba(200, 150, 100, 0.15) 0%, rgba(180, 130, 80, 0.1) 100%);
}

.wt-preview-tattoo-studio {
  background: linear-gradient(135deg, rgba(100, 50, 100, 0.15) 0%, rgba(80, 30, 80, 0.1) 100%);
}

.wt-preview-accounting {
  background: linear-gradient(135deg, rgba(100, 150, 200, 0.15) 0%, rgba(80, 130, 180, 0.1) 100%);
}

.wt-preview-cleaning-service {
  background: linear-gradient(135deg, rgba(100, 220, 200, 0.15) 0%, rgba(80, 200, 180, 0.1) 100%);
}

/* Coming Soon Badge */
.wt-card-preview {
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
}

/* Card Body */
.wt-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wt-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.wt-card-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Card Tags/Badges */
.wt-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wt-card-tags .badge {
  position: static;
  background: rgba(0, 255, 102, 0.15);
  color: var(--gs-primary);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 999px;
  font-weight: 500;
}

/* Card Footer */
.wt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.wt-card-link {
  color: var(--gs-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--wt-transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wt-card-link:hover {
  transform: translateX(4px);
}

.wt-card-link i {
  font-size: 0.75rem;
  transition: var(--wt-transition);
}

.wt-card-link:hover i {
  transform: translateX(2px);
}

/* Card Animation Class */
.wt-card-animate {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

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

/* Staggered animation for cards */
.wt-template-card:nth-child(1) { animation-delay: 0.05s; }
.wt-template-card:nth-child(2) { animation-delay: 0.1s; }
.wt-template-card:nth-child(3) { animation-delay: 0.15s; }
.wt-template-card:nth-child(4) { animation-delay: 0.2s; }
.wt-template-card:nth-child(5) { animation-delay: 0.25s; }
.wt-template-card:nth-child(6) { animation-delay: 0.3s; }
.wt-template-card:nth-child(n+7) { animation-delay: 0.35s; }

/* ========== CONTENT PROSE SECTION ========== */
.wt-content-prose {
  max-width: 750px;
  margin: 0 auto;
}

.wt-content-prose p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.wt-content-prose p.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ========== WHY SECTION ========== */
.wt-why-section {
  background: var(--gs-darker);
  padding: 5rem 2rem;
}

/* ========== HOW IT WORKS SECTION ========== */
.wt-how-it-works {
  background: var(--gs-dark);
  padding: 5rem 2rem;
}

.wt-step-card {
  padding: 2rem 1.5rem;
  transition: var(--wt-transition);
}

.wt-step-number {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 102, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--wt-transition);
}

.wt-step-card:hover .wt-step-number {
  background: rgba(0, 255, 102, 0.25);
  transform: scale(1.1) rotateY(5deg);
}

.wt-step-number span {
  color: var(--gs-primary);
  font-weight: 900;
  font-size: 2.5rem;
}

.wt-step-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.wt-step-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* ========== FAQ SECTION ========== */
.wt-faq-section {
  background: var(--gs-darker);
  padding: 5rem 2rem;
}

.wt-faq-accordion {
  max-width: 750px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--gs-dark);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--wt-transition);
}

.accordion-item:hover {
  border-color: rgba(0, 255, 102, 0.4);
}

.accordion-button {
  background: var(--gs-dark) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none !important;
  transition: var(--wt-transition);
  font-size: 1rem;
}

.accordion-button:hover:not(.collapsed) {
  background: rgba(0, 255, 102, 0.08) !important;
  color: var(--gs-primary) !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(0, 255, 102, 0.1) !important;
  color: var(--gs-primary) !important;
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300FF66' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  transition: var(--wt-transition);
}

.accordion-body {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 1.5rem;
}

/* ========== CTA SECTION ========== */
.wt-cta-section {
  background: var(--gs-dark);
  padding: 5rem 2rem;
  position: relative;
}

.wt-cta-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.wt-cta-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.wt-cta-form {
  max-width: 500px;
  margin: 0 auto;
}

.wt-email-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: #fff;
  transition: var(--wt-transition);
  flex: 1;
  min-width: 250px;
}

.wt-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.wt-email-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gs-primary);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.wt-cta-submit {
  white-space: nowrap;
}

/* Related Links */
.wt-related-link {
  background: var(--gs-dark);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: #fff;
  text-decoration: none;
  transition: var(--wt-transition);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.wt-related-link:hover {
  border-color: var(--gs-primary);
  background: rgba(0, 255, 102, 0.05);
  transform: translateX(4px);
}

.wt-related-link h3 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.wt-related-link p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wt-related-link i {
  color: var(--gs-primary);
  transition: var(--wt-transition);
  font-size: 1.25rem;
}

.wt-related-link:hover i {
  transform: translateX(4px);
}

/* ========== RELATED SECTION ========== */
.wt-related-section {
  background: var(--gs-darker);
  padding: 5rem 2rem;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 991px) {
  .wt-section-title {
    font-size: 1.75rem;
  }

  .wt-hero-title {
    font-size: 2rem;
  }

  .wt-cta-form {
    flex-direction: column;
  }

  .wt-email-input {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .wt-templates-section,
  .wt-value-props,
  .wt-why-section,
  .wt-how-it-works,
  .wt-faq-section,
  .wt-cta-section,
  .wt-related-section {
    padding: 3rem 1rem;
  }

  .wt-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .wt-hero-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .wt-hero-subtitle {
    font-size: 1rem;
  }

  .wt-card-preview {
    height: 150px;
  }

  .wt-card-preview i {
    font-size: 2.5rem;
  }

  .wt-template-card:hover .wt-card-preview i {
    font-size: 3rem;
  }

  .wt-card-body {
    padding: 1.25rem;
  }

  .wt-card-title {
    font-size: 1rem;
  }

  .wt-card-description {
    font-size: 0.85rem;
  }

  .wt-step-number {
    width: 70px;
    height: 70px;
  }

  .wt-step-number span {
    font-size: 2rem;
  }

  .wt-step-title {
    font-size: 1.1rem;
  }

  .wt-step-desc {
    font-size: 0.9rem;
  }

  .wt-cta-title {
    font-size: 1.5rem;
  }

  .wt-cta-subtitle {
    font-size: 1rem;
  }

  .wt-filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .accordion-body {
    padding: 1.25rem;
    font-size: 0.9rem;
  }

  .wt-related-link {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wt-related-link i {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .wt-hero {
    padding: 4rem 1rem 3rem;
  }

  .wt-hero-content {
    padding: 0 1rem;
  }

  .wt-hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .wt-hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .wt-hero-cta {
    gap: 0.75rem;
  }

  .wt-hero-cta .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem !important;
  }

  .wt-badge-container .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .wt-filter-controls {
    flex-direction: column;
  }

  .wt-filter-btn {
    width: 100%;
  }

  .wt-card-preview {
    height: 120px;
  }

  .wt-card-preview i {
    font-size: 2rem;
  }

  .wt-template-card:hover .wt-card-preview i {
    font-size: 2.5rem;
  }

  .wt-templates-grid {
    gap: 1rem;
  }

  .wt-value-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .wt-step-card {
    padding: 1.5rem 1rem;
  }

  .wt-cta-form {
    gap: 0.75rem;
  }

  .wt-cta-title {
    font-size: 1.25rem;
  }

  .wt-cta-subtitle {
    font-size: 0.95rem;
  }

  .wt-content-prose p {
    font-size: 0.95rem;
  }

  .wt-content-prose p.lead {
    font-size: 1rem;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== UTILITY CLASSES ========== */
.min-vh-75 {
  min-height: 75vh;
}

.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-light-secondary {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Webflow Section ────────────────────────── */

.wt-webflow-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--wt-transition, all 0.3s ease);
}

.wt-webflow-card:hover {
  border-color: rgba(0, 255, 102, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 255, 102, 0.08);
}

.wt-webflow-icon {
  transition: transform 0.3s ease;
}

.wt-webflow-card:hover .wt-webflow-icon {
  transform: scale(1.15);
}

.bg-opacity-15 {
  opacity: 0.15;
}

.bg-opacity-20 {
  opacity: 0.2;
}

.bg-opacity-75 {
  opacity: 0.75;
}
