/* Perth Tabernacle Church - Authentic Stories Styles */
/* Organic, hand-drawn styling for story-driven church design */

/* CSS Custom Properties for Story-driven Design */
:root {
    /* Story color palette */
    --ptc-red: #C41E3A;
    --burnt-orange: #EA580C;
    --forest-green: #059669;
    --warm-brown: #92400E;
    --cream: #FFFBEB;
    --rich-charcoal: #374151;
    
    /* Hand-drawn shadows */
    --shadow-organic: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-story-card: 0 4px 20px rgba(146, 64, 14, 0.15);
    --shadow-polaroid: 0 4px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-handdrawn: 0 2px 12px rgba(196, 30, 58, 0.2);
    
    /* Typography system */
    --font-merriweather: 'Merriweather', serif;
    --font-source-sans: 'Source Sans Pro', sans-serif;
    --font-georgia: 'Georgia', serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-open-sans: 'Open Sans', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    
    
    /* Event card colors (Vibrant Community) */
    --event-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --event-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Skip Link with Story Styling */
.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--ptc-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    z-index: 50;
    font-family: var(--font-merriweather);
    font-weight: 700;
    transform: translateY(-6rem);
    transition: transform 300ms ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Organic Header Border */
.organic-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--burnt-orange), var(--ptc-red), var(--forest-green));
    clip-path: polygon(0 50%, 5% 70%, 10% 30%, 15% 80%, 20% 20%, 25% 60%, 30% 10%, 35% 90%, 40% 40%, 45% 70%, 50% 20%, 55% 80%, 60% 30%, 65% 60%, 70% 10%, 75% 70%, 80% 40%, 85% 80%, 90% 20%, 95% 60%, 100% 30%);
    opacity: 0.8;
}

/* Hand-drawn Style Elements */
.hand-drawn-circle {
    width: 40px;
    height: 40px;
    border: 3px solid currentColor;
    border-radius: 47% 53% 52% 48% / 45% 49% 51% 55%;
    position: relative;
}

.hand-drawn-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid currentColor;
    border-radius: 52% 48% 57% 43% / 48% 52% 48% 52%;
    opacity: 0.6;
}

.handwritten-style {
    position: relative;
    transform: rotate(-0.5deg);
}

.hand-lettered-accent {
    font-family: var(--font-georgia);
    font-style: italic;
    position: relative;
    transform: rotate(-1deg);
}

/* Hand-drawn Underlines */
.hand-drawn-underline {
    width: 80px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transform: rotate(-1deg);
}

.hand-drawn-underline::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    right: -2px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    opacity: 0.6;
    transform: rotate(0.5deg);
}

.hand-drawn-underline-large {
    width: 120px;
    height: 4px;
    background: currentColor;
    border-radius: 3px;
    position: relative;
    transform: rotate(-0.8deg);
}

.hand-drawn-underline-large::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    right: -3px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.5;
    transform: rotate(0.7deg);
}

.hand-drawn-underline-medium {
    width: 100px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transform: rotate(-0.6deg);
}

/* Hand-drawn Icons */
.hand-drawn-star {
    width: 40px;
    height: 40px;
    position: relative;
}

.hand-drawn-star::before {
    content: '★';
    font-size: 40px;
    transform: rotate(-5deg);
    display: block;
}

.hand-drawn-heart {
    width: 30px;
    height: 30px;
    position: relative;
}

.hand-drawn-heart::before {
    content: '♥';
    font-size: 30px;
    transform: rotate(5deg);
    display: block;
}

.hand-drawn-clock {
    width: 60px;
    height: 60px;
    border: 4px solid currentColor;
    border-radius: 50%;
    position: relative;
    transform: rotate(-2deg);
}

.hand-drawn-clock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: currentColor;
    transform: translate(-50%, -100%) rotate(45deg);
    border-radius: 1px;
}

.hand-drawn-clock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 15px;
    background: currentColor;
    transform: translate(-50%, -100%) rotate(90deg);
    border-radius: 1px;
}

.hand-drawn-arrow {
    width: 20px;
    height: 20px;
    position: relative;
}

.hand-drawn-arrow::before {
    content: '↓';
    font-size: 20px;
    transform: rotate(-3deg);
    display: block;
}

.hand-drawn-camera {
    width: 40px;
    height: 40px;
    position: relative;
}

.hand-drawn-camera::before {
    content: '📷';
    font-size: 32px;
    transform: rotate(-2deg);
    display: block;
}

.hand-drawn-mic {
    width: 40px;
    height: 40px;
    position: relative;
}

