/* =====================================================
   Zorbles — Main Stylesheet
   ===================================================== */

/* ----- Reset & Variables ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow:  #F5C518;
    --black:   #111111;
    --white:   #ffffff;
    --teal:    #5BC8D8;
    --coral:   #E87B6A;
    --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:  1.25rem;
    --max-w:   1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--black);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- Shared Typography ----- */
.section-subtext {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-bottom: 3rem;
}
.section-subtext.dark  { color: rgba(0,0,0,0.55); }
.section-subtext.light { color: rgba(255,255,255,0.85); }
.section-subtext-muted { color: #666; font-size: 0.95rem; margin-bottom: 2.5rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.btn-primary   { background: var(--black); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--black); border-color: var(--black); }
.btn-nav       { background: var(--black); color: var(--yellow); font-weight: 700; padding: 0.6rem 1.25rem; border-radius: 50px; }

.btn-buy {
    background: var(--white);
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }

.btn-card {
    display: block;
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    transition: transform 0.15s, opacity 0.15s;
}
.btn-card:hover { transform: translateY(-2px); opacity: 0.85; }

/* ----- Navigation ----- */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--black);
    padding: 0.8rem 2rem;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-logo img {
    height: 34px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}
.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav .btn-nav { margin-left: 1rem; flex-shrink: 0; }

