/* ── VARIABLES ── */
:root {
    --white:       #ffffff;
    --off-white:   #f8fafc;
    --border:      #e2e8f0;
    --border-dark: #cbd5e1;
    --navy:        #0f2247;
    --navy-light:  #1e3a6e;
    --blue:        #2563eb;
    --blue-hover:  #1d4ed8;
    --blue-light:  #eff6ff;
    --text:        #0f172a;
    --muted:       #64748b;
    --success-bg:  #d1fae5;
    --success-bd:  #a7f3d0;
    --success-tx:  #065f46;
    --error-bg:    #fee2e2;
    --error-bd:    #fca5a5;
    --error-tx:    #991b1b;
    --radius:      8px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-logo span { color: var(--blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover { color: var(--navy); }

.nav-cta {
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--navy-light); }

.nav-subtle {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 500;
    font-style: normal;
    text-decoration: none;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}

.nav-subtle:hover { color: var(--blue-hover); }

/* ── TAGLINE BAR ── */
.tagline-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    text-align: center;
}

.tagline-bar-inner { max-width: 1100px; margin: 0 auto; }

.tagline-main {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.tagline-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
}

.trust-dot { color: var(--border-dark); }

/* ── HERO BANNER ── */
.hero-banner {
    width: 100%;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-box {
    border: 2px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.hero-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── MAIN WRAPPER ── */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── PAGE HEADER ── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-title {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

/* ── CATEGORY TABS ── */
.cat-wrap {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}

.cat-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.cat-tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.cat-count {
    font-size: 0.7rem;
    opacity: 0.65;
}

/* ── LISTINGS GRID ── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
    transform: translateY(-2px);
}

.listing-card.featured-gold   { border-left: 3px solid #c9a84c; }
.listing-card.featured-silver { border-left: 3px solid #94a3b8; }
.listing-card.featured-bronze { border-left: 3px solid #c97c4c; }

.badge-featured {
    background: #fef9ec;
    color: #92400e;
    font-size: 0.65rem;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.card-site-name {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.card-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    letter-spacing: 0.02em;
}

.card-url {
    display: block;
    color: var(--blue);
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 0.3rem;
    word-break: break-all;
    opacity: 0.85;
}

.card-url:hover { opacity: 1; text-decoration: underline; }

.card-request {
    color: var(--text);
    font-size: 0.825rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
}

.card-date {
    font-size: 0.75rem;
    color: var(--muted);
}

.card-contact {
    background: var(--blue);
    color: var(--white);
    padding: 0.375rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.card-contact:hover { background: var(--blue-hover); }

/* ── EMPTY STATE ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
}

.empty-state h3 {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.empty-state a { color: var(--blue); }

/* ── FORM PAGE ── */
.form-wrap {
    max-width: 680px;
}

.form-intro {
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.form-label .optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
}

.form-hint {
    font-size: 0.775rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea { resize: vertical; min-height: 110px; }

.form-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

.form-submit:hover { background: var(--navy-light); }

/* MESSAGES */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-bd);
    color: var(--success-tx);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-bd);
    color: var(--error-tx);
}

.alert ul { margin: 0.5rem 0 0 1.25rem; }

/* ── FOOTER ── */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    display: block;
    text-decoration: none;
}

.footer-logo span { color: #93c5fd; }

.footer-desc { font-size: 0.85rem; line-height: 1.65; max-width: 300px; }

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.page-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.page-btn-disabled {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.5;
    cursor: default;
}

.page-numbers { display: flex; gap: 0.35rem; align-items: center; }

.page-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.page-num:hover { border-color: var(--navy); color: var(--navy); }

.page-num.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    font-weight: 700;
}

.page-ellipsis { color: var(--muted); font-size: 0.875rem; padding: 0 0.25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .listings-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.45rem; }
    .hero-banner { height: 180px; }
    .nav-links .nav-link { display: none; }
    .form-card { padding: 1.25rem; }
}
