/* ============================================================
   PEARL RIVERA — Home Page Styles
   ============================================================ */

/* ----------------------------------------------------------
   1. BASE & RESET
   ---------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: white;
    background-image: url("../images/bg-1.jpg");
    background-position: top center;
    background-repeat: repeat-y;
    background-size: 100% auto;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ----------------------------------------------------------
   2. LAYOUT
   ---------------------------------------------------------- */

.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.section {
    position: relative;
}

/* ----------------------------------------------------------
   3. NAVIGATION
   ---------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 48px var(--container-padding) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.nav__logo {
    flex-shrink: 0;
}

.nav__logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* ----------------------------------------------------------
   4. HERO SECTION
   ---------------------------------------------------------- */

.hero {
    position: relative;
    height: 620px; /* nav(48px) + hero content to 620px */
    padding-top: 48px;
}

.hero__content-wrapper {
    position: relative;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

/* Left column: description + CTA */
.hero__left {
    position: absolute;
    left: var(--container-padding);
    top: 358px; /* 406px from viewport top - 48px nav */
    width: 719px;
    display: flex;
    flex-direction: column;
    gap: 28px; /* 99px from desc bottom to btn top (99px from desc bottom to btn top = 505-406) */
}

.hero__description {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.7;
    width: 719px;
}

.hero__cta-group {
    display: flex;
    gap: 24px; /* 356-332=24px gap in Figma */
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 284px;
    height: 71px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    transition:
        background var(--transition-base),
        color var(--transition-base),
        transform var(--transition-fast),
        box-shadow var(--transition-base);
}

.cta-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: none;
}

.cta-btn:hover::before {
    animation: ctaShine 0.8s ease-out forwards;
}

@keyframes ctaShine {
    0% {
        left: -75%;
    }
    100% {
        left: 150%;
    }
}

.cta-btn:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.cta-btn--primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.cta-btn--primary:hover {
    background: var(--pr-4);
    border-color: var(--pr-4);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero circle — concentric: outer ring + inner 360 image */
.hero__circle-wrapper {
    position: absolute;
    right: 260px;
    top: 100px;
    width: 672px;
    height: 672px;
    cursor: pointer;
}

.hero__circle-outer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.hero__circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 441px;
    height: 441px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__circle-inner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.hero__circle-inner-img--hover {
    opacity: 0;
}

.hero__circle-wrapper:hover .hero__circle-inner-img--normal {
    opacity: 0;
}

.hero__circle-wrapper:hover .hero__circle-inner-img--hover {
    opacity: 1;
}

.hero__circle-wrapper:hover .hero__circle-inner {
    transform: translate(-50%, -50%) scale(1.05);
}

.virtual-letter {
    position: absolute;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-secondary);
    transform-origin: center center;
    user-select: none;
    line-height: 1;
}

/* ----------------------------------------------------------
   5. BANNER STRIP
   ---------------------------------------------------------- */

.banner-strip {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.banner-strip img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------
   6. SHOWCASE + UTILITIES OVERLAY SECTION
   Match Figma: showcase top=943px, utilities overlay at bottom of showcase
   ---------------------------------------------------------- */

.showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 55px;
    padding: 0 20px;
}

.showcase__item {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
}

.showcase__item-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.showcase__item-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.showcase__shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.showcase__item:hover .showcase__shine {
    opacity: 1;
    animation: showcaseShine 0.8s ease-out forwards;
}

@keyframes showcaseShine {
    0% {
        left: -75%;
    }
    100% {
        left: 150%;
    }
}

.utilities__overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 21px;
    z-index: 2;
}

.utilities__heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.3;
}

/* Abstract logo graphic (image) */
.utilities__graphic {
    width: 100%;
    aspect-ratio: 5 / 2;
}

.utilities__graphic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Old standalone utilities — hidden (now overlay) */
.utilities {
    display: none;
}

/* ----------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------- */

.footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-6) var(--container-padding);
    margin-top: 70px;
    background: url("../images/footer-strip.png") no-repeat center / cover;
}

.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.footer__brand {
    font-size: var(--font-size-base);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.footer__copyright {
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__logo-mark {
    height: auto;
    object-fit: contain;
}

.footer__virtual-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.footer__social {
    display: flex;
    gap: var(--space-4);
    flex: 1;
    justify-content: flex-end;
}

.footer__social-btn {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-fast);
}

.footer__social-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.footer__social-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
    transition: fill var(--transition-base);
}

.footer__social-btn:hover svg {
    fill: var(--color-bg);
}

