/* The site footer: one design on every page.
   Tyrian purple with gold hairlines, the same wall and line as the home entrance,
   so each page closes the way the site opens. Generated markup: scripts/sync-footer.cjs. */

.luxury-footer.hf {
    --hf-wall: 86, 10, 54;
    --hf-gold: 220, 184, 112;
    --hf-ivory: 251, 249, 244;
    /* brand.css paints the footer and its links from these tokens. */
    --hui-canvas: rgb(var(--hf-wall));
    --hui-ink: rgb(var(--hf-ivory));
    --hui-ink-rgb: var(--hf-ivory);
    --hui-brass-text: rgb(var(--hf-gold));
    --hui-stone: rgba(var(--hf-ivory), .72);
    /* The home page paints its footer from the ivory token, so that points at the wall too. */
    --hui-ivory: rgb(var(--hf-wall));
    position: relative;
    isolation: isolate;
    padding-block: clamp(60px, 6.4vw, 88px) 22px;
    border-top: 0;
    background-color: rgb(var(--hf-wall));
    box-shadow: inset 0 1px 0 rgba(var(--hf-gold), .3);
    color: rgb(var(--hf-ivory));
    font-family: var(--hui-font-body, Jost, Arial, sans-serif);
}
/* A fine grain on its own layer. The footer wall is plain: light is kept for the entrance. */
.luxury-footer.hf::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gold rule across the top, with one quatrefoil at its centre. */
.luxury-footer.hf::before {
    content: "";
    position: absolute;
    left: var(--gutter, 24px);
    right: var(--gutter, 24px);
    top: clamp(24px, 2.8vw, 36px);
    height: 26px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6H8A4 4 0 0 1 16 6H18V8A4 4 0 0 1 18 16V18H16A4 4 0 0 1 8 18H6V16A4 4 0 0 1 6 8Z' fill='none' stroke='%23DCB870' stroke-width='1'/%3E%3Ccircle cx='12' cy='12' r='1.1' fill='%23DCB870'/%3E%3C/svg%3E") 50% 50% / 24px 24px no-repeat,
        linear-gradient(rgba(var(--hf-gold), .5), rgba(var(--hf-gold), .5)) 0 50% / calc(50% - 24px) 1px no-repeat,
        linear-gradient(rgba(var(--hf-gold), .5), rgba(var(--hf-gold), .5)) 100% 50% / calc(50% - 24px) 1px no-repeat;
    pointer-events: none;
}
.luxury-footer.hf > .shell { position: relative; }

/* --- Name and tagline --- */
.luxury-footer.hf .footer-heading {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    margin: clamp(18px, 2.4vw, 30px) 0 0;
    padding-bottom: clamp(26px, 3vw, 40px);
    text-align: left;
}
/* The wax seal, cast in antique gold here: red wax would fight the purple wall. */
.luxury-footer.hf .footer-seal { width: 44px; height: 44px; margin: 0; filter: grayscale(1) sepia(1) saturate(1.5) hue-rotate(-12deg) brightness(1.75) contrast(.9); }
.luxury-footer.hf .footer-heading .brand-logo {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.05;
    letter-spacing: .04em;
    text-decoration: none;
}
.luxury-footer.hf .footer-heading p {
    margin: 0;
    justify-self: end;
    max-width: 22ch;
    text-align: right;
    font-family: var(--hui-font-heading, "Playfair Display", Georgia, serif);
    font-style: italic;
    font-size: clamp(19px, 1.9vw, 26px);
    line-height: 1.3;
    color: rgb(var(--hf-gold));
}

/* --- Studio details and links --- */
.luxury-footer.hf .footer-grid {
    display: grid;
    grid-template-columns: minmax(330px, 1.1fr) minmax(0, 3fr);
    gap: 30px clamp(40px, 6vw, 104px);
    align-items: start;
    padding-top: clamp(28px, 3.2vw, 44px);
    border-top: 1px solid rgba(var(--hf-ivory), .14);
}
.luxury-footer.hf .footer-label {
    margin: 0 0 16px;
    font: 500 11.5px/1.5 var(--hui-font-body, Jost, Arial, sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgb(var(--hf-gold));
}
.luxury-footer.hf .footer-contact { grid-column: 1; grid-row: 1; text-align: left; }
.luxury-footer.hf .footer-contact .footer-name {
    margin: 0;
    font-family: var(--hui-font-heading, "Playfair Display", Georgia, serif);
    font-size: 21px;
    line-height: 1.4;
    color: rgb(var(--hf-ivory));
}
.luxury-footer.hf .footer-contact .footer-hours {
    margin: 14px 0 6px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(var(--hf-ivory), .74);
}

.luxury-footer.hf .footer-grid a {
    --hui-brass-text: rgba(var(--hf-ivory), .9);
    display: block;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding-block: 7px;
    font: 400 15px/1.6 var(--hui-font-body, Jost, Arial, sans-serif);
    text-decoration: none;
    background: linear-gradient(rgb(var(--hf-gold)), rgb(var(--hf-gold))) 0 calc(100% - 6px) / 0 1px no-repeat;
    transition: background-size .45s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
.luxury-footer.hf .footer-grid a:hover,
.luxury-footer.hf .footer-grid a:focus-visible {
    --hui-brass-text: rgb(var(--hf-gold));
    background-size: 100% 1px;
    text-decoration: none;
}
.luxury-footer.hf .footer-grid a.footer-out::after {
    content: "";
    display: inline-block;
    width: .62em;
    height: .62em;
    margin-left: .45em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .7;
}

/* The studio appointment: a line link in gold (assets/css/buttons.css). */
.luxury-footer.hf .footer-grid a.footer-visit {
    --hui-brass-text: rgb(var(--hf-gold));
    display: inline-flex;
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 0 12px;
    font: 500 15px/1.3 var(--hui-font-body, Jost, Arial, sans-serif);
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 5px) / 100% 1px no-repeat;
}
.luxury-footer.hf .footer-grid a.footer-visit:hover,
.luxury-footer.hf .footer-grid a.footer-visit:focus-visible { --hui-brass-text: rgb(var(--hf-ivory)); background-size: 100% 1px; }

/* Four groups of links, read left to right. */
.luxury-footer.hf .footer-grid > nav:first-of-type {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px clamp(20px, 3vw, 48px);
}
.luxury-footer.hf .footer-group { min-width: 0; }

/* Social links run in one quiet line under the link groups. */
.luxury-footer.hf .footer-grid > nav:last-of-type {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--hf-ivory), .1);
}
.luxury-footer.hf .footer-grid > nav:last-of-type .footer-label { margin: 0 12px 0 0; }
.luxury-footer.hf .footer-contact { grid-row: 1 / span 2; }

