/* ==========================================================================
   AVA Serv — service landing pages (Avasting_ServicePages)
   Scope: body.avasting-service-page
   ========================================================================== */

.avasting-service-page .asp {
  /* .column.main is a flex container: force the flex item to shrink */
  width: 100%;
  min-width: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 0 32px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.55;
}

.asp *,
.asp *::before,
.asp *::after {
  box-sizing: border-box;
}

/* ---- buttons ---- */
.asp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: filter 150ms ease, background 150ms ease;
  cursor: pointer;
}

.asp-btn-whatsapp {
  background: #16be45;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(22, 190, 69, 0.35);
}

.asp-btn-whatsapp:hover {
  filter: brightness(0.94);
  color: #fff !important;
}

.asp-btn-phone {
  background: #fff;
  border: 2px solid #d1d5db;
  color: #1f2937 !important;
}

.asp-btn-phone:hover {
  border-color: #9ca3af;
  color: #111 !important;
}

.asp-icon {
  flex-shrink: 0;
}

/* ---- hero ---- */
.asp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 8px 0 24px;
}

.asp-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: block;
}

.asp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #dc2626;
  margin-bottom: 8px;
}

.asp-title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.asp-subtitle {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 20px;
}

.asp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.asp-hero-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 7px 14px;
}

.asp-hero-price .asp-icon {
  color: #dc2626;
}

/* ---- trust bar ---- */
.asp-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 34px;
}

.asp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.asp-trust-item .asp-icon {
  color: #dc2626;
  margin-top: 2px;
}

.asp-trust-item strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.asp-trust-item span {
  font-size: 12.5px;
  color: #6b7280;
}

/* ---- sections ---- */
.asp-section {
  margin-bottom: 34px;
}

.asp-h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
}

/* ---- includes ---- */
.asp-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.asp-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.asp-includes .asp-icon {
  color: #16a34a;
  margin-top: 2px;
}

/* ---- steps ---- */
.asp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.asp-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  margin: 0;
}

.asp-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.asp-step strong {
  display: block;
  font-size: 15px;
  color: #111827;
  margin-bottom: 4px;
}

.asp-step p {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
}

/* ---- price panel ---- */
.asp-price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 20px 24px;
}

.asp-price-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.asp-price-main .asp-icon {
  color: #dc2626;
  margin-top: 3px;
}

.asp-price-main strong {
  font-size: 18px;
  color: #111827;
}

.asp-price-main p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #4b5563;
}

.asp-price-panel .asp-btn {
  flex-shrink: 0;
}

/* ---- gallery ---- */
.asp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.asp-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---- accordions (FAQ + details) ---- */
.asp-acc {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.asp-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  position: relative;
  user-select: none;
}

.asp-acc summary::-webkit-details-marker {
  display: none;
}

.asp-acc summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease;
}

.asp-acc[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.asp-acc-body {
  padding: 0 18px 16px;
  color: #4b5563;
  font-size: 14.5px;
}

.asp-acc-body p {
  margin: 0;
}

.asp-description {
  max-width: none;
}

.asp-description h2,
.asp-description h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.asp-description img {
  max-width: 100%;
  height: auto;
}

/* ---- final CTA ---- */
.asp-final-cta {
  background: #111827;
  color: #f9fafb;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 34px;
}

.asp-final-cta h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}

.asp-final-cta p {
  color: #d1d5db;
  margin: 0 0 18px;
}

.asp-final-cta-buttons {
  margin-bottom: 20px;
}

.asp-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 14px;
}

.asp-contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #e5e7eb;
}

.asp-contact-list .asp-icon {
  color: #16be45;
}

.asp-contact-list a {
  color: #fff !important;
  text-decoration: underline;
}

/* ---- related services ---- */
.asp-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asp-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #1f2937 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 150ms ease, background 150ms ease;
}

.asp-pill:hover {
  border-color: #dc2626;
  color: #dc2626 !important;
  background: #fef2f2;
}