/* ----- Hero ----- */
.hero {
    background: var(--yellow);
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem 3rem;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* ----- Rotating Hero Text ----- */
.rotating-word-wrap {
    display: inline-grid;
    vertical-align: bottom;
}
.rotating-word-wrap > * {
    grid-area: 1 / 1;
}
.rotating-spacer {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}
.rotating-word {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.rotating-word.fading {
    opacity: 0;
    transform: translateY(10px);
}

/* ----- Marquee Strip ----- */
.marquee-strip {
    background: var(--black);
    color: var(--yellow);
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 24s linear infinite;
}
.marquee-track span {
    padding: 0 2.5rem;
}
.marquee-track span::after {
    content: "·";
    margin-left: 2.5rem;
    color: rgba(245,197,24,0.4);
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.hero-eyebrow {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero-logo-img { margin-bottom: 0.75rem; }
.hero-logo-img img { width: 100%; max-width: 100%; }
.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--black);
}
.hero-desc {
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 2rem;
    color: var(--black);
    line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); width: 100%; }

.badge {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    color: var(--white);
}
.badge-pink { top: -0.75rem; right: 1.5rem; background: #E040A0; }
.badge-teal { bottom: 1rem;  right: 1.5rem; background: var(--teal); }

.scroll-hint {
    text-align: center;
    color: rgba(0,0,0,0.5);
    font-size: 0.82rem;
    margin-top: 3rem;
}

/* ----- How It Works ----- */
.how-it-works {
    background: #1a1a1a;
    padding: 7rem 2rem;
}
.how-it-works h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    text-align: center;
    margin-bottom: 0.75rem;
}
.ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.way-card {
    background: var(--card-bg, #f5f5f0);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.way-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.way-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.way-card p  { font-size: 0.9rem; color: #444; line-height: 1.65; }

/* ----- Gallery ----- */
.gallery {
    background: var(--yellow);
    padding: 7rem 2rem;
}
.gallery h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.75rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gallery-grid img {
    border-radius: 0.75rem;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Colors Banner ----- */
.colors-banner {
    background: var(--yellow);
    padding: 1rem 2rem 5rem;
    text-align: center;
}
.colors-banner-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--black);
    margin-bottom: 0.75rem;
}
.colors-banner-headline {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
}
.pill-dark {
    background: var(--black);
    color: var(--white);
    padding: 0.15em 0.5em;
    border-radius: 0.25em;
    display: inline-block;
}

/* ----- Colors Section ----- */
.colors-section {
    background: var(--black);
    padding: 7rem 2rem;
}
.colors-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.collection-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.color-collection { margin-bottom: 1.5rem; }
.color-list { display: flex; flex-direction: column; gap: 0.85rem; }
.color-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
}
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.12);
}
.color-swatch.gemstone { box-shadow: 0 2px 8px rgba(255,255,255,0.1); }
.color-name  { color: var(--white); font-weight: 600; flex: 1; }
.color-shade { color: #777; font-weight: 400; font-size: 0.9em; margin-left: 0.4rem; }
.color-case  { color: #555; font-size: 0.82rem; }
.color-divider { border: none; border-top: 1px solid #2a2a2a; margin: 2rem 0; }

/* ----- The Case ----- */
.the-case {
    background: #111111;
    padding: 7rem 2rem;
}
.the-case-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.the-case-image img { border-radius: var(--radius); width: 100%; }

.tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.the-case-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.text-yellow { color: var(--yellow); }
.text-pink   { color: #E040A0; }

.the-case-content p {
    color: #aaa;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 0.95rem;
}
.case-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}
.feature-pill {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ----- Large Zorble ----- */
.large-zorble {
    background: #161616;
    padding: 7rem 2rem;
}
.large-zorble-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.large-zorble-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.large-zorble-content p {
    color: #aaa;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 0.95rem;
}
.large-zorble-images {
    display: grid;
    gap: 0.75rem;
}
.large-zorble-images img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

/* ----- Pricing ----- */
.pricing {
    background: #f8f8f4;
    padding: 7rem 2rem;
}
.pricing h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.75rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--max-w);
    margin: 3rem auto 0;
}
.pricing-card {
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pricing-classic { background: #5BC8D8; color: var(--black); }
.pricing-triple  { background: #E87B6A; color: var(--white); }
.pricing-large   { background: #111111; color: var(--white); border: 1px solid #2a2a2a; }
.pricing-large .price { color: var(--yellow); }

.pricing-badge {
    display: inline-block;
    background: rgba(0,0,0,0.12);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}
.pricing-card h3 { font-size: 1.85rem; font-weight: 900; }
.pricing-sub { font-size: 0.88rem; opacity: 0.7; }
.price { font-size: 3.75rem; font-weight: 900; line-height: 1; margin: 0.5rem 0 0.25rem; }
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.75rem 0 1.25rem;
    flex: 1;
}
.pricing-features li { font-size: 0.9rem; opacity: 0.9; }

/* ----- Made with Love ----- */
.made-with-love {
    background: var(--yellow);
    padding: 7rem 2rem;
}
.made-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.made-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.made-content p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.1rem; }
.made-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.made-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.made-images img {
    border-radius: 0.75rem;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ----- Get One ----- */
.get-one {
    background: var(--teal);
    padding: 7rem 2rem;
}
.get-one h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    text-align: center;
    margin-bottom: 0.75rem;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.step-card {
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--white);
    text-align: center;
}
.step-number {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.6rem; }
.step-card p  { font-size: 0.88rem; line-height: 1.65; opacity: 0.9; }

.get-one-cta  { text-align: center; }
.get-one-note { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-top: 1rem; }

/* ----- Footer ----- */
.footer { background: var(--black); padding: 4rem 2rem 2.5rem; }
.footer-brand { margin-bottom: 2rem; }
.footer-title   { font-size: 2.75rem; font-weight: 900; color: var(--yellow); margin-bottom: 0.4rem; }
.footer-tagline { color: #555; font-size: 0.95rem; }
.footer-divider { border: none; border-top: 1px solid #222; margin: 2rem 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.875rem;
}

/* ----- Gallery cursor hint ----- */
.gallery-img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

/* ----- Lightbox ----- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
    animation: lb-fade-in 0.2s ease;
}

.lightbox-img {
    position: relative;
    z-index: 2;
    max-width: min(90vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: lb-zoom-in 0.22s cubic-bezier(0.34,1.56,0.64,1);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 3;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.15s;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next { padding: 0; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-close { top: 1.25rem; right: 1.25rem; font-size: 1.6rem; }
.lightbox-prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lb-zoom-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 900px) {
    .ways-grid            { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid         { grid-template-columns: repeat(2, 1fr); }
    .the-case-inner       { grid-template-columns: 1fr; gap: 3rem; }
    .large-zorble-inner   { grid-template-columns: 1fr; gap: 3rem; }
    .made-inner           { grid-template-columns: 1fr; gap: 3rem; }
    .steps-grid           { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid         { grid-template-columns: 1fr; max-width: 480px; }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-left   { display: contents; }
    .hero-top    { order: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-image  { order: 2; }
    .hero-bottom { order: 3; }
    .hero-top .hero-logo-img img { max-width: 220px; }
}

@media (max-width: 640px) {
    .nav-links        { display: none; }
    .ways-grid        { grid-template-columns: 1fr; }
    .gallery-grid     { grid-template-columns: 1fr; }
    .gallery-grid img { height: 200px; }
    .pricing-grid     { grid-template-columns: 1fr; }
    .made-images      { grid-template-columns: 1fr; }
    .steps-grid       { grid-template-columns: 1fr; }
    .footer-bottom    { flex-direction: column; gap: 0.5rem; text-align: center; }
    .hero-ctas        { flex-direction: column; }
    .hero-ctas .btn   { width: 100%; }
}
