/**
 * SYB 3D Hero Section Styles — Stitch Your Brand
 * Scoped under .syb-3d-hero-wrapper to avoid conflicts with theme CSS.
 * Uses SYB design system: Inter font, olive/sage brand colors.
 * Built for the Three.js-based hero (no WebGi SDK dependency).
 */

/* ─── Scroll Line Keyframe ─── */
@keyframes syb-scroll-line {
    0% { transform: scaleY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ─── Loader ─── */
.syb-3d-hero-wrapper .loader {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #f2f2f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5em;
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    top: 0;
    left: 0;
}

.syb-3d-hero-wrapper .loader .loader-logo {
    height: 120px;
    width: auto;
    opacity: 0.9;
    margin-bottom: 1em;
}

.syb-3d-hero-wrapper .loader .loader-brand {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
}

.syb-3d-hero-wrapper .loader .loader-status {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.35);
}

.syb-3d-hero-wrapper .loader .progress {
    position: absolute;
    top: 60%;
    width: 120px;
    height: 1px;
    background: var(--color-accent, #39b65e);
    transform: scaleX(0);
    transition: transform 1s;
    transform-origin: left;
    z-index: 10;
    border-radius: 1px;
}

/* ─── 3D Canvas ─── */
#syb-3d-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    touch-action: none;
    pointer-events: none;
    z-index: 0;
    display: block !important;
}

#syb-3d-canvas-container {
    height: 100lvh !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 0;
}

/* ─── CSS Vignette (replaces GPU shader vignette — zero performance cost) ─── */
#syb-3d-canvas-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 220px 60px rgba(0, 0, 0, 0.06);
}

/* ─── Section Base ─── */
.syb-3d-hero-wrapper .section {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100lvh;
    height: 100vh;
    align-content: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: visible;
}

/* ─── Side Bar Navigation Dots ─── */
.syb-3d-hero-wrapper .side-bar {
    position: fixed;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    opacity: 0;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .side-bar {
        display: none;
    }
}

.syb-3d-hero-wrapper .side-bar .navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.syb-3d-hero-wrapper .side-bar .navigation ul li {
    display: block;
    border-radius: 50%;
    background: var(--color-text-primary, #1a1a1a);
    width: 5px;
    height: 5px;
    margin: 8px 0;
    text-indent: -999px;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    opacity: 0.3;
    transition: all ease-out 250ms;
}

.syb-3d-hero-wrapper .side-bar .navigation ul li.active {
    opacity: 1 !important;
    transform: scale(1.5);
    background: var(--color-accent, #39b65e);
}

/* ─── Hero Section (cam-view-1) ─── */
.syb-3d-hero-wrapper .hero--container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    width: 50%;
    top: 0;
    right: 0;
    height: 100lvh;
    height: 100vh;
    opacity: 0;
    z-index: 2;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--container {
        align-content: center;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
        left: 0;
    }
}

.syb-3d-hero-wrapper .hero--content {
    width: 100%;
    max-width: 600px;
    margin-right: 10%;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--content {
        margin-right: 0;
        align-items: center;
        display: flex;
        flex-direction: column;
        height: 100lvh;
        height: 100vh;
        justify-content: flex-start;
        padding: 90px 30px 80px;
    }
    .syb-3d-hero-wrapper .hero--text {
        margin-top: auto;
    }
}

/* Hero Eyebrow */
.syb-3d-hero-wrapper .hero--eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent, #39b65e);
    margin-bottom: 16px;
    text-align: right;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--eyebrow {
        text-align: center;
    }
}

.syb-3d-hero-wrapper .hero--content h1 {
    position: relative;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #000000;
    text-align: right;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--content h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 20px;
        text-align: center;
    }
}

.syb-3d-hero-wrapper .hero--text {
    text-align: right;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--text {
        text-align: center;
    }
}

.syb-3d-hero-wrapper .hero--text p {
    font-weight: 400;
    font-size: var(--text-base, 1rem);
    line-height: 1.65;
    text-align: right;
    margin-bottom: 28px;
    font-family: var(--font-primary, 'Inter', sans-serif);
    color: #333333;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--text p {
        margin: 0 auto 24px;
        font-size: var(--text-sm, 0.875rem);
        text-align: center;
    }
}

/* Hero CTA Buttons */
.syb-3d-hero-wrapper .hero--cta {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--cta {
        display: none;
    }
}

