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

* {
    margin: 0;
}

body {
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
}

:root {
    --default-font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --changeup-stack: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    --mono-stack: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    --max-width: 610px;
    --white: #FFFFFF;
    --font-color: #0f172a; /* slate-900 */
    --bg: #f8fafc; /* slate-50 */
    --border-color: #e5e7eb; /* gray-200 */
    --muted: #6b7280; /* gray-500 */
    --primary: #334155; /* slate-700 */
    --primary-hover: #1f2937; /* gray-800 */
    --ring: #93c5fd; /* blue-300 */
}

html {
    font-family: var(--default-font-stack);
    font-size: 18px;
    line-height: 1.6;
}

body {
    display: flex;
    justify-content: center;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-bottom: 1.5rem;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--font-color);
}

.page {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-family: var(--changeup-stack);
    font-size: 1.25rem;
    margin-top: 1.25rem;
    font-weight: 700;
}


ol,
ul,
p,
li {
    margin-top: .5rem;
}

ul,
li {
    font-size: 0.9rem;
}

a {
    color: var(--primary);
    cursor: pointer;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

nav {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    height: 8rem;
    gap: 1rem;
}

#nav-logo a {
    text-decoration: none;
    font-weight: bold;
    color: black;
    font-size: 1.25rem;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle img {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle-icon {
    margin: 0;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 1rem;
}

/* Desktop nav links */
.nav-links a {
    text-decoration: none;
    color: #111827;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.nav-links a:hover {
    background-color: #f3f4f6;
}

/* Mobile styles */
@media (max-width: 610px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 6rem;
        right: 0;
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        padding: 0.25rem;
        gap: 0.25rem;
        min-width: 200px;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.625rem 0.75rem;
        text-decoration: none;
        color: #111827;
        border-radius: 0.5rem;
    }

    .nav-links a:hover {
        background-color: #f3f4f6;
    }

    .nav-links a:focus-visible {
        outline: 3px solid var(--ring);
        outline-offset: 2px;
    }
    
    nav {
        position: relative;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-content: start;
    width: 100%;
    max-width: var(--max-width);
}

.card-wrapper {
    gap: 2rem;
}

.page-title {
    text-align: center;
}

/* Left-aligned variant for titles */
.page-title.left {
    text-align: left;
}

/* Calm hero */
.hero {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem 1rem 1rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.hero-title {
    font-family: var(--changeup-stack);
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.hero-tagline {
    color: #475569;
}

/* No animated backgrounds */

.card {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

/* Inline promo card with image and text aligned */
.promo-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-card .promo-image {
    max-width: 96px;
    height: auto;
    object-fit: contain;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

img {
    width: 100%;
    height: auto;
}

.flyer-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
}

.card-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: var(--changeup-stack);
    color: #111827; /* gray-900 */
}

p {
    margin-top: 0.5rem;
}

.card-details {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-details p strong { color: var(--primary); }

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Center variant for button groups */
.button-group.center {
    justify-content: center;
}

/* Left variant for button groups */
.button-group.left {
    justify-content: flex-start;
}

/* Generic button styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    border: 1px solid transparent;
}

/* Ensure button links don't inherit global anchor hover styles */
.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.35);
}

/* Primary button variant */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff; /* keep text visible on hover */
}

.clear-button {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.clear-button:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-button:active {
    transform: translateY(1px);
}

.clear-button:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.flash {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flash-large {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-size: 1.1rem;
}

.ticket-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-option:hover {
    background-color: #f9fafb;
}

.ticket-option input[type="radio"] {
    margin-right: 0.5rem;
}

.ticket-option label {
    display: flex;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.ticket-option:has(input:checked) {
    border-color: var(--primary);
    background-color: #f8fafc;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.ticket-option:has(input:disabled) {
    opacity: 0.6;
    background-color: #f3f4f6;
}

.ticket-option:has(input:disabled) label {
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* no micro-animations */

/* Contact form */
.contact-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.muted { color: var(--muted); }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input,
.textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: #ffffff;
}

.input:focus,
.textarea:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.form-error {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca; /* red-200 */
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}