.hand-drawn-mic::before {
    content: '🎤';
    font-size: 32px;
    transform: rotate(3deg);
    display: block;
}

/* Hand-drawn Numbers */
.hand-drawn-number {
    font-family: var(--font-merriweather);
    font-weight: 900;
    transform: rotate(-3deg);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Story Navigation Links */
.nav-link-story {
    font-family: var(--font-merriweather);
    font-weight: 600;
    color: var(--warm-brown);
    position: relative;
    transition: all 300ms ease-out;
    padding: 0.5rem 0;
}

.nav-link-story::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--burnt-orange);
    border-radius: 2px;
    transition: width 400ms ease-out;
    transform: rotate(-1deg);
}

.nav-link-story:hover {
    color: var(--ptc-red);
}

.nav-link-story:hover::after {
    width: 100%;
}

/* Story-driven Button System */
.btn-story-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-merriweather);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--ptc-red);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease-out;
    box-shadow: var(--shadow-handdrawn);
    position: relative;
    transform: rotate(-0.5deg);
}

.btn-story-primary:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: var(--shadow-organic);
    background: var(--burnt-orange);
}

.btn-story-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-merriweather);
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    color: var(--ptc-red);
    padding: 1rem 2rem;
    border: 3px solid var(--ptc-red);
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(0.5deg);
    position: relative;
}

.btn-story-secondary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid var(--ptc-red);
    border-radius: 10px;
    opacity: 0.4;
}

.btn-story-secondary:hover {
    background: var(--ptc-red);
    color: white;
    transform: rotate(0deg) translateY(-2px);
}

.btn-story-secondary-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-merriweather);
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 3px solid white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(-0.3deg);
}

.btn-story-secondary-white:hover {
    background: white;
    color: var(--ptc-red);
    transform: rotate(0deg) translateY(-2px);
}

.btn-story-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-merriweather);
    font-weight: 700;
    font-size: 0.9rem;
    background: white;
    color: var(--ptc-red);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease-out;
    box-shadow: var(--shadow-story-card);
    transform: rotate(0.4deg);
}

.btn-story-white:hover {
    transform: rotate(0deg) translateY(-2px);
    background: var(--cream);
}

.btn-story-white-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(-0.3deg);
}

.btn-story-white-outline:hover {
    background: white;
    color: var(--forest-green);
    transform: rotate(0deg) translateY(-1px);
}

.btn-story-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    color: var(--ptc-red);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--ptc-red);
    border-radius: 10px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(0.3deg);
}

.btn-story-outline:hover {
    background: var(--ptc-red);
    color: white;
    transform: rotate(0deg) translateY(-1px);
}

.btn-story-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--burnt-orange);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(-0.5deg);
}

.btn-story-small:hover {
    background: var(--ptc-red);
    transform: rotate(0deg) translateY(-1px);
}

.btn-story-outline-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.75rem;
    background: transparent;
    color: var(--burnt-orange);
    padding: 0.5rem 1rem;
    border: 2px solid var(--burnt-orange);
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(0.4deg);
}

.btn-story-outline-small:hover {
    background: var(--burnt-orange);
    color: white;
    transform: rotate(0deg) translateY(-1px);
}

.btn-story-outline-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    color: var(--cream);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--cream);
    border-radius: 10px;
    cursor: pointer;
    transition: all 300ms ease-out;
    transform: rotate(-0.3deg);
}

.btn-story-outline-footer:hover {
    background: var(--cream);
    color: var(--warm-brown);
    transform: rotate(0deg) translateY(-1px);
}

/* Story Card Components */
.story-card-organic {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-story-card);
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 400ms ease-out;
    border: 3px solid transparent;
}

.story-card-organic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--burnt-orange)/20, var(--forest-green)/20, var(--ptc-red)/20);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.story-card-organic:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: var(--shadow-organic);
}

.story-card-organic:hover::before {
    opacity: 1;
}