/* Button overrides for hero section */
.syb-3d-hero-wrapper .syb-btn {
    font-size: 0.9375rem;
    padding: 14px 28px;
    min-width: auto;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .syb-btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 24px;
    }
}

.syb-3d-hero-wrapper .hero--content .button {
    background-color: transparent;
    width: 180px;
    height: 52px;
    border: 1px solid var(--color-brand, #1a1a1a);
    border-radius: var(--radius-full, 9999px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: var(--text-sm, 0.875rem);
    letter-spacing: 0;
    color: var(--color-brand, #1a1a1a);
    float: right;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5em;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--content .button {
        margin: 0 auto 100px;
        float: none;
    }
}

.syb-3d-hero-wrapper .hero--content .button svg path {
    transition: all 0.3s ease;
    stroke: var(--color-brand, #1a1a1a);
}

.syb-3d-hero-wrapper .hero--content .button:hover {
    border-color: var(--color-brand-hover, #000000);
    color: #fff;
    background: var(--color-brand, #1a1a1a);
    transform: translateY(-2px);
}

.syb-3d-hero-wrapper .hero--content .button:hover svg path {
    stroke: #fff;
}

/* ─── Scroll Indicator ─── */
.syb-3d-hero-wrapper .hero--scroller--container {
    bottom: 30px;
    align-items: center;
    width: 170px;
    align-content: center;
    flex-direction: column;
    position: absolute;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.syb-3d-hero-wrapper .hero--scroller {
    opacity: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.syb-3d-hero-wrapper .hero--scroller--text {
    font-size: 0.625rem;
    color: var(--color-text-tertiary, #888888);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .hero--scroller--text {
        display: none;
    }
}

.syb-3d-hero-wrapper .hero--scroller .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-brand, #1a1a1a), transparent);
    animation: syb-scroll-line 2s ease-in-out infinite;
    transform-origin: top;
}

.syb-3d-hero-wrapper .hero--scroller:hover .hero--scroller--text {
    color: var(--color-brand, #1a1a1a);
}

/* ─── Forever Section (cam-view-2) — left-aligned ─── */
.syb-3d-hero-wrapper .forever--container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    position: fixed;
    left: 0;
    top: 0;
    height: 100lvh;
    height: 100vh;
    opacity: 0;
    z-index: 2;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--container {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
}

.syb-3d-hero-wrapper .forever--content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    margin-left: 15%;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--content {
        align-items: center;
        margin-left: 0;
        justify-content: space-between;
        height: 100lvh;
        height: 100vh;
        padding: 90px 30px 80px;
    }
}

.syb-3d-hero-wrapper .forever--content h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #000000;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--content h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .syb-3d-hero-wrapper .forever--content h1 br {
        display: none;
    }
}

.syb-3d-hero-wrapper .forever--content h2 {
    margin-bottom: 4px;
    font-weight: 300;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent, #39b65e);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--content h2 {
        font-size: var(--text-base, 1rem);
    }
}

.syb-3d-hero-wrapper .forever--content p {
    width: 100%;
    max-width: 380px;
    font-weight: 400;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.75;
    text-align: left;
    font-family: var(--font-primary, 'Inter', sans-serif);
    color: #333333;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--content p {
        text-align: center;
        margin: 0 auto;
    }
}

.syb-3d-hero-wrapper .forever--text-bg {
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(6rem, 12vw, 15rem);
    line-height: 100%;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-70%);
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .forever--text-bg {
        font-size: clamp(5rem, 25vw, 10rem);
        left: 50%;
        top: -6%;
        transform: translateX(-50%);
    }
}

/* ─── Emotions Section (cam-view-3) — right-aligned ─── */
.syb-3d-hero-wrapper .emotions--container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    width: 50%;
    top: 0;
    right: 0;
    height: 100lvh;
    height: 100vh;
    opacity: 0;
    z-index: 2;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--container {
        flex-direction: column;
        width: 100%;
        right: auto;
        justify-content: center;
    }
}

.syb-3d-hero-wrapper .emotions--content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 500px;
    margin-right: 35%;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--content {
        align-items: center;
        margin-right: 0;
        justify-content: space-between;
        height: 100lvh;
        height: 100vh;
        padding: 90px 30px 80px;
    }
}

.syb-3d-hero-wrapper .emotions--text {
    text-align: right;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--text {
        margin-top: 0;
        text-align: center;
    }
}

