/* ==================================================
   Client Reference Letter -- isolated rebuild, same pattern as the
   rest of the site (hard reset every descendant, brand colors,
   pill-button matching every other page's CTA).
   ================================================== */
:root {
    --rf-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --rf-orange: #ff5e14;
    --rf-ink: #14161a;
    --rf-muted: #6b7280;
    --rf-line: #e9eaee;
}

.amzy-ref-section,
.amzy-ref-section * {
    all: revert;
    box-sizing: border-box;
}

.amzy-ref-section {
    display: block;
    background: #fff;
    padding: 48px 0 8px;
    font-family: var(--rf-font);
}

.amzy-ref-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.amzy-ref-card {
    position: relative;
    background: #fafafa;
    border: 1px solid var(--rf-line);
    border-radius: 22px;
    padding: 40px;
    overflow: hidden;
}

.amzy-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 94, 20, 0.1);
    color: var(--rf-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.amzy-ref-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.amzy-ref-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 16px 36px rgba(20, 22, 26, 0.12);
}

.amzy-ref-image img {
    display: block;
    width: 100%;
    height: auto;
}

.amzy-ref-image-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(20, 22, 26, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.amzy-ref-image:hover .amzy-ref-image-hint,
.amzy-ref-image:focus-visible .amzy-ref-image-hint { opacity: 1; }

.amzy-ref-quote {
    position: relative;
    margin: 0 0 16px;
    padding-left: 22px;
    font-family: var(--rf-font);
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: var(--rf-ink);
    border-left: 3px solid var(--rf-orange);
}

.amzy-ref-quote i {
    display: block;
    color: var(--rf-orange);
    opacity: 0.4;
    font-size: 15px;
    margin-bottom: 6px;
}

.amzy-ref-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--rf-muted);
    margin: 0 0 26px;
}

.amzy-ref-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--rf-line);
}

.amzy-ref-author { display: flex; flex-direction: column; gap: 2px; }
.amzy-ref-author strong { font-size: 14.5px; font-weight: 700; color: var(--rf-ink); }
.amzy-ref-author span { font-size: 12.5px; color: var(--rf-muted); }

.amzy-ref-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rf-orange);
    color: #fff;
    font-family: var(--rf-font);
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.amzy-ref-btn:hover {
    background: #e54d0f;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Explicit Font Awesome declaration -- the all:revert boundary above
   strips the icon font/content the "fas" class would otherwise supply. */
.amzy-ref-section i {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
}

/* --- Tablet --- */
@media (max-width: 900px) {
    .amzy-ref-grid { grid-template-columns: 1fr; gap: 26px; }
    .amzy-ref-image { max-width: 360px; margin: 0 auto; }
}

/* --- Mobile: compact, no oversized text --- */
@media (max-width: 768px) {
    .amzy-ref-section { padding: 32px 0 4px; }
    .amzy-ref-card { padding: 24px 20px; border-radius: 18px; }
    .amzy-ref-badge { font-size: 10.5px; padding: 6px 12px; margin-bottom: 20px; }
    .amzy-ref-image { max-width: none; }
    .amzy-ref-quote { font-size: 14.5px; padding-left: 16px; }
    .amzy-ref-desc { font-size: 12.5px; margin-bottom: 20px; }
    .amzy-ref-footer { flex-direction: column; align-items: stretch; gap: 14px; }
    .amzy-ref-btn { justify-content: center; width: 100%; }
}
