/* ═══════════════════════════════════════════════════════════════
   CAPYBARA LIFE — Custom Stylesheet
   Migrated from React/Tailwind Figma design
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties (Capybara Theme) ─────────────────── */
:root {
    --primary:            #8B6F47;
    --primary-foreground: #FFF8F0;
    --secondary:          #C4A57B;
    --accent:             #A8C686;
    --background:         #FFF8F0;
    --foreground:         #3D2817;
    --muted:              #F0E8DC;
    --muted-foreground:   #9A7A5A;
    --card:               #FFFFFF;
    --border:             #E8D5C0;
    --card-radius:        1.5rem;
    --section-py:         5rem;
}

/* ── 2. Base Styles ────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--foreground);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

p.lead {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* ── 3. Section Layout ─────────────────────────────────────────── */
section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-muted {
    background-color: rgba(240, 232, 220, 0.35);
}

/* ── 4. Hero Section ───────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0;
    position: relative;
}

/* Decorative blur blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-blob-1 {
    width: 18rem;
    height: 18rem;
    top: 5rem;
    left: 2.5rem;
    background: rgba(168, 198, 134, 0.2);
}

.hero-blob-2 {
    width: 24rem;
    height: 24rem;
    bottom: 5rem;
    right: 2.5rem;
    background: rgba(196, 165, 123, 0.2);
}

.hero-section .container-xl {
    position: relative;
    z-index: 1;
}

/* Hero image placeholder */
.hero-image-placeholder {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(196,165,123,0.3), rgba(168,198,134,0.3));
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image fills the container fully */
.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Emoji fallback styles */
.hero-image-placeholder .display-1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.hero-image-placeholder p {
    color: var(--muted-foreground);
    margin: 0;
}

/* ── 5. Badge Pill (hero label) ────────────────────────────────── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: rgba(168, 198, 134, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    font-family: 'Nunito', sans-serif;
}

/* ── 6. Scroll Indicator ───────────────────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted-foreground);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── 7. Custom Buttons ─────────────────────────────────────────── */
.btn-capybara {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-capybara:hover {
    background: #7a6040;
    color: var(--primary-foreground);
    transform: translateY(-1px);
}

.btn-capybara-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card);
    color: var(--foreground);
    border: 2px solid var(--border);
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.btn-capybara-outline:hover {
    background: var(--muted);
    color: var(--foreground);
    border-color: var(--secondary);
}

/* ── 8. About Cards ────────────────────────────────────────────── */
.capy-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.capy-card:hover {
    box-shadow: 0 12px 40px rgba(139, 111, 71, 0.15);
    transform: translateY(-4px);
}

.capy-card .card-emoji {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.capy-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.capy-card .card-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.capy-card p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.95rem;
}

/* ── 9. Feature Icon Cards (Why Everyone Loves) ────────────────── */
.feature-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.12);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-icon.green  { background: rgba(168, 198, 134, 0.2); }
.feature-icon.tan    { background: rgba(196, 165, 123, 0.2); }
.feature-icon.brown  { background: rgba(139, 111, 71,  0.2); }
.feature-icon.green2 { background: rgba(168, 198, 134, 0.35); }

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

/* ── 10. Fact Cards ────────────────────────────────────────────── */
.fact-card {
    display: flex;
    gap: 1rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    align-items: center;
    height: 100%;
}

.fact-check {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
}

.fact-check i {
    transform: translateY(2px);
}

.fact-card p {
    margin: 0;
    color: var(--foreground);
    line-height: 1.6;
}

/* ── 11. Chill Level Slider ────────────────────────────────────── */
.capy-slider-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 3rem;
}

.capy-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.75rem;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}

.capy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.capy-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.chill-panel {
    background: rgba(168, 198, 134, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease;
}

.chill-panel .panel-emoji {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.chill-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.chill-panel p {
    color: var(--muted-foreground);
    margin: 0;
}

/* ── 12. Choose Capybara Cards ─────────────────────────────────── */
.capybara-card {
    display: block;
    width: 100%;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s, color 0.2s;
    font-family: 'Nunito', sans-serif;
    color: var(--foreground);
    height: 100%;
}

.capybara-card:hover {
    border-color: rgba(139, 111, 71, 0.5);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.12);
}

.capybara-card.selected {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.35);
    transform: scale(1.04);
}

.capybara-card .card-emoji-lg {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.capybara-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.capybara-card p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--muted-foreground);
}

.capybara-card.selected p {
    color: rgba(255, 248, 240, 0.8);
}

.capybara-result {
    background: rgba(168, 198, 134, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 0.4s ease;
}

.capybara-result h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.capybara-result p {
    color: var(--muted-foreground);
    margin: 0;
}

/* ── 13. Gallery Cards ─────────────────────────────────────────── */
.gallery-card {
    aspect-ratio: 1 / 1;
    position: relative;
    border: 2px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    background: var(--muted);
}

.gallery-card:hover {
    box-shadow: 0 12px 40px rgba(139, 111, 71, 0.25);
}

/* Photo fills the card */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

/* Caption overlay at the bottom */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(61, 40, 23, 0.75) 0%, transparent 100%);
    transition: opacity 0.3s ease;
}

.gallery-caption p {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── 14. CTA Section ───────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg,
        rgba(139,111,71,0.2),
        rgba(168,198,134,0.2),
        rgba(196,165,123,0.2));
}

.btn-capybara-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.35);
}

.btn-capybara-lg:hover {
    background: #7a6040;
    transform: scale(1.05);
}

.chill-confirmed {
    display: inline-block;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem 3rem;
    margin-top: 2rem;
    animation: fadeInScale 0.4s ease;
}

.chill-confirmed .confirm-emoji {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

.chill-confirmed h3 {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.chill-confirmed p {
    color: var(--muted-foreground);
    margin: 0;
}

/* ── 15. Footer ────────────────────────────────────────────────── */
.capy-footer {
    background: rgba(240, 232, 220, 0.5);
    border-top: 2px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.capy-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.capy-footer .footer-brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.capy-footer p {
    color: var(--muted-foreground);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* ── 16. Fade-Up Animation (IntersectionObserver) ──────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── 17. Keyframe Animations ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

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

/* ── 18. Section Heading ───────────────────────────────────────── */
.section-heading {
    margin-bottom: 4rem;
}

.section-heading h2 {
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    max-width: 48rem;
    margin: 0 auto;
}

/* ── 19. Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --section-py: 3.5rem; }

    .hero-section { padding-top: 3rem; padding-bottom: 3rem; }
    .hero-image-placeholder { margin-top: 2rem; }
    .capy-slider-card { padding: 1.5rem; }
    .chill-confirmed { padding: 1.5rem 1.5rem; }
}
