/* ==============================================
   ZENXCREATIVES - Main Stylesheet
   Premium Creative Agency Website
   ============================================== */

/* Import design system */
@import url('variables.css');
@import url('reset.css');
@import url('typography.css');
@import url('layout.css');
@import url('components.css');
@import url('animations.css');
@import url('utilities.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ==============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--color-bg);
  /* Aipan-inspired Dot Pattern Background */
  background-image: 
    radial-gradient(var(--color-brand) 1px, transparent 1px),
    radial-gradient(var(--color-brand) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.8;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 80%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  border: 1px solid rgba(255, 67, 38, 0.1);
  /* Aipan geometric frame */
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 67, 38, 0.05) 20px, rgba(255, 67, 38, 0.05) 21px);
  z-index: 0;
}



.hero-content {
  position: relative;
  z-index: 10; /* Increased to ensure visibility above background layers */
  text-align: center;
  max-width: 1200px;
  padding: var(--space-6);
  margin-top: -40px; /* Slight upward nudge for better visibility */
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
  text-transform: uppercase;
  /* Art Deco / Bauhaus Fusion */
  font-family: var(--font-heading);
}

.hero-title span {
  color: var(--color-brand);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for 3x2 grid */
  gap: var(--space-8);
  margin-top: var(--space-12);
}

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

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

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-16);
}

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

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-full);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.process-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

.process-description {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Stats/Results Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: var(--transition-all);
}

.stat-item:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
}

.stat-number {
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.stat-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.testimonial-card {
  background: var(--color-bg-secondary);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: var(--transition-all);
}

.testimonial-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-6xl);
  color: var(--color-brand);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--color-brand);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.testimonial-position {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 900px;
  margin: var(--space-12) auto 0;
}

.faq-item {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  border: 1px solid transparent;
  transition: var(--transition-all);
}

.faq-item:hover {
  border-color: var(--color-brand);
}

.faq-question {
  width: 100%;
  padding: var(--space-6);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: var(--transition-colors);
}

.faq-question:hover {
  color: var(--color-brand);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--duration-base) var(--ease-out);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

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

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-brand);
}

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

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
}

.cta-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Footer - Decorative Crane Divider Style */
.footer {
  background: #A01010; /* Deep, rich crimson to match the image */
  color: white;
  padding: 150px 0 var(--space-8); /* Extra top padding for the crane divider */
  position: relative;
  overflow: hidden;
  border-top: none;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2px; /* Slight negative margin to prevent 1px gap */
  left: 0;
  width: 100%;
  height: 250px; /* Height of the divider image */
  background: url('../images/cranes-divider.png') center top / cover no-repeat;
  z-index: 0;
}

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

.footer::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  /* Large decorative Aipan motif (simulated with gradients) */
  background: radial-gradient(circle, transparent 40%, white 41%, white 42%, transparent 43%),
              radial-gradient(circle, transparent 50%, white 51%, white 52%, transparent 53%);
  opacity: 0.1;
}

.footer-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  border-bottom: 3px double white;
  padding-bottom: var(--space-2);
  display: inline-block;
  margin-bottom: var(--space-6);
}

.footer-link {
  color: var(--color-off-white); /* Warmer off-white */
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
  transform: translateX(8px);
}

.footer p, .footer span {
  color: var(--color-off-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: white;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: var(--transition-all);
}

.footer-social-link:hover {
  background: var(--color-brand);
  color: white;
  transform: translateY(-2px);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--color-text-secondary);
  transition: var(--transition-colors);
  font-size: var(--text-base);
}

.footer-link:hover {
  color: var(--color-brand);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: var(--space-12);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