/* --- Closing line --- */
.luxury-footer.hf .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px 24px;
    margin-top: clamp(34px, 3.6vw, 52px);
    padding-top: 18px;
    border-top: 1px solid rgba(var(--hf-ivory), .14);
    font-size: 12.5px;
    line-height: 1.6;
    text-align: left;
    color: rgba(var(--hf-ivory), .72);
}
.luxury-footer.hf .footer-bottom p { margin: 0; }
.luxury-footer.hf .footer-where { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: rgba(var(--hf-gold), .9); white-space: nowrap; }
.luxury-footer.hf .footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; margin: 0; }
.luxury-footer.hf .footer-bottom a {
    --hui-brass-text: rgba(var(--hf-ivory), .78);
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    transition: color .3s ease;
}
.luxury-footer.hf .footer-bottom a:hover,
.luxury-footer.hf .footer-bottom a:focus-visible { --hui-brass-text: rgb(var(--hf-gold)); text-decoration: underline; text-underline-offset: 4px; }

/* --- Tablet: studio details beside the social links, link groups below --- */
@media (max-width: 1080px) {
    .luxury-footer.hf .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .luxury-footer.hf .footer-contact { grid-column: 1; grid-row: 1; }
    .luxury-footer.hf .footer-grid > nav:last-of-type {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        padding-top: 0;
        border-top: 0;
    }
    .luxury-footer.hf .footer-grid > nav:last-of-type .footer-label { flex: 0 0 100%; margin: 0 0 8px; }
    .luxury-footer.hf .footer-grid > nav:first-of-type { grid-column: 1 / -1; grid-row: 2; padding-top: 28px; border-top: 1px solid rgba(var(--hf-ivory), .1); }
    .luxury-footer.hf .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; }
    .luxury-footer.hf .footer-where { grid-column: 1 / -1; grid-row: 1; }
}

/* --- Phone --- */
@media (max-width: 720px) {
    .luxury-footer.hf { padding-block: 64px 18px; }
    .luxury-footer.hf::before { top: 26px; }
    .luxury-footer.hf .footer-heading { grid-template-columns: auto minmax(0, 1fr); row-gap: 12px; column-gap: 14px; margin-top: 18px; padding-bottom: 24px; }
    .luxury-footer.hf .footer-heading .brand-logo { font-size: 29px; }
    .luxury-footer.hf .footer-heading p { grid-column: 1 / -1; justify-self: start; max-width: none; text-align: left; font-size: 18px; }
    .luxury-footer.hf .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 26px; }
    .luxury-footer.hf .footer-contact { grid-column: 1; grid-row: 1; }
    .luxury-footer.hf .footer-grid > nav:first-of-type { grid-column: 1; grid-row: 2; padding-top: 0; border-top: 0; }
    .luxury-footer.hf .footer-grid > nav:last-of-type { grid-column: 1; grid-row: 3; padding-top: 14px; border-top: 1px solid rgba(var(--hf-ivory), .1); }
    .luxury-footer.hf .footer-contact .footer-name br { display: none; }
    .luxury-footer.hf .footer-contact .footer-name { font-size: 19px; }
    .luxury-footer.hf .footer-contact .footer-hours { margin: 8px 0 2px; }
    .luxury-footer.hf .footer-grid a { min-height: 44px; padding-block: 10px; }
    .luxury-footer.hf .footer-grid > nav:first-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
    .luxury-footer.hf .footer-label { margin-bottom: 6px; }
    .luxury-footer.hf .footer-grid > nav:last-of-type { gap: 0 22px; }
    .luxury-footer.hf .footer-grid > nav:last-of-type .footer-label { flex: 0 0 100%; margin: 0 0 2px; }
    .luxury-footer.hf .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 26px; padding-top: 16px; }
    .luxury-footer.hf .footer-where { grid-column: 1; grid-row: auto; }
    .luxury-footer.hf .footer-bottom nav { justify-content: flex-start; gap: 0 22px; }
    .luxury-footer.hf .footer-bottom a { min-height: 44px; }
}

/* The gold rule draws itself as the footer comes into view, where the browser can. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .luxury-footer.hf::before {
            animation: hfRule linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 90%;
        }
    }
}
@keyframes hfRule {
    from { clip-path: inset(0 50% 0 50%); opacity: .2; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@media (max-width: 720px) {
    .luxury-footer.hf .footer-contact .footer-name span::before { content: "\00B7\00A0"; margin-left: .35em; color: rgba(var(--hf-gold), .9); }
}

/* The wedding page ends in a Tyrian inquiry section, so its footer carries on without a top line. */
.weddings-page .luxury-footer.hf { box-shadow: none; }
