/* /paths/places — India's Perennial Chapters (Figma 1440) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Cormorant+Infant:wght@400&family=Montserrat:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Playfair+Display:wght@400&display=swap');

body.ashrams-locations-page {
    --loc-ref: 1440;
    --loc-gutter: clamp(1.25rem, 5.556vw, 5rem);
    --loc-card-gap: clamp(1rem, 2.222vw, 2rem);
    --loc-card-h: clamp(22rem, 41.667vw, 37.5rem);
    background: #ffffff;
}

body.ashrams-locations-page .ashrams-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none;
}

body.ashrams-locations-page .ashrams-header__nav--full {
    min-height: 0;
    padding: 32px 40px;
}

body.ashrams-locations-page .ashrams-header__wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--ashrams-inter), 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: #55433d;
}

body.ashrams-locations-page .ashrams-header__toggle-line {
    background: #55433d;
}

body.ashrams-locations-page .ashrams-header__toggle-line--top,
body.ashrams-locations-page .ashrams-header__toggle-line--mid {
    width: 22px;
}

body.ashrams-locations-page .ashrams-header__toggle-line--bottom {
    display: block;
    width: 11px;
}

body.ashrams-locations-page .ashrams-footer {
    margin-top: 0;
}

.ashrams-locations {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
}

.ashrams-locations__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(3rem, 5.556vw, 5rem);
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: clamp(7.5rem, 12.5vw, 11.25rem) var(--loc-gutter) clamp(3rem, 5vw, 4rem);
    box-sizing: border-box;
}

/* Hero intro */
.ashrams-locations__hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9375rem;
    width: 100%;
}

.ashrams-locations__eyebrow {
    margin: 0;
    font-family: 'Montserrat', var(--ashrams-sans);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.225rem;
    text-transform: uppercase;
    color: #695c50;
}

.ashrams-locations__title {
    margin: 0;
    padding-bottom: 1.0625rem;
    font-family: 'Cormorant Infant', var(--ashrams-serif);
    font-size: clamp(2rem, 3.125vw, 2.8125rem);
    font-weight: 400;
    line-height: 1.556;
    letter-spacing: -0.08rem;
    color: #1a1c1c;
}

.ashrams-locations__rule {
    display: block;
    width: 2.5rem;
    height: 1px;
    background: #000000;
}

/* Destination cards — Figma: 4 × 296px in one row, 32px gap, 600px tall @ 1440 */
.ashrams-locations__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--loc-card-gap);
    width: 100%;
}

.ashrams-locations__card {
    position: relative;
    min-width: 0;
    height: var(--loc-card-h);
    border-radius: 0.625rem;
    overflow: hidden;
}

.ashrams-locations__card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
}

.ashrams-locations__card-link:hover,
.ashrams-locations__card-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.ashrams-locations__card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.ashrams-locations__card-glass {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2rem 2rem 3rem;
    min-height: 8.9375rem;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        top 0.65s ease-out,
        min-height 0.65s ease-out,
        padding 0.65s ease-out,
        background 0.65s ease-out,
        backdrop-filter 0.65s ease-out,
        -webkit-backdrop-filter 0.65s ease-out;
}

.ashrams-locations__card-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0;
}

.ashrams-locations__card-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: calc(100% - 1.5rem);
}

