/*
Theme Name: Stroke Survivors Event
Theme URI: https://yourwebsite.com/
Author: Antigravity
Author URI: https://yourwebsite.com/
Description: A custom WordPress theme for the young stroke survivors evening event.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stroke-survivors
*/

/* Emotional Color Palette - "Journey to Sunrise" */
:root {
    --color-twilight: #1F1135; /* Deep, introspective dark purple */
    --color-dusk: #48235E;     /* Rich plum */
    --color-passion: #E84855;  /* Vibrant stroke survivor red/coral */
    --color-hope: #FF9B71;     /* Warm peach/sunrise */
    --color-light: #FFF8F0;    /* Soft, warm cream background */
    
    --text-dark: #2B1E3A;
    --text-light: #F9F6F0;
    --text-muted: rgba(255,255,255,0.7);
    
    --gofundme-color: #00A669;
    --gofundme-hover: #008f5a;
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-passion);
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.8; /* Higher line height for readability */
    background-color: var(--color-light);
}

h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 300;
}

strong {
    font-weight: 600;
}

/* Divi Structure Mappings */
.divi-section {
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.divi-row {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.split-row {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
}

.split-row .divi-column {
    flex: 1 1 calc(50% - 40px);
}

.align-center {
    align-items: center;
}

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

/* Header - Floating Pro Max Style */
.site-header {
    background: rgba(31, 17, 53, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    padding: 15px 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.site-header .divi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-light);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.8rem;
    cursor: pointer;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-hope);
}

.header-nav .btn-primary {
    background: var(--color-passion);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.header-nav .btn-primary:hover {
    background: var(--color-hope);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-gofundme {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-passion);
    color: white !important;
    box-shadow: 0 10px 25px rgba(232, 72, 85, 0.4);
}

.btn-primary:hover:not([disabled]) {
    background-color: var(--color-hope);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 155, 113, 0.5);
}

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

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-twilight) !important;
}

.btn-gofundme {
    background-color: var(--gofundme-color);
    color: white !important;
    box-shadow: 0 10px 25px rgba(0, 166, 105, 0.3);
    margin-top: 1rem;
}

.btn-gofundme:hover {
    background-color: var(--gofundme-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 166, 105, 0.4);
}

/* Hero Section - The Journey Begins */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-twilight) 0%, var(--color-dusk) 50%, #8C3061 100%);
    color: var(--text-light);
    padding-top: 100px;
}

.hero-section h1 {
    color: var(--color-light);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero-title span {
    color: var(--color-hope);
}

.hero-subtitle {
    font-size: 1.7rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section - Sunlight & Reality */
.about-section {
    background-color: var(--color-light);
    color: var(--text-dark);
}

.about-section h2 {
    font-size: 3.5rem;
    color: var(--color-dusk);
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(31, 17, 53, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.6s ease;
    border: 10px solid white;
}

.about-image:hover {
    transform: rotate(2deg) scale(1.02);
}

/* Mission Section - The Heart/Passion */
.mission-section {
    background-color: var(--color-passion);
    color: white;
}

.mission-section h2 {
    font-size: 4rem;
    color: var(--color-light);
}

.lead-text {
    font-size: 1.8rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

.mission-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.highlight-item {
    background: var(--color-twilight);
    padding: 30px 50px;
    border-radius: 60px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-hope);
    box-shadow: 0 15px 30px rgba(31, 17, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Donate Section - Introspection & Support */
.donate-section {
    background-color: var(--color-dusk);
    color: var(--text-light);
}

.donate-section h2 {
    font-size: 3.5rem;
    color: var(--color-hope);
}

.donate-section em {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin: 2rem 0;
    color: white;
    font-style: italic;
}

/* Tickets Section - Clean & Functional */
.tickets-section {
    background-color: var(--color-light);
    color: var(--text-dark);
}

.tickets-section h2 {
    font-size: 3.5rem;
    color: var(--color-twilight);
}

/* Ticket Sale & Map Section */
.tickets-section .split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .tickets-section .split-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.details-column, .map-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-details {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(31, 17, 53, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    cursor: default;
}

.event-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(31, 17, 53, 0.12);
    border-color: var(--color-hope);
}

.details-column .btn-primary {
    margin-top: auto;
    width: fit-content;
}

.map-column iframe {
    flex-grow: 1;
    min-height: 320px;
    width: 100%;
}

.detail-row {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 20px;
    align-items: center;
}

.detail-row strong {
    color: var(--color-passion);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-row span {
    font-weight: 600;
    font-size: 1.4rem;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.map-column iframe {
    transition: transform 0.4s ease;
}

.map-column iframe:hover {
    transform: scale(1.02);
}

.directions-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.btn-directions {
    background-color: var(--color-passion);
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(232, 72, 85, 0.2);
    border: none;
}

.btn-directions:hover {
    background-color: var(--color-hope);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 155, 113, 0.4);
}

.btn-directions svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer / Contact */
.site-footer {
    background-color: var(--color-twilight);
    color: white;
    padding: 100px 20px 50px;
}

.site-footer h2 {
    color: var(--color-hope);
    font-size: 3rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    letter-spacing: 1px;
}

.social-links a:hover {
    background: var(--color-passion);
    border-color: var(--color-passion);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 72, 85, 0.3);
}

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    margin-top: 60px;
}

/* === Responsive Mobile Readiness === */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(31, 17, 53, 0.98);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .header-nav.is-open {
        display: flex;
    }
    
    .header-nav a {
        margin: 15px 0;
        display: inline-block;
    }

    .header-nav .btn-primary {
        display: inline-block;
        margin-top: 10px;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .split-row {
        gap: 50px;
    }
    
    .split-row .divi-column {
        flex: 1 1 100%;
    }
    
    .reverse-mobile {
        flex-direction: column-reverse;
    }
}

/* Tight Mobile Optimization */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }
    
    .divi-section {
        padding: 70px 20px;
    }
    
    .site-header {
        padding: 15px 20px;
        text-align: center;
    }
    
    .header-logo {
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    /* Full width buttons for easy thumb tapping */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-cta a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .about-section h2, .donate-section h2, .tickets-section h2 {
        font-size: 2.5rem;
    }
    
    .mission-section h2 {
        font-size: 2.8rem;
    }
    
    .lead-text {
        font-size: 1.3rem;
    }
    
    .mission-highlights {
        gap: 15px;
        margin-top: 30px;
    }
    
    .highlight-item {
        font-size: 1.2rem;
        padding: 20px 30px;
        width: 100%;
        text-align: center;
    }
    
    .donate-section em {
        font-size: 1.5rem;
    }
    
    .btn-gofundme {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .event-details {
        padding: 25px 20px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row span {
        font-size: 1.2rem;
    }
    
    .site-footer {
        padding: 70px 20px 40px;
    }
    
    .site-footer h2 {
        font-size: 2.3rem;
    }
    
    .social-links a {
        width: 100%;
        text-align: center;
    }
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-passion);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-hope);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}
