/* ── Reviews page — palette ───────────────────────────────────────────────── */
/* Scoped to .rev (see reviews.php) so this page's rose palette stays here
   rather than leaking site-wide — same pattern as .hiw/.pay/.del. */
.rev {
    --rev-heading:  var(--color-text);
    --rev-text:     #6b6b70;
    --rev-pink:     #f9819f;
    --rev-pink-soft: #fdeef3;
    --rev-pink-pale: #fff6f8;
    --rev-card:     #ffffff;
    --rev-line:     #f1dbe1;
}

/* ── Hero: title + photo/quote banner ────────────────────────────────────── */
/* Removing the shared page-hero means this section has to bleed behind the
   fixed header itself — same trick as .del-hero (delivery.css): a locally
   scoped --rev-header-space compensates for body's own top padding. */
.rev-hero {
    --rev-header-space: calc(var(--marquee-height) + var(--topbar-height) + var(--header-height) + var(--header-offset));
    padding-top: calc(var(--rev-header-space) + 36px);
    margin-top:  calc(-1 * var(--rev-header-space));
    background:  var(--rev-pink-pale);
}

.rev-hero__head { text-align: center; margin-bottom: 34px; }

.rev-hero__title {
    display:         inline-flex;
    align-items:     center;
    gap:             10px;
    margin:          0;
    font-size:       44px;
    line-height:     52px;
    font-weight:     700;
    color:           var(--rev-heading);
}
.rev-hero__title-mark { display: inline-flex; color: var(--rev-pink); }

.rev-hero__rule {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             10px;
    margin:          14px 0 10px;
    color:           var(--rev-pink);
}
.rev-hero__rule span { width: 50px; height: 1px; background: var(--rev-line); }

.rev-hero__subtitle {
    margin:      0;
    font-size:   16px;
    line-height: 24px;
    color:       var(--rev-text);
}

