/* ──────────────────────────────────────────────────────────────────────────
   TrustReviews — editorial / magazine theme
────────────────────────────────────────────────────────────────────────── */
:root {
    --bg:           #f8f5ee;
    --bg-soft:      #fffdf7;
    --surface:      #ffffff;
    --ink:          #0a1530;
    --ink-soft:     #2a3656;
    --muted:        #6a7088;
    --rule:         #d9d0bd;
    --rule-soft:    #ece5d2;
    --accent:       #b08a3e;
    --accent-soft:  #f3ead4;
    --danger:       #b1352d;
    --star:         #c8841a;
    --shadow-sm:    0 1px 2px rgba(10, 21, 48, 0.06);
    --shadow:       0 8px 28px rgba(10, 21, 48, 0.10);
    --shadow-lg:    0 24px 60px rgba(10, 21, 48, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.muted-link {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s;
}
.muted-link:hover { color: var(--accent); }

/* ────────────────── Masthead ────────────────── */
.masthead {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--rule);
    padding: 24px 0 26px;
}
.masthead-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.masthead-side {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}
.masthead-side.right { justify-content: flex-end; }
#authArea { display: flex; gap: 12px; align-items: center; }

.masthead-center { text-align: center; }
.wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.wordmark-rule {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--ink);
    opacity: .35;
}
.wordmark-text {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.wordmark-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.user-chip {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--rule);
}

/* ────────────────── Primary nav ────────────────── */
.primary-nav {
    background: var(--ink);
}
.primary-nav .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}
.primary-nav a {
    color: #e9e1cd;
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color .15s;
}
.primary-nav a:hover { color: var(--accent); }

/* ────────────────── Buttons ────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    color: var(--ink);
    background: transparent;
    letter-spacing: 0.02em;
}
.btn-dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-dark:hover { background: #1c2a4d; transform: translateY(-1px); }
.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-gold:hover { background: #8c6c2c; }
.btn-link {
    background: transparent;
    color: var(--accent);
    padding: 6px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    border: none;
}
.btn-link:hover { color: var(--ink); }
.btn-block { width: 100%; padding: 13px; font-size: 14px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ────────────────── Hero ────────────────── */
.hero {
    padding: 80px 0 70px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.hero-narrow {
    max-width: 820px;
    margin: 0 auto;
}
.hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 22px;
}
.hero h1 em {
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
}
.lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search {
    display: flex;
    gap: 0;
    max-width: 580px;
    margin: 0 auto;
    border: 1px solid var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ink);
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button { padding: 14px 22px; }

/* ────────────────── Divider & Sections ────────────────── */
hr.divider {
    border: 0;
    height: 1px;
    background: var(--rule);
    margin: 0;
}
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--ink);
}
.section-sub {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 400;
}

/* ────────────────── Archive (reviews) ────────────────── */
.archive-toolbar {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr auto auto;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.archive-search,
.archive-select {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    color: var(--ink);
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.archive-search:focus,
.archive-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.16);
}
.archive-meta {
    margin-bottom: 22px;
    text-align: left;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.review {
    background: transparent;
    border-bottom: 1px solid var(--rule);
    padding: 28px 0;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
}
.review:first-child { border-top: 1px solid var(--rule); }
.review-number {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.02em;
    padding-top: 4px;
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}
.review-broker {
    color: var(--ink);
    font-weight: 700;
    font-family: 'Fraunces', serif;
    letter-spacing: 0.01em;
}
.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }
.stars .empty { color: var(--rule); }
.review-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}
.review-text {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
}
.review-byline {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}
.review-author { color: var(--ink); font-weight: 700; }
.review-author::before { content: '— '; color: var(--muted); font-weight: 400; }
.review-email { font-size: 12px; }
.review-actions {
    margin-top: 14px;
    display: flex;
    gap: 22px;
    font-size: 12px;
}
.review-action {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0;
    transition: color .12s;
}
.review-action:hover { color: var(--accent); }
.review-action.active { color: var(--accent); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
}
.empty-state strong { display: block; font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.empty-state p { color: var(--muted); }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ────────────────── Numbers ────────────────── */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.number-card {
    background: var(--surface);
    padding: 38px 28px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.number-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.025em;
    display: block;
    margin-bottom: 10px;
}
.number-value .muted { color: var(--accent); font-weight: 600; }
.number-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 700;
}

