/* ==========================================================================
   EXPROS V5 - Commercial Evolution Stylesheet
   Preserves V4 layout rail, hero geometry, typography and animations.
   ========================================================================== */

/* 0. Solid header + transparent brand logo without opaque white box */
body[data-edition="4"] .site-header.dark-header {
  background: #151b22;
}

body[data-edition="4"] .site-header .brand-logo-img {
  width: auto;
  height: 54px;
  max-width: 118px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

/* 0b. Restored Glyph Portal transition ("Expros" zoom into crimson dimension -> #problematica) */
html.portal-active .entry-flow {
  position: relative;
  height: auto;
  padding-bottom: 0;
}

html.portal-active .entry-flow::after {
  content: "";
  display: block;
  height: clamp(800px, 115svh, 1100px);
}

html.portal-active .entry-pin {
  position: sticky;
  top: var(--header);
  height: calc(100svh - var(--header));
  margin-bottom: calc(-1 * (100svh - var(--header)));
  z-index: 5;
  pointer-events: none;
  isolation: isolate;
}

html.portal-active .glyph-portal {
  position: absolute;
  inset: 0;
  z-index: 5;
  height: 100%;
  pointer-events: none;
}

html.portal-active #problematica {
  position: sticky;
  top: var(--header);
  z-index: 1;
  min-height: calc(100svh - var(--header));
}

html.portal-active .glyph-caption[inert],
html.portal-active .glyph-caption[inert] a,
html.portal-active .glyph-caption[inert] button,
html.portal-active .glyph-portal[inert] .glyph-caption a,
html.portal-active .glyph-portal[inert] .glyph-caption button {
  pointer-events: none;
}

/* 1. Hero Opening: clarity clarifier + disciplined dual CTAs */
.glyph-front p.v5-hero-clarifier {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: clamp(13px, 1.05vw, 15.5px);
  line-height: 1.5;
  color: rgba(246, 238, 227, 0.88);
  text-align: left;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.v5-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-active .glyph-caption button {
  pointer-events: auto;
}

.v5-cta-proposal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #d40020;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.v5-cta-proposal:hover {
  background: #b1001b;
  transform: translateY(-2px);
}

.v5-cta-proposal:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Higher specificity than .glyph-caption a in refinement.css / scroll-portals.css */
.glyph-caption .portal-intro a.v5-cta-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  background: rgba(17, 25, 28, 0.72);
  color: #f6eee3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.glyph-caption .portal-intro a.v5-cta-whats:hover {
  background: rgba(24, 125, 69, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

.glyph-caption .portal-intro a.v5-cta-whats .icon {
  width: 15px;
  height: 15px;
  color: #25d366;
}

.glyph-caption .portal-intro a.v5-cta-whats:hover .icon {
  color: #ffffff;
}

/* 2. Section 01: Pain -> Response 3-column summary */
.v3-routine-points li {
  align-items: flex-start;
}

.v3-routine-points li > span {
  padding-top: 3px;
}

.v5-point-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v5-point-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.v5-point-copy small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* 3. Section 03: Featured Portaria Service Card */
.service-card.featured-service {
  position: relative;
  border: 1px solid rgba(212, 0, 32, 0.38);
  box-shadow: 0 10px 28px rgba(21, 27, 34, 0.07);
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  background: #d40020;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(212, 0, 32, 0.35);
}

/* 4. Section 04: Commercial Pillars & Validation Banner (Aligned to parent .wrap) */
.v5-commercial-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.v5-pillar-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  padding: 24px 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.v5-pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 0, 32, 0.45);
}

.v5-pillar-card .pillar-num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff4761;
}

.v5-pillar-card h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.v5-pillar-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.v5-validation-banner {
  margin-top: 20px;
}

.validation-banner-inner {
  background: rgba(21, 27, 34, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.validation-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 0, 32, 0.16);
  color: #ff8a9b;
  border: 1px solid rgba(212, 0, 32, 0.35);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.validation-badge .icon {
  width: 14px;
  height: 14px;
}

.validation-banner-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}

/* 5. Proposal Dialog width refinement for 2-col layout */
.proposal-dialog {
  width: min(620px, calc(100vw - 24px));
}

@media (max-width: 900px) {
  .v5-commercial-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .validation-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  body[data-edition="4"] .site-header .brand-logo-img {
    height: 46px;
    max-width: 96px;
    width: auto;
  }

  .glyph-front p.v5-hero-clarifier {
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 10px;
    max-width: 34ch;
    text-align: left;
  }

  body[data-edition="4"] .glyph-caption {
    gap: 14px;
    bottom: 76px;
  }

  body[data-edition="4"] .portal-intro > p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .v5-hero-ctas {
    margin-top: 12px;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .v5-cta-proposal,
  .glyph-caption .portal-intro a.v5-cta-whats {
    flex: 1 1 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .glyph-caption > a.portal-explore-link {
    padding: 8px 10px 8px 18px;
    gap: 18px;
  }

  .glyph-caption > a.portal-explore-link .portal-link-label {
    font-size: 13px;
  }

  .glyph-caption > a.portal-explore-link .portal-link-arrow {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v5-cta-proposal,
  .glyph-caption .portal-intro a.v5-cta-whats,
  .v5-pillar-card {
    transition: none;
  }
}

/* 6. Section 05: Google Verified Reviews Multi-Card Switcher */
.v5-reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.review-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.review-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #f1f3f5;
  border: 1px solid #d7dade;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: var(--ink, #151b22);
}

.review-tab:hover {
  background: #e9ecef;
  border-color: #c4c8cd;
}

.review-tab.active {
  background: #ffffff;
  border-color: #d40020;
  box-shadow: 0 4px 14px rgba(212, 0, 32, 0.12);
}

.review-tab .tab-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #242c34;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-tab.active .tab-avatar {
  background: #d40020;
}

.review-tab .tab-meta {
  display: flex;
  flex-direction: column;
}

.review-tab .tab-meta strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.review-tab .tab-meta small {
  font-size: 10px;
  color: #64707d;
}

.review-card-item {
  position: relative;
  border: 1px solid #e4e6e8;
  box-shadow: 0 8px 35px rgba(23, 35, 46, 0.06);
  border-radius: 7px;
  background: #fff;
  padding: 28px 32px;
  transition: opacity 0.2s ease;
}

.review-card-item[hidden] {
  display: none !important;
}

.review-card-item blockquote {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
  color: #1a2228;
}

.review-services-highlight {
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: #f4f6f8;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a545e;
}

.review-services-highlight strong {
  color: #1a2228;
}

.review-reply-box {
  margin-top: 18px;
  padding: 14px 18px;
  background: #fbfbfb;
  border-left: 3px solid #d40020;
  border-radius: 0 6px 6px 0;
  border-top: 1px solid #edf0f2;
  border-right: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
}

.review-reply-box .reply-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #d40020;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-reply-box p {
  font-size: 13px;
  line-height: 1.5;
  color: #48525b;
  margin: 0;
  font-style: italic;
}

.review-price-pill {
  display: inline-flex;
  align-items: center;
  background: #e6f7ec;
  color: #0b733b;
  border: 1px solid #bce6ce;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 8px;
}