/* Polaroid Photo Treatment */
.polaroid-frame {
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-polaroid);
    transform: rotate(-2deg);
    transition: all 400ms ease-out;
    position: relative;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.polaroid-caption {
    font-family: var(--font-georgia);
    font-style: italic;
    color: var(--warm-brown);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Hand-drawn Quote Marks */
.hand-drawn-quote-open {
    width: 30px;
    height: 30px;
    position: relative;
    transform: rotate(-5deg);
}

.hand-drawn-quote-open::before {
    content: '"';
    font-size: 40px;
    font-family: var(--font-georgia);
    display: block;
    line-height: 1;
}

.hand-drawn-quote-close {
    width: 30px;
    height: 30px;
    position: relative;
    transform: rotate(3deg);
    margin-left: auto;
}

.hand-drawn-quote-close::before {
    content: '"';
    font-size: 40px;
    font-family: var(--font-georgia);
    display: block;
    line-height: 1;
}

/* Storybook Layout */
.storybook-layout {
    position: relative;
    transform: rotate(-0.3deg);
    transition: all 300ms ease-out;
}

.storybook-layout:hover {
    transform: rotate(0deg) scale(1.01);
}

/* Hand-drawn Border Frame */
.hand-drawn-border-frame {
    border: 3px solid var(--warm-brown);
    border-radius: 8px;
    position: relative;
    transform: rotate(0.5deg);
}

.hand-drawn-border-frame::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid var(--warm-brown);
    border-radius: 17px;
    opacity: 0.4;
}

/* Journey Path and Steps */
.journey-path-organic {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ptc-red), var(--burnt-orange), var(--forest-green), var(--warm-brown));
    transform: translateY(-50%);
    clip-path: polygon(0 30%, 10% 70%, 20% 20%, 30% 80%, 40% 40%, 50% 60%, 60% 10%, 70% 90%, 80% 50%, 90% 20%, 100% 70%);
    opacity: 0.6;
}

.journey-step {
    position: relative;
    z-index: 10;
}

.journey-card-organic {
    transform: rotate(-0.8deg);
    transition: all 300ms ease-out;
}

.journey-card-organic:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* Event Scrapbook Cards */
.event-scrapbook-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-story-card);
    overflow: hidden;
    transform: rotate(-0.7deg);
    transition: all 400ms ease-out;
    position: relative;
}

.event-scrapbook-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: var(--shadow-organic);
}

.polaroid-event {
    position: relative;
    padding: 1rem;
    background: white;
}

.event-tape-accent {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    transform: rotate(15deg);
}

.event-tape-accent::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.5);
}

/* Student Story Cards */
.student-story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: rotate(-0.5deg);
    transition: all 300ms ease-out;
}

.student-story-card:hover {
    transform: rotate(0deg) translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.flag-accent {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Story Submission Options */
.story-submission-option {
    text-align: center;
    transform: rotate(-0.4deg);
    transition: all 300ms ease-out;
}

.story-submission-option:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* Bulletin Board Styling */
.bulletin-pin-section {
    position: relative;
    transform: rotate(-0.6deg);
    transition: all 300ms ease-out;
}

.bulletin-pin-section:hover {
    transform: rotate(0deg) translateY(-2px);
}

.bulletin-item {
    background: rgba(255, 251, 235, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 251, 235, 0.2);
    transform: rotate(0.3deg);
    transition: all 300ms ease-out;
}

.bulletin-item:hover {
    transform: rotate(0deg);
    background: rgba(255, 251, 235, 0.15);
}

.contact-with-face {
    transform: rotate(-0.2deg);
    transition: all 300ms ease-out;
}

.contact-with-face:hover {
    transform: rotate(0deg);
}

/* Footer Links */
.footer-link-story {
    color: rgba(255, 251, 235, 0.8);
    font-family: var(--font-source-sans);
    transition: all 300ms ease-out;
    position: relative;
}

.footer-link-story::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burnt-orange);
    transition: width 300ms ease-out;
    border-radius: 1px;
}

.footer-link-story:hover {
    color: var(--burnt-orange);
}

.footer-link-story:hover::after {
    width: 100%;
}

