/* Welcome — Home (holding page) styles. Ported from wearewelcome.com.au. */

/* ─── Fonts ──────────────────────────────────────────────── */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('../fonts/gt-walsheim-pro-light.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('../fonts/gt-walsheim-pro-regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('../fonts/gt-walsheim-pro-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('../fonts/gt-walsheim-pro-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a:hover { text-decoration: underline; }
.btn-chat:hover { text-decoration: none; }

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
    --cream:   #FBF6F0;
    --muted:   #C9BFBA;
    --yellow:  #FEDD74;
    --charcoal:#262626;
    --bg-outer:#C9BFBA;
    --bg-card: #0C0C12;
    --font:    'GT Walsheim Pro', -apple-system, Helvetica, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────── */
html { height: 100%; }

body {
    min-height: 100%;
    background: var(--bg-outer);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    padding: 20px;
    overflow-x: hidden;
}

/* ─── Outer card ─────────────────────────────────────────── */
.card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 22px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.card-bg-wrap {
    position: absolute;
    inset: -5% -2%;
    width: 104%;
    height: 110%;
    z-index: 0;
    opacity: 0;
    animation: fade-in-bg 0.8s ease-in-out forwards, float-bg 3.5s ease-in-out 0.8s infinite;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-38px); }
}

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

/* ─── Gradient orbs ──────────────────────────────────────── */
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

/* Green — top centre */
.orb-green {
    width: 520px; height: 380px;
    background: radial-gradient(circle, rgba(120, 210, 70, 0.65) 0%, transparent 65%);
    top: -140px;
    left: 50%;
    transform: translateX(-30%);
}

/* Teal — top right */
.orb-teal {
    width: 420px; height: 380px;
    background: radial-gradient(circle, rgba(0, 195, 210, 0.45) 0%, transparent 65%);
    top: -60px;
    right: -80px;
}

/* Blue-purple — mid left */
.orb-blue {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(80, 90, 220, 0.35) 0%, transparent 65%);
    top: 30%;
    left: -60px;
}

/* Red-orange — bottom right */
.orb-red {
    width: 340px; height: 280px;
    background: radial-gradient(circle, rgba(210, 55, 35, 0.55) 0%, transparent 65%);
    bottom: 80px;
    right: 60px;
}

/* Dark vignette pulled from the Mask group layer */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(12,12,18,0) 0%, rgba(12,12,18,0.6) 100%);
    z-index: 1;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 36px;
}

.logo {
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 12px 24px;
    color: var(--cream);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
}

.badge-text-short { display: none; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 10;
    margin: 2rem;
    flex: 1;
    border-radius: 12px;
    background: rgba(32, 32, 32, 0.75);
    backdrop-filter: blur(4.70000076293945px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    /* max-width: 80vw; */
}

.tagline {
    color: #C9BFBA;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}

.headline {
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.05em;
    margin-bottom: 22px;
}

.headline-line1 {
    display: block;
    color: var(--cream);
    font-size: clamp(52px, 6vw, 85px);
}

.headline-line2 {
    display: block;
    color: var(--muted);
    font-size: clamp(52px, 6vw, 85px);
}

.body-copy {
    color: #FBF6F0;
    font-size: 19px;
    line-height: 141%;
    max-width: 640px;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
    font-weight: 100;
}

strong { font-weight: 700; }

/* ─── Service tag marquee ────────────────────────────────── */
.marquee-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    /* fade edges */
    /* -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); */
}

.marquee-rows { display: none; }
.marquee-tablet { display: none; }
.marquee-mobile  { display: none; }

.marquee-track {
    display: flex;
}

.marquee-item {
    white-space: nowrap;
    color: #C9BFBA;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.0625em;
    text-transform: uppercase;
}

.marquee-item .dot {
    padding: 0 10px;
}

.marquee-hr {
    border: none;
    border-top: 0.25px solid #c9bfba79;
    margin: 10px 0;
}

/* iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .marquee-desktop { display: none; }
    .marquee-tablet  { display: block; }
}

/* Mobile */
@media (max-width: 767px) {
    .marquee-desktop { display: none; }
    .marquee-mobile  { display: block; }
    .marquee-wrap {
        border-radius: 8px;
        padding: 14px 16px;
        margin-left: -16px;
        margin-right: -16px;
    }
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── CTA button ─────────────────────────────────────────── */
.btn-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--charcoal);
    font-family: var(--font);
    font-size: 19px;
    font-weight: 700;
    border-radius: 100px;
    padding: 13px 36px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
    letter-spacing: -0.01em;
    align-self: flex-start;
}

.btn-chat:hover {
    transform: translateY(-1px);
    filter: brightness(0.9);
}

