/*
Theme Name: BoldPixel Landing (v4)
Author: BoldPixel
Description: Enhanced responsive landing page with advanced customizer options and modern design.
Version: 2.0
Text Domain: boldpixel-landing
*/

/* CSS Reset and Base Styles */
* { box-sizing: border-box; }
body { 
  font-family: 'Cairo', system-ui, Arial, sans-serif; 
  background: var(--light); 
  color: var(--accent); 
  margin: 0; 
  line-height: 1.6;
}

/* CSS Variables */
:root {
  --primary: #F0B43C;
  --dark: #111;
  --light: #FAF7F2;
  --accent: #1F2937;
  --wa: #25D366;
  --border-light: rgba(0,0,0,0.1);
  --shadow-light: rgba(0,0,0,0.05);
  --shadow-medium: rgba(0,0,0,0.1);
}

/* Layout Components */
.container { 
  max-width: 1200px; 
  margin: auto; 
  padding: 0 16px; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 36px); }

/* Button Styles */
.btn {
  display: inline-block;
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(16px, 2vw, 20px);
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 6px 25px rgba(240, 180, 60, 0.4);
  font-size: clamp(18px, 2.5vw, 22px);
  padding: 20px 40px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 180, 60, 0.4);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  animation: pulse 1.3s ease-in-out infinite;
  transform-origin: center;
}

.btn-wa:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.05);
}

/* Card Component */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Header */
header.sticky {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.header-row.centered {
  justify-content: center;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Logo */
.logo {
  height: 84px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23F0B43C" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--dark);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
}

.hero .lead {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--dark);
}

.hero .sub {
  color: rgba(0,0,0,0.7);
  max-width: 70ch;
  margin: 0 auto 30px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.hero .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero .trust-badges {
  opacity: 0.7;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
}

/* Section Styles */
section {
  padding: 60px 0;
}

section:nth-child(even) {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark);
}

/* Grid Layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  text-align: start;
}

.step-number {
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.step-desc {
  color: rgba(0,0,0,0.7);
  line-height: 1.5;
}

/* Testimonials */
.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  margin: 0 auto 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  text-align: center;
}

.testimonial::before {
  display: none;
}

.roas-image {
  max-width: 400px;
  margin: 30px auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #fff;
}

.roas-image img {
  width: 100%;
  height: auto;
  display: block;
}

.roas-caption {
  padding: 16px;
  text-align: center;
  color: rgba(0,0,0,0.7);
  font-weight: 500;
  font-size: 14px;
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 60, 0.2);
  border-radius: 25px;
  padding: 12px 20px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  border: 1px solid rgba(240, 180, 60, 0.3);
}

/* Contact Form */
.contact-form {
  background: var(--light);
  padding: 32px;
  border-radius: 20px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Form Styles */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.bpl-form {
  direction: rtl;
}

.bpl-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.bpl-form .field label {
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  margin: 0;
  width: 100%;
  text-align: center;
}

.bpl-form .field .wpcf7-form-control,
.bpl-form .field .input {
  width: 100%;
  max-width: 400px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
  text-align: center;
  transition: all 0.3s ease;
}

.bpl-form .field .wpcf7-form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 180, 60, 0.2);
}

.bpl-form .field textarea.wpcf7-form-control {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
  text-align: right;
}

.bpl-form .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.bpl-form .actions input[type="submit"],
.bpl-form .actions .wpcf7-submit {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(240, 180, 60, 0.3);
}

.bpl-form .actions input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 180, 60, 0.4);
}

.bpl-form .form-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

/* Remove CF7 default styling */
.bpl-form p { margin: 0; padding: 0; }
.bpl-form br { display: none; }

/* Sticky WhatsApp */
.sticky-wa {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--light);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-text {
  opacity: 0.7;
  font-size: 14px;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .header-row {
    justify-content: center;
    padding: 16px 0;
  }
  
  .header-row.centered {
    flex-direction: row;
  }
  
  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form {
    padding: 24px 16px;
    margin: 0 16px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sticky-wa {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero .lead {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .card {
    margin: 0 8px;
  }
}
