/* Alfa Core 0.31.4 - Master Gold Google Reviews summary spacing. */

.alfa-google-reviews {
  --alfa-reviews-per-view: 3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 var(--alfa-section-gap, 35px);
  padding: 30px 0;
  background: #ffffff;
  color: var(--alfa-type-body, #53645b);
}

/* Each full Reviews instance owns the same centered 1500px shell as
 * Kezdolap V2. About/41 uses a single Elementor HTML widget and does not
 * provide the Homepage's local `.alfa-shell` width rule. Avoid full-bleed
 * summary/review columns when the component is rendered on its own. */
.alfa-google-reviews__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(var(--alfa-master-shell-max, 1500px), calc(100% - var(--alfa-master-shell-gutter, 48px)));
  max-width: var(--alfa-master-shell-max, 1500px);
  margin-left: auto;
  margin-right: auto;
}

.alfa-google-reviews__layout {
  display: grid;
  grid-template-columns: minmax(285px, .78fr) minmax(0, 1.8fr);
  gap: clamp(40px, 4.6vw, 76px);
  align-items: stretch;
}

.alfa-google-reviews__summary {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-right: clamp(22px, 3vw, 48px);
  border-right: 1px solid var(--alfa-master-line, #dfe7e1);
}

.alfa-google-reviews__eyebrow {
  margin: 0 0 12px;
  color: #0f7a47 !important;
  font-family: var(--alfa-type-font, Manrope, sans-serif) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}

/* Summary spacing is owned here, not by the legacy homepage reset.
 * Keep both semantic leading values on the shared Master Typography scale.
 * The stronger component selector works even when legacy CSS loads later. */
body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__summary > h2,
.alfa-google-reviews .alfa-google-reviews__summary > h2 {
  max-width: 440px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  line-height: var(--alfa-type-h2-line, 1.15) !important;
  text-wrap: balance;
}

/* Restore readable body leading after the explicitly requested 0.31.3
 * experiment. This is NOT the heading's tighter 1.15 leading. */
body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__intro,
.alfa-google-reviews .alfa-google-reviews__intro {
  max-width: 450px;
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--alfa-type-body, #5c6a62) !important;
  font-family: var(--alfa-type-font, Manrope, sans-serif) !important;
  font-size: var(--alfa-type-body-size, 16px) !important;
  line-height: var(--alfa-type-body-line, 1.6) !important;
  font-weight: 400 !important;
}

.alfa-google-reviews__rating {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 24px;
}

.alfa-google-reviews__rating > strong {
  flex: 0 0 auto;
  color: var(--alfa-type-heading, #0f281d);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: clamp(56px, 4.7vw, 70px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.055em;
}

.alfa-google-reviews__rating-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alfa-google-reviews__rating-copy > span:not(.alfa-google-stars) {
  color: var(--alfa-type-heading, #0f281d);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.alfa-google-reviews__rating-copy small {
  color: var(--alfa-type-muted, #5d6b63);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.alfa-google-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #fbbc04;
}

.alfa-google-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* Match the canonical Master FAQ action in master-faq.css: Manrope, 15px,
 * 600 weight, normal style, 1.2 leading, 0 tracking. Change this existing
 * contract rather than layering a page-ID override over the homepage. */
body.alfa-master-controls .alfa-google-reviews .alfa-google-reviews__all,
.alfa-google-reviews .alfa-google-reviews__all {
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: var(--alfa-button-height, 50px) !important;
  min-height: var(--alfa-button-height, 50px) !important;
  max-height: var(--alfa-button-height, 50px) !important;
  padding: 0 16px !important;
  border: 1px solid #0f7a47 !important;
  border-radius: var(--alfa-button-radius, 6px) !important;
  background: transparent !important;
  color: #0f7a47 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.alfa-google-reviews .alfa-google-reviews__all:hover,
.alfa-google-reviews .alfa-google-reviews__all:focus,
.alfa-google-reviews .alfa-google-reviews__all:focus-visible {
  background: transparent !important;
  color: #0f7a47 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.alfa-google-reviews .alfa-google-reviews__all:focus-visible {
  outline: 3px solid rgba(159, 203, 71, .48);
  outline-offset: 3px;
}

.alfa-google-reviews__reviews {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.alfa-google-reviews__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  margin: 0 0 14px;
}

.alfa-google-reviews__toolbar-label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: #0f281d;
  font-family: var(--alfa-type-font, Manrope, sans-serif);
}

.alfa-google-reviews__toolbar-label strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.alfa-google-reviews__toolbar-label small {
  color: var(--alfa-type-muted, #5d6b63);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.alfa-google-reviews__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.alfa-google-reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(15, 122, 71, .55);
  border-radius: 50%;
  background: transparent;
  color: #0f7a47;
  box-shadow: none;
  cursor: pointer;
}

.alfa-google-reviews__arrow:hover,
.alfa-google-reviews__arrow:focus-visible {
  border-color: #0f7a47;
  background: rgba(159, 203, 71, .10);
  color: #0f7a47;
}

.alfa-google-reviews__arrow:focus-visible {
  outline: 3px solid rgba(159, 203, 71, .45);
  outline-offset: 2px;
}

.alfa-google-reviews__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alfa-google-reviews__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  outline: none;
}

.alfa-google-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.alfa-google-reviews__viewport:focus-visible {
  outline: 3px solid rgba(159, 203, 71, .38);
  outline-offset: 4px;
}

.alfa-google-reviews__track {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.alfa-google-review {
  position: relative;
  display: flex;
  flex: 0 0 calc(100% / var(--alfa-reviews-per-view));
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  min-height: 316px;
  padding: 12px clamp(22px, 2.2vw, 34px) 8px;
  scroll-snap-align: start;
}

.alfa-google-review:first-child {
  padding-left: clamp(22px, 2.2vw, 34px);
}

.alfa-google-review + .alfa-google-review {
  border-left: 1px solid var(--alfa-master-line, #dfe7e1);
}

.alfa-google-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.alfa-google-review__source {
  color: var(--alfa-type-muted, #5d6b63);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.alfa-google-review__quote {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.alfa-google-review__quote p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--alfa-type-heading, #0f281d) !important;
  font-family: var(--alfa-type-font, Manrope, sans-serif) !important;
  font-size: 17px !important;
  line-height: 1.58 !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

.alfa-google-review__author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--alfa-master-line, #dfe7e1);
}

.alfa-google-review__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef7f0;
  color: #0f7a47;
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.alfa-google-review__avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.alfa-google-review__avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #eef7f0;
}

.alfa-google-review__author-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.alfa-google-review__author-copy strong {
  overflow: hidden;
  color: var(--alfa-type-heading, #0f281d);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alfa-google-review__author-copy small {
  color: var(--alfa-type-muted, #5d6b63);
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
}

.alfa-google-review__open {
  margin-left: auto;
  color: #0f7a47;
  font-family: var(--alfa-type-font, Manrope, sans-serif);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.alfa-google-reviews__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .alfa-google-reviews {
    --alfa-reviews-per-view: 2;
  }

  .alfa-google-reviews__layout {
    grid-template-columns: minmax(245px, .68fr) minmax(0, 1.32fr);
    gap: 34px;
  }

  .alfa-google-review {
    flex-basis: calc(100% / var(--alfa-reviews-per-view));
    padding: 16px 26px 8px;
  }

  .alfa-google-review:first-child {
    padding-left: 26px;
  }
}

@media (max-width: 767px) {
  .alfa-google-reviews__inner {
    width: calc(100% - var(--alfa-master-shell-mobile-gutter, 32px));
  }

  .alfa-google-reviews {
    --alfa-reviews-per-view: 1;
    padding: 24px 0;
  }

  .alfa-google-reviews__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .alfa-google-reviews__summary {
    padding-right: 0;
    padding-bottom: 30px;
    border-right: 0;
    border-bottom: 1px solid var(--alfa-master-line, #dfe7e1);
  }

  .alfa-google-reviews__rating {
    margin-bottom: 22px;
  }

  .alfa-google-reviews__rating > strong {
    font-size: 60px;
  }

  body.alfa-master-controls .alfa-google-reviews .alfa-google-reviews__all,
  .alfa-google-reviews .alfa-google-reviews__all {
    width: 100% !important;
  }

  .alfa-google-reviews__toolbar {
    margin-bottom: 10px;
  }

  .alfa-google-reviews__toolbar-label small {
    display: none;
  }

  .alfa-google-review,
  .alfa-google-review:first-child {
    flex-basis: 100%;
    min-height: 290px;
    padding: 14px 4px 8px;
    border-left: 0;
  }

  .alfa-google-review + .alfa-google-review {
    border-left: 0;
  }

  .alfa-google-review__quote p {
    font-size: 16px !important;
    -webkit-line-clamp: 6;
  }

}

@media (prefers-reduced-motion: reduce) {
  .alfa-google-reviews__viewport {
    scroll-behavior: auto;
  }
}

/* Non-action carousel controls never inherit the 50px CTA geometry. All
 * real buttons have aria-controls, the existing Master Controls exemption. */
.alfa-google-reviews [hidden] {
  display: none !important;
}

body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-stars {
  color: #fbbc04;
}

body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__position {
  color: var(--alfa-type-muted, #5d6b63);
  font-family: var(--alfa-type-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  min-width: 3.5em;
  text-align: center;
  white-space: nowrap;
}

body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__demo-note {
  color: var(--alfa-type-muted, #5d6b63) !important;
  font-size: var(--alfa-type-small-size, 13px) !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.alfa-google-reviews .alfa-google-reviews__all {
  gap: 6px;
}

/* No auto-rotation without JS; every review remains horizontally reachable. */
.alfa-google-reviews:not([data-alfa-reviews-ready]) .alfa-google-reviews__viewport {
  scroll-behavior: auto;
}

/* Bind the non-semantic summary roles explicitly; the global span/strong/p
 * inheritance must not turn brand accents and the aggregate value into body ink. */
body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__eyebrow {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--alfa-type-link, #0f7a47) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
body.alfa-master-typography .alfa-v2.alfa-google-reviews .alfa-google-reviews__rating > strong {
  color: var(--alfa-type-heading, #0f281d);
}
