/* ===================================
   Theli Tech – Services page
   Smart Home & AV Installation, Tampa Bay
====================================== */

/* ----- 1. Hero (darker overlay, reduced height) ----- */
.services-hero {
  position: relative;
  min-height: 40vh;
  max-height: none;
  padding: 4.5rem 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}
.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}
.services-hero .container {
  position: relative;
  z-index: 2;
}
.services-hero-accent {
  width: 48px;
  height: 3px;
  background: #ffb347;
  margin-bottom: 1rem;
}
.services-hero h1 {
  color: #fff !important;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-transform: none;
}
.services-hero-sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.services-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Base yellow button – all "Request a Quote" buttons */
.btn-primary-services {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ffb347;
  color: #1a1a1a !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.3);
}
.btn-primary-services:hover {
  background: #ffc068;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.services-hero-ctas .btn-primary-services {
  padding: 0.75rem 1.5rem;
}
.services-hero-ctas .btn-primary-services:hover {
  background: #ffc068;
  color: #1a1a1a !important;
  transform: translateY(-2px);
}
.services-hero-ctas .btn-secondary-services {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.services-hero-ctas .btn-secondary-services:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 767px) {
  .services-hero {
    min-height: 55vh;
    max-height: 480px;
    padding: 2rem 0;
  }
  .services-hero .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .services-hero h1 { font-size: 1.5rem; }
  .services-hero-sub { font-size: 0.95rem; }
  .services-hero-ctas { flex-direction: column; align-items: flex-start; }
  .services-hero-ctas .btn-primary-services,
  .services-hero-ctas .btn-secondary-services { min-width: 180px; text-align: center; }
}

/* ----- 2. Section spacing & layout ----- */
.services-section {
  padding: 4rem 0;
}
.services-section-alt {
  background: #f8f9fa;
}
.services-section-dark {
  background: #252525;
  color: #e5e5e5;
}
.services-section-dark .services-heading { color: #fff !important; }
.services-section-dark .services-body { color: rgba(255, 255, 255, 0.9); }

.services-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.services-heading-center {
  text-align: center;
  margin-bottom: 2rem;
}
.services-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  max-width: 42em;
}
.services-body p { margin-bottom: 1rem; }

/* ----- 3. Services grid (6 cards) ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.services-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.services-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.services-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #ffb347;
  font-size: 2rem;
}
.services-card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.services-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.services-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
  margin: 0;
  flex: 1;
}

/* ----- 4. Service detail sections (2-col, alternating) ----- */
.services-detail-row {
  align-items: center;
  margin-bottom: 3rem;
}
.services-detail-row:last-of-type { margin-bottom: 0; }
.services-detail-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.services-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}
.services-detail-content .services-heading { margin-bottom: 1rem; }
.services-detail-content .services-body { max-width: 100%; }
.services-detail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem 0;
}
.services-detail-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}
.services-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffb347;
  font-weight: 700;
}
.services-cta-inline {
  margin-top: 1.25rem;
}
.services-cta-inline .btn-primary-services {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: #ffb347;
  color: #1a1a1a !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  border: none;
}
.services-cta-inline .btn-primary-services:hover {
  background: #ffc068;
  color: #1a1a1a;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .services-detail-row .col-sm-12:first-child { margin-bottom: 1.5rem; }
  .services-detail-row.services-detail-row-alt .col-sm-12:first-child { margin-bottom: 1.5rem; }
}

/* ----- 5. Popular projects ----- */
.services-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.services-project-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.services-project-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.services-project-card i {
  color: #ffb347;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
}
.services-project-card span {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ----- 6. Why Choose Theli Tech ----- */
.services-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  justify-content: center;
  justify-items: stretch;
  text-align: center;
  grid-auto-rows: 1fr;
}
.services-why-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.25rem 1rem;
  min-height: 88px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
}
.services-why-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.services-why-item i {
  color: #ffb347;
  font-size: 1.35rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.services-why-item span {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* ----- 7. Our Process (horizontal steps) ----- */
.services-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  counter-reset: step;
}
.services-process-step {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  position: relative;
  padding-top: 3rem;
  text-align: center;
  counter-increment: step;
}
.services-process-step::before {
  content: counter(step);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: #ffb347;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.services-process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  text-transform: none;
}
.services-process-step p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

@media (max-width: 767px) {
  .services-process { flex-direction: column; align-items: center; }
  .services-process-step { max-width: 100%; }
}

/* ----- 8. Pricing transparency ----- */
.services-pricing-list {
  max-width: 560px;
  margin: 0 auto;
}
.services-pricing-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.services-pricing-item:last-child { border-bottom: none; }
.services-pricing-item strong {
  font-size: 1rem;
  color: #1a1a1a;
  flex-shrink: 0;
}
.services-pricing-item span {
  font-size: 0.95rem;
  color: #555;
  text-align: right;
}

/* ----- Pricing cards (more visual) ----- */
.services-pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}
.services-pricing-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  height: 100%;
}
.services-pricing-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  border-color: #ffb347;
}
.services-pricing-card i {
  color: #ffb347;
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.85rem;
}
.services-pricing-card strong {
  display: block;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}
.services-pricing-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* ----- 9. CTA block (repeated) ----- */
.services-cta-block {
  text-align: center;
  padding: 2rem;
}
.services-cta-block .btn-primary-services,
.services-cta-block .btn-secondary-services {
  margin: 0 0.35rem 0.5rem;
}

/* ----- 10. Final conversion section ----- */
.services-final-cta {
  padding: 4rem 0;
  text-align: center;
  background: #252525;
  color: #fff;
}
.services-final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services-final-cta .services-heading {
  color: #fff !important;
  margin-bottom: 0.75rem;
  text-align: center;
  width: 100%;
}
.services-final-cta .services-body {
  color: #fff !important;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.services-final-cta .services-hero-ctas {
  justify-content: center;
}
.services-final-cta .btn-primary-services {
  background: #ffb347;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.3);
}
.services-final-cta .btn-primary-services:hover {
  background: #ffc068;
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}
.services-final-cta .btn-secondary-services { border-color: rgba(255,255,255,0.7); color: #fff !important; }
.services-final-cta .btn-secondary-services:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ----- 11. Section dividers ----- */
.services-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0;
}

/* ----- 12. Hide page title section (hero is first) ----- */
.services-page .content-top-margin.page-title { display: none; }

/* ----- 13. Secondary button on light backgrounds ----- */
.services-section .btn-secondary-services,
.services-section-alt .btn-secondary-services {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #252525;
  color: #252525 !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.services-section .btn-secondary-services:hover,
.services-section-alt .btn-secondary-services:hover {
  background: #252525;
  color: #fff !important;
}
