/* =========================================================
   HOME PAGE ONLY (home.css)
   - Hero section background + overlay + typography
   - Hero band
   - About section
   - Testimonials + Modal
   ========================================================= */


/* =========================================================
   HERO (Figma-inspired)
   ========================================================= */

.hero {
  position: relative;
  min-height: 27.5rem; /* 440px */
  background-image: url("/static/core/images/ss.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 4rem; /* band reserve */
  overflow: hidden;
}

/* Dark overlay for contrast */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
}

/* Inner layout */
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 6.7rem; /* you tuned */
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Hero type treatment */
.hero-title,
.hero-sub {
  color: #fff;
  text-shadow: 0 0.1875rem 0.75rem rgba(0, 0, 0, 0.60);
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
}

.hero-sub {
  max-width: 43.75rem; /* 700px */
  margin: 0 auto;
  opacity: 0.9;
}

/* Centered hero content */
.hero-content {
  margin-top: 1.25rem;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  width: 3.25rem; /* 52px */
  height: 3.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.hero-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}


/* =========================================================
   HERO BOTTOM BAND
   ========================================================= */

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bs-primary);
  color: var(--bs-dark);
  z-index: 3;
}

.hero-band p {
  opacity: 0.95;
  font-weight: 600;
  margin-bottom: 0;
}

.hero-band .site-frame {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}


/* =========================================================
   ACUITY EMBED WRAPPER (if used on home)
   ========================================================= */

.acuity-embed {
  background: rgba(255, 255, 255, 0.55);
  border: 0.0625rem solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}


/* =========================================================
   ABOUT (Option B: premium cream card + green accent)
   ========================================================= */

.about-clean {
  background: #FAF4EE;
}

.aboutb-wrap {
  max-width: 48rem;     /* 768px */
  max-height: 30rem;    /* 480px */
}

.aboutb-card {
  background: rgba(255, 255, 255, 0.55);
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(0.375rem);
}

.aboutb-accent {
  height: .4rem;
  background: var(--bs-primary);
}

.aboutb-photo {
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  height: 13rem;
}

.aboutb-title {
  font-size: 2.05rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(20, 25, 30, 0.92);
  font-weight: 700;
}

.aboutb-text {
  color: rgba(20, 25, 30, 0.72);
  line-height: 1.62;
  font-size: 0.93rem;
  max-width: 40ch;
}

.aboutb-btn {
  background: rgba(120, 145, 130, 0.95);
  color: #fff;
  border: none;
  box-shadow: 0 0.75rem 1.625rem rgba(0, 0, 0, 0.14);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.aboutb-btn:hover {
  transform: translateY(-0.0625rem);
  filter: brightness(1.05);
  box-shadow: 0 1rem 2.125rem rgba(0, 0, 0, 0.18);
}

.aboutb-left { padding-left: 1em; }

@media (min-width: 62rem) {
  .aboutb-photo { height: 16rem; }
}
@media (max-width: 61.99875rem) {
  .aboutb-wrap { max-width: 45rem; }
  .aboutb-left { padding: 1.25rem 1.25rem 0 1.25rem; }
  .aboutb-photo { height: 15rem; }
}


/* ================================
   HOME — TESTIMONIALS SECTION
================================ */

/* Green spacer above testimonials (full-width bar) */
.t-spacer {
  height: 42px;
  background: #6e8374;
}

/* Main testimonials section */
.testimonials {
  background: var(--ss-paper, #f7f2ea);
}

/* Background image layer with overlay */
.testimonials-bg {
  position: relative;
  padding: clamp(2rem, 3.5vw, 2.75rem) 0
           clamp(2.25rem, 3.5vw, 3.25rem);
  overflow: hidden;
  background: var(--ss-paper, #f7f2ea);
  transform: translateZ(0);
}

/* Image layer */
.testimonials-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
    var(--t-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Paper “curve” overlay (smooth mask) */
.testimonials-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 170px;
  background: var(--ss-paper, #f7f2ea);
  z-index: 2;
  pointer-events: none;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 260' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C 180 210, 380 255, 520 235 C 670 210, 820 165, 1000 120 L1000 260 L0 260 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 260' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C 180 210, 380 255, 520 235 C 670 210, 820 165, 1000 120 L1000 260 L0 260 Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: bottom;
}

/* Fallback for browsers that don't support mask-image */
@supports not (mask-image: url("")) {
  .testimonials-bg::after {
    clip-path: polygon(
      0% 58%,
      22% 78%,
      50% 92%,
      78% 74%,
      100% 52%,
      100% 100%,
      0% 100%
    );
  }
}

/* Ensure your content stays above everything */
.testimonials-bg .site-frame {
  position: relative;
  z-index: 3;
}

/* Pull next section up slightly */
.testimonials + section {
  margin-top: -50px;
}

/* Header */
.testimonials-header h2 {
  color: #fff;
  font-weight: 760;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3vw, 2.35rem); /* was ~2.05rem */
  margin: 0;
}

.t-stars {
  color: #ffd24d;
  letter-spacing: 0.18em;
  font-size: 1.47rem;
  user-select: none;
}

.t-stars.small {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

/* Cards grid positioning */
.testimonials-cards {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

/* ================================
   TESTIMONIAL CARDS — premium + consistent height
================================ */

/* IMPORTANT: lock card height so text never changes the grid */
.t-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.15rem 1.25rem 1rem;

  /* keep sizing premium + readable */
  background: rgba(148, 170, 148, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  color: rgba(18, 22, 20, 0.82);

  display: flex;
  flex-direction: column;

  /* This is the key to consistent size */
  height: 230px;

  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Desktop-only hover lift */
@media (hover: hover) and (pointer: fine) {
  .t-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.22);
  }
}

/* Subtle inner wash behind content */
.t-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.10);
  pointer-events: none;
  z-index: 1;
}

/* Stars like figma */
.t-card::before {
  content: "★★★★★";
  position: absolute;
  top: 1.02rem;
  left: calc(56px + 2.10rem);
  font-size: 1.55rem;
  letter-spacing: 0.11em;
  color: #ffd400;
  z-index: 3;
  pointer-events: none;
}

/* Keep content above wash */
.t-card > * { position: relative; z-index: 2; }

/* Top row */
.t-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex: 0 0 auto;
}

.t-card-top .t-stars.small { display: none; }

/* Avatar */
.t-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.30);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-avatar--letter {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: #ea4c89;
}

