/* ============================================
   FunGrandpa.com - Styles
   Warm, Fun, Modern, Wholesome
   ============================================ */

/* --- CSS Variables (Brand Colors) --- */
:root {
    --color-primary: #E86B2E;       /* Warm orange from logo hat band */
    --color-primary-dark: #C85A22;
    --color-primary-light: #FCEEE5;
    --color-secondary: #2E86AB;      /* Friendly blue from logo glasses */
    --color-secondary-dark: #1D6A8A;
    --color-secondary-light: #E5F2F8;
    --color-accent: #5B8C3E;         /* Green from logo circle */
    --color-accent-light: #EBF5E3;
    --color-warm: #F5E6C8;           /* Warm cream from hat */
    --color-dark: #2D3436;
    --color-text: #4A4A4A;
    --color-text-light: #7A7A7A;
    --color-bg: #FEFCF9;
    --color-white: #FFFFFF;
    --color-card: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #E86B2E 0%, #F4A261 100%);
    --gradient-hero: linear-gradient(135deg, #FEFCF9 0%, #FCEEE5 50%, #E5F2F8 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 24px rgba(232,107,46,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(232,107,46,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,107,46,0.4);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-nav:hover {
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 249, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -80px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    top: 40%;
    right: 20%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo-img {
    width: 180px;
    margin-bottom: 28px;
    filter: drop-shadow(0 20px 40px rgba(232,107,46,0.15));
    animation: float 6s ease-in-out infinite;
}

.hero-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-container h1 {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.section-tag-light {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* --- About Section --- */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.about-card {
    background: var(--color-bg);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary-light);
}

.about-icon-letter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.about-card h3 {
    margin-bottom: 10px;
}

.about-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features {
    background: var(--color-bg);
}

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

.feature-card {
    background: var(--color-white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary-light);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* (feature cards are now uniform - no special card styles needed) */

/* --- Merch Section --- */
.merch {
    padding: 40px 0;
    background: var(--color-bg);
}

.merch-banner {
    background: var(--color-warm);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    border: 2px dashed var(--color-primary);
}

.merch-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.merch-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.merch-content h3 {
    margin-bottom: 4px;
    color: var(--color-primary-dark);
}

.merch-content p {
    color: var(--color-text);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 600px) {
    .merch-content {
        flex-direction: column;
        text-align: center;
    }
    .merch-banner {
        padding: 24px;
    }
}

/* --- Stories Section --- */
.stories {
    background: var(--color-white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.story-card {
    background: var(--color-bg);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.story-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-card);
}

.story-quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -20px;
}

.story-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 24px;
    font-style: italic;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.story-author strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-dark);
}

.story-author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- Join Section --- */
.join {
    background: var(--color-bg);
}

.join-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(232,107,46,0.2);
}

.join-content {
    max-width: 560px;
    margin: 0 auto;
}

.join-content h2 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.join-content > p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.95);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-white);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-input-full {
    flex: 1;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.form-upload-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.2s;
}

.form-upload-label:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0.7);
}

.form-upload-icon {
    font-size: 1.3rem;
}

.form-upload-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.form-file-input {
    display: none;
}

.form-note {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 8px;
}

.join-form .btn-primary {
    background: var(--color-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.join-form .btn-primary:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* --- Contact Section --- */
.contact {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    text-align: center;
}

.contact-card {
    padding: 36px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: var(--color-primary);
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-logo-img {
        width: 150px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .join-card {
        padding: 36px 24px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
