/* PageSparx Location template
   The supplied screenshots are 144 dpi / Retina references. The live Florence
   page is the layout/spacing baseline; Service Page tokens/breakpoints are used
   where they improve accessibility and consistency.

   The live template's Meno display typography is translated to the packaged
   Legal Serif Condensed family. Existing live weights are preserved except
   Meno 600, which maps to Legal Serif Condensed 700 by design. */

.psl-location-page,
.psl-location-archive {
    --psl-location-max: 1200px;
    --psl-location-side-pad: clamp(20px, 2vw, 30px);
    --psl-location-font-display: var(--font-serif-condensed);
    --psl-location-font-display-condensed: var(--font-serif-condensed);
    --psai-gold-metal: linear-gradient(45deg, rgba(155,111,43,1) 0%, rgba(242,236,184,1) 16.6%, rgba(242,236,184,1) 31%, rgba(155,111,43,1) 48.1%, rgba(155,111,43,1) 61.5%, rgba(218,178,92,1) 67%, rgba(165,99,42,1) 68.1%, rgba(165,99,42,1) 70.1%, rgba(250,248,198,1) 77%, rgba(250,248,198,1) 79%, rgba(218,178,92,1) 85%, rgba(182,144,70,1) 88%, rgba(122,74,30,1) 100%);
    background: var(--psl-white);
    color: var(--psl-charcoal);
    font-family: var(--font-sans);
}

.psl-location-page *,
.psl-location-archive * {
    box-sizing: border-box;
}

/* Rows 1–2: established live Location identity block. */
.psl-location-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4vw, 60px) var(--psl-location-side-pad) clamp(30px, 6vw, 90px);
    background: linear-gradient(180deg, var(--psl-black) 0%, var(--psl-blue-dark) 100%);
    color: var(--psl-white);
}

.psl-location-intro__inner,
.psl-location-contact-map__inner,
.psl-location-local-services__inner,
.psl-location-archive-hero__inner,
.psl-location-archive-list__inner {
    width: min(100%, var(--psl-location-max));
    margin: 0 auto;
}

.psl-location-intro__header {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.psl-location-intro__title {
    margin: 0;
    background: var(--psai-gold-metal);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--psl-location-font-display-condensed);
    font-size: clamp(42px, 4vw, 68px);
    font-weight: 300;
    line-height: 1;
    text-wrap: balance;
}

.psl-location-intro__rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: clamp(10px, 1vw, 14px) auto;
    background: linear-gradient(90deg, rgba(174, 146, 89, 0), var(--psl-subtle-gold), rgba(174, 146, 89, 0));
}

.psl-location-intro__description {
    width: 100%;
    margin: 0 auto;
    padding-bottom: clamp(18px, 2.5vw, 40px);
    color: var(--psl-subtle-gold);
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    text-wrap: pretty;
}

/* Match the article hero's concave 72x36 divider exactly instead of using a
   circular pseudo-element. */
.psl-location-intro__divider {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 36px;
    color: var(--psl-white);
    line-height: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.psl-location-intro__divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.psl-location-office-identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(34px, 3.9vw, 60px);
    align-items: start;
    width: 100%;
    margin: 0 auto;
}

.psl-location-office-identity__media {
    width: 100%;
    margin: 0;
}

.psl-location-office-identity__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: initial;
}

.psl-location-office-identity__image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 947;
    background: #0b1420;
}

.psl-location-office-identity__details {
    min-width: 0;
    padding-top: clamp(0px, .35vw, 5px);
}

.psl-location-office-identity__firm-name {
    margin: 0;
    color: var(--psl-white);
    font-family: var(--psl-location-font-display);
    font-size: clamp(32px, 3.05vw, 47px);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
    text-wrap: balance;
}

.psl-location-office-identity__firm-rule {
    width: 100%;
    height: 1px;
    margin: clamp(3px, .35vw, 6px) 0 clamp(5px, .45vw, 8px);
    background: var(--psl-light-gold);
}

.psl-location-office-identity__descriptor {
    margin: 0;
    color: var(--psl-white);
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.5vw, 23px);
    font-weight: 400;
    letter-spacing: clamp(1.5px, .2vw, 3px);
    line-height: 1;
    text-transform: uppercase;
}

