/* style.css - Ministry of Music 
   Responsive, Mobile-First Stylesheet */

/* --- CSS VARIABLES --- */
:root {
    /* Colors */
    --clr-white: #ffffff;
    --clr-light: #f9f8fa;
    /* Subtle purple-tinted white for alternates */
    --clr-dark: #120e17;
    /* Deep purple-black */
    --clr-dark-accent: #23113d;
    --clr-purple: #5c2c90;
    /* Ministry Purple */
    --clr-purple-light: #8e54c9;
    --clr-gold: #c6a254;
    /* Ministry Gold */
    --clr-gold-light: #e5cd8e;

    --text-primary: #120e17;
    --text-secondary: #4a4054;
    --text-muted: #7b6f85;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Animation & Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;

    /* Miscellaneous */
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 30px rgba(92, 44, 144, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(198, 162, 84, 0.15);
}

/* --- RESET & ACCESSIBILITY --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling */
    font-size: 16px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--clr-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.lead-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-primary);
    line-height: 1.8;
}

.italic {
    font-style: italic;
}

.font-mono {
    font-family: monospace;
    letter-spacing: 1px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.bg-light {
    background-color: var(--clr-light);
}

.bg-dark {
    background-color: var(--clr-dark);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-white);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white p {
    color: var(--clr-white);
}

.mt-8 {
    margin-top: var(--space-md);
}

.max-w-3xl {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--clr-purple);
    color: var(--clr-white);
    border: 2px solid var(--clr-purple);
}

.btn-primary:hover {
    background-color: var(--clr-dark);
    border-color: var(--clr-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 44, 144, 0.3);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--clr-gold), #a6843c);
    border: none;
    color: var(--clr-dark);
    font-weight: 700;
}

.btn-large:hover {
    background: linear-gradient(135deg, #a6843c, var(--clr-gold));
    box-shadow: 0 10px 25px rgba(198, 162, 84, 0.3);
    color: var(--clr-dark);
}

/* --- HEADER & NAVIGATION (MOBILE FIRST) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 249, 252, 0.98);
    /* Very light lavender/white */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(92, 44, 144, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    /* subtle shadow */
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--space-md);
    max-width: 1280px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 35px;
    /* More compact logo */
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-dark-accent);
    margin-left: 10px;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-support-btn {
    display: none;
    /* Hidden on mobile */
    border-radius: 50px;
    /* rounded corners */
    white-space: nowrap;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    z-index: 1001;
    /* Above mobile menu */
}

.hamburger-btn .bar {
    height: 2px;
    width: 100%;
    background-color: var(--clr-dark);
    border-radius: 4px;
    transition: var(--transition-normal);
}

/* Mobile Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--clr-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-dark);
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-purple);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Active States */
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Desktop Navigation Nav - Media Query later */

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--space-md) var(--space-xl);
    background: radial-gradient(circle at center, #ffffff 0%, var(--clr-light) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1s ease-out forwards;
}

.hero-logo {
    height: 120px;
    margin: 0 auto var(--space-md);
    filter: drop-shadow(0 10px 20px rgba(92, 44, 144, 0.15));
    animation: float 6s infinite ease-in-out;
}

.hero-title {
    background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Animations */
.hero-animations {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.equalizer {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 40px;
}

.equalizer .bar {
    width: 6px;
    background: linear-gradient(to top, var(--clr-gold), var(--clr-purple));
    border-radius: 3px;
    height: 10px;
    animation: equalize 1s infinite alternate ease-in-out;
}

.equalizer .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.equalizer .bar:nth-child(2) {
    animation-delay: 0.3s;
}

.equalizer .bar:nth-child(3) {
    animation-delay: 0.5s;
    height: 30px;
}

.equalizer .bar:nth-child(4) {
    animation-delay: 0.2s;
}

.equalizer .bar:nth-child(5) {
    animation-delay: 0.4s;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: drift 15s infinite linear;
}

.note1 {
    top: 20%;
    left: 10%;
    color: var(--clr-purple);
    animation-duration: 12s;
}

.note2 {
    top: 60%;
    right: 15%;
    color: var(--clr-gold);
    font-size: 2.5rem;
    animation-delay: 2s;
    animation-direction: reverse;
}

.waves {
    top: 80%;
    left: 20%;
    color: var(--clr-dark);
}

.headphones {
    top: 30%;
    right: 10%;
    color: var(--clr-purple);
    font-size: 3rem;
    animation: float 5s infinite alternate ease-in-out;
}

.mic {
    bottom: 15%;
    right: 30%;
    font-size: 1.5rem;
}

/* Background Particles Generator */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(198, 162, 84, 0.2) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.5;
    animation: bgScroll 60s linear infinite;
}

/* --- SECTIONS (Shared) --- */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

/* --- MISSION SECTION --- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.card {
    background: var(--clr-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stats-card {
    background: linear-gradient(145deg, var(--clr-dark-accent), var(--clr-dark));
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat h3 {
    color: var(--clr-gold);
    margin-bottom: 5px;
}

.stat p {
    color: #dfd8e8;
    margin: 0;
}

/* --- POLICY SECTION --- */
.policy-callout {
    position: relative;
    padding: var(--space-xl) var(--space-md);
}

.policy-callout::before,
.policy-callout::after {
    content: '"';
    position: absolute;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(198, 162, 84, 0.1);
    /* faded gold */
    line-height: 1;
}

.policy-callout::before {
    top: 0;
    left: 0;
}

.policy-callout::after {
    bottom: -2rem;
    right: 0;
    transform: rotate(180deg);
}

.policy-callout p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-family: var(--font-heading);
    color: var(--clr-dark);
}

