/* Plan Your Visit only. Shared home.css retains the existing header/footer typography. */
.visit-page {
    background: #fff;
    color: #17212b;
    font-size: 1rem;
    line-height: 1.75;
}

.visit-page *,
.visit-page *::before,
.visit-page *::after {
    box-sizing: border-box;
}

.visit-inner {
    width: min(100% - 3rem, 1160px);
    margin-inline: auto;
}

.visit-section {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.visit-page h1,
.visit-page h2,
.visit-page h3 {
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.visit-page h1 {
    font-size: clamp(2rem, 4.6vw, 4.25rem);
    letter-spacing: 0.015em;
    margin: 0 0 1.5rem;
}

.visit-page h2 {
    font-size: clamp(1.8rem, 3.5vw, 3.25rem);
    margin: 0 0 1.5rem;
}

.visit-page h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem;
}

.visit-page p {
    margin: 0 0 1rem;
}

.visit-copy,
.visit-section-heading > p,
.visit-arrival,
.visit-location-info address {
    color: #5f6b76;
}

.visit-copy h2,
.visit-copy h3 {
    color: #17212b;
}

.visit-page .visit-eyebrow {
    color: #095280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.visit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: #095280;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.visit-button:hover {
    background: #073f62;
}

.visit-button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
    box-shadow: 0 0 0 6px #095280;
}

.visit-hero,
.visit-closing {
    background: #17212b;
    color: #fff;
}

.visit-hero-photo,
.visit-closing-picture img,
.visit-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

/* Mobile keeps the photograph and copy visually connected through the transition. */
.visit-hero-content {
    position: relative;
    z-index: 1;
    margin-top: -5rem;
    padding-block: 7rem 2.5rem;
    background: linear-gradient(180deg, rgba(23, 33, 43, 0), #17212b 5rem);
}

.visit-hero-content p {
    max-width: 640px;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .visit-page h1 {
        font-size: clamp(1.8rem, 4.1vw, 3.75rem);
    }

    .visit-hero-content p {
        font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    }
}

.visit-friendships-grid,
.visit-gallery,
.visit-location-panel,
.visit-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.visit-friendships {
    padding-block: clamp(3rem, 5vw, 4rem);
}

#visit-friendships-title {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
}

.visit-friendships-grid {
    align-items: center;
    gap: 2rem;
}

.visit-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.visit-gallery img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 10px;
}

.visit-location {
    background: #f7f7f7;
    padding-block: clamp(2.5rem, 4vw, 3.5rem);
    scroll-margin-top: 5rem;
}

.visit-section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.visit-closing .visit-eyebrow {
    color: #fff;
}

.visit-location .visit-section-heading {
    color: #17212b;
    margin-bottom: 1.75rem;
}

.visit-location .visit-eyebrow {
    margin-bottom: 0.5rem;
}

#visit-location-title {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    margin-bottom: 0;
}

.visit-location-panel,
.visit-card {
    background: #fff;
    border-radius: 10px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 8px 24px rgba(23, 33, 43, 0.08);
}

.visit-location-panel {
    gap: 1.5rem;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid #e1e6eb;
    box-shadow: none;
}

.visit-location-panel h3 {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
}

.visit-location-panel h3 i {
    color: #095280;
    flex: 0 0 auto;
}

.visit-location-info h3 {
    color: #17212b;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.visit-location-info address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.visit-arrival {
    border-top: 1px solid #e1e6eb;
    padding-top: 1.5rem;
}

.visit-arrival h3 {
    color: #17212b;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.visit-arrival ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visit-arrival li {
    position: relative;
    padding-left: 1.6rem;
}

.visit-arrival li + li {
    margin-top: 0.75rem;
}

.visit-arrival li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #095280;
    font-weight: 700;
}

.visit-questions {
    background: #fff;
    padding-top: clamp(3rem, 5vw, 4rem);
}

.visit-cards {
    gap: 1.5rem;
    align-items: stretch;
}

.visit-card {
    border: 1px solid #e1e6eb;
    padding: 1.5rem;
}

.visit-card-featured {
    background-color: #fff;
    border-color: rgba(9, 82, 128, 0.4);
    box-shadow: 0 10px 28px rgba(9, 82, 128, 0.12);
}

.visit-card-icon {
    color: #095280;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.visit-copy p:last-child {
    margin-bottom: 0;
}

.visit-closing {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.visit-closing-picture {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.visit-closing-picture img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.visit-closing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.visit-closing-content {
    width: 100%;
    max-width: 900px;
    padding: clamp(4rem, 7vw, 6rem) 1.5rem;
    text-align: center;
}

.visit-closing h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    margin: 0;
}

@media (min-width: 360px) {
    .visit-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .visit-button {
        width: auto;
    }
}

@media (min-width: 768px) {
    .visit-hero {
        position: relative;
        display: grid;
        min-height: 640px;
    }

    .visit-hero-photo {
        position: absolute;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
    }

    .visit-hero-content {
        position: relative;
        align-self: stretch;
        display: flex;
        align-items: end;
        padding-block: 5rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.8));
    }

    .visit-hero h1 {
        max-width: 1000px;
    }

    .visit-location-panel {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .visit-arrival {
        border-top: 0;
        border-left: 1px solid #e1e6eb;
        padding-top: 0;
        padding-left: clamp(1.5rem, 2.5vw, 2rem);
    }

    .visit-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 1024px) {
    .visit-closing {
        aspect-ratio: auto;
        height: 280px;
    }

    .visit-closing-content {
        padding-block: 2rem;
    }
}

@media (max-width: 600px) {
    .visit-closing {
        height: 240px;
    }
}

@media (width > 1024px) {
    .visit-closing {
        aspect-ratio: 4 / 1;
    }

    .visit-closing-content {
        padding-block: 2rem;
    }
}

@media (min-width: 768px) {
    .visit-friendships-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

@media (min-width: 1280px) {
    .visit-cards {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .visit-cards > .visit-card {
        grid-column: span 3;
    }

    .visit-cards > .visit-card:nth-child(n + 5) {
        grid-column: span 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visit-button {
        transition: none;
    }
}