.psl-location-award-marks {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    min-height: 48px;
    margin-top: clamp(16px, 1.6vw, 25px);
}

.psl-location-award-marks__image {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    max-width: 48px;
    height: 48px;
    max-height: 48px;
    object-fit: contain;
}

.psl-location-media-marks {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    gap: 5px;
    margin-top: clamp(18px, 1.8vw, 28px);
}

.psl-location-media-marks__image {
    display: block;
    width: 100%;
    max-width: none;
    height: 33px;
    max-height: 33px;
    object-fit: contain;
}

.psl-location-office-identity__section-rule {
    width: 100%;
    height: 1px;
    margin: clamp(12px, 1vw, 16px) 0;
    background: var(--psl-black);
}

.psl-location-office-identity__title {
    margin: 0;
    padding-bottom: clamp(4px, .4vw, 6px);
    border-bottom: 1px solid var(--psl-light-gold);
    color: var(--psl-white);
    font-family: var(--psl-location-font-display);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
}

.psl-location-office-identity__contact {
    display: grid;
    gap: clamp(7px, .65vw, 10px);
    margin: clamp(6px, .55vw, 9px) 0 0;
    font-style: normal;
}

.psl-location-office-link,
.psl-location-map-link {
    color: inherit;
    text-decoration: none;
}

.psl-location-office-link {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    align-items: flex-start;
    color: var(--psl-white);
    font-size: clamp(14px, 1.05vw, 18px);
    font-weight: 400;
    line-height: 1.2;
}

.psl-location-office-link:hover,
.psl-location-office-link:focus-visible,
.psl-location-map-link:hover,
.psl-location-map-link:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
}

.psl-location-office-link__icon,
.psl-location-map-link__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.psl-location-office-link__icon {
    color: var(--psl-subtle-gold);
}

.psl-location-map-link__icon {
    margin-top: 0;
    color: var(--psl-black);
}

/* Row 3: form + map. At the 1200px desktop baseline a 30px gap produces two
   585px columns, matching the measured live-site map column. */
.psl-location-contact-map {
    padding: clamp(44px, 4vw, 60px) var(--psl-location-side-pad) clamp(70px, 6.5vw, 100px);
    background: var(--psl-white);
}

.psl-location-contact-map__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: min(100%, var(--psl-location-max));
    align-items: stretch;
}

.psl-location-form-card,
.psl-location-map-card {
    min-width: 0;
    border: 1px solid var(--psl-subtle-gold);
    border-radius: 3px;
    background: var(--psl-white);
}

.psl-location-form-card {
    padding: clamp(20px, 2vw, 30px);
}

.psl-location-form-card__title {
    margin: 36px 0 0;
    color: var(--psl-black);
    font-family: var(--psl-location-font-display);
    font-size: clamp(22px, 1.75vw, 27px);
    font-weight: 400;
    line-height: 1;
}

.psl-location-form-card__intro {
    margin: clamp(4px, .35vw, 6px) 0 20px;
    color: var(--psl-black);
    font-size: clamp(14px, .9vw, 18px);
    line-height: 1.35;
}

.psl-location-form-card__required {
    color: #666666;
    font-size: inherit;
}

.psl-location-form-card__setup {
    padding: 18px;
    border: 1px dashed rgba(174, 146, 89, .8);
    background: #faf8f2;
    color: var(--psl-charcoal);
}

/* Fluent Forms stays the form engine, but its controls intentionally reproduce
   the live Location page's Elementor Large control sizing. Elementor Large =
   59px minimum height, 18px text, 7px/20px padding, 3px radius and 20px rhythm. */
.psl-location-form-card .fluentform,
.psl-location-form-card .frm-fluent-form,
.psl-location-form-card form {
    width: 100%;
}

.psl-location-form-card .ff-el-group {
    margin-bottom: 20px;
}

.psl-location-form-card .ff-t-container {
    gap: 20px;
}

