/* ========================================
   HARMONY BUILDWORKS Page Styles
   Specific styles for each page section
   ======================================== */

/* ---------- PAGE: HOME (Hero) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 26, 43, 0.7) 0%,
            rgba(15, 26, 43, 0.3) 50%,
            rgba(15, 26, 43, 0.7) 100%);
}

.hero__content {
    text-align: center;
    max-width: 1200px;
    padding: 0 var(--space-4);
    z-index: 1;
}

.hero__title {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--space-6);
    max-width: 100%;
    padding-top: var(--space-2);
}

.hero__title span {
    display: block;
    overflow: visible;
}

.hero__title .word {
    display: inline-block;
    /* No animation - shows immediately */
}


@keyframes reveal-word {
    to {
        transform: translateY(0);
    }
}

.hero__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-grey);
    max-width: 500px;
    margin: 0 auto var(--space-8);
    opacity: 0;
    animation: fade-in 1s var(--ease-out-expo) 0.8s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.hero__cta {
    opacity: 0;
    animation: fade-in 1s var(--ease-out-expo) 1s forwards;
}

/* ---------- PAGE: PROJECTS ---------- */
.projects {
    padding: var(--space-20) 0;
    background: var(--color-charcoal);
}

.projects__header {
    margin-bottom: var(--space-12);
}

.projects__title {
    font-size: var(--text-display);
    margin-bottom: var(--space-3);
}

.projects__description {
    font-size: var(--text-body-lg);
    color: var(--color-grey);
    max-width: 600px;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

/* Featured first card spans full width */
.projects__grid .project-card:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
    min-height: 400px;
}

/* All other cards are uniform */
.projects__grid .project-card:nth-child(n+2) {
    aspect-ratio: 4/3;
}

/* Odd last card spans full width for balance */
.projects__grid .project-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .projects__grid .project-card:nth-child(1) {
        min-height: 300px;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: var(--nav-height) 0 var(--space-6);
    }

    .hero__content {
        padding: 0 var(--space-3);
    }

    .hero__title {
        font-size: clamp(1.75rem, 10vw, 3.5rem);
        margin-bottom: var(--space-3);
        letter-spacing: -0.02em;
    }

    .hero__subtitle {
        font-size: var(--text-small);
        max-width: 100%;
        margin: 0 auto var(--space-4);
    }

    .hero__cta {
        font-size: var(--text-micro);
        padding: var(--space-2) var(--space-3);
        width: auto;
    }

    /* Projects */
    .projects {
        padding: var(--space-8) 0;
    }

    .projects__header {
        margin-bottom: var(--space-4);
    }

    .projects__description {
        max-width: 100%;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .projects__grid .project-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        aspect-ratio: 16/10 !important;
        min-height: auto !important;
    }

    /* Journey */
    .journey {
        padding: var(--space-8) 0;
    }

    .journey__header {
        margin-bottom: var(--space-6);
    }

    .journey__subtitle {
        font-size: var(--text-body);
    }

    /* Perspectives */
    .perspectives {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .perspectives__header {
        margin-bottom: var(--space-4);
    }

    .perspectives__subtitle {
        font-size: var(--text-body);
    }

    /* Connect */
    .connect {
        min-height: auto;
    }

    .connect__description {
        font-size: var(--text-body);
        margin-bottom: var(--space-4);
    }

    .connect__form {
        margin-bottom: var(--space-4);
    }

    .connect__info {
        gap: var(--space-3);
        padding-top: var(--space-4);
    }

    /* Map */
    .connect-map__title {
        margin-bottom: var(--space-3);
    }
}

/* ---------- PAGE: JOURNEY (Timeline) ---------- */
.journey {
    padding: var(--space-20) 0;
    background: var(--color-charcoal-light);
}

.journey__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.journey__title {
    font-size: var(--text-display);
    margin-bottom: var(--space-3);
}

.journey__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-grey);
}

/* ---------- PAGE: PERSPECTIVES (Testimonials) ---------- */
.perspectives {
    position: relative;
    min-height: 100vh;
    padding: var(--space-20) 0;
    overflow: hidden;
    background: var(--color-charcoal);
}