/* ────────────────── Verification ────────────────── */
.verification-section { background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.verification-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}
.verification-grid h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(28px, 3.6vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.verification-grid p {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.verify-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.verify-steps li {
    border-top: 1px solid var(--rule);
    padding: 20px 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: baseline;
}
.verify-steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: var(--accent);
    font-weight: 600;
}
.verify-steps h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.verify-steps p { margin-bottom: 0; font-size: 15px; }

/* ────────────────── CTA Strip ────────────────── */
.cta-strip {
    background: var(--ink);
    color: #fff;
    padding: 48px 0;
}
.cta-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-strip p {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    color: #fff;
    line-height: 1.3;
    max-width: 600px;
}
.cta-strip em { color: var(--accent); font-style: italic; }

/* ────────────────── Footer ────────────────── */
.site-footer {
    background: var(--ink);
    color: #c4c9d6;
    padding: 60px 0 28px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--ink-soft);
}
.footer-brand .wordmark-text { color: #fff; font-size: 26px; }
.footer-brand p {
    margin-top: 14px;
    color: #94a3b8;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 320px;
}
.footer-cols { display: contents; }
.footer-inner h5 {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    font-weight: 700;
}
.footer-inner > div > a {
    display: block;
    color: #c4c9d6;
    padding: 5px 0;
    font-size: 14px;
}
.footer-inner > div > a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 22px;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ────────────────── Modals ────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 48, 0.45);
    backdrop-filter: blur(4px);
    z-index: 100;
    padding: 24px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}
.modal.open { display: flex; }
.modal-inner {
    background: var(--surface);
    padding: 36px;
    max-width: 460px;
    width: 100%;
    margin: 60px auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rule);
}
.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    width: 32px; height: 32px;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.015em;
}
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

#loginForm, #registerForm, #reviewForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}
#loginForm label, #registerForm label, #reviewForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
#loginForm input, #registerForm input,
#reviewForm input, #reviewForm select, #reviewForm textarea {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    color: var(--ink);
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}
#loginForm input:focus, #registerForm input:focus,
#reviewForm input:focus, #reviewForm select:focus, #reviewForm textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.16);
}

.checkbox-row {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    line-height: 1.5;
    color: var(--muted) !important;
}
.checkbox-row input { margin-top: 2px; accent-color: var(--accent); }
.checkbox-row a { color: var(--accent); text-decoration: underline; }

.form-error {
    color: var(--danger);
    background: #fef2f0;
    border: 1px solid #fbd5cf;
    padding: 10px 12px;
    font-size: 13px;
    display: none;
}
.form-error.visible { display: block; }
.form-switch { text-align: center; font-size: 13px; color: var(--muted); }
.form-switch a { color: var(--accent); font-weight: 600; }
.form-disclaimer { font-size: 12px; color: var(--muted); text-align: center; }

.star-input { display: flex; gap: 4px; font-size: 28px; cursor: pointer; color: var(--rule); padding: 6px 0; }
.star-input span { transition: color .1s; }
.star-input span.active, .star-input span.hover { color: var(--star); }

.moderation-inner { text-align: center; }
.moderation-inner .modal-title { font-size: 24px; }
.moderation-inner p {
    font-family: 'Fraunces', serif;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.moderation-info {
    background: var(--accent-soft);
    color: var(--ink);
    padding: 12px 14px;
    font-size: 13.5px;
    margin: 8px 0 22px;
    border-left: 3px solid var(--accent);
}
.seal {
    width: 110px; height: 110px;
    border: 4px double var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-family: 'Fraunces', serif;
    font-style: italic;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-6deg);
}
.seal-inner {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.seal-locked { border-color: var(--ink); color: var(--ink); }
.auth-required-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

/* ────────────────── Toast ────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--ink);
    color: #fff;
    padding: 13px 22px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: transform .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--accent); }
.toast.error { background: var(--danger); }

/* ────────────────── Static page (privacy / terms / etc) ────────────────── */
.static-page { padding: 60px 0 100px; }
.static-page .container { max-width: 760px; }
.static-page h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--ink);
}
.static-page .last-updated {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 36px;
}
.static-page h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--ink);
}
.static-page h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--ink);
}
.static-page p, .static-page li {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 14px;
}
.static-page ul, .static-page ol { margin: 0 0 18px 22px; }
.static-page li { margin-bottom: 6px; }
.static-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.static-page strong { color: var(--ink); font-weight: 700; }

/* ────────────────── Responsive ────────────────── */
@media (max-width: 980px) {
    .masthead-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; }
    .masthead-side, .masthead-side.right { justify-content: center; }
    .archive-toolbar { grid-template-columns: 1fr 1fr; }
    .verification-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .hero { padding: 56px 0 50px; }
    .wordmark-rule { display: none; }
    .wordmark-text { font-size: 30px; }
    .archive-toolbar { grid-template-columns: 1fr; }
    .review { grid-template-columns: 1fr; gap: 12px; }
    .review-number { font-size: 12px; }
    .footer-inner { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr; }
    .modal-inner { padding: 26px; margin: 20px auto; }
    .cta-strip-inner { flex-direction: column; align-items: flex-start; }
    .cta-strip p { font-size: 22px; }
}
