/* ==========================================================================
   L&L CORP - MODERN LINK-TREE MINI WEB STYLES
   ========================================================================== */

:root {
    /* Color Palette derived from screenshot */
    --bg-page: #E4D8C7;
    --bg-card: #f0e8df;
    
    /* Brand Accent Colors */
    --color-terracotta: #AF532B;
    --color-terracotta-hover: #94421E;
    
    --color-sage: #7F9384;
    --color-sage-hover: #697D6E;
    
    /* Typography Colors */
    --text-primary: #8E4C2A;
    --text-dark-bold: #2E1809;
    --text-white: #FFFFFF;
    --text-muted: #867566;

    /* Shadow & Radius Tokens */
    --radius-pill: 50px;
    --radius-card: 24px;
    --shadow-btn: 0 6px 14px rgba(115, 60, 30, 0.14);
    --shadow-btn-hover: 0 10px 20px rgba(115, 60, 30, 0.22);
    --shadow-card: 0 16px 40px rgba(80, 45, 20, 0.14), 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-page);
    font-family: var(--font-main);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 40px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Container & Card Frame
   -------------------------------------------------------------------------- */
.mini-app-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
}

.card-frame {
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 28px;
    border: 1.5px solid rgba(175, 83, 43, 0.18);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 20px 34px;
    gap: 22px;
}

/* --------------------------------------------------------------------------
   Brand Header
   -------------------------------------------------------------------------- */
.brand-header {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo-wrapper {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-description {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.38;
    max-width: 340px;
    margin: 0 auto;
    font-weight: 500;
}

.brand-description strong {
    color: var(--text-dark-bold);
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Showcase Carousel / Slider
   -------------------------------------------------------------------------- */
.showcase-carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.carousel-frame {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-wrapper {
    width: 100%;
    border-radius: var(--radius-card);
    border: 2.5px solid var(--color-terracotta);
    overflow: hidden;
    background-color: #EFE4D6;
    box-shadow: 0 8px 20px rgba(90, 45, 20, 0.08);
    aspect-ratio: 4 / 3;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
    background-color: var(--color-terracotta-hover);
    transform: translateY(-50%) scale(1.06);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.prev-btn {
    left: -12px;
}

.next-btn {
    right: -12px;
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(175, 83, 43, 0.35);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: var(--color-terracotta);
    transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   Video Embed
   -------------------------------------------------------------------------- */

    .embed-section {
            margin: 20px 0;
            width: 100%;
            max-width: 400px;
            text-align: center;
            animation: fadeInScale 1s ease-out forwards;
        }

            .embed-section iframe {
            border-radius: 10px;
            width: 100%;
            height: 200px;
            transition: height 0.3s ease, transform 0.3s ease;
        }

        .embed-section iframe:hover {
            transform: scale(1.02);
        }

        @media (min-width: 768px) {
           
            .embed-section iframe {
                height: 300px;
            }
        }

/* --------------------------------------------------------------------------
   Action Links / Pill Buttons
   -------------------------------------------------------------------------- */
.links-navigation {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow-btn);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.link-btn:active {
    transform: translateY(0);
}

/* Terracotta Variant */
.btn-terracotta {
    background-color: var(--color-terracotta);
}

.btn-terracotta:hover {
    background-color: var(--color-terracotta-hover);
}

/* Sage Green Variant */
.btn-sage {
    background-color: var(--color-sage);
}

.btn-sage:hover {
    background-color: var(--color-sage-hover);
}

/* Button Internal Elements */
.btn-icon {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.45rem;
}

.btn-label {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-arrow {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Brand Footer
   -------------------------------------------------------------------------- */
.brand-footer {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.brand-footer .tagline {
    font-size: 1.08rem;
    color: var(--text-primary);
    font-weight: 500;
}

.brand-footer .tagline strong {
    color: var(--text-dark-bold);
    font-weight: 800;
}

.footer-copy p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Floating Utility Actions & Modal Panel
   -------------------------------------------------------------------------- */
.floating-stack {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 50;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-terracotta);
    color: var(--text-white);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(90, 45, 20, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-btn:hover {
    background-color: var(--color-terracotta-hover);
    transform: scale(1.08);
}

.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 15, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 98;
}

.share-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-panel {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(30px);
    width: min(calc(100% - 32px), 380px);
    background: #FAF5EE;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(50, 30, 15, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
}

.share-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.share-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(175, 83, 43, 0.3);
    margin: 0 auto 14px;
}

.share-panel h3 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark-bold);
    margin-bottom: 4px;
}

.share-panel p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-option {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark-bold);
    cursor: pointer;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
}

.share-icon.whatsapp { background-color: #25D366; }
.share-icon.facebook { background-color: #1877F2; }
.share-icon.copy { background-color: var(--color-terracotta); }

.share-close {
    width: 100%;
    margin-top: 16px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(175, 83, 43, 0.12);
    color: var(--color-terracotta);
    font-weight: 700;
    cursor: pointer;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    background: #2E1809;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Micro-adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .card-frame {
        padding: 16px 8px 24px;
    }
    
    .brand-description {
        font-size: 0.86rem;
    }

    .link-btn {
        height: 48px;
        padding: 0 16px;
    }

    .btn-label {
        font-size: 0.98rem;
    }

    .prev-btn {
        left: -8px;
    }

    .next-btn {
        right: -8px;
    }
}
