/* =========================================== */
/* FRONT PAGE STYLES - COMBINED & OPTIMIZED */
/* =========================================== */

/* Main Front Page Container */
#primary.site-main .front-page-content {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ========== HERO SECTION ========== */
.front-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
  background: linear-gradient(135deg, var(--excel-green) 0%, var(--excel-dark-green) 100%);
  color: #fff;
  margin: 0;
}

.front-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.front-hero-content {
  flex: 1;
  min-width: 0;
  max-width: 600px;
}

.front-hero-content h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  color: #fff;
  font-weight: 700;
}

.front-hero-content p {
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.front-hero-buttons {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.front-hero-buttons .btn {
  display: inline-block;
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
}

.front-hero-buttons .btn-primary {
  background-color: var(--excel-green);
  color: #fff;
}

.front-hero-buttons .btn-light {
  background-color: #fff;
  color: var(--excel-green);
}

/* Consultation Form Styles (Merged from consultation-form.css) */
.front-hero-form {
  flex: 0 0 min(100%, 20rem);
  background-color: #fff;
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: front-fadeInUp 0.6s ease 0.3s forwards;
}

.front-hero-form h3 {
  color: var(--excel-green);
  margin: 0 0 clamp(0.75rem, 1.5vw, 1rem) 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.form-response-message {
  padding: 0.75rem;
  margin: 0.75rem 0 0;
  border-radius: 4px;
  font-size: 0.8125rem;
  text-align: center;
  display: none;
  line-height: 1.4;
}

.form-response-success {
  color: var(--excel-dark-green);
  background-color: var(--excel-light-green);
  border: 1px solid var(--excel-green);
}

.form-response-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.form-group {
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--excel-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--excel-border);
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--excel-green);
  box-shadow: 0 0 0 2px rgba(33, 115, 70, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 2rem;
}

.form-group textarea {
  min-height: 6.25rem;
  resize: vertical;
}

.consultation-submit {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--excel-green);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.3125rem;
  display: block;
}

.consultation-submit:hover {
  background-color: var(--excel-dark-green);
}

.consultation-submit.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.consultation-submit.loading::after {
  content: "";
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  top: 50%;
  left: 50%;
  margin: -0.5625rem 0 0 -0.5625rem;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

/* ========== STATS SECTION ========== */
.front-stats {
  background-color: var(--excel-white);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  text-align: center;
  margin: 0;
}

.front-stats-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.front-stats-header h2 {
  color: var(--excel-green);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.front-stats-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--excel-dark-green);
  border-radius: 2px;
}

.front-stats-header p {
  max-width: min(700px, 90vw);
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--excel-text);
}

.front-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 1.875rem);
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-stat-number {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--excel-green);
  margin-bottom: 0.625rem;
  line-height: 1;
}

.front-stat-label {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--excel-text);
}

/* ========== FEATURES SECTION ========== */
.front-features {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--excel-white);
  margin: 0;
}

.front-features-container {
  width: 100%;
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-features-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.front-features-header h2 {
  color: var(--excel-green);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.front-features-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--excel-dark-green);
  border-radius: 2px;
}

.front-features-header p {
  max-width: min(700px, 90vw);
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--excel-text);
}

.front-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 1.875rem);
}

.front-feature-card {
  background-color: var(--excel-light-green);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.875rem);
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.front-feature-icon {
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--excel-green);
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.front-feature-title {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  margin-bottom: clamp(0.75rem, 2vw, 0.9375rem);
  color: var(--excel-dark-green);
}

.front-feature-description {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--excel-text);
  line-height: 1.6;
}

/* ========== HOW IT WORKS SECTION ========== */
.front-how-it-works {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--excel-light-green);
  margin: 0;
}

.front-how-it-works .front-section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: min(1200px, 90vw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-how-it-works .front-section-header h2 {
  color: var(--excel-green);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.front-how-it-works .front-section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--excel-dark-green);
  border-radius: 2px;
}

.front-how-it-works .front-section-header p {
  max-width: min(700px, 90vw);
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--excel-text);
}

.front-steps-container {
  max-width: min(800px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-steps-container .step {
  display: flex;
  gap: clamp(1rem, 3vw, 1.875rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  align-items: flex-start;
  text-align: left;
}

.front-steps-container .step-number {
  background-color: var(--excel-green);
  color: #fff;
  width: clamp(2.5rem, 5vw, 3.125rem);
  height: clamp(2.5rem, 5vw, 3.125rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.front-steps-container .step-content {
  flex: 1;
}

.front-steps-container .step-content h3 {
  color: var(--excel-dark-green);
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  margin-bottom: clamp(0.5rem, 1vw, 0.625rem);
  line-height: 1.3;
}

.front-steps-container .step-content p {
  color: var(--excel-text);
  line-height: 1.6;
  margin: 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ========== TESTIMONIALS SECTION ========== */
.front-testimonials {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--excel-white);
  margin: 0;
}

.front-testimonials .front-section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: min(1200px, 90vw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-testimonials .front-section-header h2 {
  color: var(--excel-green);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.front-testimonials .front-section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--excel-dark-green);
  border-radius: 2px;
}

.front-testimonials .front-section-header p {
  max-width: min(700px, 90vw);
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--excel-text);
}

.front-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 1.875rem);
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.front-testimonial-card {
  background-color: var(--excel-white);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 1.875rem);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--excel-border);
}

.front-testimonial-text {
  font-style: italic;
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
  position: relative;
  color: var(--excel-text);
  line-height: 1.6;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.front-testimonial-text::before {
  content: '"';
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  color: var(--excel-green);
  opacity: 0.2;
  position: absolute;
  top: clamp(-0.75rem, -2vw, -1.25rem);
  left: clamp(-0.5rem, -1vw, -0.625rem);
}

.front-testimonial-author {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 0.9375rem);
}

.front-author-avatar {
  width: clamp(2.5rem, 5vw, 3.125rem);
  height: clamp(2.5rem, 5vw, 3.125rem);
  border-radius: 50%;
  background-color: var(--excel-light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--excel-green);
  font-weight: 700;
}

.front-author-info h3 {
  color: var(--excel-dark-green);
  margin-bottom: 0.3125rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.front-author-info p {
  color: #666;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin: 0;
}

/* ========== CTA SECTION ========== */
.front-cta-section {
  background: linear-gradient(135deg, var(--excel-green) 0%, var(--excel-dark-green) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  margin: 0;
}

.front-cta-container {
  width: 100%;
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
  position: relative;
  z-index: 2;
}

.front-cta-content {
  max-width: min(800px, 90vw);
  margin: 0 auto;
  text-align: center;
}

.front-cta-content h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
}

.front-cta-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.9);
}