/* Text clamp (no bars, no glow) */
.t-text {
  color: rgba(10, 14, 12, 0.78);
  line-height: 1.62;
  margin: 0 0 0.9rem 0;
  max-width: 60ch;
  flex: 1 1 auto;

  overflow: hidden;
  max-height: 5.2em;

  -webkit-mask-image: linear-gradient(#000 74%, transparent);
  mask-image: linear-gradient(#000 74%, transparent);
}

/* Button pinned bottom-right */
.t-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;

  background: rgba(231, 127, 103, 0.92);
  color: rgba(255,255,255,0.94);
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;

  margin-top: auto;
  align-self: flex-end;

  border: none;
  outline: none;
}

.t-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.t-link:focus,
.t-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 127, 103, 0.35);
}

.t-link::-moz-focus-inner { border: 0; }


/* ================================
   TESTIMONIAL MODAL — ON THEME
================================ */

.t-modal {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
  overflow: hidden;
}

.t-modal__header {
  border-bottom: 1px solid rgba(20, 25, 30, 0.08);
  background: rgba(148, 170, 148, 0.22);
  padding: 1.15rem 1.25rem;
}

.t-modal__close { opacity: 0.75; }
.t-modal__close:hover { opacity: 1; }

.t-modal__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  color: #fff;
  background: #ea4c89;
}

.t-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-modal__name {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(18, 22, 20, 0.88);
  line-height: 1.1;
}

.t-modal__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.t-modal__stars {
  color: #ffd400;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  line-height: 1;
}

.t-modal__date {
  color: rgba(18, 22, 20, 0.55);
  font-size: 0.92rem;
}

.t-modal__body { padding: 1.2rem 1.25rem 1.15rem; }

.t-modal__text {
  margin: 0;
  color: rgba(14, 18, 16, 0.74);
  line-height: 1.75;
  max-width: 70ch;
}

.t-modal__footer {
  border-top: 1px solid rgba(20, 25, 30, 0.08);
  padding: 0.95rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.t-modal__source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: rgba(18, 22, 20, 0.70);
  font-weight: 700;
}

.t-modal__source:hover { color: rgba(18, 22, 20, 0.88); }

.t-modal__btn {
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 800;
  background: rgba(231, 127, 103, 0.95);
  color: rgba(255,255,255,0.94);
  border: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.t-modal__btn:hover { filter: brightness(1.03); }

/* ================================
   HOME — BENEFITS + CTA + QUOTE
================================ */

/* ================================
   HOME — BENEFITS (compact + clearer)
================================ */

/* ================================
   HOME — BENEFITS + CTA + QUOTE
================================ */

.home-benefits {
  background: var(--ss-paper, #f7f2ea);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
}

.benefits-head {
  margin-bottom: clamp(.85rem, 1.8vw, 1.35rem);
}

.benefits-kicker {
  font-weight: 750;
  letter-spacing: 0.12em;
  color: rgba(18, 22, 20, 0.60);
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
}

.benefits-title {
  font-weight: 850;
  letter-spacing: -0.02em;
  color: rgba(18, 22, 20, 0.90);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  margin: 0;
}

/* 2 cols on phones, 3 cols on desktop */
.benefits-grid {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit-card {
  text-align: center;
  padding: 0.25rem 0.25rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  margin: 0 auto 0.5rem;
  background: rgba(120, 145, 130, 0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  display: grid;
  place-items: center;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.92);
}

.benefit-text {
  margin: 0 auto;
  max-width: 34ch;
  color: rgba(18, 22, 20, 0.68);
  line-height: 1.42;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ✅ Centered last row wrapper */
.benefits-row-center {
  grid-column: 1 / -1; /* span full grid width */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  justify-content: center;
  max-width: 58%;
  margin: 0 auto;
}

.benefit-card {
  transition: transform 200ms ease, opacity 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card:hover {
    transform: translateY(-2px);
  }
}


/* CTA band */
.home-cta {
  background: var(--bs-primary);
  padding: 1.25rem 0 1.4rem;
  border-top: none;
  position: relative;
}

.home-cta__inner {
  display: flex;
  flex-direction: column;        /* 👈 stack vertically */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.home-cta__text {
  color: rgba(18, 22, 20, 0.92);
  font-weight: 700;
  font-size: 0.98rem;
  max-width: 48ch;               /* keeps it tidy */
}

.home-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;

  background: rgba(231, 127, 103, 0.95);
  color: rgba(255,255,255,0.95);
  font-weight: 850;

  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.home-cta__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* Quote strip */
.home-quote {
  background: var(--ss-paper, #f7f2ea);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}

.home-quote__title {
  margin: 0 0 0.5rem 0;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: rgba(18, 22, 20, 0.90);
}

.home-quote__text {
  margin: 0;
  color: rgba(18, 22, 20, 0.70);
  font-weight: 650;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(18, 22, 20, 0.12),
    transparent
  );
}