.psl-location-form-card .ff-el-form-control,
.psl-location-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.psl-location-form-card select,
.psl-location-form-card textarea {
    width: 100%;
    min-height: clamp(48px, 4.92vw, 59px);
    padding: clamp(6px, .58vw, 7px) clamp(14px, 1.67vw, 20px);
    border: 1px solid #69727d;
    border-radius: 3px !important;
    background: var(--psl-white);
    color: #333333;
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.4;
    box-shadow: none;
}

.psl-location-form-card .ff-el-form-control:focus,
.psl-location-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.psl-location-form-card select:focus,
.psl-location-form-card textarea:focus {
    outline: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.psl-location-form-card textarea,
.psl-location-form-card .ff-el-form-control[type="textarea"] {
    min-height: clamp(180px, 20vw, 240px);
    border-radius: 3px !important;
}

.psl-location-form-card .ff-btn-submit,
.psl-location-form-card button[type="submit"],
.psl-location-form-card input[type="submit"] {
    width: 100%;
    min-height: clamp(48px, 4.92vw, 59px);
    padding: clamp(14px, 1.67vw, 20px) clamp(24px, 3.33vw, 40px);
    border: 0;
    border-radius: 3px !important;
    background: #444444;
    color: var(--psl-white);
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.psl-location-form-card .ff-btn-submit:hover,
.psl-location-form-card .ff-btn-submit:focus-visible,
.psl-location-form-card button[type="submit"]:hover,
.psl-location-form-card button[type="submit"]:focus-visible,
.psl-location-form-card input[type="submit"]:hover,
.psl-location-form-card input[type="submit"]:focus-visible {
    background: #555555;
    color: var(--psl-white);
}

.psl-location-map-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 10px;
    overflow: hidden;
}

.psl-location-map {
    position: relative;
    width: 100%;
    height: clamp(430px, 39vw, 600px);
    min-height: 430px;
    overflow: hidden;
    background: #e8e8e8;
}

.psl-location-map__canvas,
.psl-location-map__fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

.psl-location-map__canvas[hidden],
.psl-location-map__fallback[hidden],
.psl-location-map__loading[hidden] {
    display: none;
}

.psl-location-map__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eae7df, #f7f6f2);
    color: var(--psl-subtle-gold);
    pointer-events: none;
}

.psl-location-map__loading-icon {
    width: 30px;
    height: 30px;
}

.psl-location-map-card__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 10px 0;
}

