/* =============================================
   Thoughts From Squatch — Landing Page Styles
   Color Palette: Deep forest, earth tones, amber gold
   ============================================= */

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

:root {
    --bg-dark: #1b2a1d;
    --bg-section: #1f3022;
    --bg-section-alt: #243528;
    --bg-card: #2a3d2d;
    --text-primary: #f0ebe0;
    --text-secondary: #c8bfab;
    --text-muted: #8a7f6e;
    --accent-gold: #d4a853;
    --accent-gold-hover: #e8bf6a;
    --accent-green: #3a6e32;
    --accent-green-light: #4a8e42;
    --border: #3d5540;
    --shadow: rgba(0, 0, 0, 0.3);
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    --max-width: 1100px;
    --radius: 8px;
}

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

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

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

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

a:hover {
    color: var(--accent-gold-hover);
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(to bottom, rgba(10, 12, 10, 0.15) 0%, rgba(10, 14, 10, 0.45) 50%, var(--bg-dark) 100%),
        url('/images/squatch-hero.png') center center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(27, 42, 29, 0.1), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-accent {
    color: var(--accent-gold);
    display: block;
    font-size: 1.15em;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
    background: var(--bg-section);
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
}

/* ---------- Video Embed ---------- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    max-width: 100%;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px var(--shadow);
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------- Video Card ---------- */
.video-card {
    display: block;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.play-overlay svg {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-card:hover .play-overlay svg {
    opacity: 1;
    transform: scale(1.1);
}

.video-info {
    padding: 1.25rem 1.5rem;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.video-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-caption {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 8px 40px var(--shadow);
    border: 1px solid var(--border);
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-cta {
    color: var(--accent-gold) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* ---------- Subscribe ---------- */
.section-subscribe {
    background: linear-gradient(to bottom, var(--bg-section), var(--accent-green) 50%, var(--bg-section));
    padding: 5rem 0;
}

.section-subscribe .subscribe-input {
    background: #1b2a1d;
}

.subscribe-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.subscribe-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}

.subscribe-input::placeholder {
    color: var(--text-muted);
}

.subscribe-input:focus {
    border-color: var(--accent-gold);
}

.subscribe-btn {
    border-radius: 0 var(--radius) var(--radius) 0;
    white-space: nowrap;
}

.subscribe-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Merch Teaser ---------- */
.merch-teaser {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.merch-teaser p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.merch-soon {
    color: var(--accent-gold) !important;
    font-weight: 600;
    font-size: 1.15rem !important;
}

/* ---------- Social Links ---------- */
.connect-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 20px var(--shadow);
}

.social-youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-subtext {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 1rem auto 0;
    }

    .hero {
        min-height: 100vh;
        background-position: 35% center;
    }

    .section {
        padding: 3.5rem 0;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .subscribe-input {
        border-right: 2px solid var(--border);
        border-radius: var(--radius);
    }

    .subscribe-btn {
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .social-link,
    .btn {
        transition: all 0.25s ease;
    }

    .section-title,
    .about-text p,
    .feature-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.6s ease forwards;
    }

    .section-title { animation-delay: 0.1s; }
    .feature-card:nth-child(1) { animation-delay: 0.2s; }
    .feature-card:nth-child(2) { animation-delay: 0.35s; }
    .feature-card:nth-child(3) { animation-delay: 0.5s; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}