/* ----------------------------------------------------------
   9. MOBILE MENU OVERLAY
   ---------------------------------------------------------- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__close {
    position: absolute;
    top: var(--space-8);
    right: var(--container-padding);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.mobile-menu__links a {
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.mobile-menu__links a:hover {
    color: var(--color-primary);
}

/* ----------------------------------------------------------
   10. RESPONSIVE — TABLET (768px – 1024px)
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
        --font-size-hero: 4rem;
    }

    .hero {
        height: auto;
        min-height: auto;
    }

    .hero__content-wrapper {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-10);
    }

    .hero__left {
        position: static;
        width: 100%;
        max-width: 600px;
        top: auto;
        left: auto;
    }

    .hero__description {
        width: 100%;
        font-size: var(--font-size-base);
    }

    .hero__cta-group {
        justify-content: center;
    }

    .hero__circle-wrapper {
        position: relative;
        right: auto;
        top: auto;
        width: 454px;
        height: 454px;
        order: -1;
    }

    .hero__360-text {
        font-size: 4rem;
    }

    .virtual-letter {
        font-size: 18px;
    }

    .hero__circle-inner {
        width: 306px;
        height: 306px;
    }

    .showcase {
        padding-bottom: var(--space-12);
        margin-top: 55px;
        padding: 0 20px;
    }

    .showcase__item {
        max-width: 500px;
    }

    .utilities__overlay {
        gap: 21px;
    }

    .utilities__graphic {
        width: 100%;
        aspect-ratio: 5 / 2;
    }

    .footer__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-4);
    }

    .footer__meta {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .footer__social {
        justify-content: center;
        width: 100%;
    }

    .footer__logo-mark {
        max-width: 180px;
    }
}

/* ----------------------------------------------------------
   11. RESPONSIVE — MOBILE (< 768px)
   ---------------------------------------------------------- */

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --font-size-hero: 3rem;
    }

    .nav {
        padding: var(--space-6) var(--container-padding);
    }

    .nav__logo img {
        height: 38px;
    }

    .hero {
        padding: 100px var(--container-padding) var(--space-12);
    }

    .hero {
        height: auto;
        min-height: auto;
    }

    .hero__content-wrapper {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-8);
    }

    .hero__left {
        position: static;
        width: 100%;
        top: auto;
        left: auto;
    }

    .hero__description {
        width: 100%;
        font-size: var(--font-size-sm);
    }

    .hero__cta-group {
        flex-direction: column;
        gap: var(--space-4);
    }

    .cta-btn {
        min-width: 100%;
        height: 60px;
        font-size: var(--font-size-sm);
    }

    .hero__circle-wrapper {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        padding: 20px;
        box-sizing: border-box;
        box-sizing: border-box;
        order: -1;
    }

    .hero__360-text {
        font-size: 3rem;
    }

    .virtual-letter {
        font-size: 14px;
    }

    .hero__circle-inner {
        width: 65.7%;
        height: 0;
        padding-bottom: 65.7%;
    }

    .banner-strip {
        height: 120px;
    }

    .banner-strip img {
        height: 120px;
    }

    .showcase {
        padding-bottom: var(--space-8);
        margin-top: 55px;
        padding: 0 20px;
    }

    .showcase__item {
        max-width: 100%;
    }

    .utilities__overlay {
        gap: 21px;
    }

    .utilities__graphic {
        width: 100%;
        aspect-ratio: 5 / 2;
    }

    .footer {
        padding: var(--space-6) var(--container-padding);
    }

    .footer__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-4);
    }

    .footer__meta {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .footer__social {
        justify-content: center;
        width: 100%;
    }

    .footer__logo-mark {
        max-width: 140px;
    }

    .footer__brand,
    .footer__copyright {
        font-size: var(--font-size-sm);
    }

    .footer__social-btn {
        width: 40px;
        height: 40px;
    }
}

/* ----------------------------------------------------------
   12. RESPONSIVE — LAPTOP (1025px – 1440px)
   ---------------------------------------------------------- */

@media (min-width: 1025px) and (max-width: 1440px) {
    :root {
        --container-padding: 2.5rem;
    }

    .hero {
        height: 540px;
    }

    .hero__circle-wrapper {
        width: 544px;
        height: 544px;
        right: 180px;
    }

    .hero__360-text {
        font-size: 5rem;
    }

    .virtual-letter {
        font-size: 20px;
    }

    .hero__circle-inner {
        width: 363px;
        height: 363px;
    }

    .showcase {
        height: auto;
        min-height: 900px;
    }

    .showcase__item {
        max-width: 800px;
    }

    .utilities__graphic {
        width: 100%;
        aspect-ratio: 5 / 2;
    }
}

/* ----------------------------------------------------------
   13. RESPONSIVE — WIDE (> 1920px)
   ---------------------------------------------------------- */

@media (min-width: 1921px) {
    :root {
        --container-padding: 5rem;
    }
}

/* ----------------------------------------------------------
   14. SCROLL ANIMATIONS
   ---------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.6s ease forwards;
}

.hero__description.is-visible {
    animation-delay: 0.1s;
}
.hero__cta-group.is-visible {
    animation-delay: 0.3s;
}
.hero__circle-wrapper.is-visible {
    animation-delay: 0.2s;
}
.utilities__heading.is-visible {
    animation-delay: 0.1s;
}
.utilities__graphic.is-visible {
    animation-delay: 0.25s;
}
.footer__brand.is-visible,
.footer__copyright.is-visible {
    animation: fadeIn 0.5s ease forwards;
}

/* ----------------------------------------------------------
   15. UTILITIES & ACCESSIBILITY
   ---------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