.syb-3d-hero-wrapper .emotions--text h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #000000;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--text h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .syb-3d-hero-wrapper .emotions--text h1 br {
        display: none;
    }
}

.syb-3d-hero-wrapper .emotions--text h2 {
    margin-bottom: 4px;
    font-weight: 300;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent, #39b65e);
}

.syb-3d-hero-wrapper .emotions--text p {
    width: 100%;
    max-width: 380px;
    font-weight: 400;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.75;
    text-align: right;
    margin: 0 0 40px auto;
    font-family: var(--font-primary, 'Inter', sans-serif);
    color: #333333;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--text p {
        text-align: center;
        margin: 0 auto 40px;
    }
}

.syb-3d-hero-wrapper .btn-customize {
    background-color: #ffffff;
    width: 180px;
    height: 50px;
    border: 1px solid var(--color-brand, #1a1a1a);
    border-radius: var(--radius-full, 9999px);
    display: inline-flex;
    align-items: center;
    justify-content: space-evenly;
    font-weight: 500;
    font-size: var(--text-sm, 0.875rem);
    letter-spacing: 0;
    color: var(--color-brand, #1a1a1a);
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .btn-customize {
        margin-bottom: 40px;
    }
}

.syb-3d-hero-wrapper .btn-customize svg path {
    transition: all 0.3s ease;
    stroke: var(--color-brand, #1a1a1a);
}

.syb-3d-hero-wrapper .btn-customize:hover {
    background: var(--color-brand, #1a1a1a);
    color: #ffffff;
    transform: translateY(-2px);
}

.syb-3d-hero-wrapper .btn-customize:hover svg path {
    stroke: #ffffff;
}

.syb-3d-hero-wrapper .emotions--text-bg {
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(6rem, 12vw, 15rem);
    line-height: 50%;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .emotions--text-bg {
        font-size: clamp(5rem, 25vw, 10rem);
        right: auto;
        left: 50%;
        top: -6%;
        transform: translateX(-50%);
    }
}

/* ─── Exit / Customizer Container ─── */
.syb-3d-hero-wrapper .exit--container {
    display: none;
    width: 100%;
    align-content: center;
    top: 5%;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 3;
    pointer-events: none;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

.syb-3d-hero-wrapper .exit--container .customize--title {
    margin-left: 5%;
    margin-top: -8px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    flex-grow: 0.9;
    color: var(--color-text-primary, #1a1a1a);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .exit--container .customize--title {
        font-size: 1rem;
        flex-grow: 0.2;
    }
}

.syb-3d-hero-wrapper .exit--container .copyright {
    font-size: 0.6875rem;
    margin-right: 40px;
    color: var(--color-text-tertiary, #888888);
}

@media (max-width: 600px) {
    .syb-3d-hero-wrapper .exit--container .copyright {
        display: none;
    }
}

.syb-3d-hero-wrapper .button--secondary {
    border-radius: var(--radius-full, 9999px);
    font-weight: 500;
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.08em;
    color: var(--color-text-primary, #1a1a1a);
    transition: all 0.3s ease;
    z-index: 2;
    padding: 10px 28px;
    border: 1px solid var(--color-brand, #1a1a1a);
    text-transform: uppercase;
    pointer-events: auto;
    margin-right: 5%;
    user-select: none;
    background: transparent;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

.syb-3d-hero-wrapper .button--secondary:hover {
    cursor: pointer;
    color: #ffffff;
    background-color: var(--color-brand, #1a1a1a);
}

/* ─── Hero Wrapper ─── */
.syb-3d-hero-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

/* ─── Homepage Content: Covers fixed 3D canvas when scrolled past hero ───
   z-index must be ABOVE the canvas (0) but BELOW the header (100) & WhatsApp (80)
   so those fixed elements remain visible over content sections.
*/
.syb-home--3d .syb-home-content {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
}

/* Footer must also sit above the fixed 3D canvas */
.syb-home--3d ~ .syb-footer,
body.syb-home--3d .syb-footer {
    position: relative;
    z-index: 10;
}

/* When in customize mode, hide scroll content */
body.syb-customize-mode .syb-home-content {
    visibility: hidden;
}

body.syb-customize-mode {
    overflow: hidden !important;
}

/* ─── Loading State: Hide header & floating elements behind loader ─── */
body.syb-loading .syb-header,
body.syb-loading #masthead,
body.syb-loading .syb-whatsapp-sticky {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

