﻿/* ==========================================================================
   Home Page Styles
   ========================================================================== */


   
/* Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 0px 0 80px 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Background Blobs - Matching Original Design */
.blob {
  position: absolute;
  opacity: 1;
  pointer-events: none;
}

.blob-top-orange {
  width: 64.6%;
  height: auto;
  top: -50px;
  right: -5%;
}

.blob-top-cyan {
  width: 42.6%;
  height: auto;
  top: 50px;
  left: -24%;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
  padding-top: 0px;
}

.hero-tagline {
  font-size: 20px;
  color: rgba(22,115,167,1);
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-title {
  font-size: 47px;
  font-weight: var(--weight-bold);
  line-height: 70px;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--text-dark);
  line-height: 50px;
  margin-bottom: 50px;
  letter-spacing: 0.04px;
}

.hero-text .btn {
  margin-left: 0;
  height: 56px;
  padding: 16px 28px;
  font-size: 18px;
}

/* Hero Images - Three Column Overlapping Layout */
.hero-images:not(.hero-collage-wrap){
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 656px;
  margin-left: 25px;
}

.hero-images:not(.hero-collage-wrap) img{
  position: absolute;
  width: 268px;
  height: 524px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-images:not(.hero-collage-wrap) img:nth-child(1){
  left: 0;
  top: 28px;
  z-index: 3;
}
.hero-images:not(.hero-collage-wrap) img:nth-child(2){
  left: 256px;
  top: 0;
  z-index: 2;
}
.hero-images:not(.hero-collage-wrap) img:nth-child(3){
  left: 512px;
  top: 68px;
  z-index: 1;
}


.hero-images.hero-collage-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-left: 0;
}

.hero-images.hero-collage-wrap img.hero-collage{
  position: relative;
  width: min(760px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 20px;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.12));
  border-radius: 0 !important;
}

/* Problem Statement Section */
.problem-section {
  position: relative;
  background-color: transparent;
  padding: 25px 0;
  overflow: visible;
}

.problem-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.problem-left {
  display: flex;
  flex-direction: column;
}

.problem-heading {
    font-size: 42px;
  font-weight: var(--weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  letter-spacing: 0.04px;
}

.audit-card {
  background-color: rgba(254,250,246,1);
  border-radius: 20px;
  padding: var(--spacing-xl);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.161);
  max-width: 915px;
}

.audit-content {
  display: flex;
  gap: 20px;
  margin-bottom: var(--spacing-sm);
  align-items: center;
}

.audit-text {
  flex: 2;
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-dark);
  letter-spacing: 0.04px;
}

.audit-image img {
  width: 400px;
  height: 250px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.audit-form {
  position: relative;
  width: 100%;
  max-width: 730px;
}

.audit-input {

  height: 56px;
  border-radius: 28px;
  border: 2px solid rgba(174,174,174,0.3);
  padding: 0 var(--spacing-lg);
  font-size: 18px;
  color: var(--text-dark);
  background-color: white;
}

.audit-input::placeholder {
  color: rgba(174,174,174,1);
  font-size: 18px;
}

.audit-button {

  height: 56px;
  border-radius: 28px;
  background-color: var(--primary-orange);
  color: var(--text-black);
  font-weight: var(--weight-medium);
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.audit-button:hover {
  background-color: var(--primary-orange-alt);
}

.problem-right {
  display: flex;
  align-items: center;
}

.problem-text {
  flex: 1;
}

.problem-intro {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.5;
  letter-spacing: 0.04px;
}

.solution-heading {
  font-size: 26px;
  font-weight: var(--weight-bold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.04px;
}

.problem-description {
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.5;
  letter-spacing: 0.04px;
}

/* Start Now Section */
.start-now-section {
  padding: 100px 0;
  background-color: transparent;
}

.start-now-section .section-title {
  font-size: 42px;
  font-weight: var(--weight-bold);
  margin-bottom: 60px;
  letter-spacing: 0.1px;
  text-wrap: balance;
  text-wrap: balance;
}

.start-now-content {
  background-color: rgba(254,250,246,1);
  border-radius: 20px;
  padding: var(--spacing-xl);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.161);
  display: grid;
  grid-template-columns: 686px 1fr;
  gap: 55px;
  align-items: center;
  max-width: 1520px;
  margin: 0 auto;
}

.start-now-image {
  width: 686px;
  height: 470px;
}

.start-now-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.start-now-benefits {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-item {
  padding: 20px 0;
}

.benefit-item h3 {
  font-size: 16px;
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 24px;
  letter-spacing: 0.04px;
}

.benefit-item p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-dark);
  letter-spacing: 0.04px;
  margin: 0;
}

.benefit-separator {
  border: none;
  border-top: 1px solid rgba(112,112,112,1);
  margin: 0;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.161));
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  padding: 0px 0;
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.blob-testimonials-left {
  width: 46.5%;
  height: auto;
  position: absolute;
  left: -5%;
  top: 0;
}