.ashrams-locations__card-title {
    margin: 0;
    font-family: 'Cormorant Garamond', var(--ashrams-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #ffffff;
}

.ashrams-locations__card-locations {
    margin: 0;
    font-family: 'Montserrat', var(--ashrams-sans);
    font-size: 0.625rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.ashrams-locations__card-arrow {
    flex-shrink: 0;
    width: 0.9375rem;
    height: 0.9375rem;
    opacity: 0.6;
    transition: opacity 0.55s ease-out;
}

.ashrams-locations__card-desc {
    margin: 0;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    font-family: 'Montserrat', var(--ashrams-sans);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    transition:
        max-height 0.65s ease-out,
        opacity 0.55s ease-out 0.12s,
        padding-top 0.65s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .ashrams-locations__card-link:hover .ashrams-locations__card-glass,
    .ashrams-locations__card-link:focus-visible .ashrams-locations__card-glass {
        top: 32%;
        bottom: 0;
        min-height: 0;
        height: auto;
        padding-bottom: 2rem;
        background: rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .ashrams-locations__card-link:hover .ashrams-locations__card-desc,
    .ashrams-locations__card-link:focus-visible .ashrams-locations__card-desc {
        max-height: 20rem;
        padding-top: 1rem;
        opacity: 1;
        overflow: visible;
    }

    .ashrams-locations__card-link:hover .ashrams-locations__card-arrow,
    .ashrams-locations__card-link:focus-visible .ashrams-locations__card-arrow {
        opacity: 1;
    }
}

/* Gap between region cards and CTA copy */
.ashrams-locations__main + .ashrams-locations__cta {
    margin-top: clamp(2rem, 3.5vw, 3rem);
}

/* CTA row — desktop: copy left, underline link right */
.ashrams-locations__cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    min-height: 5.5rem;
    margin-bottom: 3.125rem;
}

.ashrams-locations__cta-heading,
.ashrams-locations__cta-rule {
    display: none;
}

.ashrams-locations__cta-text {
    margin: 0;
    max-width: 31.5rem;
    font-family: 'Montserrat', var(--ashrams-sans);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.611;
    letter-spacing: 0.01125rem;
    color: #695c50;
}

.ashrams-locations__cta-action {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.ashrams-locations__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid #000000;
    font-family: 'Montserrat', var(--ashrams-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1c1c;
}

.ashrams-locations__cta-btn:hover,
.ashrams-locations__cta-btn:focus-visible {
    color: #1a1c1c;
    text-decoration: none;
}

@media (min-width: 1000px) {
    body.ashrams-locations-page {
        --loc-card-gap: 2rem;
        --loc-card-h: 37.5rem;
    }

    .ashrams-locations__cta {
        max-width: 90rem;
        margin-inline: auto;
        padding: 0 var(--loc-gutter) clamp(3rem, 5vw, 4rem);
        box-sizing: border-box;
    }

    body.ashrams-locations-page .ashrams-footer .ashrams-footer__forest {
        min-height: clamp(38rem, 72.08vw, 64.875rem);
    }
}

@media (max-width: 999px) {
    .ashrams-locations__cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .ashrams-locations__card {
        width: min(100%, 18.5rem);
        max-width: 18.5rem;
    }
}

@media (min-width: 501px) and (max-width: 999px) {
    .ashrams-locations__cta {
        display: grid;
        grid-template-columns: 1fr;
        max-width: min(80rem, calc(100% - 2 * var(--loc-gutter)));
        margin-inline: auto;
        padding: 0 var(--loc-gutter) clamp(3rem, 5vw, 4rem);
    }

    .ashrams-locations__cta-action {
        justify-content: flex-start;
    }
}

/* Mobile — Figma 393px (≤500px) */
@media (max-width: 500px) {
    body.ashrams-locations-page {
        --loc-mobile-content: 14.5625rem;
        --loc-card-gap: 2rem;
        --loc-card-h: 21.735rem;
        --loc-phone: 393;
        --loc-phone-pad: calc(100vw * 32 / var(--loc-phone));
        --loc-phone-footer-pad-top: calc(100vw * 39 / var(--loc-phone));
        --loc-phone-footer-nav-gap: calc(100vw * 40 / var(--loc-phone));
        --loc-phone-footer-col-gap: calc(100vw * 16 / var(--loc-phone));
        --loc-phone-footer-link-gap: calc(100vw * 8 / var(--loc-phone));
        --loc-phone-footer-tagline-gap: calc(100vw * 79 / var(--loc-phone));
        --loc-phone-footer-forest-h: calc(100vw * 261 / var(--loc-phone));
        --loc-phone-footer-social-gap: calc(100vw * 12 / var(--loc-phone));
        --loc-phone-footer-social-size: calc(100vw * 30 / var(--loc-phone));
        --loc-phone-footer-social-inset: calc(100vw * 8 / var(--loc-phone));
    }

    body.ashrams-locations-page .ashrams-header {
        position: relative;
        background: #ffffff;
    }

    body.ashrams-locations-page .ashrams-header__nav--full {
        min-height: 4.875rem;
        padding: 0.9375rem 1rem;
        box-sizing: border-box;
    }

    body.ashrams-locations-page .ashrams-header__wordmark {
        letter-spacing: 0.125rem;
    }

    .ashrams-locations__main {
        gap: 5rem;
        max-width: none;
        padding:
            3.75rem
            max(1rem, calc((100% - var(--loc-mobile-content)) / 2))
            7.5rem;
    }

    .ashrams-locations__hero {
        gap: 1.45rem;
        width: 100%;
        max-width: var(--loc-mobile-content);
        margin-inline: auto;
    }

    .ashrams-locations__eyebrow {
        font-size: 0.625rem;
        line-height: 1.5rem;
        letter-spacing: 0.3rem;
    }

    .ashrams-locations__title {
        font-size: 2.8125rem;
        line-height: 3.125rem;
        letter-spacing: -0.08rem;
        padding-bottom: 0;
    }

    .ashrams-locations__rule {
        width: 6rem;
        background: rgba(0, 0, 0, 0.1);
    }

    .ashrams-locations__cards {
        gap: var(--loc-card-gap);
        width: 100%;
        max-width: var(--loc-mobile-content);
        margin-inline: auto;
        justify-items: stretch;
    }

    .ashrams-locations__card {
        width: 100%;
        max-width: none;
        height: var(--loc-card-h);
        border-radius: 0.5rem;
    }

    .ashrams-locations__card-glass {
        padding: 1.875rem 2rem;
        min-height: 8.625rem;
    }

    .ashrams-locations__card-title {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .ashrams-locations__card-desc {
        font-size: 0.75rem;
        line-height: 1.0625rem;
    }

    @media (hover: hover) and (pointer: fine) {
        .ashrams-locations__card-link:hover .ashrams-locations__card-glass,
        .ashrams-locations__card-link:focus-visible .ashrams-locations__card-glass {
            top: 28%;
            min-height: 0;
            height: auto;
            padding: 2rem;
        }

        .ashrams-locations__card-link:hover .ashrams-locations__card-desc,
        .ashrams-locations__card-link:focus-visible .ashrams-locations__card-desc {
            max-height: 16rem;
            overflow: visible;
        }
    }

    .ashrams-locations__main + .ashrams-locations__cta {
        margin-top: 2rem;
    }

    .ashrams-locations__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: 20.5625rem;
        margin-inline: auto;
        margin-bottom: 5rem;
        min-height: 0;
        box-sizing: border-box;
        background: #ffffff;
        border-top: 1px solid #ffffff;
    }

    .ashrams-locations__cta-heading {
        display: block;
        margin: 0;
        width: 100%;
        font-family: 'Playfair Display', var(--ashrams-serif);
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 2rem;
        text-align: center;
        color: #2c2c2c;
    }

    .ashrams-locations__cta-text {
        max-width: none;
        margin: 0;
        font-size: 0.5625rem;
        font-style: italic;
        font-weight: 300;
        line-height: 1.125rem;
        letter-spacing: 0.01125rem;
        text-align: center;
        text-transform: uppercase;
        color: #695c50;
    }

    .ashrams-locations__cta-rule {
        display: block;
        width: 100%;
        height: 1px;
        margin-top: 0.75rem;
        background: transparent;
        border-bottom: 1px solid #2c2c2c;
    }

    .ashrams-locations__cta-action {
        justify-content: center;
        width: 100%;
        padding-top: 2rem;
    }

    .ashrams-locations__cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 9.6875rem;
        padding: 1rem 2.5rem;
        border: 1px solid #2c2c2c;
        border-bottom: 1px solid #2c2c2c;
        font-family: var(--ashrams-inter), 'Inter', sans-serif;
        font-size: 0.625rem;
        font-weight: 400;
        letter-spacing: 0.09375rem;
        color: #8c8c8c;
    }
}
