/**
 * CSP custom overrides – tokens-based.
 * Use for styles that don't fit Tailwind utilities (e.g. hero background layer).
 * Load after Tailwind so these rules win over any other CSS.
 */

/* Prevent horizontal scroll: testimonials slider (overflow: visible + nav at -20px) and Swiper track can extend past viewport */
body {
  overflow-x: hidden;
}

/* --------------------------------------------------------------
   Home section titles (shared: Testimonials, Pricing, Contact)
   -------------------------------------------------------------- */
.home-section__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.home-section__title::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

/* Section header wrapper – same spacing as Testimonials */
.home-section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* Contact: own spacing + background (main.css excludes #contact from global section padding) */
#contact {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  scroll-margin-top: 100px;
  background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
}
@media (max-width: 1199px) {
  #contact {
    scroll-margin-top: 66px;
  }
}
#contact .home-section__header {
  margin-bottom: var(--space-2xl);
}
/* Contact tab buttons: override Bootstrap reboot button { border-radius: 0 } */
#tab-form,
#tab-direct,
#tab-call {
  border-radius: 0.75rem;
}

/* Contact cards: remove Bootstrap p margin (1rem), use tight line spacing */
#content-direct .contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#content-direct .contact-card__text p {
  margin: 0;
}

/* Contact tab headings + email link color (tokens, no inline styles) */
#content-form h3,
#content-direct h3,
#content-call h3 {
  color: var(--color-text-heading);
}
#content-direct a[href^="mailto"] .contact-card__text p:nth-child(2) {
  color: var(--color-accent);
}
#submit-btn {
  background-color: var(--color-accent);
  border-radius: 0.75rem;
}
#submit-btn:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--color-accent), transparent 15%);
}

/* Section subtitle – token color, matches Testimonials/Pricing */
.home-section__subtitle {
  font-size: 16px;
  color: color-mix(in srgb, var(--color-text-main), transparent 30%);
  max-width: 600px;
  margin: 0 auto;
}

.home-section__subtitle--wide {
  max-width: 56rem;
}

/* Hero title – explicit size/weight so nothing overrides */
.hero .hero__title,
.hero h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
  color: var(--color-text-heading);
  font-family: var(--font-family-heading);
}

@media (min-width: 640px) {
  .hero .hero__title,
  .hero h1 {
    font-size: 40px;
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  .hero .hero__title,
  .hero h1 {
    font-size: 48px;
    line-height: 1.17;
  }
}

/* Hero CTA wrap – spacing above button */
.hero .hero__cta-wrap {
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .hero .hero__cta-wrap {
    margin-top: var(--space-xl);
  }
}

/* Hero – background image + overlay */
.hero .hero-bg {
  position: absolute;
  inset: 0;
}

.hero .hero-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .hero-bg::before {
  content: "";
  background: color-mix(in srgb, var(--color-bg-body), transparent 15%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Hero CTA – pill shape, visible text, spacing from site.css so it wins over base styles */
.hero .btn-get-started.hero__cta,
.hero .hero__cta {
  display: inline-block;
  color: var(--color-text-light);
  background-color: var(--color-accent);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: var(--shadow-soft);
}

.hero .btn-get-started.hero__cta:hover,
.hero .hero__cta:hover {
  color: var(--color-text-light);
  background-color: color-mix(in srgb, var(--color-accent), transparent 15%);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------
   Featured Services (tokens)
   -------------------------------------------------------------- */
.featured-services__item {
  position: relative;
  padding-top: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.featured-services__icon {
  background-color: color-mix(in srgb, var(--color-accent), transparent 80%);
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
}

.featured-services__icon i {
  color: var(--color-accent);
  font-size: 32px;
}

.featured-services__title {
  font-weight: 700;
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

.featured-services__title a {
  color: var(--color-text-heading);
  text-decoration: none;
  transition: 0.3s;
}

.featured-services__title a:hover {
  color: var(--color-accent);
}

.featured-services__description {
  font-size: 14px;
  color: var(--color-text-main);
  margin: 0;
}

.featured-services__item:hover .featured-services__icon {
  background-color: var(--color-accent);
}

.featured-services__item:hover .featured-services__icon i {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------
   Pricing (tokens)
   -------------------------------------------------------------- */
.pricing-item {
  background-color: color-mix(in srgb, var(--color-accent), transparent 96%);
  padding: var(--space-2xl);
  height: 100%;
  border-radius: var(--radius-lg);
  position: relative;
}

.pricing-item h3 {
  font-weight: 600;
  margin-bottom: var(--space-lg);
  font-size: 20px;
  color: var(--color-text-heading);
}

.pricing-item__description {
  font-size: 14px;
  color: var(--color-text-main);
  margin-bottom: var(--space-lg);
}

.pricing-item__price {
  color: var(--color-accent);
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-family-heading);
  margin-bottom: 0;
}

.pricing-item__price sup {
  font-size: 28px;
}

.pricing-item__price span {
  color: color-mix(in srgb, var(--color-text-main), transparent 50%);
  font-size: 18px;
  font-weight: 500;
}

.pricing-item__cta {
  border: 1px solid var(--color-text-main);
  color: var(--color-text-main);
  display: block;
  text-align: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family-heading);
  transition: 0.3s;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.pricing-item__cta:hover {
  background: var(--color-accent);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

.pricing-item--featured {
  position: relative;
}

.pricing-item__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: var(--space-xs) var(--space-lg);
  margin: 0;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}

/* On small screens: badge in flow above title so it doesn't overlap */
@media (max-width: 600px) {
  .pricing-item--featured {
    display: flex;
    flex-direction: column;
  }
  .pricing-item__badge {
    position: static;
    align-self: flex-end;
    margin-bottom: var(--space-sm);
  }
}

.pricing-item--featured .pricing-item__cta {
  background: var(--color-accent);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------
   Merged from header-fix.css (CSP overrides: header placeholder, scroll, page/section spacing)
   -------------------------------------------------------------- */
#header-placeholder {
  height: 80px;
  background-color: #fff;
}

body {
  scroll-behavior: smooth;
}

.page-title {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Homepage: Swiper testimonial nav overrides (consolidated from index inline styles) */
.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  background-color: #f8f9fa;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.swiper-button-prev {
  left: -30px;
}
.swiper-button-next {
  right: -30px;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: translateY(-50%) scale(1.1);
  background-color: #e9ecef;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  color: var(--color-accent);
}