.front-cta-buttons {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}

.front-cta-buttons .btn {
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background-color var(--transition-medium), border-color var(--transition-medium);
  font-size: clamp(0.875rem, 2vw, 1rem);
  border: 2px solid transparent;
}

.front-cta-buttons .btn-primary {
  background-color: #fff;
  color: var(--excel-green);
}

.front-cta-buttons .btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.front-cta-section::before {
  content: "";
  position: absolute;
  top: clamp(-2rem, -4vw, -3.125rem);
  right: clamp(-2rem, -4vw, -3.125rem);
  width: clamp(8rem, 16vw, 12.5rem);
  height: clamp(8rem, 16vw, 12.5rem);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.front-cta-section::after {
  content: "";
  position: absolute;
  bottom: clamp(-3rem, -6vw, -5rem);
  left: clamp(-3rem, -6vw, -5rem);
  width: clamp(12rem, 24vw, 18.75rem);
  height: clamp(12rem, 24vw, 18.75rem);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes front-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .front-hero-content,
  .front-hero-form,
  .front-stat-item,
  .front-feature-card,
  .front-testimonial-card,
  .front-cta-content,
  .front-features-header,
  .front-steps-container .step,
  .front-testimonials .front-section-header,
  .front-how-it-works .front-section-header {
    opacity: 0;
    animation: front-fadeInUp 1s ease forwards;
  }

  .front-hero-form { animation-delay: 0.3s; }
  .front-stat-item:nth-child(1) { animation-delay: 0.2s; }
  .front-stat-item:nth-child(2) { animation-delay: 0.4s; }
  .front-stat-item:nth-child(3) { animation-delay: 0.6s; }
  .front-stat-item:nth-child(4) { animation-delay: 0.8s; }
  .front-feature-card:nth-child(1) { animation-delay: 0.2s; }
  .front-feature-card:nth-child(2) { animation-delay: 0.4s; }
  .front-feature-card:nth-child(3) { animation-delay: 0.6s; }
  .front-feature-card:nth-child(4) { animation-delay: 0.8s; }
  .front-feature-card:nth-child(5) { animation-delay: 1s; }
  .front-feature-card:nth-child(6) { animation-delay: 1.2s; }
  .front-testimonial-card:nth-child(1) { animation-delay: 0.2s; }
  .front-testimonial-card:nth-child(2) { animation-delay: 0.4s; }
  .front-testimonial-card:nth-child(3) { animation-delay: 0.6s; }
}

/* ========== HOVER EFFECTS ========== */
@media (hover: hover) {
  .front-hero-buttons .btn-primary:hover {
    background-color: var(--excel-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .front-hero-buttons .btn-light:hover {
    background-color: var(--excel-light-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .front-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .front-cta-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .front-cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .consultation-submit:hover {
    background-color: var(--excel-dark-green);
  }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 62rem) {
  .front-hero {
    min-height: auto;
    padding: clamp(2rem, 5vw, 3rem) 0;
  }
  
  .front-hero-container {
    flex-direction: column;
  }
  
  .front-hero-form {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 28rem;
  }
  
  .front-hero-content {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .front-hero-buttons {
    justify-content: center;
  }
  
  .front-steps-container .step {
    flex-direction: column;
    gap: 0.9375rem;
    align-items: center;
    text-align: center;
  }
  
  .front-steps-container .step-number {
    margin-bottom: 0.625rem;
  }
}

@media (max-width: 48rem) {
  .front-hero-buttons,
  .front-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .front-hero-buttons .btn,
  .front-cta-buttons .btn {
    width: 100%;
    max-width: 18.75rem;
  }
  
  .front-features-grid {
    grid-template-columns: 1fr;
  }
  
  .front-testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .front-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .consultation-form {
    max-width: 100%;
    margin: 1.5rem auto 0;
  }
}

@media (max-width: 36rem) {
  .front-hero {
    padding: 1.5rem 0;
  }
  
  .front-hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .front-hero-content p {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }
  
  .front-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .front-steps-container {
    text-align: center;
  }
  
  .front-steps-container .step {
    align-items: center;
  }
  
  .front-steps-container .step-content {
    text-align: center;
  }
  
  .form-group textarea {
    min-height: 5rem;
  }
}