/* ===== CSS VARIABLES ===== */
:root {
    /* Card Background Colors (matching dynamic site) */
    --color-home: #FEDC6E;
    --color-land: #ABD777;
    --color-thanks: #77BBE2;
    --color-artists: #C3E7E5;
    --color-visit: #DA7DB3;

    /* Text Colors (matching dynamic site) */
    --color-text-dark: #2D2B3A;
    --color-text-light: #FDF6E3;
    --color-cream: #FDF6E3;

    /* Title word colors (matching dynamic site) */
    --color-dark: #E85D4C;
    --color-dingy: #4AC083;
    --color-underpass: #3B9FD8;

    /* Accent colors */
    --color-coral: #E85D4C;
    --color-purple: #6B4C9A;

    /* Typography (matching dynamic site) */
    --font-sans: 'Nunito', sans-serif;
    --font-display: 'Fredoka', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 60px 0;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ACCESSIBILITY: SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-purple);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    z-index: 100001;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== HAMBURGER MENU ===== */
.nav-menu {
    position: fixed;
    top: 20px;
    top: max(20px, env(safe-area-inset-top, 20px));
    right: 20px;
    right: max(20px, env(safe-area-inset-right, 20px));
    z-index: 10000;
}

.hamburger {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.menu-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(70, 50, 96, 0.95);
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 12px 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fallback for browsers without backdrop-filter (Firefox < 103) */
@supports not (backdrop-filter: blur(10px)) {
    .menu-dropdown {
        background-color: rgba(70, 50, 96, 0.98);
    }
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown a {
    display: block;
    padding: 14px 24px;
    min-height: 44px; /* iOS touch target minimum */
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 600;
    color: var(--color-cream);
    text-decoration: none;
    text-align: right;
    transition: background-color 0.2s ease;
}

.menu-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 8px 16px;
}

.menu-dropdown a.menu-social {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    text-align: center;
}

.menu-social svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.menu-social:hover svg {
    transform: scale(1.1);
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--color-home);
}

body.scroll-locked {
    overflow: hidden;
}

/* ===== CONTAINER ===== */
.container {
    width: 75%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* ===== CARDS ===== */
.card {
    padding: var(--section-padding);
    position: relative;
}

/* Intro overlay with fade animation */
.intro-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background-color: var(--color-home);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    animation: fadeOut 0.8s ease-out 3s forwards;
    pointer-events: auto;
}

.intro-overlay.faded {
    pointer-events: none;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.intro-quote {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-align: center;
    line-height: 1.3;
    width: 75%;
    margin: 0;
    animation: fadeInQuote 0.6s ease-out 0.3s backwards;
}

@keyframes fadeInQuote {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-card {
    background-color: var(--color-home);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.land-card {
    background-color: var(--color-land);
    padding: 60px 0;
}

.thanks-card {
    background-color: var(--color-thanks);
    padding: 60px 0;
}

.artists-card {
    background-color: var(--color-artists);
    padding: 60px 0;
}

.visit-card {
    background-color: var(--color-visit);
    padding: 60px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    margin-bottom: 24px;
}

.main-title {
    font-size: 108px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    text-align: center;
}

.dark-text {
    color: var(--color-dark);
}

.dingy-text {
    color: var(--color-dingy);
}

.underpass-text {
    color: var(--color-underpass);
}

h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 32px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

p {
    margin-bottom: 24px;
    font-size: 26px;
    text-align: center;
    color: var(--color-text-dark);
}

/* ===== BUTTON GROUP ===== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
    align-items: center;
}

.story-button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 500px;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #463260;
}

.story-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 0 8px #463260;
}

.story-button img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    display: block;
}

.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 36px;
    color: var(--color-text-light);
    /* Native stroke for smooth outline */
    -webkit-text-stroke: 3px var(--color-text-dark);
    paint-order: stroke fill;
    /* 8-direction shadow fallback + drop shadow */
    text-shadow:
        -2px -2px 0 var(--color-text-dark),
        2px -2px 0 var(--color-text-dark),
        -2px 2px 0 var(--color-text-dark),
        2px 2px 0 var(--color-text-dark),
        0 -2px 0 var(--color-text-dark),
        0 2px 0 var(--color-text-dark),
        -2px 0 0 var(--color-text-dark),
        2px 0 0 var(--color-text-dark),
        0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* ===== CURVE DIVIDER ===== */
.curve-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
    margin-bottom: -1px;
}

.curve-divider img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CADA LOGO ===== */
.cada-logo {
    display: block;
    max-width: 450px;
    margin: 0 auto 32px;
}

.cada-logo-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #463260;
    background: white;
    transition: box-shadow 0.3s ease;
}

.cada-logo:hover .cada-logo-wrapper {
    box-shadow: 0 0 0 4px #463260;
}

.cada-logo img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.5);
}

/* ===== SPONSOR GRID ===== */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.sponsor-link {
    display: block;
}

.sponsor-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 4px solid #463260;
    transition: box-shadow 0.3s ease;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .sponsor-grid img {
        /* Just remove aspect-ratio constraint - images display naturally */
        min-height: 120px;
    }
}

.sponsor-link:hover img {
    box-shadow: 0 0 0 4px #463260;
}

/* ===== ARTIST BIOS ===== */
.artist-bio {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 4px solid #463260;
}

.artist-bio:last-child {
    margin-bottom: 0;
}

.artist-image-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--color-purple);
}

.artist-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
}

.artist-bio h3 {
    text-align: center;
    font-size: 28px;
}

.artist-role {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-purple);
    display: block;
    margin-top: 4px;
}

