/* ==========================================================================
   CT Law Theme — Footer Styles
   ========================================================================== */

.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Footer Main ---------- */
.footer-main {
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

/* ---------- Line-art logo mark (shared) ---------- */
.ct-logo-mark {
    display: block;
    width: 100%;
    height: 100%;
}

.ct-mark-stroke {
    fill: none;
    stroke-linecap: round;
}

.ct-mark-circle {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
}

.ct-mark-diagonal {
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.5;
}

.ct-mark-gold {
    stroke: var(--color-accent);
    stroke-width: 3;
}

/* ---------- Footer About ---------- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 2px;
    display: block;
}

/* ---------- Faint logo watermark (bottom-left, bleeding off) ---------- */
.footer-watermark {
    position: absolute;
    left: -104px;
    bottom: -126px;
    width: 440px;
    height: 440px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;
}

.footer-watermark .ct-mark-circle,
.footer-watermark .ct-mark-diagonal {
    stroke: var(--color-white);
    stroke-width: 2;
}

.footer-watermark .ct-mark-gold {
    stroke: var(--color-accent);
}

.footer-firm-name {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Cormorant SC', var(--font-heading), serif;
    font-size: 1.45rem;
    /* One weight lighter than the header (600) to optically compensate for the
       white-on-dark "irradiation" effect, so it reads at the same visual weight. */
    font-weight: 500;
    letter-spacing: 1.2px;
}

.footer-firm-primary {
    color: var(--color-white);
}

.footer-firm-secondary {
    color: var(--color-secondary);
}

.footer-logo .custom-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.7);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ---------- Footer Links ---------- */
.footer-links ul,
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li,
.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-nav a:hover {
    color: var(--color-accent);
}

/* ---------- Footer Contact ---------- */
.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
    line-height: 0;
}

.footer-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

/* ---------- Footer Disclaimer ---------- */
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
}

.footer-disclaimer p {
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    max-width: 1000px;
}

.footer-disclaimer-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------- Footer Bottom ---------- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Hide the bleeding watermark on stacked mobile layouts to avoid clutter */
@media (max-width: 768px) {
    .footer-watermark {
        display: none;
    }
}
