/* Sourpuss - Shared Styles */
/* Colors are defined as CSS variables and can be overridden by config.js */

:root {
    --blush: #FFD9D4;
    --blush-light: #FFF0ED;
    --golden: #FFB900;
    --golden-dark: #E6A700;
    --ink: #1A1A1A;
    --whisky: #8B4513;
    --whisky-light: #A0522D;
    --cream: #FFF8F5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--blush);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='6' r='2.2' fill='%231A1A1A'/%3E%3Ccircle cx='9' cy='3' r='2.2' fill='%231A1A1A'/%3E%3Ccircle cx='15' cy='3' r='2.2' fill='%231A1A1A'/%3E%3Ccircle cx='19' cy='6' r='2.2' fill='%231A1A1A'/%3E%3Cpath d='M12 9c-4 0-7 3-7 6.5S9 22 12 22s7-3 7-6.5S16 9 12 9z' fill='%231A1A1A'/%3E%3C/svg%3E") 12 16, auto;
}

a, button, .faq-question, .cta-button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='6' r='2.2' fill='%23FFB900'/%3E%3Ccircle cx='9' cy='3' r='2.2' fill='%23FFB900'/%3E%3Ccircle cx='15' cy='3' r='2.2' fill='%23FFB900'/%3E%3Ccircle cx='19' cy='6' r='2.2' fill='%23FFB900'/%3E%3Cpath d='M12 9c-4 0-7 3-7 6.5S9 22 12 22s7-3 7-6.5S16 9 12 9z' fill='%23FFB900'/%3E%3C/svg%3E") 12 16, pointer;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 50;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 28px 40px;
    z-index: 500;
    display: flex;
    gap: 30px;
    background: rgba(255, 217, 212, 0.9);
    backdrop-filter: blur(10px);
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    opacity: 1;
}

nav a.active {
    opacity: 1;
    border-bottom-color: var(--golden);
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--cream);
    padding: 80px 20px;
    text-align: center;
}

.footer-logo {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.4;
}

/* ========== HOME PAGE STYLES ========== */

/* Cat toy ball of wool */
.cat-toy {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

.cat-toy svg {
    width: 100px;
    height: 220px;
    overflow: visible;
}

.toy-string {
    fill: none;
    stroke: #8B4513;
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
}

.toy-ball {
    width: 65px;
    height: 65px;
    background:
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(255,255,255,0.35) 0%, transparent 40%),
        radial-gradient(circle at 35% 35%, #E88D9C, #D4707F, #B84D5D);
    border-radius: 50%;
    position: absolute;
    top: 148px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        inset -8px -8px 20px rgba(0,0,0,0.25),
        inset 5px 5px 12px rgba(255,255,255,0.25),
        0 12px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.toy-ball-connector {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #8B4513;
    border-radius: 50%;
}

.toy-ball::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(65deg, transparent 0px, transparent 2px, rgba(255,255,255,0.2) 2px, rgba(255,255,255,0.2) 4px),
        repeating-linear-gradient(-25deg, transparent 0px, transparent 3px, rgba(0,0,0,0.1) 3px, rgba(0,0,0,0.1) 5px),
        repeating-linear-gradient(115deg, transparent 0px, transparent 4px, rgba(255,255,255,0.12) 4px, rgba(255,255,255,0.12) 6px);
    border-radius: 50%;
}

.toy-ball::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 45%;
    width: 2.5px;
    height: 22px;
    background: linear-gradient(to bottom, #B84D5D, #D4707F, transparent);
    transform: rotate(20deg);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(72px, 15vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .highlight {
    color: var(--whisky);
    font-style: italic;
    display: inline-block;
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--golden);
    z-index: -1;
    transform: skewX(-5deg);
    opacity: 0.6;
}

.tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--ink);
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 50px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: var(--cream);
    padding: 20px 40px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26,26,26,0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .icon {
    font-size: 20px;
}

/* Floating elements */
.floater {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floater:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.floater:nth-child(2) { top: 70%; left: 5%; animation-delay: 1s; font-size: 30px; }
.floater:nth-child(3) { top: 20%; right: 15%; animation-delay: 2s; }
.floater:nth-child(4) { top: 60%; right: 10%; animation-delay: 3s; font-size: 35px; }
.floater:nth-child(5) { bottom: 15%; left: 20%; animation-delay: 4s; font-size: 25px; }
.floater:nth-child(6) { bottom: 25%; right: 20%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Features Section */
.features {
    padding: 100px 20px 150px;
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 15px;
}

.features-header p {
    font-size: 18px;
    opacity: 0.6;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 380px;
    background: var(--cream);
    border-radius: 24px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-sizing: border-box;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--golden) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--golden);
    box-shadow: 0 30px 60px rgba(139, 69, 19, 0.15);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--blush);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s, background 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--golden);
}

.feature-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    padding: 30px 0;
    background: var(--ink);
    transform: rotate(-1deg) scale(1.02);
    margin: 50px 0;
}

.marquee {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 50px;
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--golden);
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-item span {
    opacity: 0.4;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SUBPAGE STYLES (Privacy, Support) ========== */

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 100px;
}

.page-header {
    margin-bottom: 60px;
}

.page-header h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.page-header .date {
    display: inline-block;
    background: var(--golden);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.page-header p {
    font-size: 18px;
    opacity: 0.7;
    margin-top: 15px;
}

.content-section {
    background: var(--cream);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.content-section:hover {
    transform: translateY(-4px);
}

.content-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 .icon {
    font-size: 28px;
}

.content-section p {
    margin-bottom: 16px;
    opacity: 0.8;
}

.content-section ul {
    margin: 16px 0 16px 24px;
}

.content-section li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.content-section strong {
    color: var(--whisky);
}

a.email-link {
    color: var(--whisky);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--golden);
    transition: border-color 0.3s;
}

a.email-link:hover {
    border-color: var(--whisky);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    margin-top: 40px;
    padding: 16px 28px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* FAQ Styles */
.faq-list {
    margin-bottom: 40px;
}

.faq-item {
    background: var(--cream);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 185, 0, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--golden);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 30px 24px;
}

.faq-answer p {
    opacity: 0.7;
    line-height: 1.7;
}

.contact-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.contact-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-card h2 .icon {
    font-size: 32px;
}

.contact-card p {
    opacity: 0.7;
    margin-bottom: 20px;
}

.contact-card .email-link {
    font-size: 20px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1000px) {
    .feature-card {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .cat-toy svg {
        width: 80px;
        height: 180px;
    }

    .toy-ball {
        width: 50px;
        height: 50px;
        top: 120px;
    }

    nav {
        padding: 20px;
        gap: 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .features {
        padding: 60px 20px 100px;
    }

    .marquee-container {
        transform: rotate(-2deg) scale(1.05);
    }

    .marquee-item {
        font-size: 18px;
        padding: 0 30px;
    }
}

@media (max-width: 650px) {
    .feature-card {
        flex: 1 1 100%;
        max-width: none;
    }
}
