/* ============================================================
   RZ-ADVANCED.CSS
   Advanced design upgrade layer — loads AFTER rz-pro-v2.css
   on every page. Uses the same design tokens already defined
   in rz-pro-v2.css (--brand-red, --navy-*, --ink-*, --sh-*, etc.)
   so nothing here fights the existing system — it completes and
   elevates it.

   Why this file exists:
   1. .rz-ftr (footer) has NO rules at all in rz-pro-v2.css — it
      was only ever styled in rz-professional.css, which most
      pages never load. That's why the footer looks broken/
      unstyled on most pages. This file fixes that everywhere.
   2. General "advanced" polish pass: refined shadows, hover
      micro-interactions, consistent card/button elevation,
      better section rhythm — applied through the SAME class
      names already used across the templates, so no blade
      files need markup changes for this part.
   ============================================================ */

/* ── 1. FOOTER (previously undefined — this is the fix) ───── */

.rz-ftr {
    background: var(--navy-950);
    color: rgba(255,255,255,0.72);
    position: relative;
    overflow: hidden;
}
.rz-ftr::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(229,39,26,0.10), transparent 60%),
        radial-gradient(600px 300px at 90% 0%, rgba(37,99,235,0.10), transparent 60%);
    pointer-events: none;
}

.rz-ftr-cta {
    position: relative;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    box-shadow: var(--sh-red);
}
.rz-ftr-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-10) 0;
}
.rz-ftr-cta-inner h3 {
    color: #fff;
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.rz-ftr-cta-inner p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 14.5px;
}
.rz-ftr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--brand-red-dark);
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 24px;
    border-radius: var(--r-full);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.rz-ftr-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.24);
    color: var(--brand-red-dark);
}
.rz-ftr-cta-btn i { transition: transform var(--t-base); }
.rz-ftr-cta-btn:hover i { transform: translateX(3px); }

.rz-ftr-main { position: relative; padding: var(--sp-16) 0 var(--sp-8); }
.rz-ftr-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--sp-10);
}
@media (max-width: 991px) { .rz-ftr-grid { grid-template-columns: 1fr 1fr; row-gap: var(--sp-10); } }
@media (max-width: 575px) { .rz-ftr-grid { grid-template-columns: 1fr; gap: var(--sp-8); } }

.rz-ftr-col h4 {
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 var(--sp-5);
    position: relative;
    padding-bottom: 10px;
}
.rz-ftr-col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: var(--brand-red);
    border-radius: var(--r-full);
}
.rz-ftr-col ul { list-style: none; padding: 0; margin: 0; }
.rz-ftr-col ul li { margin-bottom: 11px; }
.rz-ftr-col ul li a {
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-size: 13.5px;
    transition: color var(--t-fast), padding-left var(--t-fast);
    display: inline-block;
}
.rz-ftr-col ul li a:hover { color: #fff; padding-left: 4px; }

.rz-ftr-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: var(--sp-4);
}
.rz-ftr-logo-mark {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-red);
}
.rz-ftr-logo span:not(.rz-ftr-logo-mark) {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.rz-ftr-brand p {
    color: rgba(255,255,255,0.50);
    font-size: 13.5px;
    line-height: 1.75;
    margin: 0 0 var(--sp-5);
    max-width: 320px;
}
.rz-ftr-social { display: flex; gap: 10px; }
.rz-ftr-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: all var(--t-fast);
}
.rz-ftr-social a:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--sh-red);
}

.rz-ftr-contact { list-style: none; padding: 0; margin: 0; }
.rz-ftr-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255,255,255,0.58);
    margin-bottom: 11px;
    font-size: 13.5px;
    line-height: 1.5;
}
.rz-ftr-contact i, .rz-ftr-contact svg { color: var(--brand-red); flex-shrink: 0; margin-top: 2px; }

/* Subcity SEO link chips (Section 2 of the audit — dynamic subcity list) */
.rz-ftr-subcities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.rz-ftr-subcities a {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: all var(--t-fast);
}
.rz-ftr-subcities a:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.rz-ftr-bottom {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--sp-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.rz-ftr-bottom p { color: rgba(255,255,255,0.35); font-size: 12.5px; margin: 0; }
.rz-ftr-bottom a { color: rgba(255,255,255,0.35); font-size: 12.5px; text-decoration: none; transition: color var(--t-fast); margin-left: 16px; }
.rz-ftr-bottom a:hover { color: var(--brand-red); }

@media (max-width: 767px) {
    .rz-ftr-cta-inner { flex-direction: column; text-align: center; }
    .rz-ftr-cta-btn { width: 100%; justify-content: center; max-width: 300px; }
    .rz-ftr-bottom { flex-direction: column; text-align: center; }
    .rz-ftr-bottom a { margin: 0 8px; }
}

/* ── 2. ELEVATED COMPONENT POLISH (applies sitewide) ──────── */

/* Cards lift on hover with a soft shadow instead of a hard jump */
.rz-product-card, .rz-cat-card, .rz-blog-card, .rz-seo-card {
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.rz-product-card:hover, .rz-cat-card:hover, .rz-blog-card:hover, .rz-seo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}

/* Primary buttons get a subtle glow + press feedback */
.rz-btn-primary {
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
.rz-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-red); }
.rz-btn-primary:active { transform: translateY(0); }

/* Section headers get a touch more visual rhythm */
.rz-section-title {
    letter-spacing: -0.015em;
}
.rz-section-badge {
    box-shadow: var(--sh-xs);
}

/* Focus states — accessibility polish often skipped in legacy CSS */
.rz-btn:focus-visible,
.rz-hdr-icon-btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

/* Consistent image placeholder (Section 10 of the audit —
   nothing should ever render as a broken/empty box) */
.rz-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-100), var(--surface-200));
    color: var(--ink-300);
    font-size: 13px;
    font-weight: 600;
    min-height: 120px;
    border-radius: var(--r-md);
}

/* Smooth page-load feel */
img { color: transparent; }
