/* Explain: Styling for various page components, including cards, animations, and layout elements. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(18px);
}

.nav-overlay-surface {
    background:
        radial-gradient(circle at 12% 18%, rgba(240, 180, 41, 0.16), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(240, 180, 41, 0.1), transparent 24rem),
        var(--background-color);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before,
.section-kicker::after {
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.6));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, 0.1);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    aspect-ratio: 1 / 1;
    border-radius: 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 2.1rem 2.1rem 999px 999px;
}

.floating-note {
    position: absolute;
    inset-inline-end: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    inset-inline-end: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.class-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(240, 180, 41, 0.5);
    box-shadow: 0 26px 80px rgba(28, 25, 23, 0.11);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--sage-soft);
}

.amenity-image-wrap {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.form-status.success {
    display: block;
    color: #15803d;
    background: rgba(21, 128, 61, 0.1);
    border-color: rgba(21, 128, 61, 0.2);
}

.form-status.error {
    display: block;
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
    border-color: rgba(185, 28, 28, 0.2);
}

.city-chip {
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.city-chip .fa-chevron-down {
    transition: transform 300ms ease;
}

.city-chip:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.city-chip-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.city-chip-active .fa-location-dot,
.city-chip-active .fa-chevron-down {
    color: #ffffff;
}

.city-chip-active .fa-chevron-down {
    transform: rotate(180deg);
}

.city-panel {
    animation: cityPanelFade 300ms ease;
}

@keyframes cityPanelFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-book-bar {
    position: fixed;
    inset-inline-end: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(28, 25, 23, 0.6);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(28, 25, 23, 0.22);
}

@media (max-width: 767px) {
    .section-kicker::before,
    .section-kicker::after {
        width: 1.5rem;
    }

    .arch-frame-medium,
    .amenity-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-inline: auto;
        width: min(100%, 450px);
        height: auto;
    }

    .floating-note,
    .story-card {
        position: relative;
        inset-inline-end: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .amenity-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}

.project-prose {
    margin-top: 1.5rem;
    max-width: none;
    color: var(--text-muted);
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 3rem 2.5rem 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.project-prose::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    inset-inline-start: 0;
    width: 6px;
    background: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

.project-prose > * {
    position: relative;
    z-index: 1;
}

.project-prose > * + * {
    margin-top: 1.6rem;
}

.project-prose ::selection {
    background: var(--accent-color);
    color: #ffffff;
}

.project-prose p {
    font-size: 1.08rem;
    line-height: 2.1;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.02em;
    margin: 0;
}

.project-prose p + p {
    margin-top: 1.4rem;
}

.project-prose p:first-of-type {
    color: var(--primary-color);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.95;
    text-align: start;
    border-inline-start: 4px solid var(--accent-color);
    padding-inline-start: 1.1rem;
    padding-block: 0.25rem;
}

.project-prose p:not(:first-of-type) strong,
.project-prose p:not(:first-of-type) b {
    display: inline;
}

.project-prose h1,
.project-prose h2,
.project-prose h3,
.project-prose h4 {
    margin-top: 1.9rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.5;
}

.project-prose h2 {
    font-size: 1.4rem;
}

.project-prose h3 {
    font-size: 1.18rem;
}

.project-prose h4 {
    font-size: 1.05rem;
}

.project-prose ul,
.project-prose ol {
    margin-top: 1rem;
    padding-inline-start: 1.5rem;
}

.project-prose li {
    margin-top: 0.65rem;
    line-height: 1.95;
}

.project-prose li::marker {
    color: var(--accent-color);
    font-weight: 700;
}

.project-prose strong,
.project-prose b {
    color: var(--text-color);
    font-weight: 700;
}

.project-prose a {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-prose blockquote {
    margin-top: 1.5rem;
    border-inline-start: 3px solid var(--accent-color);
    background: var(--field-bg);
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
}

.success-section {
    background:
        radial-gradient(circle at 88% 12%, rgba(234, 179, 8, 0.07), transparent 28rem),
        radial-gradient(circle at 8% 92%, rgba(0, 0, 0, 0.03), transparent 24rem),
        var(--background-color);
}

.stat-grid {
    background: var(--border-color);
}

.stat-cell {
    background: var(--surface-color);
    transition: background-color 300ms ease;
}

.stat-cell:hover {
    background: var(--field-bg);
}

.projects-swiper {
    padding-bottom: 0.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.projects-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.projects-swiper .swiper-slide {
    height: auto;
}

.projects-swiper .swiper-pagination-bullet {
    width: 0.6rem;
    height: 0.6rem;
    background: var(--text-muted);
    opacity: 0.3;
    transition: width 300ms ease, background-color 300ms ease, opacity 300ms ease;
}

.projects-swiper .swiper-pagination-bullet-active {
    width: 1.8rem;
    border-radius: 999px;
    background: var(--accent-color);
    opacity: 1;
}

.gov-logo-frame {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

@media (min-width: 640px) {
    .gov-logo-frame {
        width: 3.75rem;
        height: 3.75rem;
        padding: 0.55rem;
    }
}

.group:hover .gov-logo-frame {
    border-color: var(--accent-color);
    box-shadow: 0 14px 30px rgba(234, 179, 8, 0.18);
}

.gov-logo {
    display: block;
    background-image: url('https://files.cdn-files-a.com/uploads/12427518/normal_6ac742bc3f9c9.png?format=avif');
    background-repeat: no-repeat;
}

.gov-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.partners-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-marquee-track {
    animation: partnersMarqueeScroll 60s linear infinite;
    will-change: transform;
}

.partners-marquee:hover .partners-marquee-track,
.partners-marquee:focus-within .partners-marquee-track {
    animation-play-state: paused;
}

@keyframes partnersMarqueeScroll {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .partners-marquee-track {
        animation: none;
    }
}

.projects-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.projects-marquee-track {
    animation: partnersMarqueeScroll 60s linear infinite;
    will-change: transform;
}

@media (max-width: 640px) {
    .projects-marquee-track {
        animation-duration: 92s;
    }
}

.projects-marquee:hover .projects-marquee-track,
.projects-marquee:focus-within .projects-marquee-track {
    animation-play-state: paused;
}

.projects-marquee.is-paused .projects-marquee-track {
    animation-play-state: paused;
}

/* Projects marquee runs on every screen size (mobile included), like desktop */

@media (prefers-reduced-motion: reduce) {
    .projects-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .projects-marquee-track {
        animation: none;
    }
}

.hero-bg-stage {
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.hero-bg-video.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-video {
        transition: none;
    }
}

.filter-active-badge {
    display: none;
}

.filter-active-badge.is-visible {
    display: inline-flex;
}

.success-bar {
    transition: width 1.1s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.reveal-on-scroll:not(.is-revealed) .success-bar {
    width: 0 !important;
}

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