.blob-testimonials-right {
  width: 40.8%;
  height: auto;
  position: absolute;
  right: 5%;
  top: 20%;
}

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

.section-title {
  font-size: 42px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04px;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  text-wrap: balance;
}

.testimonialsSwiper {
  padding: var(--spacing-md) 0 var(--spacing-xl) 0;
}

.testimonialsSwiper .swiper-pagination {
  bottom: 0;
}

.categoriesSwiper {
  position: relative;
  padding: var(--spacing-md) 0 var(--spacing-md) 0;
}

.categoriesSwiper .categories-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.categoriesSwiper .swiper-button-next,
.categoriesSwiper .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-orange);
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.categoriesSwiper .swiper-button-next:after,
.categoriesSwiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
}

.categoriesSwiper .swiper-button-next,
.categoriesSwiper .swiper-button-prev,
.testimonialsSwiper .swiper-button-next,
.testimonialsSwiper .swiper-button-prev {
  z-index: 3;
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonialsSwiper .swiper-button-next,
.testimonialsSwiper .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-orange);
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.testimonialsSwiper .swiper-button-next:after,
.testimonialsSwiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
}

.testimonialsSwiper .swiper-pagination {
  bottom: 0;
}


.categoriesSwiper .swiper-button-disabled {
  opacity: 0.35;
}

.categoriesSwiper .swiper-pagination {
  bottom: 0;
}

.swiper-pagination-bullet {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--text-gray-light);
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-orange);
  width: 77px;
}

/* Business Categories Section */
.business-categories {
  background-color: transparent;
}

.business-categories .section-title {
  text-align: left;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .categoriesSwiper .categories-nav {
    display: none;
  }

  .testimonials-nav {
    display: none;
  }

  .section-title {
    font-size: var(--text-2xl);
  }
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-gray);
  text-align: left;
  margin-bottom: var(--spacing-sm);
}