/* Hide GSAP targets before JS runs to prevent flash of visible content */
.nav, .footer, .tagline,
.headline-line1, .headline-line2,
.body-copy, .marquee-wrap, .btn-chat, .orb {
    visibility: hidden;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 36px 24px;
}

/* Info rows — Clients / Industries / Partners */
.footer-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.footer-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 14px;
}

.footer-row-label {
    color: #C9BFBA;
    font-weight: 500;
    min-width: 78px;
    flex-shrink: 0;
    font-size: 16px;
}

/* Accordion trigger — display:contents on desktop so it's invisible to the flex layout */
.footer-row-trigger {
    display: contents;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: default;
    pointer-events: none;
}

.footer-row-chevron {
    display: none;
}

/* Panel — display:contents on desktop so the value span flows into the flex row */
.footer-row-panel {
    display: contents;
}

.footer-row-divider {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 14px;
    vertical-align: middle;
    flex-shrink: 0;
    align-self: center;
}

.footer-row-value {
    color: #FBF6F0;
    line-height: 2;
    font-weight: 100;
}

.footer-row-value .dot {
    padding: 0 10px;
}

/* Bottom bar — address / contact / social */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-address {
    color: #FBF6F0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-address-hq {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
    font-weight: 500;
}

.footer-contact {
    color: #FBF6F0;
    font-size: 14px;
        text-align: center;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover { color: var(--cream); }

.footer-offices {
    display: block;
    color: inherit;
    font-size: 14px;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.footer-social {
    color: #FBF6F0;
    font-size: 14px;
}

.footer-social a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-social a:hover { color: var(--cream); }

/* ─── Responsive ─────────────────────────────────────────── */

@media (min-width: 1600px) {
    .hero { justify-content: center; }
    .headline-line1,
    .headline-line2 { font-size: clamp(48px, 7vw, 105px); }
    .body-copy { font-size: 24px; }
    .marquee-item { font-size: 22px; letter-spacing: 0.06em; }
}
@media (max-width: 1024px) {
    body { padding: 12px; }

    .card { border-radius: 18px; min-height: calc(100vh - 24px); }

    .nav { padding: 22px 20px; }

    .badge { font-size: 16px; padding: 9px 18px; }

    .hero { padding: 1rem; margin: 1rem;}

    .tagline { font-size: 13px; }

    .headline-line1,
    .headline-line2 { font-size: clamp(38px, 9vw, 60px); }

    .body-copy { font-size: 16px; }
    .btn-chat { width: 100%; }
    .marquee-item { font-size: 14px; letter-spacing: 0.04em; }
    .footer { padding: 16px 1rem 20px; border-top: none; margin-top: 1rem;}

    .footer-rows {
        margin-bottom: 2rem;
    }
    /* Accordion rows */
    .footer-row {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #C9BFBA;
    }

    .footer-row-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 0;
        pointer-events: auto;
        cursor: pointer;
        background: none;
        border: none;
        font: inherit;
        color: inherit;
        text-align: left;
    }

    .footer-row-label {
        font-size: 16px;
        color: #c9bfba;
        min-width: unset;
    }

    .footer-row-chevron {
        display: block;
        color: #C9BFBA;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .footer-row.is-open .footer-row-chevron {
        transform: rotate(180deg);
    }

    .footer-row-divider { display: none; }

    .footer-row-panel {
        display: block;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease-in-out, padding-bottom 0.35s ease-in-out;
    }

    .footer-row.is-open .footer-row-panel {
        max-height: 400px;
        padding-bottom: 14px;
    }

    .footer-row-value { font-size: 14px; line-height: 2; }

    .orb-green  { width: 280px; height: 200px; }
    .orb-teal   { width: 240px; height: 240px; }
    .orb-blue   { width: 200px; height: 200px; }
    .orb-red    { width: 200px; height: 160px; }
}

@media (max-width: 768px) {
    .footer-bottom {
        border-top: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .footer-address {
        text-align: center;
    }

    .footer-address-hq {
        justify-content: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-bottom: 16px;
        text-align: center;
    }

    .footer-social {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
        padding-top: 12px;
    }
}

/* Tablet — accordion open by default, rows in a row */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-rows {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
    .footer-row {
        flex: 1;
        border-bottom: none;
    }
    .footer-row-panel {
        max-height: none;
        transition: none;
    }
    .footer-row-chevron { display: none; }
    .footer-row-trigger { pointer-events: none; cursor: default; }
}

@media (max-width: 767px) {
    .badge { font-size: 3.1vw; }
    .badge-text-full { display: none; }
    .badge-text-short { display: inline; }
}