/* Background Textures */
.paper-texture {
    background-image: radial-gradient(circle at 20% 50%, rgba(146, 64, 14, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.paper-texture-alt {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(196, 30, 58, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(234, 88, 12, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px;
}

.organic-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.organic-texture {
    background-image: 
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(ellipse at 70% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
}

.bulletin-board-texture {
    background-image: 
        linear-gradient(90deg, rgba(255, 251, 235, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 251, 235, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Organic Reveal Mask */
.organic-reveal-mask {
    background: radial-gradient(ellipse 800px 600px at 60% 40%, transparent 40%, rgba(0, 0, 0, 0.3) 70%);
}

/* Hand-drawn Circle Accents */
.hand-drawn-circle-accent {
    width: 60px;
    height: 60px;
    border: 4px solid var(--burnt-orange);
    border-radius: 45% 55% 52% 48% / 48% 52% 45% 55%;
    position: relative;
    transform: rotate(-3deg);
}

.hand-drawn-circle-accent::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--burnt-orange);
    border-radius: 48% 52% 55% 45% / 52% 48% 50% 50%;
    opacity: 0.5;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 800ms ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure section titles are always visible */
h1, h2, h3, h4, h5, h6 {
    opacity: 1 !important;
}

/* Fallback for critical content visibility */
.animate-on-scroll h1,
.animate-on-scroll h2,
.animate-on-scroll h3,
.animate-on-scroll h4,
.animate-on-scroll h5,
.animate-on-scroll h6 {
    opacity: 1 !important;
    transform: none !important;
}

/* Enhanced Parallax Layer System */
.parallax-layer-0,
.parallax-layer-1,
.parallax-layer-2, 
.parallax-layer-3,
.parallax-layer-4 {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Branch Reveal Effect */
.branch-left,
.branch-right {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

/* Branch overlay styling */
.branch-left img,
.branch-right img {
    filter: contrast(1.2) brightness(0.8);
}

/* Enhanced depth with blur for distant layers */
.parallax-layer-1 {
    filter: blur(0.3px);
}

.parallax-layer-2 {
    filter: blur(0.2px);
}

/* Hero section 3D perspective enhancement */
.hero-section {
    transform-style: preserve-3d;
}

/* Ensure curtain covers properly */
.parallax-layer-0 {
    pointer-events: none;
}

/* Better background scaling for extended visibility */
.parallax-layer-1 img {
    object-position: center center;
}

/* Floating Cloud Background Effects */
.cloud-bg-1 {
    will-change: transform;
    animation: cloudDrift1 60s ease-in-out infinite;
}

.cloud-bg-2 {
    will-change: transform;
    animation: cloudDrift2 80s ease-in-out infinite;
}

@keyframes cloudDrift1 {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(-50px) translateY(-20px);
    }
    66% {
        transform: translateX(30px) translateY(10px);
    }
}

@keyframes cloudDrift2 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1.5);
    }
    50% {
        transform: translateX(80px) translateY(-30px) scale(1.6);
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hand-drawn-underline-large {
        width: 80px;
    }
    
    .hand-drawn-underline-medium {
        width: 60px;
    }
    
    .story-card-organic {
        padding: 1.5rem;
        transform: rotate(0deg);
    }
    
    .polaroid-frame {
        transform: rotate(0deg);
    }
    
    .journey-card-organic {
        transform: rotate(0deg);
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .story-card-organic {
        border: 2px solid var(--warm-brown);
    }
    
    .polaroid-frame {
        border: 2px solid var(--rich-charcoal);
    }
    
    .hand-drawn-border-frame {
        border-width: 4px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        transform: none !important;
    }
    
    .story-card-organic,
    .polaroid-frame,
    .journey-card-organic,
    .event-scrapbook-card,
    .student-story-card {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .hand-drawn-circle,
    .hand-drawn-star,
    .hand-drawn-heart,
    .organic-border-bottom,
    .hand-drawn-underline,
    .hand-drawn-underline-large,
    .hand-drawn-underline-medium {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Event Cards (Vibrant Community Style) */
.event-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--event-shadow);
    transition: all 300ms ease-out;
    border: 1px solid transparent;
}

.event-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--event-shadow-hover);
    border-color: rgba(196, 30, 58, 0.1);
}

.event-badge {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

/* Button styles for events */
.btn-primary {
    background-color: var(--ptc-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-source-sans);
}

.btn-primary:hover {
    background-color: #A91729;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Blog Card Styles */
.blog-card-warm {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-story-card);
    transition: all 400ms ease-out;
    transform: rotate(-0.5deg);
    border: 1px solid rgba(146, 64, 14, 0.1);
}

/* Blog title styling - clean black text */
article h3 {
    color: black !important;
    text-shadow: none !important;
}

.blog-card-warm:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: var(--shadow-organic);
    border-color: rgba(196, 30, 58, 0.2);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
}

.blog-image-container img {
    transition: transform 400ms ease-out;
}

.blog-card-warm:hover .blog-image-container img {
    transform: scale(1.05);
}

.blog-category {
    display: inline-block;
    font-family: var(--font-source-sans);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: var(--ptc-red);
    color: white;
}

.blog-category.family {
    background: var(--forest-green);
}

.blog-category.work {
    background: var(--burnt-orange);
}

/* Blog Button Styles */
.btn-warm-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-merriweather);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--ptc-red);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease-out;
    box-shadow: var(--shadow-handdrawn);
    position: relative;
    transform: rotate(-0.5deg);
    text-decoration: none;
}

.btn-warm-primary:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: var(--shadow-organic);
    background: var(--burnt-orange);
    color: white;
    text-decoration: none;
}