/* --- PROGRAMS SECTION --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.program-card {
    padding: var(--space-lg) var(--space-md);
    background: var(--clr-white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: rgba(92, 44, 144, 0.1);
}

.program-card .icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-sm);
    background: var(--clr-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-purple);
}

/* --- FUNRAISING SECTION --- */
#fundraising {
    background-image: linear-gradient(rgba(18, 14, 23, 0.9), rgba(18, 14, 23, 0.95)), url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 25 50 50 T 100 50" stroke="rgba(198,162,84,0.1)" fill="none" stroke-width="2"/></svg>');
    background-size: cover;
    background-attachment: fixed;
}

/* --- CONTACT SECTION --- */
.contact-list li {
    margin-bottom: var(--space-sm);
}

.contact-list a {
    color: var(--clr-purple);
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--clr-gold);
}

.contact-form {
    background: var(--clr-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #faf9fb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-purple);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(92, 44, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.submit-btn {
    width: 100%;
    margin-top: var(--space-sm);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin: 0 auto var(--space-sm);
    filter: brightness(0) invert(1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--clr-gold-light);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 14, 23, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--clr-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--clr-dark);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal-logo {
    height: 60px;
    margin: 0 auto 15px;
}

.modal-lead {
    font-size: 0.95rem;
}

.bank-details-card {
    background: var(--clr-light);
    border: 1px solid rgba(92, 44, 144, 0.1);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.detail-row,
.detail-col {
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.bank-details-card .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.bank-details-card .value {
    color: var(--clr-dark);
    font-size: 1.1rem;
}

.account-number-box {
    background: var(--clr-white);
    border: 2px dashed var(--clr-gold);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.acc-info .value {
    font-size: 1.25rem;
    color: var(--clr-purple);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--clr-light);
    color: var(--clr-purple);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #ebdfff;
}

.copy-btn.copied {
    background: #d4edda;
    color: #155724;
}

.modal-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes equalize {
    0% {
        height: 10px;
    }

    100% {
        height: 40px;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        opacity: 0.3;
    }

    50% {
        transform: translate(50px, -50px) rotate(180deg);
        opacity: 0.1;
    }

    75% {
        opacity: 0.2;
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes bgScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -100px -100px;
    }
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* Small devices (phones set above, modifying for 414px+) */
@media screen and (min-width: 414px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .hero-animations {
        height: 80px;
    }
}

/* Tablets (768px+) */
@media screen and (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-links {
        border-top: none;
        padding-top: 0;
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* Desktop (1024px+) */
@media screen and (min-width: 1024px) {
    .nav-container {
        padding: 0 var(--space-md);
        /* Reduced to fit better on standard laptops */
        height: 75px;
        max-width: 1400px;
        /* give it a bit more room */
    }

    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    /* Disable Mobile Menu styles for desktop */
    .hamburger-btn {
        display: none;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-nav-action {
        display: none !important;
    }

    .nav-support-btn {
        display: inline-flex;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
        transition: none;
        flex: 1;
        /* allow nav-menu to take space */
        display: flex;
        justify-content: center;
        /* Center the links */
        align-items: center;
        /* Properly center vertically */
    }

    .nav-list {
        flex-direction: row;
        gap: 5px;
        /* Tighter gap to avoid pushing */
        justify-content: center;
        align-items: center;
    }

    .nav-link {
        font-size: 0.95rem;
        /* Slightly smaller for strict 1-line fit */
        padding: 8px 12px;
        /* Consistent inner spacing */
        white-space: nowrap;
        /* Prevent any wrapping */
    }

    .about-img {
        order: -1;
    }
}

/* Large Desktop (1280px+) */
@media screen and (min-width: 1280px) {
    h1 {
        font-size: 4.5rem;
    }
}

/* Extra Large (1440px - 1920px) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-section {
        background-size: cover;
    }
}