/*
Theme Name: FormSyncer Pro
Theme URI: https://formsyncer.com
Author: FormSyncer Team
Author URI: https://formsyncer.com
Description: A premium WordPress theme for FormSyncer - Generate PDF files from ClickUp forms with automated delivery via Google Drive, WhatsApp, and Email. Features modern design, pricing tables, and comprehensive subscription management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: business, saas, pdf-generation, subscription, responsive, modern, elegant
Text Domain: formsyncer
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #a855f7;
  --accent-color: #10b981;
  --gold: #fbbf24;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--light-bg);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: var(--transition);
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

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

.header-cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.header-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.cta-button-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .cta-button {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  margin: 0.5rem;
  flex-shrink: 0;
}

.hero-image {
  margin-top: 60px;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover .feature-icon::after {
  opacity: 0.3;
  inset: -4px;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

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

.section-header h2 {
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  visibility: visible !important;
  opacity: 1 !important;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 3px;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  z-index: -1;
  opacity: 0.1;
}

.pricing-card.featured .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.pricing-price {
  margin: 2rem 0;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-period {
  color: var(--text-light);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

.pricing-features li.unavailable {
  color: var(--text-light);
  opacity: 0.5;
}

.pricing-features li.unavailable::before {
  content: '✗';
  color: var(--text-light);
}

.pricing-cta-button {
  display: block;
  width: 100%;
  padding: 0.875rem 2rem;
  background: #3b82f6;
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.pricing-cta-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.pricing-card.featured .pricing-cta-button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.pricing-card.featured .pricing-cta-button:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
  border-color: var(--primary-light);
}

.testimonial-content {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-section .cta-button {
  background: var(--white);
  color: var(--primary-color);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  position: relative;
  z-index: 1;
  margin: 0.5rem;
}

.cta-section .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav a {
    display: block;
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .cta-button {
    width: 100%;
    display: block;
    text-align: center;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  /* Fix CTA button spacing on mobile */
  .cta-button + .cta-button {
    margin-top: 1rem;
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .cta-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   LEGAL PAGES (PRIVACY POLICY & TERMS) STYLING
   ========================================================================== */

.page-template-default .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Legal pages typography */
.page-id-8 .entry-content,
.page-id-9 .entry-content,
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.page .entry-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page .entry-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.page .entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page .entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page .entry-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.page .entry-content ul,
.page .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.page .entry-content li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.page .entry-content strong {
  font-weight: 600;
  color: var(--text-dark);
}

.page .entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.page .entry-content a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.page .entry-content em {
  font-style: italic;
  color: var(--text-light);
}

/* Contact page specific styling */
.page-id-7 .entry-content iframe {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
