/* ============================================
   The Turkey Tits Museum of Natural History
   CSS Foundation
   ============================================ */

:root {
    /* Museum color palette */
    --color-green: #2D4A3E;
    --color-green-dark: #1E342B;
    --color-gold: #C8A951;
    --color-gold-light: #D4BC72;
    --color-cream: #FAF3E0;
    --color-cream-dark: #F0E6CC;
    --color-burgundy: #722F37;
    --color-burgundy-dark: #5A242B;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-brass: #B5A642;
    --color-brass-dark: #8B7D32;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

    /* Sizing */
    --max-width: 1100px;
    --border-radius: 4px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;

    /* Subtle linen texture */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Section base */
.section {
    padding: var(--space-xl) var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* The hero is always visible (no scroll animation) */
.hero {
    opacity: 1;
    transform: none;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    max-width: 65ch;
}

/* Gold decorative divider */
.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: var(--space-md) auto;
    border: none;
}

/* Brass plaque style */
.plaque {
    background: linear-gradient(135deg, #D4C06A 0%, #B5A642 30%, #8B7D32 70%, #B5A642 100%);
    color: var(--color-green-dark);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 3px solid var(--color-brass-dark);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 4px 16px rgba(0,0,0,0.2);
    font-family: var(--font-heading);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.plaque h3 {
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
}

.plaque p {
    font-style: italic;
    line-height: 1.8;
    margin: 0 auto;
}

/* Section headings with ornamental style */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-green-dark);
}

.section-heading h2 {
    margin-bottom: var(--space-xs);
}

.section-heading .subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: var(--space-lg) var(--space-sm);
    }
}

/* ============================================
   Hero / Grand Hall
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-green);
    background-image:
        radial-gradient(ellipse at center, rgba(200, 169, 81, 0.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--color-cream);
    position: relative;
}

.hero-content {
    padding: var(--space-md);
}

.hero-turkey {
    margin: 0 auto var(--space-md);
    max-width: 250px;
    animation: floatTurkey 4s ease-in-out infinite;
}

.turkey-silhouette {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

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

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-gold-light);
    font-weight: 300;
    margin: 0 auto var(--space-md);
}

.hero .divider {
    background: linear-gradient(to right, transparent, var(--color-gold-light), transparent);
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.hero-cta:hover {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 81, 0.3);
}

/* ============================================
   Curator Welcome
   ============================================ */

.curator {
    background-color: var(--color-cream);
}

.curator-letter {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--space-lg);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
}

.curator-letter::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
}

.curator-letter p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    max-width: none;
}

.curator-signature {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-cream-dark);
}

.curator-title {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ============================================
   Exhibits Hall
   ============================================ */

.exhibits {
    background-color: var(--color-green);
    color: var(--color-cream);
}

.exhibits .section-heading {
    color: var(--color-cream);
}

.exhibits .subtitle {
    color: var(--color-gold-light);
}

.exhibits-instruction {
    text-align: center;
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.exhibits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
}

.turkey-diagram {
    position: relative;
}

.anatomy-svg {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
}

.hotspot {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.hotspot:hover {
    opacity: 0.5 !important;
}

.hotspot.active {
    opacity: 0.6 !important;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

.hotspot-label {
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.anatomy-placard {
    background: linear-gradient(135deg, #D4C06A 0%, #B5A642 30%, #8B7D32 70%, #B5A642 100%);
    color: var(--color-green-dark);
    padding: var(--space-md) var(--space-lg);
    border: 3px solid var(--color-brass-dark);
    border-radius: var(--border-radius);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 4px 16px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

.anatomy-placard.hidden {
    display: none;
}

.anatomy-placard h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding-bottom: var(--space-xs);
}

.anatomy-placard .latin {
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    opacity: 0.7;
}

.anatomy-placard p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    max-width: none;
}

.anatomy-placard .placard-fact {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.85;
    border-top: 1px solid rgba(0,0,0,0.15);
    padding-top: var(--space-xs);
    margin-bottom: 0;
}

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

/* ============================================
   Gift Shop
   ============================================ */

.giftshop {
    background-color: var(--color-cream);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.shop-item {
    background: var(--color-white);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.shop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: wiggle 0.4s ease;
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-4px) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
}

.shop-item-image {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    filter: grayscale(20%);
}

.shop-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--color-green-dark);
}

.shop-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    max-width: none;
}

.shop-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-burgundy);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    transition: opacity 0.15s ease;
}

.shop-badge {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-cream);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   Hero extras
   ============================================ */

.hero-accolade {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-gold-light);
    opacity: 0.7;
    margin-bottom: var(--space-sm);
}

.hero-visitors {
    font-size: 0.75rem;
    color: var(--color-cream);
    opacity: 0.4;
    margin-top: var(--space-md);
    letter-spacing: 0.05em;
}

/* ============================================
   Visitor Testimonials
   ============================================ */

.testimonials {
    background-color: var(--color-cream-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonial {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-cream-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    max-width: none;
    color: var(--color-text);
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: normal;
    display: block;
    margin-bottom: var(--space-xs);
}

.testimonial-stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ============================================
   Founders Room
   ============================================ */

.founders {
    background-color: var(--color-green);
    color: var(--color-cream);
}

.founders .section-heading {
    color: var(--color-cream);
}

.founders .subtitle {
    color: var(--color-gold-light);
}

.founders-plaque {
    max-width: 750px;
}

.founders-plaque p {
    margin-bottom: var(--space-sm);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--color-green-dark);
    color: var(--color-cream);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-museum {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-gold);
}

.footer-details {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.footer-fine-print {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.staff-only-link {
    color: var(--color-green-dark);
    text-decoration: none;
    font-size: 0.6rem;
    opacity: 0.15;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.staff-only-link:hover {
    opacity: 0.4;
}

/* Staff Modal */
.staff-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.staff-modal-overlay.active {
    display: flex;
}

.staff-modal {
    background: var(--color-cream);
    color: var(--color-text);
    max-width: 550px;
    width: 90%;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.staff-modal h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-burgundy);
    border-bottom: 2px solid var(--color-cream-dark);
    padding-bottom: var(--space-sm);
}

.staff-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
}

.staff-notice {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-white);
    border-left: 3px solid var(--color-burgundy);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ============================================
   Easter Eggs
   ============================================ */

/* Turkey rain (Konami code) */
.turkey-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.rain-turkey {
    position: absolute;
    top: -60px;
    animation: turkeyFall linear forwards;
}

@keyframes turkeyFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Turkey puff animation (breast click easter egg) */
.turkey-puff {
    animation: puffUp 0.5s ease-out;
}

@keyframes puffUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-turkey {
        max-width: 180px;
    }

    .curator-letter {
        padding: var(--space-md);
    }

    .curator-letter::before {
        font-size: 4rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .founders-plaque {
        padding: var(--space-md);
    }

    .staff-modal {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .anatomy-placard {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-turkey {
        animation: none;
    }

    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .shop-item:hover {
        animation: none;
    }

    .rain-turkey {
        animation: none;
        display: none;
    }
}
