/* =========================================================
   GOLDEN HOUSE REVIEWS
   FULL CSS
========================================================= */

:root {
  --gh-rev-white: #ffffff;
  --gh-rev-cream: #fbf9f5;
  --gh-rev-black: #111111;
  --gh-rev-text: #383838;
  --gh-rev-muted: #737373;
  --gh-rev-faint: #a8a29a;
  --gh-rev-gold: #bd8a34;
  --gh-rev-gold-dark: #93671f;
  --gh-rev-gold-soft: rgba(189, 138, 52, 0.12);
  --gh-rev-border: #e8e3dc;

  --gh-rev-heading-font: "Playfair Display", serif;
  --gh-rev-body-font: "DM Sans", sans-serif;
}


/* =========================================================
   SECTION
========================================================= */

.gh-reviews-section {
  width: 100%;
  padding: 110px 5vw 100px;

  position: relative;
  isolation: isolate;

  background: var(--gh-rev-white);

  font-family: var(--gh-rev-body-font);
}

.gh-reviews-section *,
.gh-reviews-section *::before,
.gh-reviews-section *::after {
  box-sizing: border-box;
}

.gh-reviews-container {
  width: min(100%, 1320px);
  margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.gh-reviews-heading {
  margin-bottom: 56px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  text-align: center;
}

.gh-reviews-eyebrow {
  color: var(--gh-rev-gold-dark);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gh-reviews-heading-decoration {
  display: flex;
  align-items: center;
  gap: 14px;

  color: var(--gh-rev-gold);

  font-size: 0.7rem;
}

.gh-reviews-heading-decoration span {
  width: 44px;
  height: 1px;

  background: var(--gh-rev-gold);
}

.gh-reviews-heading h2 {
  margin: 0;

  color: var(--gh-rev-black);

  font-family: var(--gh-rev-heading-font);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gh-reviews-heading > p {
  max-width: 460px;
  margin: 0;

  color: var(--gh-rev-muted);

  font-size: 0.94rem;
  line-height: 1.7;
}

.gh-write-review-button {
  margin-top: 10px;
  padding: 15px 30px;
  border: 1px solid var(--gh-rev-black);
  border-radius: 2px;

  background: transparent;
  color: var(--gh-rev-black);

  display: inline-flex;
  align-items: center;
  gap: 12px;

  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.gh-write-review-button i {
  color: var(--gh-rev-gold);

  transition: color 0.25s ease;
}

.gh-write-review-button:hover {
  background: var(--gh-rev-black);
  color: var(--gh-rev-white);
}

.gh-write-review-button:hover i {
  color: var(--gh-rev-gold);
}

.gh-write-review-button:disabled {
  cursor: default;
  opacity: 0.55;
}


/* =========================================================
   CAROUSEL
========================================================= */

.gh-reviews-carousel {
  width: 100%;

  position: relative;
}

.gh-reviews-stage {
  width: 100%;
  height: 460px;

  position: relative;

  overflow: hidden;
}

.gh-review-slot {
  width: min(640px, 82vw);

  position: absolute;
  top: 50%;
  left: 50%;

  opacity: 0;
  pointer-events: none;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.5s ease;
}

.gh-reviews-stage.is-transitioning .gh-review-slot {
  opacity: 0 !important;
}

.gh-review-slot-active {
  z-index: 3;

  transform: translate(-50%, -50%) scale(1);

  opacity: 1;
}

.gh-review-slot-prev {
  z-index: 2;

  transform: translate(calc(-50% - 380px), -50%) scale(0.84);

  opacity: 0.38;
  filter: blur(1.5px);
}

.gh-review-slot-next {
  z-index: 2;

  transform: translate(calc(-50% + 380px), -50%) scale(0.84);

  opacity: 0.38;
  filter: blur(1.5px);
}


/* =========================================================
   REVIEW CARD
========================================================= */

.gh-review-card {
  width: 100%;
  padding: 46px 50px;
  border-radius: 12px;

  background: var(--gh-rev-white);
  border: 1px solid var(--gh-rev-border);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.08);
}

.gh-review-card-top {
  margin-bottom: 22px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gh-review-quote {
  color: var(--gh-rev-gold);

  font-family: var(--gh-rev-heading-font);
  font-size: 3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 0.7;
}

.gh-review-stars {
  display: flex;
  gap: 4px;

  color: var(--gh-rev-gold);

  font-size: 0.95rem;
}

.gh-review-card blockquote {
  margin: 0;

  color: var(--gh-rev-text);

  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.85;
}

.gh-review-divider {
  margin: 28px 0 22px;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--gh-rev-gold);
}

.gh-review-divider span {
  height: 1px;
  flex: 1;

  background: var(--gh-rev-border);
}

.gh-review-divider i {
  font-size: 0.5rem;
}

.gh-review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gh-review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: var(--gh-rev-black);
  color: var(--gh-rev-gold);

  font-family: var(--gh-rev-heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gh-review-author-info h3 {
  margin: 0;

  color: var(--gh-rev-black);

  font-family: var(--gh-rev-heading-font);
  font-size: 1.05rem;
  font-weight: 600;
}

.gh-review-author-info time {
  display: block;
  margin-top: 2px;

  color: var(--gh-rev-faint);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* =========================================================
   ARROWS
========================================================= */

.gh-review-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid var(--gh-rev-border);
  border-radius: 50%;

  position: absolute;
  top: 50%;
  z-index: 5;

  background: var(--gh-rev-white);
  color: var(--gh-rev-black);

  display: grid;
  place-items: center;

  font-size: 0.95rem;
  cursor: pointer;

  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.1);

  transform: translateY(-50%);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.gh-review-arrow-left {
  left: 0;
}

.gh-review-arrow-right {
  right: 0;
}

.gh-review-arrow:hover {
  background: var(--gh-rev-black);
  border-color: var(--gh-rev-black);
  color: var(--gh-rev-gold);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gh-reviews-empty {
  max-width: 420px;
  margin: 40px auto 0;

  color: var(--gh-rev-muted);

  text-align: center;

  font-size: 0.9rem;
  line-height: 1.7;
}

.gh-reviews-empty[hidden] {
  display: none;
}


/* =========================================================
   MODAL
========================================================= */

.gh-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: grid;
  place-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gh-review-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gh-review-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(17, 17, 17, 0.6);

  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.gh-review-modal-dialog {
  width: min(calc(100% - 40px), 540px);
  max-height: calc(100vh - 60px);
  padding: 48px 44px 42px;
  border-radius: 12px;

  position: relative;
  z-index: 2;

  background: var(--gh-rev-white);

  overflow-y: auto;

  transform: translateY(25px) scale(0.97);

  transition: transform 0.32s ease;
}

.gh-review-modal.open .gh-review-modal-dialog {
  transform: translateY(0) scale(1);
}

.gh-review-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;

  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;

  background: var(--gh-rev-cream);
  color: var(--gh-rev-black);

  display: grid;
  place-items: center;

  font-size: 0.9rem;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.gh-review-modal-close:hover {
  background: var(--gh-rev-black);
  color: var(--gh-rev-white);
}

.gh-modal-decoration {
  margin-bottom: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: var(--gh-rev-gold);

  font-size: 0.6rem;
}

.gh-modal-decoration span {
  width: 38px;
  height: 1px;

  background: var(--gh-rev-gold);
}

.gh-review-modal-heading {
  margin-bottom: 26px;

  text-align: center;
}

.gh-review-modal-heading > span {
  color: var(--gh-rev-gold-dark);

  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gh-review-modal-heading h2 {
  margin: 10px 0 0;

  color: var(--gh-rev-black);

  font-family: var(--gh-rev-heading-font);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gh-review-modal-heading p {
  max-width: 340px;
  margin: 10px auto 0;

  color: var(--gh-rev-muted);

  font-size: 0.86rem;
  line-height: 1.7;
}


/* =========================================================
   RATING FIELDSET
========================================================= */

.gh-rating-fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.gh-rating-fieldset legend {
  margin-bottom: 8px;

  color: var(--gh-rev-black);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gh-rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh-rating-stars {
  display: flex;
  gap: 6px;
}

.gh-rating-star {
  width: 34px;
  height: 34px;
  border: 0;

  background: transparent;
  color: var(--gh-rev-gold);

  display: grid;
  place-items: center;

  font-size: 1.15rem;
  cursor: pointer;

  transition: transform 0.15s ease;
}

.gh-rating-star:hover {
  transform: scale(1.1);
}

.gh-rating-label {
  color: var(--gh-rev-muted);

  font-size: 0.78rem;
  font-weight: 600;
}


/* =========================================================
   FORM
========================================================= */

.gh-review-form-group {
  width: 100%;
  margin-bottom: 16px;
}

.gh-review-label-row {
  margin-bottom: 7px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-review-label-row label {
  color: var(--gh-rev-black);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gh-review-label-row span {
  color: var(--gh-rev-faint);

  font-size: 0.68rem;
}

.gh-review-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dcd8d1;
  border-radius: 3px;

  background: var(--gh-rev-white);
  color: var(--gh-rev-black);

  outline: none;
  resize: vertical;

  font: inherit;
  font-size: 0.88rem;
  line-height: 1.6;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.gh-review-form textarea::placeholder {
  color: #a3a3a3;
}

.gh-review-form textarea:focus {
  border-color: var(--gh-rev-gold);

  box-shadow: 0 0 0 3px rgba(189, 138, 52, 0.1);
}

.gh-review-form-message {
  min-height: 18px;
  margin-bottom: 10px;

  color: #a52f2f;

  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.gh-submit-review-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--gh-rev-black);
  border-radius: 2px;

  background: var(--gh-rev-black);
  color: var(--gh-rev-white);

  font: inherit;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.gh-submit-review-button:hover {
  background: var(--gh-rev-gold-dark);
  border-color: var(--gh-rev-gold-dark);
}

.gh-submit-review-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.gh-submit-default,
.gh-submit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-submit-loading {
  display: none;
}

.gh-submit-review-button.loading .gh-submit-default {
  display: none;
}

.gh-submit-review-button.loading .gh-submit-loading {
  display: flex;
}

.gh-review-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--gh-rev-white);
  border-radius: 50%;

  animation: ghReviewSpin 0.7s linear infinite;
}

.gh-review-spinner-large {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border: 3px solid var(--gh-rev-border);
  border-top-color: var(--gh-rev-gold);
}

.gh-review-policy-note {
  margin: 16px 0 0;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--gh-rev-faint);

  font-size: 0.72rem;
  line-height: 1.6;
}

.gh-review-policy-note i {
  margin-top: 2px;

  color: var(--gh-rev-gold);
}


/* =========================================================
   FORM / STATE VIEW SWITCHING
========================================================= */

.gh-review-form-view {
  display: none;
}

.gh-review-form-view.is-active {
  display: block;

  animation: ghReviewViewReveal 0.4s ease;
}

.gh-review-success-view {
  display: none;

  flex-direction: column;
  align-items: center;

  text-align: center;
}

.gh-review-success-view.is-active {
  display: flex;

  animation: ghReviewViewReveal 0.4s ease;
}

.gh-review-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;

  position: relative;
  margin-bottom: 20px;

  background: var(--gh-rev-black);
  color: var(--gh-rev-white);

  display: grid;
  place-items: center;

  font-size: 1.3rem;
}

.gh-review-success-icon i {
  animation:
    ghReviewIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.gh-review-success-label {
  margin-bottom: 8px;

  color: var(--gh-rev-gold);

  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gh-review-success-view h2 {
  margin: 0;

  color: var(--gh-rev-black);

  font-family: var(--gh-rev-heading-font);
  font-size: clamp(1.6rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gh-review-success-view p {
  max-width: 320px;
  margin: 12px 0 0;

  color: var(--gh-rev-muted);

  font-size: 0.86rem;
  line-height: 1.7;
}

.gh-review-success-button {
  min-width: 180px;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid var(--gh-rev-black);
  border-radius: 2px;

  background: var(--gh-rev-black);
  color: var(--gh-rev-white);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.gh-review-success-button:hover {
  background: var(--gh-rev-gold-dark);
  border-color: var(--gh-rev-gold-dark);
}

body.gh-review-modal-open {
  overflow: hidden;
}


/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes ghReviewViewReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ghReviewSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ghReviewIconPop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .gh-review-slot-prev {
    transform: translate(calc(-50% - 300px), -50%) scale(0.8);
  }

  .gh-review-slot-next {
    transform: translate(calc(-50% + 300px), -50%) scale(0.8);
  }
}

@media (max-width: 900px) {
  .gh-reviews-section {
    padding: 90px 24px 80px;
  }

  .gh-reviews-heading {
    margin-bottom: 40px;
  }

  .gh-review-card {
    padding: 38px 32px;
  }

  .gh-review-arrow {
    width: 46px;
    height: 46px;

    font-size: 0.85rem;
  }
}


/* =========================================================
   MOBILE — single card, autoplay only, no arrows
========================================================= */

@media (max-width: 760px) {
  .gh-reviews-stage {
    height: 440px;
  }

  .gh-review-slot {
    width: 100%;
  }

  .gh-review-arrow {
    display: none;
  }

  .gh-review-slot-prev,
  .gh-review-slot-next {
    opacity: 0;
    pointer-events: none;
  }

  .gh-review-card {
    padding: 34px 24px;
  }

  .gh-review-quote {
    font-size: 2.4rem;
  }

  .gh-review-card blockquote {
    font-size: 1rem;
  }

  .gh-review-modal-dialog {
    padding: 40px 24px 34px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .gh-review-slot,
  .gh-review-modal,
  .gh-review-modal-dialog {
    transition: none;
  }

  .gh-review-form-view.is-active,
  .gh-review-success-view.is-active,
  .gh-review-spinner,
  .gh-review-success-icon i {
    animation: none;
  }
}
