/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#register {
    scroll-margin-top: 150px;
}

/* ===== HEADER & NAVIGATION ===== */

/* Header Base */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    border-top: 20px solid var(--brand-primary) !important;
    border-left: 20px solid var(--brand-primary) !important;
    border-right: 20px solid var(--brand-primary) !important;
    box-sizing: border-box;
    padding-top: 72px;
    transition: opacity var(--transition-base), padding var(--transition-base);
}

/* Header Overlay */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

/* Sticky Header */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--base-white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    animation: fadeIn var(--transition-slow) ease forwards;
}

/* Sticky State Adjustments */
.site-header.is-sticky .header-overlay {
    opacity: 0;
}

.site-header.is-sticky .site-header__logo img,
.site-header.site-header--solid .site-header__logo img {
    width: 180px !important;
    transition: width var(--transition-base);
}

/* Solid Header */
.site-header.site-header--solid {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 15px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transition: none;
    border-radius: 0;
}

.site-header.site-header--solid .header-overlay {
    display: none;
}

/* Header Inner Container */
.site-header__inner {
    max-width: 1457px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--desktop-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--text-nav-size);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-base);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-primary);
}

/* ===== INTRO SECTION ===== */
.intro-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    background-color: var(--base-white);
}

.intro-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

/* Intro Typography */
.intro-heading {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.intro-heading .heading-italic {
    display: block;
    font-weight: 700;
    font-style: italic;
    font-size: var(--text-h2);
    margin-bottom: 0.2rem;
}

.intro-heading .heading-main {
    display: block;
    font-weight: 700;
    font-style: normal;
    font-size: var(--text-h2);
}

.intro-body {
    max-width: 500px;
    text-align: center;
    margin: 0;
    font-size: var(--text-body-size);
    color: var(--text-body);
    line-height: 1.6;
}

/* Intro Image */
.intro-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 40px;
}

.intro-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Bottom Row */
.intro-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4.375rem;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-nav-size);
    color: var(--text-body);
    font-weight: 600;
}

.stat-sub {
    font-size: var(--text-xsmall);
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.intro-btn-col {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--space-sm);
}

/* ===== LATEST LAUNCHES SECTION ===== */
.launches-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    background-color: var(--base-white);
}

.launches-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-h2);
    color: var(--brand-primary);
    margin-bottom: var(--space-xs);
    text-align: center;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--text-body);
    text-align: center;
}

.launches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.launch-card {
    background-color: var(--base-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: var(--space-lg);
    transition: transform var(--transition-base) ease;
    max-width: 400px;
    margin: 0 auto;
}

.launch-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--base-white);
    font-size: var(--text-xsmall);
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    z-index: 2;
}

.badge-red {
    background-color: var(--brand-secondary);
}

.badge-green {
    background-color: var(--brand-tertiary);
}

.badge-purple {
    background-color: var(--brand-primary);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    padding: var(--space-lg);
    padding-top: 0;
}

.card-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-sm);
}

.card-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-body);
    line-height: 1.2;
    width: 100%;
}

.separator-line {
    padding-bottom: 4px;
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid #D9D9D9;
}

.card-size {
    font-size: var(--text-nav-size);
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: var(--space-lg);
}

/* --- CARD ACTIONS --- */
.card-actions {
    display: flex;
    gap: 2px;
    width: 100%;
    margin-top: auto;
}

.card-price-box {
    flex: 6;
    background-color: #716F6F;
    border-radius: 8px 0 0 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
}

.card-more-btn {
    flex: 4;
    background-color: var(--brand-primary);
    border-radius: 0 8px 8px 0;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease;
    line-height: 1.2;
}

.card-more-btn:hover {
    background-color: #453875;
}

.price-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.price-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.launches-footer {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
}

/* ── Learn More button ── */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background-color: #342254;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.625rem;          /* Figma 13px × 2 */
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;          /* full pill shape */
    min-width: 300px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.learn-more-btn:hover {
    background-color: #453875;
    color: #fff;
    transform: translateY(-2px);
}

.learn-more-btn__text {
    /* inherits font from parent */
}