.artist-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.artist-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-underpass);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.artist-social-link:hover {
    transform: scale(1.15);
    color: var(--color-accent);
}

.artist-social-link svg {
    width: 24px;
    height: 24px;
}

/* Instagram icon uses fill */
.artist-social-link svg path {
    fill: currentColor;
}

/* Globe icon uses stroke only */
.artist-social-link .globe-icon circle,
.artist-social-link .globe-icon ellipse,
.artist-social-link .globe-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.artist-bio p:last-child {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    opacity: 0.85;
}

/* ===== MAP & VISIT ===== */
.visit-card .container {
    text-align: center;
}

.visit-card p {
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #463260;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.directions-button,
.report-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #463260;
}

.directions-button {
    background-color: white;
    color: var(--color-text-dark);
}

.directions-button:hover,
.report-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 0 8px #463260;
}

.report-button {
    background-color: var(--color-coral);
    color: var(--color-text-light);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to top, rgba(245, 197, 24, 0.5), transparent);
    color: var(--color-text-dark);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

footer a {
    color: var(--color-text-dark);
    font-weight: 600;
    text-decoration: none;
}

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

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablet / Small Desktop */
@media (max-width: 1024px) {
    .main-title {
        font-size: 90px;
    }

    h2 {
        font-size: 42px;
    }

    .artist-bio {
        max-width: 700px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        top: 16px;
        right: 16px;
    }

    .container {
        width: 85%;
    }

    .intro-quote {
        font-size: 36px;
        width: 85%;
    }

    .main-title {
        font-size: 78px;
    }

    h2 {
        font-size: 36px;
    }

    p {
        font-size: 23px;
    }

    .button-text {
        font-size: 28px;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cada-logo {
        max-width: 260px;
    }

    .map-container iframe {
        height: 350px;
    }

    .artist-bio {
        padding: 32px;
    }

    .artist-image {
        max-width: 320px;
    }

    .directions-button,
    .report-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-menu {
        top: 12px;
        right: 12px;
    }

    .hamburger {
        width: 44px;
        height: 44px;
    }

    .hamburger-line {
        width: 26px;
    }

    .menu-dropdown {
        width: 200px;
        right: -4px;
    }

    .menu-dropdown a {
        padding: 14px 20px;
        font-size: 20px;
    }

    .container {
        width: 90%;
    }

    .intro-quote {
        font-size: 28px;
        width: 90%;
    }

    .main-title {
        font-size: 60px;
    }

    h2 {
        font-size: 30px;
    }

    p {
        font-size: 22px;
        line-height: 1.7;
    }

    .button-text {
        font-size: 26px;
    }

    .button-group {
        gap: 20px;
        margin-top: 36px;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
    }

    .sponsor-grid img {
        padding: 16px;
    }

    .cada-logo {
        max-width: 220px;
    }

    .map-container {
        border-radius: 16px;
    }

    .map-container iframe {
        height: 300px;
    }

    .artist-bio {
        padding: 24px;
        margin-bottom: 32px;
        border-radius: 20px;
    }

    .artist-image {
        max-width: 100%;
        border-radius: 12px;
    }

    .artist-bio h3 {
        font-size: 24px;
    }

    .artist-role {
        font-size: 15px;
    }

    .artist-website a {
        font-size: 15px;
    }

    .artist-bio p:last-child {
        font-size: 15px;
        line-height: 1.65;
    }

    .button-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .directions-button,
    .report-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .main-title {
        font-size: 51px;
    }

    h2 {
        font-size: 26px;
    }

    .button-text {
        font-size: 22px;
    }

    .artist-bio {
        padding: 20px;
    }

    .artist-bio h3 {
        font-size: 22px;
    }
}

/* ===== EAST WALL PAGE ===== */
.east-wall-page {
    background-color: #C77BA5;
    min-height: 100vh;
}

.east-wall-wave {
    width: 100%;
    line-height: 0;
}

.east-wall-wave svg {
    width: 100%;
    height: 60px;
}

.east-wall-card {
    background-color: #C77BA5;
    padding: 60px 0;
    min-height: calc(100vh - 60px);
}

.east-wall-container {
    width: 75%;
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    margin-bottom: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.east-wall-card h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 32px;
}

.east-wall-card p {
    color: var(--color-text-dark);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.donate-button-container {
    margin-top: 40px;
    text-align: center;
}

.donate-button {
    display: inline-block;
    background-color: var(--color-home);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #463260;
}

.donate-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 0 8px #463260;
}

/* Polaroid images for East Wall */
.polaroid-float {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.polaroid-left {
    float: left;
    margin-right: 24px;
    margin-top: 8px;
}

.polaroid-right {
    float: right;
    margin-left: 24px;
    margin-top: 8px;
}

/* East Wall Responsive */
@media (max-width: 768px) {
    .east-wall-card h1 {
        font-size: 40px;
    }

    .east-wall-card p {
        font-size: 17px;
    }

    .east-wall-container {
        width: 85%;
    }

    .polaroid-float {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .east-wall-wave svg {
        height: 50px;
    }

    .east-wall-card h1 {
        font-size: 34px;
    }

    .east-wall-card p {
        font-size: 17px;
        line-height: 1.7;
    }

    .back-link {
        font-size: 15px;
    }

    .donate-button {
        padding: 16px 40px;
        font-size: 17px;
    }

    .polaroid-float {
        max-width: 140px;
        margin-right: 16px;
        margin-left: 16px;
    }

    .east-wall-container {
        width: 90%;
    }
}

@media (max-width: 375px) {
    .east-wall-card h1 {
        font-size: 30px;
    }

    .donate-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}
