/* ============================================
   REALISTIC RESOURCES - MAIN STYLESHEET
   Updated: Fixes Gumroad button styling & spacing
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-cream: #f0ebe9;
    --color-sage: #96ad90;
    --color-olive: #696344;
    --color-gold: #E4A84A;
    --color-charcoal: #2E2E2E;
    --color-slate: #7A89A6;
    --color-tan: #D9C6B0;
    --color-ivory: #F6F6E9;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Caveat', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-ivory);
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-olive);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

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

a:hover {
    color: var(--color-sage);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--color-ivory);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-cream);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-charcoal);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-sage);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* --- Hero Section (Reduced spacing) --- */
.hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.hero .container {
    max-width: 800px;
}

.script-tagline {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-slate);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 auto 1.5rem;
}

/* --- Page Header (Reduced spacing) --- */
.page-header {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-olive);
    border: 1.5px solid var(--color-olive);
}

.btn-secondary:hover {
    background-color: var(--color-olive);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* --- GUMROAD BUTTON OVERRIDE --- */
/* This removes the ugly black Gumroad styling */
.gumroad-button {
    background-color: transparent !important;
    color: var(--color-olive) !important;
    border: 1.5px solid var(--color-olive) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

.gumroad-button:hover {
    background-color: var(--color-olive) !important;
    color: white !important;
}

/* Hide Gumroad's injected logo/branding */
.gumroad-button::after,
.gumroad-button img,
.gumroad-button svg {
    display: none !important;
}

/* --- Filter Tabs --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1.5px solid var(--color-tan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--color-sage);
    color: var(--color-olive);
}

.filter-btn.active {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
    color: white;
}

/* --- Resource Grid (Tighter spacing) --- */
.resources-section {
    padding: 1rem 0 3rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* --- Resource Cards --- */
.resource-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.resource-card.hidden {
    display: none;
}

.resource-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.resource-card:hover .resource-thumbnail img {
    transform: scale(1.03);
}

.resource-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.resource-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* --- Resource Tags --- */
.resource-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.tag-free {
    background-color: var(--color-sage);
    color: white;
}

.tag-coming {
    background-color: var(--color-tan);
    color: var(--color-charcoal);
}

.tag-paid {
    background-color: var(--color-gold);
    color: white;
}

/* --- Status Badge --- */
.status-badge {
    font-size: 0.8rem;
    color: var(--color-slate);
    font-style: italic;
}

/* --- Featured Section (Reduced spacing) --- */
.featured-section {
    padding: 2.5rem 0;
    background-color: var(--color-cream);
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.featured-section > p {
    text-align: center;
    margin: 0 auto 1.5rem;
    color: #555;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.featured-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.featured-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.featured-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 auto;
}

/* --- About Page --- */
.about-section {
    padding: 0 0 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
}

.about-grid .about-content {
    text-align: left;
    max-width: none;
    margin: 0;
}

.about-grid .about-content h2 {
    margin-bottom: 1rem;
}

.about-grid .about-content p {
    margin: 0 0 1.25rem;
    color: #555;
}

.credentials {
    margin-top: 1.5rem;
}

.credentials h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.credentials ul {
    list-style: disc;
    margin-left: 1.25rem;
}

.credentials li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #555;
}

.about-personal {
    padding: 3rem 0;
    background-color: var(--color-cream);
}

.about-personal .container {
    max-width: 800px;
    text-align: center;
}

.about-personal img {
    width: 100%;
    max-width: 500px;
    border-radius: 4px;
    margin: 1.5rem auto;
    display: block;
}

.about-personal p:last-child {
    color: #555;
    margin-top: 1rem;
}

/* --- About Preview (Homepage) --- */
.about-preview {
    padding: 3rem 0;
}

.about-preview .about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-preview .about-content h2 {
    margin-bottom: 1rem;
}

.about-preview .about-content p {
    margin: 0 auto 1.5rem;
    color: #555;
}

/* --- CTA Section (Reduced spacing) --- */
.cta-section {
    padding: 2.5rem 0;
    background-color: var(--color-sage);
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 1.25rem;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--color-olive);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-ivory);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-charcoal);
    color: white;
    padding: 2rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: white;
}

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Content Pages --- */
.content-page {
    padding: 2rem 0 3rem;
}

.content-page .container {
    max-width: 800px;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page ul, 
.content-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* --- Legal Pages --- */
.last-updated {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-summary {
    background-color: var(--color-cream);
    padding: 1.5rem;
    border-left: 3px solid var(--color-sage);
    border-radius: 0 4px 4px 0;
    margin: 2rem 0;
}

.legal-summary h2 {
    margin-top: 0;
}

/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.video-thumbnail {
    aspect-ratio: 16 / 9;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    padding: 1.25rem;
}

.video-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-content p {
    font-size: 0.875rem;
    color: #555;
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card h3 {
    margin-bottom: 0.75rem;
}

.product-card p {
    color: #555;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-olive);
    margin-bottom: 1rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-ivory);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-bottom: 1px solid var(--color-cream);
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--color-cream);
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .page-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-tabs {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        text-align: center;
    }

    .about-image img {
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--color-sage);
    outline-offset: 2px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.9);
    z-index: 60;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-content p {
    font-size: 0.875rem;
    margin: 0;
    max-width: none;
    line-height: 1.5;
}

.cookie-banner-content a {
    color: var(--color-sage);
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: white;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-decline-btn {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.cookie-decline-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