.learn-more-btn__icon {
    width: 2.75rem;               /* white circle */
    height: 2.75rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #342254;               /* chevron colour */
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== TOWNSHIP SECTION ===== */
.township-header {
    text-align: center;
    margin-bottom: var(--space-xs);
    flex-shrink: 0;
}

.township-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: calc(var(--text-h2) * 0.8);
    color: var(--brand-primary);
    line-height: 1.2;
    display: inline-block;
    text-align: center;
}

.township-col-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
}

.township-desc {
    font-size: var(--text-body-size);
    color: var(--text-body);
    line-height: 1.6;
    max-width: 500px;
    text-align: center;
}

/* --- JS-DRIVEN SCROLL STYLES --- */
.township-sticky-wrapper {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    background-color: var(--brand-primary);
}

.circular-mask-layer {
    width: 100%;
    height: 100%;
    background-color: var(--base-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: circle(15% at 40% 58%);
    will-change: clip-path;
}

.township-container-fix {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 10px;
    min-height: 0;
}

.township-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
    align-items: center;
    min-height: 0;
    margin-bottom: 0;
}

.township-map {
    width: 90%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.township-distance-img {
    width: 80%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media (min-width: 992px) and (max-height: 960px) {
    .township-map {
        width: auto;          /* Let width scale naturally */
        height: 70vh;         /* FORCE height to be tall (70% of screen) */
        max-width: 100%;      /* Prevent horizontal scrolling */
        object-fit: contain;  /* Ensure image doesn't distort */
    }

    .township-distance-img {
        width: auto;
        height: 50vh;         /* Slightly smaller to leave room for text above */
        max-width: 100%;
        object-fit: contain;
    }
}

/* ===== AMENITIES BRIDGE SECTION ===== */
.amenities-bridge-section {
    background-color: var(--base-white);
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 50;
    border-top: 1px solid #e8e8e8;
}

.bridge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
}

.bridge-col {
    display: flex;
    flex-direction: column;
}

.bridge-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.bridge-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.bridge-category-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.bridge-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bridge-list li {
    font-family: var(--font-body);
    font-size: var(--text-small);
    color: var(--text-body);
    line-height: 1.4;
}

.bridge-list li strong {
    font-weight: 700;
    color: var(--text-dark);
}

.bridge-sub-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 var(--space-xs) 0;
}

.bridge-sub-title--spaced {
    margin-top: var(--space-md);
}

.amenities-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.amenities-sub-col {
    display: flex;
    flex-direction: column;
}

/* Mobile */
@media (max-width: 991px) {
    .bridge-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .bridge-col--amenities {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .bridge-grid {
        grid-template-columns: 1fr;
    }

    .amenities-sub-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== INTEREST FORM SECTION ===== */
.interest-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    background-color: var(--base-white);
    text-align: center;
    position: relative;
    z-index: 50;
    border: none;
}

.interest-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-h2);
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.2;
    text-align: center;
}

.interest-form {
    max-width: 364px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-body);
    border-radius: var(--border-radius-pill);
    background-color: var(--base-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-small);
    color: var(--text-dark);
    text-align: center;
    outline: none;
    transition: border-color var(--transition-base) ease;
}

.form-input:focus {
    border-color: var(--brand-primary);
}

.form-input::placeholder {
    color: var(--text-body);
    opacity: 0.8;
}

.form-disclaimer {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.disclaimer-text {
    font-family: var(--font-body);
    font-size: var(--text-xsmall);
    color: var(--text-body);
    text-align: left;
    line-height: 1.4;
}

/* ===== BUTTONS ===== */
.btn--pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--brand-primary);
    color: var(--base-white);
    padding: 0.8rem 2.5rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-body-size);
    text-transform: capitalize;
    min-height: 44px;
    min-width: 44px;
    transition: all var(--transition-base) ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn--pill:hover {
    background-color: #453875;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--submit {
    background-color: var(--brand-primary);
    color: var(--base-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-nav-size);
    padding: 0.6rem 3rem;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-base) ease;
    min-width: 122px;
    min-height: 44px;
}

