/* ========================================
   Crackin Events - Ayrshire Wedding Fun
   ======================================== */

:root {
    --primary: #2d5016;
    --primary-light: #4a7a2e;
    --accent: #d4a853;
    --accent-light: #f0d68a;
    --dark: #1a1a2e;
    --dark-mid: #2d2d44;
    --light: #faf9f6;
    --light-alt: #f0ede6;
    --text: #2c2c2c;
    --text-light: #666;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 16px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero em {
    color: var(--accent);
    font-style: normal;
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Fact Shuffler */
.fact-shuffler {
    background: var(--dark);
    color: white;
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}

.fact-shuffler h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.shuffler-text {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 24px;
    min-height: 60px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Traditions */
.traditions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.tradition {
    padding: 32px;
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.tradition h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.tradition p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Local Guide */
.local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.local-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.local-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.local-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.local-card ul {
    list-style: none;
}

.local-card li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.local-card li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
}

/* Stats */
.local-stats {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    color: white;
}

.local-stats h3 {
    font-size: 1.5rem;
    margin-bottom: 36px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* Generator */
.generator-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.generator-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.generator-inputs input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.generator-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.generator-and {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.generator-result {
    margin-top: 32px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    min-height: 60px;
}

/* Quiz */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-question {
    display: none;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.quiz-question.active {
    display: block;
}

.quiz-question h3 {
    color: var(--accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.quiz-question > p {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 24px;
    color: var(--dark);
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    padding: 14px 20px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--primary);
    background: white;
}

.quiz-option.correct {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.quiz-option.wrong {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.quiz-feedback {
    margin-top: 16px;
    font-weight: 600;
    min-height: 24px;
}

.quiz-result {
    display: none;
    text-align: center;
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
}

.quiz-result h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.quiz-result p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Bingo */
.bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 700px;
    margin: 0 auto 32px;
}

.bingo-cell {
    background: white;
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.bingo-cell:hover {
    transform: scale(1.05);
}

.bingo-cell.stamped {
    background: var(--primary);
    color: white;
}

.bingo-cell.free {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
}

#newBingoBtn {
    display: block;
    margin: 0 auto;
}

/* Logo */
.logo-img {
    height: 45px;
    width: auto;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 24px 32px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item summary h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0;
}

.faq-item p {
    padding: 0 32px 24px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* SEO Content */
.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.seo-block {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.seo-block h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.seo-block p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 350px;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .card-grid,
    .traditions-list,
    .local-grid,
    .seo-content-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 36px;
    }

    .generator-inputs {
        flex-direction: column;
    }

    .generator-and {
        display: none;
    }

    .bingo-card {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 60px 0;
    }

    .fact-shuffler {
        padding: 32px 20px;
    }
}