.rev-hero__banner {
    position:      relative;
    display:       flex;
    align-items:   center;
    min-height:    360px;
    padding:       28px 0;
    border-radius: 20px;
    overflow:      hidden;
    background:    var(--rev-hero-bg, linear-gradient(120deg, #fdeef2 0%, #fbe4ec 100%)) center / cover no-repeat;
}

.rev-hero__quote {
    position:      relative;
    width:         min(560px, 52%);
    margin-left:   auto;
    margin-right:  6%;
    padding:       32px 46px 34px;
    border-radius: 20px;
    background:    rgba(255, 255, 255, 0.95);
    box-shadow:    0 10px 30px rgba(90, 40, 60, 0.12);
}
.rev-hero__quote::before {
    content:      '';
    position:     absolute;
    top:          56px;
    left:         -17px;
    border-style: solid;
    border-width: 13px 18px 13px 0;
    border-color: transparent rgba(255, 255, 255, 0.95) transparent transparent;
}

.rev-hero__mark {
    display:     block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size:   44px;
    line-height: 1;
    color:       var(--rev-pink);
    opacity:     0.6;
}
.rev-hero__mark--open  { margin-bottom: 4px; }
.rev-hero__mark--close { margin-top: 4px; text-align: right; }

.rev-hero__lead {
    margin:      0;
    font-size:   19px;
    line-height: 29px;
    font-weight: 500;
    color:       var(--rev-heading);
}

.rev-hero__author {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin:      10px 0 0;
    font-family: 'Parisienne', var(--font-accent, cursive);
    font-size:   24px;
    color:       var(--rev-pink);
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.rev-stats { padding: 34px 0 0; }

.rev-stats__list {
    display:               grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:                   16px;
    margin:                0;
    padding:               24px 36px;
    border-radius:         18px;
    background:            var(--rev-card);
    box-shadow:            0 8px 26px rgba(90, 40, 60, 0.06);
    list-style:            none;
}

.rev-stat {
    display:     flex;
    align-items: center;
    gap:         14px;
}
.rev-stat__icon {
    flex-shrink: 0;
    display:     inline-flex;
    color:       var(--rev-pink);
}
.rev-stat__body { display: flex; flex-direction: column; }
.rev-stat__title {
    font-size:   19px;
    line-height: 25px;
    font-weight: 700;
    color:       var(--rev-heading);
}
.rev-stat__text {
    font-size:   13px;
    line-height: 18px;
    color:       var(--rev-text);
}

/* ── Customer Videos ──────────────────────────────────────────────────────── */
.rev-videos { padding: 60px 0 0; }

.rev-videos__head {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             20px;
    margin-bottom:   22px;
}

.rev-videos__title {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    margin:      0;
    font-size:   24px;
    line-height: 31px;
    font-weight: 700;
    color:       var(--rev-heading);
}
.rev-videos__title-mark { display: inline-flex; color: var(--rev-pink); }

.rev-videos__actions { display: flex; align-items: center; gap: 20px; }

.rev-videos__link {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    font-size:       14px;
    font-weight:     600;
    color:           var(--rev-pink);
    text-decoration: none;
}
.rev-videos__link:hover { text-decoration: underline; }

.rev-videos__nav { display: flex; gap: 8px; }
.rev-videos__nav:empty { display: none; }
.rev-videos__arrow {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    border:          none;
    border-radius:   50%;
    background:      var(--rev-pink-soft);
    color:           var(--rev-heading);
    cursor:          pointer;
    transition:      background var(--transition), color var(--transition);
}
.rev-videos__arrow:hover { background: var(--rev-pink); color: #ffffff; }
.rev-videos__arrow.slick-disabled { opacity: 0.4; cursor: default; pointer-events: none; }

.rev-videos__slider { margin: 0; padding: 0; list-style: none; }
.rev-videos__slider .slick-slide { margin: 0 8px; }
.rev-videos__slider .slick-list  { margin: 0 -8px; }
.rev-videos__slider:not(.slick-initialized) { display: flex; gap: 16px; overflow: hidden; }
.rev-videos__slider:not(.slick-initialized) .rev-video { flex: 0 0 calc(20% - 13px); }

.rev-video__media {
    position:      relative;
    display:       block;
    width:         100%;
    aspect-ratio:  3 / 4;
    border-radius: 16px;
    overflow:      hidden;
    background:    var(--rev-pink-soft);
}
.rev-video__media img,
video.rev-video__media { display: block; width: 100%; height: 100%; object-fit: cover; }

.rev-video__play {
    position:  absolute;
    top:       50%;
    left:      50%;
    transform: translate(-50%, -50%);
    display:   flex;
}

.rev-video__duration {
    position:       absolute;
    left:           10px;
    bottom:         10px;
    padding:        3px 8px;
    border-radius:  var(--radius-pill);
    background:     rgba(0, 0, 0, 0.55);
    color:          #ffffff;
    font-size:      12px;
    font-weight:    600;
}

.rev-video__body { padding: 10px 2px 0; }
.rev-video__caption {
    margin:      0;
    font-size:   13px;
    line-height: 19px;
    font-weight: 600;
    color:       var(--rev-heading);
}
.rev-video__location {
    margin:      2px 0 0;
    font-size:   12px;
    line-height: 17px;
    color:       var(--rev-pink);
}

/* ── Happy Families grid (existing gallery, restyled) ────────────────────── */
.reviews { padding: 60px 0 100px; }

.reviews__head { margin-bottom: 24px; }

.reviews__title {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    margin:      0 0 18px;
    font-size:   24px;
    line-height: 31px;
    font-weight: 700;
    color:       var(--rev-heading, var(--color-text));
}
.reviews__title-mark { display: inline-flex; color: var(--rev-pink, var(--color-primary)); }

.reviews__filters { display: flex; flex-wrap: wrap; gap: 10px; }
.reviews__filter {
    height:        36px;
    padding:       0 18px;
    border:        none;
    border-radius: var(--radius-pill);
    background:    var(--rev-pink-soft, var(--color-pink-50));
    color:         var(--rev-heading, var(--color-text));
    font-size:     14px;
    font-weight:   500;
    cursor:        pointer;
    transition:    background var(--transition), color var(--transition);
}
.reviews__filter:hover { background: var(--rev-line, var(--color-pink-100)); }
.reviews__filter.is-active { background: var(--rev-pink, var(--color-primary)); color: #ffffff; }

/* Columns are capped at the source width (370px) so screenshots are never
   upscaled — prod stretches them to 461px and they go soft */
.reviews__grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:                   24px;
    margin:                0;
    padding:               0;
    list-style:            none;
}

.reviews__item.is-hidden,
.reviews__item.is-filtered { display: none; }

.reviews__link {
    display:       block;
    overflow:      hidden;
    border-radius: var(--radius-img);
    background:    var(--color-bg-alt);
    box-shadow:    var(--shadow-block);
    transition:    box-shadow var(--transition), transform var(--transition);
}
.reviews__link:hover {
    box-shadow: var(--shadow-block-hover);
    transform:  translateY(-2px);
}
.reviews__link:focus-visible {
    outline:        2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Each screenshot keeps its own proportions — the ratio comes from the
   attachment, so portrait and square shots both sit right in the grid */
.reviews__photo {
    display:      block;
    width:        100%;
    height:       auto;
    aspect-ratio: var(--ratio, 370 / 500);
    object-fit:   cover;
}

.reviews__more {
    display:         flex;
    justify-content: center;
    margin-top:      40px;
}
.reviews__more.is-filtered-out { display: none; }
.reviews__more .icon { margin-left: 6px; }

/* ── Closing thank-you band ───────────────────────────────────────────────── */
.rev-cta { padding: 50px 0 90px; }

.rev-cta__bar {
    position:      relative;
    display:       flex;
    align-items:   center;
    gap:           16px;
    padding:       22px 30px;
    border-radius: 18px;
    background:    var(--color-green-100);
    overflow:      hidden;
}

.rev-cta__icon {
    flex-shrink:     0;
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           40px;
    height:          40px;
    border-radius:   50%;
    /* Swapped from a green disc + white glyph — --color-green-100 (the bar's
       own background) and --color-secondary are the same solid green now,
       so the disc used to vanish into the bar. */
    background:      #ffffff;
    color:           var(--color-secondary);
}

.rev-cta__text {
    flex:        1;
    font-size:   15px;
    line-height: 23px;
    color:       var(--rev-heading);
}

.rev-cta__paws {
    display:     flex;
    align-items: flex-end;
    gap:         8px;
    color:       var(--color-secondary);
    opacity:     0.45;
}

/* Lightbox */
.lightbox {
    position:        fixed;
    inset:           0;
    z-index:         var(--z-modal);
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         40px;
    background:      rgba(28, 29, 41, 0.9);
    opacity:         0;
    visibility:      hidden;
    transition:      opacity var(--transition), visibility var(--transition);
}
.lightbox.is-open {
    opacity:    1;
    visibility: visible;
}

.lightbox__img {
    max-width:     100%;
    max-height:    100%;
    border-radius: var(--radius-img);
    object-fit:    contain;
}

.lightbox__close,
.lightbox__nav {
    position:        absolute;
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           48px;
    height:          48px;
    padding:         0;
    border:          none;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.15);
    color:           #ffffff;
    cursor:          pointer;
    transition:      background var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--color-primary); }

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox__counter {
    position:  absolute;
    bottom:    20px;
    left:      50%;
    transform: translateX(-50%);
    font-size: 14px;
    color:     rgba(255, 255, 255, 0.7);
}

@media (max-width: 1200px) {
    .rev-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .rev-videos__slider:not(.slick-initialized) .rev-video { flex: 0 0 calc(25% - 12px); }
}

@media (max-width: 1024px) {
    .rev-hero__title { font-size: 34px; line-height: 42px; }

    /* Same fix as .del-hero__banner (delivery.css): the quote card's own
       text length used to drive the banner's height here too, and once it
       ran past min-height, background-size:cover flipped from cropping the
       photo's width (fine) to cropping its height — stretching the empty
       canvas above the subject across the whole banner instead. Moving the
       photo to its own fixed-height ::before, with the quote stacked below
       it in normal flow, keeps the crop the same regardless of quote length. */
    .rev-hero__banner {
        position:    relative;
        display:     block;
        min-height:  0;
        padding:     300px 24px 24px;
        background:  var(--rev-pink-pale);
        overflow:    hidden;
    }
    .rev-hero__banner::before {
        content:    '';
        position:   absolute;
        top:        0;
        left:       0;
        right:      0;
        height:     280px;
        background: var(--rev-hero-bg, linear-gradient(120deg, #fdeef2 0%, #fbe4ec 100%)) center / cover no-repeat;
    }
    .rev-hero__quote {
        position:    relative;
        z-index:     1;
        width:       100%;
        margin:      0;
        padding:     26px 32px 28px;
    }
    .rev-hero__quote::before { display: none; }

    .rev-stats { padding-top: 26px; }
    .rev-videos { padding-top: 46px; }
    .rev-videos__slider:not(.slick-initialized) .rev-video { flex: 0 0 calc(33.333% - 11px); }

    .reviews { padding: 46px 0 80px; }
    .reviews__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .reviews__more { margin-top: 32px; }

    .rev-cta { padding: 40px 0 60px; }
}

@media (max-width: 767px) {
    .rev-hero { padding-top: calc(var(--rev-header-space) + 24px); }
    .rev-hero__title { font-size: 26px; line-height: 33px; }
    .rev-hero__banner { padding: 220px 16px 16px; }
    .rev-hero__banner::before { height: 200px; }
    .rev-hero__quote { width: 100%; margin: 0; padding: 22px 20px; }

    .rev-stats__list { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; gap: 16px; }

    .rev-videos__head { flex-wrap: wrap; }
    .rev-videos__slider:not(.slick-initialized) .rev-video { flex: 0 0 calc(50% - 8px); }

    .reviews { padding: 32px 0 60px; }
    .reviews__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .reviews__more { margin-top: 24px; }

    .rev-cta__bar { flex-direction: column; align-items: flex-start; text-align: left; }
    .rev-cta__paws { position: absolute; right: 16px; bottom: 12px; opacity: 0.3; }

    .lightbox { padding: 16px; }
    .lightbox__close,
    .lightbox__nav { width: 40px; height: 40px; }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
}
