/*
 * Homepage "What Travelers Say" section ("hr-" = home reviews).
 * Used by resources/views/components/home-reviews.blade.php
 * Look: same as the hero and the footer. Serif title, orange accents, calm white cards.
 * Plain CSS on purpose: no Tailwind rebuild is needed when this file changes.
 */

.hr {
    padding: 80px 0;
    background: #FAF8F4; /* warm off-white, same "paper" colour as the guide page */
    border-top: 1px solid #E7E3DB;
}
.hr-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .hr-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hr-inner { padding: 0 2rem; } }

/* ---------- Title ---------- */
.hr-head { text-align: center; margin-bottom: 48px; }
.hr-head h2 {
    font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; color: var(--brand-blue);
}
.hr-head h2 em { font-style: italic; color: var(--brand-orange); }
.hr-head p { margin-top: 10px; font-size: 1.05rem; color: #6B7280; }

/* ---------- Cards ---------- */
/* Phones: one card per row. 900px+: three equal cards side by side. */
.hr-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .hr-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.hr-card {
    /* Flex column: the author block is pushed to the bottom, so all cards line up */
    position: relative; display: flex; flex-direction: column; gap: 18px;
    margin: 0; padding: 28px; border-radius: 20px;
    background: #fff; border: 1px solid #E7E3DB;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 109, .35); }

/* Big decorative quote mark in the top right corner */
.hr-card::before {
    content: "\201C"; /* the “ character */
    position: absolute; top: 6px; right: 22px;
    font-family: 'Instrument Serif', Georgia, serif; font-size: 5.5rem; line-height: 1;
    color: var(--brand-orange); opacity: .18; pointer-events: none;
}

.hr-stars { display: flex; gap: 3px; color: var(--brand-orange); font-size: .8rem; }

.hr-quote {
    flex: 1; /* takes the free space, so the author sits at the bottom */
    margin: 0; font-size: 1rem; line-height: 1.65; color: #2E2E2E;
}

/* ---------- Author ---------- */
.hr-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 18px; border-top: 1px solid #F0ECE5;
}
.hr-avatar {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--avatar); color: #fff; font-weight: 700; font-size: .85rem;
}
.hr-author strong { display: block; font-weight: 600; color: #1F2328; }
.hr-author small { display: block; font-size: .8rem; color: #6B7280; }

/* Phones: a bit less padding */
@media (max-width: 640px) {
    .hr { padding: 56px 0; }
    .hr-head { margin-bottom: 32px; }
    .hr-card { padding: 22px; }
}
