/*
Theme Name: Spayo Premium Theme
Theme URI: https://www.spayo.xyz
Author: Spayo
Author URI: https://www.spayo.xyz
Description: Premium AI-powered design theme for Spayo
Version: 1.0.5
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spayo-theme
Domain Path: /languages

Tagline: Design ideas reimagined by AI.
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-left: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-left: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-left: 2rem;
}

ul, ol {
  margin-left: 2.5rem;
  margin-bottom: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: #ffd700;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #FF1493;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 2.5rem 0;
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Това е новият клас за "smart sticky" */
.site-header.header-up {
    transform: translateY(-100%);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

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

.site-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  color: #1a1a1a;
  font-weight: 500;
  transition: all 0.3s ease;
}

.site-navigation a:hover {
  color: #ffd700;
}

.cta-button {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
  color: white !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


@media (max-width: 768px) {
  .site-navigation {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    gap: 0;
  }
  
  .site-navigation.active {
      max-height: 100vh;
  }
  
  .site-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }
  
  .site-navigation .cta-button {
    margin: 1rem;
    display: block;
    text-align: center;
  }

  .site-header {
    padding: 0.5rem 1.5rem; /* Намалена височина */
  }
  
  .header-inner {
      padding: 0.5rem 0; /* Намалена височина */
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, #fffacd 0%, #fff5e6 50%, #ffe4e1 100%);
  padding: 6rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

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

.hero h1 {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 1.5rem;
  margin-left: 0;
  animation: fadeInUp 0.8s ease;
}

.hero-tagline {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero {
    margin-top: 60px; /* Тази стойност трябва да отговаря на новата височина на хедъра */
    padding: 3rem 0;
    min-height: auto;
  }
  
  .hero h1 {
    /* Намаляване на margin-top, ако хедърът е по-нисък */
    /* Вече има margin-top: 70px на .hero, което е добре. */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: #f9f5ff;
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 20, 147, 0.15);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.step p {
  color: #666;
  margin-bottom: 0;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 5rem 0;
  background: white;
}

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

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 20, 147, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

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

/* ============================================
   EXAMPLES SECTION
   ============================================ */
.examples {
  background: linear-gradient(135deg, #fffacd 0%, #fff5e6 100%);
  padding: 5rem 0;
}

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

.example-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.example-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.25);
}

.example-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-info {
  background: white;
  padding: 5rem 0;
}

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

.pricing-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-item:hover {
  border-color: #ffd700;
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.15);
}

.pricing-item h3 {
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.pricing-item ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-item li {
  padding: 0.5rem 0;
  color: #666;
  display: flex;
  align-items: center;
}

.pricing-item li:before {
  content: '✓';
  color: #ffd700;
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

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

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews {
  background: #f9f5ff;
  padding: 5rem 0;
}

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

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.review-stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-style: italic;
}

.review-author {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.review-role {
  color: #999;
  font-size: 0.85rem;
}

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

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
  background: white;
  padding: 3rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.badge-icon {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .badges-container {
    gap: 1.5rem;
  }

  .badge {
    font-size: 0.8rem;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  background: linear-gradient(135deg, #fffacd 0%, #fff5e6 100%);
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  background: white;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f9f5ff;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-content {
  padding: 1.5rem;
  color: #666;
  line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.final-cta {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.final-cta h2 {
  color: white;
  margin-bottom: 1rem;
  margin-left: 0;
}

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

.final-cta .btn {
  background: white;
  color: #FF1493;
  margin: 0 0.5rem;
}

.final-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .final-cta {
    padding: 2.5rem 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 3rem 0 1rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: #999;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo .logo-emoji {
  font-size: 2rem;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #999;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  color: white;
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0;
}

.footer-bottom p {
  margin-bottom: 0;
  color: #999;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   WORDPRESS BLOCKS STYLING
   ============================================ */
.wp-block-quote {
  border-left: 4px solid #ffd700;
  padding-left: 1.5rem;
  margin-left: 2rem;
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
}

.wp-block-image {
  margin: 2rem 0;
}

.wp-block-image img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wp-block-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wp-block-button__link {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%) !important;
  border-radius: 8px !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4) !important;
}

.wp-block-columns {
  gap: 2rem;
}

.wp-block-column {
  flex: 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; }

.gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #FF1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

button:focus,
a:focus,
input:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

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