/*
Theme Name: Talty Literary
Theme URI: https://taltyliterary.com
Author: Morgan Talty
Author URI: https://morgantalty.com
Description: Workshops, mentorship, and community for writers. Where craft meets care.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taltyliterary
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template
*/

/* ==========================================================================
   CSS Variables - Brand Guidelines (Warm/Educational Tone)
   ========================================================================== */
:root {
    /* Primary Colors */
    --deep-river-blue: #1B3A52;
    --warm-earth: #8B5A3C;
    --story-gold: #D4A574;

    /* Secondary Colors */
    --sage-green: #7B8D6F;
    --dawn-rose: #C17B74;
    --charcoal: #2C2C2C;

    /* Neutral Colors */
    --parchment: #F7F3ED;
    --cloud-white: #FFFFFF;
    --stone-gray: #E5E1DB;

    /* Warm accent for D2C */
    --cream: #FBF9F5;
    --terracotta: #C4785C;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Crimson Text', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 var(--space-sm);
    color: var(--deep-river-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
}

p { margin: 0 0 var(--space-sm); }

a {
    color: var(--warm-earth);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ==========================================================================
   Double Curve SVG Motif
   ========================================================================== */
.double-curve {
    display: inline-block;
    width: 60px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M0,25 Q25,0 50,25 Q75,50 100,25' fill='none' stroke='%23D4A574' stroke-width='3'/%3E%3Cpath d='M0,25 Q25,50 50,25 Q75,0 100,25' fill='none' stroke='%238B5A3C' stroke-width='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ==========================================================================
   Header - Warmer style
   ========================================================================== */
.site-header {
    background: var(--cloud-white);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(139, 90, 60, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-river-blue);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.site-logo .double-curve {
    width: 40px;
    height: 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: var(--space-xs) 0;
    position: relative;
}

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

.main-nav a:hover {
    color: var(--warm-earth);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--deep-river-blue);
}

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

    .main-nav {
        display: none;
    }

    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cloud-white);
        padding: var(--space-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.is-open ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ==========================================================================
   Hero Section - Warm & Inviting
   ========================================================================== */
.hero {
    padding: calc(var(--space-xl) + 100px) 0 var(--space-xl);
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M0,25 Q25,0 50,25 Q75,50 100,25' fill='none' stroke='%23D4A574' stroke-width='0.5'/%3E%3Cpath d='M0,25 Q25,50 50,25 Q75,0 100,25' fill='none' stroke='%238B5A3C' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.08;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__eyebrow {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-earth);
    margin-bottom: var(--space-xs);
}

.hero__title {
    font-size: 3.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.15;
}

.hero__subtitle {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
}

.hero__description {
    font-size: 1.15rem;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons - Warmer styling
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background: var(--warm-earth);
    color: var(--cloud-white);
}

.btn--primary:hover {
    background: var(--terracotta);
    color: var(--cloud-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.25);
}

.btn--secondary {
    background: transparent;
    color: var(--warm-earth);
    border: 2px solid var(--warm-earth);
}

.btn--secondary:hover {
    background: var(--warm-earth);
    color: var(--cloud-white);
}

.btn--gold {
    background: var(--story-gold);
    color: var(--deep-river-blue);
}

.btn--gold:hover {
    background: var(--warm-earth);
    color: var(--cloud-white);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: var(--space-xl) 0;
}

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

.section--warm {
    background: var(--warm-earth);
    color: var(--cloud-white);
}

.section--warm h2,
.section--warm h3 {
    color: var(--cloud-white);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.section__eyebrow {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--warm-earth);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

/* ==========================================================================
   Offerings Grid - Workshops, Mentorship, etc.
   ========================================================================== */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 992px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .offerings-grid {
        grid-template-columns: 1fr;
    }
}

.offering-card {
    background: var(--cloud-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 90, 60, 0.08);
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 90, 60, 0.15);
}

.offering-card__image {
    height: 180px;
    background: linear-gradient(135deg, var(--parchment), var(--stone-gray));
    display: flex;
    align-items: center;
    justify-content: center;
}

.offering-card__image svg {
    width: 64px;
    height: 64px;
    color: var(--warm-earth);
}

.offering-card__content {
    padding: var(--space-md);
}

.offering-card__tag {
    display: inline-block;
    background: var(--parchment);
    color: var(--warm-earth);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.offering-card__title {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
}

.offering-card__description {
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.offering-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--stone-gray);
}

.offering-card__price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-earth);
}

.offering-card__price span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--charcoal);
}

/* ==========================================================================
   Founder/About Section
   ========================================================================== */
.about-founder {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .about-founder {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.about-founder__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(139, 90, 60, 0.15);
}

.about-founder__eyebrow {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--warm-earth);
    margin-bottom: var(--space-xs);
}

.about-founder__name {
    font-size: 2.25rem;
    margin-bottom: var(--space-xs);
}

.about-founder__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .about-founder__credentials {
        justify-content: center;
    }
}

.about-founder__credential {
    background: var(--parchment);
    color: var(--warm-earth);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.about-founder__bio {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-founder__bio p {
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial {
    background: var(--cloud-white);
    padding: var(--space-md);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 90, 60, 0.08);
}

.testimonial__quote {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: var(--space-md);
}

.testimonial__quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3.5rem;
    color: var(--story-gold);
    font-family: var(--font-heading);
    line-height: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--stone-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-earth);
}

.testimonial__name {
    font-weight: 600;
    color: var(--deep-river-blue);
}

.testimonial__role {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--space-xl) 0;
    background: var(--warm-earth);
    text-align: center;
    color: var(--cloud-white);
}

.cta-section h2 {
    color: var(--cloud-white);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--space-md);
    opacity: 0.95;
    font-size: 1.1rem;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter {
    padding: var(--space-lg) 0;
    background: var(--parchment);
    text-align: center;
}

.newsletter__form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .newsletter__form {
        flex-direction: column;
    }
}

.newsletter__input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--stone-gray);
    border-radius: 30px;
    transition: border-color 0.3s ease;
}

.newsletter__input:focus {
    outline: none;
    border-color: var(--warm-earth);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--charcoal);
    color: var(--cloud-white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer__brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

@media (max-width: 576px) {
    .footer__brand {
        justify-content: center;
    }
}

.footer__tagline {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--story-gold);
    margin-bottom: var(--space-sm);
}

.footer__nav-title {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--story-gold);
}

.footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav li {
    margin-bottom: var(--space-xs);
}

.footer__nav a {
    color: var(--cloud-white);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer__nav a:hover {
    opacity: 1;
    color: var(--story-gold);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (max-width: 576px) {
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    padding: calc(var(--space-xl) + 80px) 0 var(--space-lg);
    background: var(--parchment);
    text-align: center;
}

.page-header__title {
    font-size: 2.75rem;
    margin-bottom: var(--space-xs);
}

.page-header__description {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--warm-earth);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: var(--space-xl) 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-lg { margin-top: var(--space-lg); }

.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;
}