.psl-location-map-card__title {
    margin: 0;
    color: var(--psl-black);
    font-family: var(--psl-location-font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.psl-location-map-card__rule {
    width: 100%;
    height: 1px;
    margin: 4px 0 6px;
    background: var(--psl-black);
}

.psl-location-map-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.psl-location-map-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    align-items: center;
    color: var(--psl-charcoal);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

/* Row 4: Local Service links. */
.psl-location-local-services {
    padding: clamp(44px, 4vw, 60px) var(--psl-location-side-pad) clamp(44px, 4vw, 60px);
    background: linear-gradient(180deg, #f5f5f5 0%, var(--psl-white) 100%);
}

.psl-location-local-services__inner {
    width: min(100%, var(--psl-location-max));
}

.psl-location-local-services__title {
    margin: 0 0 clamp(22px, 2vw, 30px);
    color: var(--psl-black);
    font-family: var(--psl-location-font-display);
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
}

.psl-location-local-services__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, .75vw, 12px) clamp(30px, 4vw, 60px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.psl-location-local-services__item {
    min-width: 0;
}

.psl-location-local-services__link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 7px;
    align-items: flex-start;
    color: #7b663d;
    font-family: var(--font-sans);
    font-size: clamp(16px, .9vw, 18px);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.psl-location-local-services__link:hover,
.psl-location-local-services__link:focus-visible {
    color: #7b663d;
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
}

.psl-location-local-services__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--psl-subtle-gold);
}

/* Safe-preview notice inserted by the migration-mode preview runtime. */
.psl-location-preview-notice {
    position: fixed;
    z-index: 99999;
    right: 14px;
    bottom: 14px;
    max-width: min(430px, calc(100vw - 28px));
    padding: 8px 12px;
    border: 1px solid var(--psl-gold);
    background: rgba(0, 0, 0, .92);
    color: var(--psl-white);
    font-size: 11px;
    line-height: 1.35;
}

/* Service Page responsive rhythm: primary content collapse at 950px,
   compact/mobile treatment at 700px. */
@media (max-width: 950px) {
    .psl-location-office-identity,
    .psl-location-contact-map__inner {
        grid-template-columns: 1fr;
    }

    .psl-location-office-identity {
        width: min(100%, 760px);
        gap: clamp(26px, 4vw, 38px);
    }

    .psl-location-office-identity__details {
        width: min(100%, 680px);
        margin: 0 auto;
    }

    .psl-location-contact-map__inner {
        width: min(100%, 760px);
    }

    .psl-location-local-services__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .psl-location-map {
        height: clamp(430px, 62vw, 600px);
    }
}

@media (max-width: 700px) {
    .psl-location-intro {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .psl-location-intro__title {
        font-size: clamp(34px, 8.3vw, 54px);
    }

    .psl-location-intro__rule {
        margin: 8px auto 10px;
    }

    .psl-location-intro__description {
        padding-bottom: 24px;
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.55;
    }

    .psl-location-office-identity {
        gap: 26px;
    }

    .psl-location-office-identity__firm-name {
        font-size: clamp(30px, 8.5vw, 42px);
    }

    .psl-location-office-identity__descriptor {
        font-size: clamp(13px, 4vw, 18px);
        letter-spacing: clamp(1.5px, .5vw, 2.5px);
    }

    .psl-location-office-identity__title,
    .psl-location-form-card__title {
        font-size: clamp(21px, 6vw, 27px);
    }

    .psl-location-map-card__title {
        font-size: 20px;
    }

    .psl-location-local-services__title {
        font-size: 27px;
    }

    .psl-location-award-marks {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .psl-location-award-marks__image {
        flex-basis: 48px;
        width: 48px;
        max-width: 48px;
        height: 48px;
        max-height: 48px;
    }

    .psl-location-media-marks__image {
        height: 22px;
        max-height: 22px;
    }

    .psl-location-contact-map {
        padding-top: 44px;
        padding-bottom: 64px;
    }

    .psl-location-form-card {
        padding: 10px;
    }

    .psl-location-map {
        min-height: 360px;
        height: 92vw;
        max-height: 500px;
    }

    .psl-location-map-card__links {
        display: grid;
        gap: 9px;
    }

    .psl-location-local-services__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .psl-location-page *,
    .psl-location-page *::before,
    .psl-location-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Archive foundation remains intentionally simple until the Offices overview is
   designed as its own page family. */
.psl-location-archive-hero {
    padding: clamp(58px, 5vw, 90px) var(--psl-location-side-pad);
    background: linear-gradient(180deg, var(--psl-black), var(--psl-blue-dark));
    color: var(--psl-white);
    text-align: center;
}

.psl-location-archive-hero__eyebrow {
    margin: 0 0 8px;
    color: var(--psl-subtle-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.psl-location-archive-hero__title {
    margin: 0;
    color: var(--psl-light-gold);
    font-family: var(--psl-location-font-display-condensed);
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 300;
}

.psl-location-archive-hero__rule {
    display: block;
    width: min(600px, 70%);
    height: 1px;
    margin: 20px auto;
    background: var(--psl-subtle-gold);
}

.psl-location-archive-list {
    padding: 64px var(--psl-location-side-pad);
}

.psl-location-office-grid--archive {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.psl-location-office-card--archive {
    border: 1px solid rgba(174, 146, 89, .45);
    background: var(--psl-white);
}

.psl-location-office-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.psl-location-office-card__body {
    padding: 22px;
}

.psl-location-office-card__title {
    margin: 0 0 10px;
    font-family: var(--psl-location-font-display);
}

.psl-location-office-card__title a,
.psl-location-office-card__link {
    color: var(--psl-charcoal);
}

.psl-location-office-card__address {
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 950px) {
    .psl-location-office-grid--archive {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .psl-location-office-grid--archive {
        grid-template-columns: 1fr;
    }
}