.category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 12px 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-title {
  padding: 0px 0px 0px 4px;
  font-size: 14px;
  font-weight: var(--weight-bold);
  margin-bottom: var(--spacing-sm);
  text-align: left;
  color: var(--text-dark);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 60%; /* Creates square aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 4px;
  min-height: 6em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-size: 12px;
}

.card-content p {
  color: var(--text-gray);
  margin-bottom: 2px;
  flex-grow: 1;
  font-size: 12px;
  text-align: left;
}

.learn-more {
  color: var(--primary-orange);
  font-weight: var(--weight-bold);
  transition: color var(--transition-fast);
  text-align: right;
  align-self: flex-end;
}

.learn-more:hover {
  color: var(--primary-orange-alt);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-md) 0;
}

.cta-card {
  text-align: center;
  padding: var(--spacing-2xl);
}

.cta-card h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-lg);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-layout,
  .problem-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-sm) 0;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-images {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: var(--text-2xl);
    text-wrap: balance;
}
  
  .categories-grid {
    gap: var(--spacing-sm);
  }
  
  
  
  .audit-input {
    width: 100%;
  }
  
  .audit-button {
    position: relative;
    left: 0;
    width: 100%;
    margin-top: var(--spacing-sm);
  }
  
  .audit-content {
    flex-direction: column;
  }
  
  .start-now-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .start-now-image {
    width: 100%;
    height: auto;
  }
}
.swiper {
  overflow: hidden;
  position: relative;
}

.hero-collage-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-collage{
  width: min(760px, 100%);
  height: auto;
  display: block;
  border-radius: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.hero-layout{
  overflow: visible;
}


.hero-images.hero-collage-wrap{
  height: auto;
  margin-left: 0;
  justify-content: center;
  align-items: center;
}

.hero-images.hero-collage-wrap img.hero-collage{
  position: relative;   
  left: auto;           
  top: auto;            
  width: min(760px, 100%);
  height: auto;        
  object-fit: contain;  
  display: block;
  margin-top: 20px;
  border-radius: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.hero-tagline{
  font-size: clamp(13px, 1.4vw, 20px);
}

.hero-title{
  font-size: clamp(34px, 3.6vw, 47px);
  line-height: 1.12;
}

.hero-subtitle{
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: clamp(28px, 2.4vw, 42px);
  margin-bottom: clamp(24px, 3vw, 50px);
}


.hero-layout{
  gap: clamp(28px, 4vw, 60px);
}


.hero-collage{
  width: min(100%, clamp(520px, 54vw, 740px));
  height: auto;
}

.problem-layout{
  display: grid;
  grid-template-columns: 1.35fr 1fr; 
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
}


.problem-right{
  padding-left: 10px;
}


.audit-card{
  width: min(760px, 100%);   
  padding: 32px;             
  margin-left: 0;
}


.audit-content{
  display: flex;
  gap: 20px;
  align-items: center;
}

.audit-form{
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;   
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}


.audit-input{
  width: auto;               
  flex: 1 1 360px;           
  max-width: 440px;          
  height: 56px;
}


.audit-button{
  position: static;          
  width: auto;
  min-width: 260px;          
  height: 56px;
  white-space: nowrap;
  border-radius: 28px;
}


@media (max-width: 980px){
  .problem-layout{
    grid-template-columns: 1fr;  
    gap: 24px;
  }

  .audit-form{
    flex-direction: column;
    align-items: stretch;
  }

  .audit-input{
    max-width: 100%;
  }

  .audit-button{
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {

  .audit-card{
    padding: 18px !important;
  }
  
  .audit-content{
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .audit-text{
    margin: 0 !important;
  }

  /* 2) imagen completa en mobile */
  .audit-image{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .audit-image img{
    width: 100% !important;
    height: auto !important;
    max-width: 340px;         /* ajusta si quieres */
    margin: 0 auto !important;
    display: block;
  }


  /* 3) form: input + botón centrados y estables */
  .audit-form{
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .audit-input{
    display: block;
    width: 100% !important;

    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;

    padding: 0 18px !important;
    border-radius: 999px !important;   
    box-sizing: border-box;

    font-size: 16px;                  
    line-height: 52px;                
  }

  .audit-button{
    position: static !important;
    left: auto !important;
    top: auto !important;

    width: 100% !important;
    height: 52px !important;
    border-radius: 999px !important;  /* <- pill */
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
  }
}

@media (max-width: 768px){

  .audit-card{
    padding: 18px !important;
  }

  .audit-content{
    margin-bottom: 14px !important;
    gap: 12px !important;
  }

  /* Imagen completa en mobile */
  .audit-image{
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 8px 0 2px;
  }
  .audit-image img{
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

  /* Form compacto */
  .audit-form{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }

  .audit-form .audit-input{
    width: 100% !important;
    height: 52px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: normal !important;
  }

  
  .audit-form .btn.audit-button{
    width: 100% !important;

 
    min-height: 52px !important;
    height: auto !important;

    padding: 0 18px !important;   
    border-radius: 999px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1.1 !important;    
    font-size: 16px !important;
    white-space: nowrap !important;

    margin-top: 0 !important;      
  }
}
.cta-card{
  text-align: center;
}

.cta-card h2{
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px){

  .cta-section{
    padding: 24px 0 !important;
  }

  .cta-card{
    padding: 22px 18px !important;
    border-radius: 20px;
  }

  /* título centrado + control de ancho */
  .cta-card h2{
    text-align: center !important;
    width: 100%;
    max-width: 18ch;              /* evita que se “desparrame” */
    margin: 0 auto 16px !important;

    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.05 !important;
    text-wrap: balance;
  }

  /* botón igual a los otros (pill) + texto completo */
  .cta-card .btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 52px !important;       /* si tus otros usan 56, cámbialo a 56 */
    padding: 0 22px !important;
    border-radius: 999px !important;

    font-size: 16px !important;
    line-height: 1 !important;
    white-space: nowrap !important; /* no partir “Let’s Talk” */
    min-width: 220px;              /* que no quede mini */
    max-width: 100%;
  }
}

/* =========================================
   HOME TYPOGRAPHY – HARMONY PACK
   (solo tipografía / no botones / no layout)
   ========================================= */

/* Fix: estás usando --text-dark en home.css y no existe en variables.css */
:root{
  --text-dark: var(--text-dark-gray);
}

/* 1) HERO: el problema aquí es el line-height (antes era gigantesco) */
.hero-tagline{
  font-size: clamp(14px, 0.9vw, 16px) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.hero-title{
  font-size: clamp(40px, 3.4vw, 56px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.hero-subtitle{
  font-size: clamp(16px, 1.05vw, 18px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

/* 2) TITULOS DE SECCIÓN: misma escala en todas las secciones */
.section-title,
.problem-heading{
  font-size: clamp(32px, 2.3vw, 42px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

/* 3) “ElevateOne changes that.” debe ser un H3 consistente (no 26 bold bruto) */
.solution-heading{
  font-size: clamp(20px, 1.5vw, 24px) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* 4) Párrafos generales (Why / audit / etc.) */
.problem-intro,
.problem-description,
.audit-text{
  font-size: clamp(16px, 1.05vw, 18px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

/* 5) BENEFITS: aquí se siente “desbalance” (h3 16 / p 14). Súbelo un escalón */
.benefit-item h3{
  font-size: clamp(16px, 1.05vw, 18px) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.benefit-item p{
  font-size: clamp(14px, 0.95vw, 16px) !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

/* 6) CARDS: el gran problema era 12px. Esto es lo que más “armoniza” */
.card-title{
  font-size: clamp(14px, 0.95vw, 18px) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.card-content,
.card-content p{
  font-size: clamp(14px, 0.95vw, 16px) !important; /* sube de 12px */
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.learn-more{
  font-size: clamp(13px, 0.9vw, 14px) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* 7) TESTIMONIALS: lectura cómoda y consistente */
.card-testimonial-text{
  font-size: clamp(16px, 1.05vw, 18px) !important;
  line-height: 1.7 !important;
}

.card-testimonial-author-name{
  font-size: clamp(14px, 0.95vw, 15px) !important;
}

/* =========================================
   HOME — Unificar “supporting text” (rojos)
   ========================================= */

:root{
  --fs-support: clamp(14px, 0.95vw, 16px);
  --lh-support: 1.6;
}

/* 1) Textos del bloque “Start now and get instant benefits” (lista derecha) */
.start-now-section p{
  font-size: var(--fs-support) !important;
  line-height: var(--lh-support) !important;
}

/* 2) Quote / texto principal del testimonial */
.testimonials-section .card-testimonial-text{
  font-size: var(--fs-support) !important;
  line-height: var(--lh-support) !important;
}

/* 3) Descripción de las cards de categorías (abajo de la imagen) */
.business-categories .card-content p{
  font-size: var(--fs-support) !important;
  line-height: var(--lh-support) !important;
}

/* ==========================================================================
   Home Only: Why + ElevateScore Split Layout
   ========================================================================== */
body.home-page .home-why{
  position: relative;
  z-index: 2;
  padding: 52px 0 24px;
  background: #fbf7f2;
}

body.home-page .home-why__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

body.home-page .home-why h2{
  margin-bottom: 14px;
}

body.home-page .home-why p{
  max-width: 82ch;
  line-height: 1.65;
  margin: 0 auto 12px;
  opacity: 0.92;
}

body.home-page .home-score{
  position: relative;
  z-index: 2;
  padding: 24px 0 88px;
  background: #fbf7f2;
}

body.home-page .home-score__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 0 24px;
}

body.home-page .home-score__card,
body.home-page .home-score__inner{
  border-radius: 28px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.08);
}

body.home-page .home-score__card{
  padding: 36px;
}

body.home-page .home-score__grid,
body.home-page .home-score__inner{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

body.home-page .home-score__content{
  text-align: left;
  min-width: 0;
}

body.home-page .home-score__content .audit-text{
  margin-bottom: 18px;
}

body.home-page .home-score__content .audit-text p{
  font-size: 18px !important;
  line-height: 1.4 !important;
  max-width: 420px;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.home-page .home-score__form{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

body.home-page .home-score__form .audit-input{
  flex: 1 1 320px;
  min-width: 260px;
  height: 48px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 15px;
}

body.home-page .home-score__form .audit-input::placeholder{
  font-size: 15px;
}

body.home-page .home-score__cta{
  flex: 0 0 auto;
  min-width: 220px;
  height: 48px;
  padding: 0 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600 !important;
  font-size: 15px !important;
}

body.home-page .home-score__media{
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

body.home-page .home-score__media img{
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 18px;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  object-position: center;
}

body.home-page .home-score__trust{
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.75;
}

@media (max-width: 900px){
  body.home-page .home-score__grid,
  body.home-page .home-score__inner{
    grid-template-columns: 1fr;
  }

  body.home-page .home-score__inner{
    padding: 0 24px;
  }

  body.home-page .home-score__media{
    order: 2;
    justify-self: center;
    justify-content: center;
  }

  body.home-page .home-score__media img{
    margin: 0 auto !important;
  }
}

@media (max-width: 768px){
  body.home-page .home-score__inner{
    padding: 18px 16px 24px !important;
  }

  body.home-page .start-now-section{
    padding: 0;
  }

  body.home-page .start-now-section .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .start-now-content{
    padding: 0 18px;
  }

  body.home-page .home-why{
    padding-top: 28px;
  }

  body.home-page .home-score{
    padding-top: 16px;
  }

  body.home-page .home-score__card{
    padding: 24px;
  }

  body.home-page .home-score__form{
    flex-direction: column;
    align-items: stretch;
  }

  body.home-page .home-score__form .audit-input,
  body.home-page .home-score__cta{
    width: 100%;
    min-width: 0;
  }

  body.home-page .home-score__cta{
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  body.home-page .home-score__media{
    width: 100% !important;
    justify-self: center !important;
    justify-content: center !important;
  }

  body.home-page .home-score__media img{
    margin: 0 auto !important;
  }

  /* Home testimonials (mobile): smaller quote and aligned at text start */
  body.home-page .testimonials-section .card-testimonial{
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "quote content"
      "author author";
    column-gap: 8px;
    row-gap: 16px;
    align-items: start;
    text-align: left;
  }

  body.home-page .testimonials-section .card-testimonial-quote{
    grid-area: quote;
    margin: 2px 0 0 0;
  }

  body.home-page .testimonials-section .card-testimonial-quote img{
    width: 40px;
    height: auto;
    display: block;
  }

  body.home-page .testimonials-section .card-testimonial-content{
    grid-area: content;
    width: 100%;
  }

  body.home-page .testimonials-section .card-testimonial-text{
    margin-top: 0;
  }

  body.home-page .testimonials-section .card-testimonial-author{
    grid-area: author;
    justify-self: center;
  }
}

/* Home categories: keep description clearly smaller than title */
.business-categories .card-content p {
  font-size: clamp(12px, 0.82vw, 14px) !important;
  line-height: 1.5 !important;
}

/* Home business-categories: stronger hierarchy and contrast */
.business-categories .section-subtitle {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--text-charcoal) !important;
  line-height: 1.5 !important;
}

.business-categories .card-title {
  font-size: clamp(16px, 1.05vw, 18px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
}

.business-categories .card-content p {
  font-size: clamp(14px, 0.95vw, 15px) !important;
  font-weight: 400 !important;
  color: #4f4f4f !important;
  line-height: 1.5 !important;
}

.business-categories .learn-more {
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Home cards: keep copy compact between 1280px and 1380px */
@media (min-width: 1280px) and (max-width: 1380px) {
  .business-categories .card-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .business-categories .card-content p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .business-categories .learn-more {
    font-size: 13px !important;
  }
}

/* Home hero CTA refinement (mobile only) */
@media (max-width: 768px) {
  .home-page .hero-text > .btn.btn-primary[data-i18n="home.hero.cta"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    padding: 14px 28px;
    font-size: 16px;
    margin: 24px auto 16px;
    text-align: center;
  }
}

/* Home mobile: tighten spacing between testimonials title and slider (EN/DE) */
@media (max-width: 768px) {
  body.home-page .start-now-section .section-title {
    margin-top: 14px !important;
  }

  body.home-page .testimonials-section {
    padding-top: 8px !important;
  }

  body.home-page .testimonials-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.home-page .testimonials-section .section-title {
    margin: 0 auto 18px !important;
    max-width: 12ch;
    line-height: 1.12;
    text-align: center;
  }

  body.home-page .testimonialsSwiper {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }

  body.home-page .testimonialsSwiper .swiper-slide {
    height: auto;
  }

  body.home-page .testimonials-section .card-testimonial {
    margin-top: 0 !important;
  }

  body.home-page .business-categories {
    padding-top: 12px !important;
    padding-bottom: 24px !important;
  }

  body.home-page .business-categories .section-title {
    margin: 0 0 14px !important;
    line-height: 1.12;
  }

  body.home-page .business-categories .section-subtitle {
    margin: 0 0 16px !important;
    line-height: 1.45;
  }

  body.home-page .business-categories .categoriesSwiper {
    padding-top: 10px !important;
    padding-bottom: 16px !important;
  }

  /* Remove dark frame/shadow in mobile categories cards */
  body.home-page .business-categories .category-card,
  body.home-page .business-categories .card.category-card {
    box-shadow: none !important;
  }
}

/* Home mobile alignment fix: Why + ElevateScore block */
@media (max-width: 768px) {
  body.home-page .home-why__inner {
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }

  body.home-page .home-score .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .home-score__inner {
    margin: 0 auto;
    padding: 20px 16px 24px !important;
    text-align: center;
  }

  body.home-page .home-score__content {
    text-align: center;
  }

  body.home-page .home-score__content .audit-text p {
    max-width: 100%;
    white-space: normal;
    margin: 0 auto;
    text-align: center;
  }

  body.home-page .home-score__form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  body.home-page .home-score__form .audit-input,
  body.home-page .home-score__cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.home-page .home-score__media {
    margin-top: 12px;
  }
}