/* ---- hero without media (e.g. ignifugare) ---- */
.asp-hero-noimg {
  grid-template-columns: 1fr;
  max-width: 840px;
}

.asp-hero-noimg .asp-title {
  font-size: 38px;
}

/* ---- hub page (personalizare textile) ---- */
.asp-hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asp-hero-collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.asp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.asp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: #1f2937 !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.asp-card:hover {
  border-color: #dc2626;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.asp-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.asp-card-body {
  padding: 16px 18px 18px;
}

.asp-card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.asp-card-body p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #6b7280;
}

.asp-card-more {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

/* ---- sticky mobile CTA ---- */
.asp-sticky-cta {
  display: none;
}

/* Hide the generic floating WhatsApp widget on service pages:
   it overlapped buttons/text; the page has its own CTAs. */
.avasting-service-page .wa-float-btn,
.avasting-service-page #wa-widget-wrapper {
  display: none !important;
}

/* ==========================================================================
   MOBILE (<768px)
   ========================================================================== */
@media only screen and (max-width: 767px) {

  .avasting-service-page .asp {
    padding: 0 0 24px;
    font-size: 14.5px;
  }

  /* Hero: image on top, single dominant CTA */
  .asp-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
  }

  .asp-hero-media {
    order: -1;
  }

  .asp-hero-media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .asp-title {
    font-size: 25px;
  }

  .asp-subtitle {
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  .asp-hero-ctas {
    flex-direction: column;
    gap: 8px;
  }

  .asp-hero-ctas .asp-btn-whatsapp {
    width: 100%;
    padding: 16px 22px;
    font-size: 17px;
  }

  /* Phone = secondary, visually lighter */
  .asp-hero-ctas .asp-btn-phone {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #374151 !important;
    text-decoration: underline !important;
  }

  /* Trust bar: compact 2x2 grid */
  .asp-trust {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    padding: 14px;
    margin-bottom: 24px;
  }

  .asp-trust-item {
    flex-direction: column;
    gap: 6px;
  }

  .asp-trust-item strong {
    font-size: 13px;
  }

  .asp-trust-item span {
    font-size: 12px;
  }

  .asp-section {
    margin-bottom: 26px;
  }

  .asp-h2 {
    font-size: 19px;
  }

  .asp-includes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .asp-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .asp-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 14px;
    padding: 14px;
  }

  .asp-step-num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .asp-price-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .asp-price-panel .asp-btn {
    width: 100%;
  }

  /* Gallery: horizontal scroll */
  .asp-gallery {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }

  .asp-gallery::-webkit-scrollbar {
    display: none;
  }

  .asp-gallery img {
    flex: 0 0 auto;
    width: 46vw;
    max-width: 220px;
    aspect-ratio: 1;
  }

  .asp-final-cta {
    padding: 26px 18px;
  }

  .asp-final-cta h2 {
    font-size: 20px;
  }

  .asp-final-cta-buttons .asp-btn {
    width: 100%;
  }

  .asp-contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  /* Hub page */
  .asp-hero-collage {
    gap: 8px;
  }

  .asp-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .asp-card img {
    aspect-ratio: 2 / 1;
  }

  /* Sticky bottom CTA bar */
  .asp-sticky-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .asp-sticky-cta .asp-btn-whatsapp {
    flex: 1;
    padding: 13px 16px;
    font-size: 16px;
  }

  .asp-sticky-cta .asp-btn-phone-compact {
    flex: 0 0 52px;
    width: 52px;
    padding: 13px 0;
    border-radius: 12px;
  }

  /* Leave room for the sticky bar */
  .avasting-service-page .page-wrapper {
    padding-bottom: 84px;
  }
}

/* ==========================================================================
   TABLET (768–1023px): keep desktop layout, slightly tighter
   ========================================================================== */
@media only screen and (min-width: 768px) and (max-width: 1023px) {

  .asp-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .asp-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .asp-title {
    font-size: 28px;
  }
}
