/* =========================
   FOOTER REDESIGN
========================= */

footer {
    padding: 90px 7vw 40px;
    background: #ffffff;
    color: #031923;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 3D PARTICLE WORDMARK (footer-particles.js). The text below is the no-WebGL fallback;
   .is-3d hides it (keeping its space) while the particles draw the wordmark. */
.footer-particles {
    position: relative;
    margin: 0 -7vw 40px;
    padding: 70px 7vw 50px;
    overflow: hidden;
}
.footer-particles canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.footer-particles .footer-watermark {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    -webkit-text-stroke: 1.5px rgba(8, 94, 160, 0.55);
    font-size: clamp(36px, 10.2vw, 170px);
}
@media (max-width: 700px) {
    .footer-particles .footer-watermark { font-size: 11.4vw; letter-spacing: 0; }
}
.footer-particles.is-3d .footer-watermark {
    color: transparent;
    -webkit-text-stroke-color: transparent;
}
/* Phones: wordmark splits onto two lines, so give it a taller stage (matches twoLines in the JS) */
@media (max-width: 599px) {
    .footer-particles.is-3d { min-height: 62vw; }
}

.footer-watermark {
    font-family: "Cormorant Garamond";
    font-size: clamp(60px, 13vw, 210px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -2px;
    -webkit-text-stroke: 1px rgba(3, 25, 35, 0.12);
    color: transparent;
    text-transform: uppercase;
    user-select: none;
    margin-bottom: 60px;
    pointer-events: none;
    white-space: nowrap;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-brand .footer-logo-title {
    font-family: "Cormorant Garamond";
    font-size: 34px;
    letter-spacing: 3px;
    color: #031923;
    margin-bottom: 15px;
}

.footer-brand .footer-logo-title span {
    color: #b88424;
}

.footer-brand p {
    color: rgba(3, 25, 35, 0.75);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 320px;
}

.footer-contact-info {
    list-style: none;
    font-size: 13px;
    color: rgba(3, 25, 35, 0.85);
    line-height: 2;
}

.footer-col-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b88424;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-links a {
    color: rgba(3, 25, 35, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-col-links a:hover {
    color: #031923;
    padding-left: 6px;
}

.footer-newsletter p {
    font-size: 14px;
    color: rgba(3, 25, 35, 0.75);
    line-height: 1.7;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.newsletter-form input {
    background: #f7f9fa;
    border: 1px solid rgba(3, 25, 35, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
    color: #031923;
    font-size: 13px;
    outline: none;
    width: 100%;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #b88424;
}

.newsletter-form button {
    background: #031923;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #b88424;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(3, 25, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #031923;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #031923;
    background: #031923;
    color: #ffffff;
    transform: translateY(-4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(3, 25, 35, 0.65);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(3, 25, 35, 0.65);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #b88424;
}

.back-to-top {
    background: #031923;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #b88424;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Centre every footer block in the single-column (mobile/tablet) layout */
    .footer-particles .footer-watermark { text-align: center; }
    .footer-grid > * { text-align: center; }
    /* pages' mobile CSS makes every .logo a full-width flex row with margin-right:auto (meant for the header) */
    footer .footer-brand .logo { display: flex !important; justify-content: center !important; margin-left: auto !important; margin-right: auto !important; }
    .footer-brand p,
    .footer-newsletter p { margin-left: auto; margin-right: auto; max-width: 420px; }
    .footer-contact-info li { overflow-wrap: anywhere; }
    .footer-contact-info i { margin-right: 6px; }
    .footer-col-links { align-items: center; }
    .footer-col-links a:hover { padding-left: 0; }
    .newsletter-form { max-width: 420px; margin-left: auto; margin-right: auto; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
    .back-to-top { align-self: center; }
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 85px !important;
    }
}
