/**
 * THE WHEEL LAB - Home Page Styles
 * Sprint 30D - Home como autoridad local
 */

/* Hero Section */
.twl-hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
}

.twl-hero__container {
  max-width: 900px;
  margin: 0 auto;
}

.twl-hero__h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.twl-hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  margin: 0 0 40px;
  opacity: 0.9;
}

.twl-hero__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.twl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.twl-btn--primary {
  background: #00d084;
  color: #0a0a0a;
  border: 2px solid #00d084;
}

.twl-btn--primary:hover {
  background: #00e794;
  transform: translateY(-2px);
}

.twl-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.twl-btn--outline:hover {
  background: #fff;
  color: #0a0a0a;
}

/* Container */
.twl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Titles */
.twl-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
}

.twl-section-intro {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 48px;
  opacity: 0.8;
}

/* Tech Grid */
.twl-home-tech {
  padding: 80px 20px;
  background: #f8f9fa;
}

.twl-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.twl-tech-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twl-tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.twl-tech-card__icon {
  margin-bottom: 20px;
}

.twl-tech-card__icon svg {
  stroke: #00d084;
}

.twl-tech-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.twl-tech-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 20px;
  opacity: 0.8;
}

.twl-tech-card__link {
  display: inline-block;
  color: #00d084;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.twl-tech-card__link:hover {
  transform: translateX(4px);
}

/* Services List */
.twl-home-services {
  padding: 80px 20px;
}

.twl-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.twl-service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.twl-service-item:hover {
  border-color: #00d084;
  transform: translateX(8px);
}

.twl-service-item--highlight {
  background: linear-gradient(135deg, #00d084 0%, #00e794 100%);
  color: #fff;
  border-color: #00d084;
}

.twl-service-item__name {
  font-weight: 700;
  font-size: 1.2rem;
  flex: 0 0 250px;
}

.twl-service-item__desc {
  flex: 1;
  opacity: 0.8;
}

.twl-service-item__arrow {
  font-size: 1.5rem;
  margin-left: auto;
}

/* Social Proof */
.twl-home-social-proof {
  padding: 80px 20px;
  background: #0a0a0a;
  color: #fff;
}

.twl-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.twl-proof-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.twl-proof-card__stars {
  font-size: 2rem;
  color: #ffc107;
  margin-bottom: 12px;
}

.twl-proof-card__rating,
.twl-proof-card__location,
.twl-proof-card__time,
.twl-proof-card__warranty {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.twl-proof-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.twl-proof-card__label {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 16px;
}

.twl-proof-card__link {
  color: #00d084;
  text-decoration: none;
  font-weight: 600;
}

.twl-proof-card__link:hover {
  text-decoration: underline;
}

/* Before/After */
.twl-home-before-after {
  padding: 80px 20px;
  background: #f8f9fa;
}

.twl-ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.twl-ba-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twl-ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.twl-ba-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.twl-ba-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.twl-ba-card__content {
  padding: 24px;
}

.twl-ba-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.twl-ba-card__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 16px;
}

.twl-ba-card__link {
  color: #00d084;
  font-weight: 600;
}

/* Placeholder for cases (if no posts exist yet) */
.twl-ba-card__placeholder {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.twl-ba-card__placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.twl-ba-card__placeholder-text {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.twl-ba-card__placeholder-desc {
  font-size: 0.95rem;
  opacity: 0.7;
}

.twl-home-ba-cta {
  text-align: center;
  margin-top: 48px;
}

/* FAQ */
.twl-home-faq {
  padding: 80px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .twl-hero {
    padding: 60px 20px;
  }

  .twl-hero__cta-group {
    flex-direction: column;
  }

  .twl-btn {
    width: 100%;
  }

  .twl-service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .twl-service-item__name {
    flex: none;
  }

  .twl-service-item__arrow {
    margin-left: 0;
  }
}