.perspectives__header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
    z-index: 1;
}

.perspectives__title {
    font-size: var(--text-display);
    margin-bottom: var(--space-3);
}

.perspectives__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-grey);
}

.perspectives__cloud {
    position: relative;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}

/* Testimonial positions - constellation pattern */
.perspectives__cloud .testimonial-item:nth-child(1) {
    top: 5%;
    left: 10%;
}

.perspectives__cloud .testimonial-item:nth-child(2) {
    top: 15%;
    right: 15%;
}

.perspectives__cloud .testimonial-item:nth-child(3) {
    top: 40%;
    left: 25%;
}

.perspectives__cloud .testimonial-item:nth-child(4) {
    top: 35%;
    right: 5%;
}

.perspectives__cloud .testimonial-item:nth-child(5) {
    top: 65%;
    left: 5%;
}

.perspectives__cloud .testimonial-item:nth-child(6) {
    top: 70%;
    right: 20%;
}

/* Drift animation */
@keyframes drift-1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -10px);
    }
}

@keyframes drift-2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-12px, 8px);
    }
}

@keyframes drift-3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, 12px);
    }
}

.perspectives__cloud .testimonial-item:nth-child(odd) {
    animation: drift-1 12s ease-in-out infinite;
}

.perspectives__cloud .testimonial-item:nth-child(even) {
    animation: drift-2 15s ease-in-out infinite;
}

.perspectives__cloud .testimonial-item:nth-child(3n) {
    animation: drift-3 18s ease-in-out infinite;
}

.perspectives__cloud .testimonial-item:hover {
    animation-play-state: paused;
}

@media (max-width: 1024px) {
    .perspectives__cloud {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }

    .perspectives__cloud .testimonial-item {
        position: relative !important;
        inset: auto !important;
        animation: none !important;
    }
}

/* ---------- PAGE: CONNECT (Contact) ---------- */
.connect {
    min-height: 100vh;
}

.connect__form-section {
    max-width: 500px;
}

.connect__title {
    font-size: var(--text-heading-1);
    margin-bottom: var(--space-3);
}

.connect__description {
    font-size: var(--text-body-lg);
    color: var(--color-grey);
    margin-bottom: var(--space-8);
}

.connect__form {
    margin-bottom: var(--space-8);
}

.connect__submit {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-body);
    margin-top: var(--space-4);
}

.connect__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-grey-dark);
}

.connect__info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.connect__info-label {
    font-size: var(--text-micro);
    color: var(--color-grey);
}

.connect__info-value {
    font-size: var(--text-body);
    color: var(--color-off-white);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.connect__info-value:hover {
    color: var(--color-taupe);
}

/* ---------- GLOBAL MAP SECTION ---------- */
.connect-map {
    padding: var(--space-12) 0;
    background: var(--color-charcoal-medium);
    text-align: center;
}

.connect-map__title {
    font-size: var(--text-micro);
    color: var(--color-grey);
    margin-bottom: var(--space-6);
}

.connect-map__hubs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding: 0 var(--space-4);
}

.connect-map__hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2);
    opacity: 0.6;
    transition: opacity var(--duration-fast) var(--ease-out-quart);
}

.connect-map__hub:hover {
    opacity: 1;
}

.connect-map__hub.is-origin {
    opacity: 1;
}

.connect-map__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-grey);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.connect-map__hub.is-origin .connect-map__dot {
    width: 14px;
    height: 14px;
    background: var(--color-taupe);
    box-shadow: var(--glow-taupe);
}

.connect-map__hub:hover .connect-map__dot {
    background: var(--color-taupe);
}

.connect-map__name {
    font-size: var(--text-micro);
    color: var(--color-grey);
    white-space: nowrap;
}

.connect-map__connector {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right,
            var(--color-taupe),
            var(--color-grey-dark));
    opacity: 0.5;
}

@media (max-width: 768px) {
    .connect-map__hubs {
        flex-direction: column;
    }

    .connect-map__connector {
        width: 1px;
        height: 30px;
        background: linear-gradient(to bottom,
                var(--color-taupe),
                var(--color-grey-dark));
    }
}