.btn--submit:hover {
    background-color: #453875;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== GLOBAL IMAGE RULES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== PARALLAX STACK & ANIMATIONS ===== */

/* --- Parallax Structure --- */
.parallax-stack {
    width: 100%;
    position: relative;
}

.parallax-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--base-white);
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--mobile-padding);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Parallax Typography --- */
.parallax-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.04em;
    font-size: clamp(3.5rem, 14vw, 12.625rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.parallax-subheading {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.04em;
    font-size: clamp(2rem, 10vw, 8.875rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.parallax-subheading-bold {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.04em;
    font-size: clamp(2.5rem, 11vw, 9.75rem);
    margin-top: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.parallax-long-desc {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 0;
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.7vw, 2.375rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- Parallax Span Settings --- */
.parallax-heading span,
.parallax-subheading span,
.parallax-subheading-bold span,
.parallax-long-desc span {
    display: inline-block;
    position: relative;
}

.parallax-heading span,
.parallax-subheading span,
.parallax-subheading-bold span {
    white-space: pre;
    min-width: 0.2em;
}

.parallax-long-desc span {
    white-space: normal;
}

/* --- Parallax Backgrounds --- */
.parallax-innovation {
    background-image: url('../assets/images/innovation.webp');
}

.parallax-meets {
    background-image: url('../assets/images/meet.webp');
}

.parallax-humanity {
    background-image: url('../assets/images/humanity.webp');
}

.parallax-welcome {
    background-image: url('../assets/images/welcome.webp');
}
/* --- Sub-page Hero Backgrounds --- */
#living-hero {
    background-image: url('../assets/images/living.webp');
    background-position: top center;
}

#township-purpose-hero {
    background-image: url('../assets/images/township-purposes.webp');
}

#property-development-hero {
    background-image: url('../assets/images/property-development.webp');
}


.parallax-master-title {
    background-color: var(--brand-primary);
    background-image: none;
}

.parallax-master-text {
    background-color: var(--brand-primary);
    background-image:
        linear-gradient(rgba(52, 34, 84, 0.8), rgba(52, 34, 84, 0.8)),
        url('../assets/images/pkns-cybervalley-aerial.webp');
    background-blend-mode: overlay;
}

.parallax-master-map {
    background-color: var(--brand-primary);
    background-image: url('../assets/images/pkns-cybervalley-aerial.webp');
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet: 768px - 991px */
@media (min-width: 768px) {
    .purpose-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .intro-bottom-row {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }

    .intro-btn-col {
        grid-column: auto;
        margin-top: 0;
        align-items: center;
        justify-content: center;
    }

    .hero-dots {
        gap: var(--space-md);
    }
}

/* Desktop: 992px and above */
@media (min-width: 992px) {
    .intro-img {
        width: 130%;
        max-width: none;
    }

    .intro-layout {
        grid-template-columns:
            minmax(2rem, 1fr) minmax(auto, calc(var(--container-width) / 2)) minmax(auto, calc(var(--container-width) / 2)) minmax(2rem, 1fr);
        gap: 0;
        align-items: center;
    }

    .intro-text-col {
        grid-column: 2 / 3;
        padding-left: var(--desktop-padding);
        padding-right: 4rem;
        text-align: left;
    }

    .intro-image-wrapper {
        grid-column: 3 / 5;
        justify-content: flex-end;
    }

    .intro-bottom-row {
        grid-column: 2 / 4;
        grid-template-columns: repeat(4, 1fr);
        padding-left: var(--desktop-padding);
        padding-right: var(--desktop-padding);
        margin-top: var(--space-2xl);
    }

    .intro-btn-col {
        justify-content: flex-end;
        align-self: center;
    }

    .intro-heading,
    .intro-body {
        text-align: left;
    }

    .purpose-header {
        grid-template-columns: 7fr 3fr;
        align-items: end;
    }

    .purpose-action {
        justify-content: flex-end;
        padding-bottom: 10px;
    }

    .purpose-heading,
    .purpose-body {
        text-align: left;
    }

    .launches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }

    .launch-card {
        max-width: none;
        margin: 0;
    }

    .township-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: var(--space-2xl);
    }

    .township-col-right {
        align-items: flex-start;
    }

    .township-desc {
        text-align: left;
        margin: 0;
    }

    .circular-mask-layer {
        justify-content: flex-start !important;
        padding-top: 120px !important;
        padding-bottom: 40px !important;
    }
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
    .site-header.is-sticky {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }

    .site-header__inner {
        padding: 0 var(--mobile-padding);
    }

    .nav-list {
        gap: var(--space-sm);
        font-size: var(--text-small);
    }

    .site-header__logo img {
        width: 160px !important;
    }

    .intro-section,
    .purpose-section,
    .launches-section,
    .township-section,
    .interest-section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .intro-layout {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
        padding: 0 var(--mobile-padding);
    }

    .intro-text-col,
    .intro-image-wrapper,
    .intro-bottom-row {
        grid-column: 1 !important;
    }

    .intro-text-col {
        padding: 0 !important;
        text-align: center !important;
    }

    .intro-image-wrapper {
        padding-left: 0 !important;
        justify-content: center !important;
    }

    .intro-heading,
    .intro-body {
        text-align: center !important;
    }

    .intro-body {
        max-width: 100% !important;
    }
    .intro-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        padding: 0;
    }

    .intro-btn-col {
        grid-column: span 2;
        justify-content: center;
        margin-top: var(--space-sm);
    }

    .purpose-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .purpose-header {
        padding: 0 var(--mobile-padding);
    }

    .interest-form {
        max-width: 100%;
        padding: 0 var(--mobile-padding);
    }

    .form-input {
        padding: var(--space-sm) var(--space-lg);
        font-size: 16px;
    }

    .hero-dots {
        bottom: 20px;
        gap: var(--space-sm);
    }

    .dot {
        width: calc(var(--dot-size) * 0.6);
        height: calc(var(--dot-size) * 0.6);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* Tablet Landscape: 1024px and below */
@media (max-width: 1024px) {
    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Township Mobile: 991px and below */
@media (max-width: 991px) {
    .township-grid {
        gap: var(--space-xl);
        padding: 0 var(--mobile-padding);
    }

    .township-desc {
        text-align: center;
        margin: 0 auto;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .intro-bottom-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .intro-btn-col {
        grid-column: 1;
    }
}

/* Card Actions Mobile Stack */
.card-actions {
    flex-direction: column !important;
    gap: 2px !important;
}

.card-price-box,
.card-more-btn {
    width: 100% !important;
    flex: none !important;
}

.card-more-btn {
    min-height: 48px;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .back-to-top {
        background-color: var(--brand-primary);
        border: 1px solid var(--base-white);
    }

    .btn--pill,
    .btn--pill-lg,
    .btn--submit {
        border: 2px solid var(--base-white);
    }

    .form-input {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .back-to-top,
    .btn--pill,
    .btn--pill-lg,
    .btn--submit,
    .gallery-img,
    .launch-card,
    .nav-link,
    .site-header {
        transition: none;
        animation: none;
    }

    .back-to-top:hover,
    .back-to-top:focus,
    .btn--pill:hover,
    .btn--pill-lg:hover,
    .btn--submit:hover,
    .gallery-item:hover .gallery-img,
    .launch-card:hover {
        transform: none;
    }

    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .site-header.is-sticky {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    padding: 60px 0 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    gap: 15px;
}

.icon-wrapper {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 16px;
    margin-top: 2px;
}

.footer-text {
    line-height: 1.6;
}

.phone-group {
    margin-bottom: 12px;
}

.phone-group.mt-3 {
    margin-top: 15px;
}

.phone-desc {
    opacity: 0.9;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-row {
    display: flex;
    gap: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

/* --- Footer Column Brand --- */
.col-brand {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
}
.pkns-main-link {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}
.pkns-social-btn {
    background-color: #DA1F26;
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}
.pkns-social-btn .social-icon-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}
.pkns-social-btn .social-icon-link:hover {
    opacity: 0.75;
}
.social-icons {
    display: flex;
    gap: 10px;
    font-size: 14px;
}
.btn-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-logo {
    height: 80px;
    width: auto;
}

/* --- Footer Responsive --- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-brand {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- Footer Fixes --- */
.footer-col--stack {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 0;
}

.phone-number {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.4;
}

.footer-col--stack .footer-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* --- Sales Gallery Widget --- */
.township-col-left {
    position: relative;
    display: block;
}

.sales-gallery-widget {
    position: absolute;
    bottom: 9.5%;
    left: 1.5%;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 12px;
}

.widget-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 600;
}

.widget-icons {
    display: flex;
    gap: 12px;
}

.icon-link {
    display: block;
    width: 55px;
    height: 55px;
    transition: transform 0.2s ease;
}

.icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon-link:hover {
    transform: translateY(-3px);
}

/* Widget Mobile Adjustment */
@media (max-width: 768px) {
    .sales-gallery-widget {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 15px;
        background: none;
        padding: 0;
    }

    .township-map {
        margin-bottom: 0;
    }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        height: 100vh;
        min-height: 500px;
    }

    .parallax-heading {
        font-size: clamp(2.5rem, 13vw, 4rem) !important;
    }

    .parallax-subheading {
        font-size: clamp(1.2rem, 5vw, 2rem) !important;
    }

    .parallax-subheading-bold {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
    }

    .parallax-long-desc {
        font-size: 1.1rem !important;
        padding: 0 15px;
    }
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Mobile View: 768px and below */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }

    .site-header__logo {
        order: 2;
        margin-left: auto;
    }

    .site-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .site-header__nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .site-header__inner {
        display: flex;
        align-items: center;
    }
}

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

.intro-image-wrapper,
.launch-card {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-fade-rise {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.launch-card:nth-child(1) {
    animation-delay: 0.1s;
}

.launch-card:nth-child(2) {
    animation-delay: 0.3s;
}

.launch-card:nth-child(3) {
    animation-delay: 0.5s;
}

.is-fully-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== BACKGROUND SCROLL ANIMATION ===== */
@keyframes scrollBackground {
    from {
        background-position: 0% 100%;
    }

    to {
        background-position: 100% 100%;
    }
}

/* ===== VIDEO BACKGROUND FIX ===== */
.video-section-fix {
    position: relative;
    background-image: none !important;
    overflow: hidden;
}

.parallax-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-section-fix::before {
    z-index: 1;
}

.video-section-fix .parallax-content {
    z-index: 2;
    position: relative;
}

/* ===== STICKY SCROLLING FIX ===== */
html,
body,
.page-wrapper {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* ===== MEETS SECTION ===== */
.sticky-meets .parallax-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
    transform: translateZ(0);
}

/* Meets Section Mobile */
@media (max-width: 768px) {
    .meets-scroll-track {
        height: auto !important;
    }

    .sticky-meets {
        position: relative;
        top: auto;
        height: 100vh;
        background-size: cover;
        background-position: center;
    }
}

/* =========================================
   DESKTOP FIX: RESTORE SIDE-BY-SIDE BUTTONS
   (Min-width 992px)
   ========================================= */
@media (min-width: 992px) {
    .card-actions {
        flex-direction: row !important;
        gap: 2px !important;
    }

    .card-price-box {
        width: auto !important;
        flex: 6 !important;
    }

    .card-more-btn {
        width: auto !important;
        flex: 4 !important;
        min-height: auto !important;
        padding: 0 !important;
    }
}

/* ===== FORM MESSAGE STATES ===== */
.form-message {
    padding: 12px 20px;
    border-radius: var(--border-radius-pill);
    font-size: var(--text-small);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.form-message--error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-message--success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.btn--submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* =============================================
   PHASE 3 — MOBILE OPTIMISATION
   ============================================= */

/* --- index.html --- */
@media (max-width: 767px) {

    /* Learn More button full-width on mobile */
    .learn-more-btn {
        min-width: unset;
        width: 100%;
        max-width: 400px;
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }

    /* Launches section padding */
    .launches-section {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }

    .launches-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .launches-footer {
        display: flex;
        justify-content: center;
        padding: 0 var(--mobile-padding);
    }

    /* Interest form heading */
    .interest-heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        text-align: center;
    }

    /* Township section stacks */
    .township-grid {
        grid-template-columns: 1fr !important;
    }

    .township-col-left,
    .township-col-right {
        width: 100%;
    }
}

/* --- living.html --- */
@media (max-width: 767px) {

    /* Stats 3-col → 1-col */
    .living-stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl) !important;
    }

    /* Testimony video full width */
    .testimony-video {
        max-width: 100%;
    }

    /* Section paddings tighter on mobile */
    .living-section {
        padding-top: var(--space-xl) !important;
        padding-bottom: var(--space-xl) !important;
    }
}

/* --- property-development.html --- */
@media (max-width: 767px) {

    /* Filter bar label hidden on small screens */
    .prop-filter__label {
        display: none;
    }

    /* Results count smaller */
    .prop-filter__count {
        font-size: 1.25rem !important;
    }

    /* Prop grid single column */
    .prop-grid {
        gap: 1rem !important;
    }

    /* Card pricebar stacks on mobile */
    .prop-card__pricebar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .prop-card__price-col,
    .prop-card__more-col {
        width: 100% !important;
        border-radius: 8px !important;
        text-align: center;
    }

    .prop-card__price-col {
        padding: 0.75rem 1rem;
    }

    .prop-card__more-col {
        padding: 0.75rem 1rem !important;
        min-height: 48px;
    }

    /* Hero section on property-development */
    #property-development-hero .parallax-content {
        padding: 0 var(--mobile-padding);
        text-align: center;
    }
}

/* --- Shared: sub-page hero heading size --- */
@media (max-width: 767px) {
    .page-hero__heading {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    .page-hero__subheading {
        font-size: clamp(1rem, 4vw, 1.5rem) !important;
    }
}

/* --- Tablet (768px – 1024px) tweaks --- */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Launches: 2-col on tablet */
    .launches-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Property cards: full-width single col on tablet */
    .prop-grid {
        gap: 1.25rem !important;
    }

    /* Filter bar wrap selects on tablet */
    .prop-filter__selects {
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }
}

/* ── Intro button row mobile fix ── */
@media (max-width: 767px) {
    .intro-btn-row {
        grid-column: 1 !important;
        padding-left: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .intro-btn-row a {
        font-size: 0.9rem !important;
        padding: 0.7rem 1.25rem !important;
        text-align: center;
    }
}

/* =============================================
   INTRO SECTION — NUCLEAR MOBILE FIX
   ============================================= */
@media (max-width: 767px) {
    .intro-section {
        overflow: hidden;
    }

    .intro-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 var(--mobile-padding) !important;
        gap: var(--space-lg) !important;
    }

    .intro-text-col {
        width: 100% !important;
        grid-column: unset !important;
        padding: 0 !important;
        text-align: center !important;
        order: 1;
    }

    .intro-image-wrapper {
        width: 100% !important;
        grid-column: unset !important;
        padding: 0 !important;
        order: 2;
    }

    .intro-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .intro-bottom-row {
        width: 100% !important;
        grid-column: unset !important;
        order: 3;
    }

    .intro-btn-row {
        width: 100% !important;
        grid-column: unset !important;
        padding: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        order: 4;
    }

    .intro-heading,
    .intro-body {
        text-align: center !important;
    }

    .intro-body {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* =============================================
   MOBILE FIXES — LAUNCHES SECTION
   ============================================= */
@media (max-width: 767px) {

    /* 1. Section heading line-height fix */
    .section-heading {
        line-height: 1.1 !important;
        margin-bottom: var(--space-xs) !important;
    }

    /* 2. Learn More — single line, no wrap */
    .learn-more-btn {
        white-space: nowrap !important;
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        width: auto !important;
        min-width: unset !important;
    }

    /* 3. Property card — remove container side padding only */
    .launches-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =============================================
   FOOTER — MOBILE CENTER ALIGN
   ============================================= */
@media (max-width: 576px) {
    .footer-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col--stack {
        align-items: center !important;
    }

    .footer-col--stack .footer-row {
        justify-content: center;
    }

    .col-brand {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-text,
    .footer-link,
    .pkns-main-link {
        text-align: center;
    }

    .icon-wrapper {
        display: none;
    }

    .footer-logo {
        display: block;
        margin: 0 auto;
    }

    .footer-legal {
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-bottom {
        align-items: center;
    }
}

/* =============================================
   CARD LOGO — CONSISTENT MAX-WIDTH
   ============================================= */

/* index.html cards */
.card-logo {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: var(--space-sm);
}

/* property-development.html cards */
