/*
Theme Name: West Hollywood Lifeguards Union
Theme URI: https://weho-lifeguards.org
Description: Child theme for West Hollywood Lifeguards organizing with AFSCME. Based on Twenty Twenty-Five with union-specific styling and AFSCME green branding.
Author: West Hollywood Lifeguards Organizing Committee
Author URI: https://weho-lifeguards.org
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weho-lifeguards
Tags: union, organizing, labor, afscme, custom-colors, responsive
*/

/* ==========================================================================
   AFSCME Brand Colors & Theme Variables
   ========================================================================== */

:root {
    /* AFSCME Green - Primary Brand Color */
    --afscme-green: #00A94F;
    --afscme-green-dark: #008040;
    --afscme-green-light: #00C95F;

    /* West Hollywood Pride Colors - Inclusive Rainbow + Trans Flag */
    --pride-red: #E40303;
    --pride-orange: #FF8C00;
    --pride-yellow: #FFED00;
    --pride-green: #008026;
    --pride-blue: #24408E;
    --pride-purple: #732982;

    /* Trans Flag Colors */
    --trans-blue: #5BCEFA;
    --trans-pink: #F5A9B8;
    --trans-white: #FFFFFF;

    /* West Hollywood City Colors */
    --weho-blue: #0066B3;
    --weho-navy: #003B5C;
    --dark-navy: #1D2731;
    --neutral-gray: #EDF2F7;
    --text-dark: #2D3748;
    --light-gray: #F7FAFC;

    /* Override Twenty Twenty-Five default colors */
    --wp--preset--color--primary: var(--afscme-green);
    --wp--preset--color--accent: var(--afscme-green);
}

/* ==========================================================================
   Universal Box Sizing - Prevent Padding Overflow
   ========================================================================== */

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

/* ==========================================================================
   Typography
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-navy);
}

/* ==========================================================================
   Header & Navigation - Beautiful Design
   ========================================================================== */

.site-header {
    background-color: white;
    border-bottom: 3px solid var(--afscme-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Pride accent strip on header */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    );
    z-index: 1000;
}

.header-container {
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.union-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--afscme-green) 0%, var(--afscme-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 169, 79, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.union-badge:hover .badge-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 169, 79, 0.4);
}

.site-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.site-title a {
    color: var(--dark-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--afscme-green);
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--afscme-green);
    background-color: rgba(0, 169, 79, 0.08);
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--afscme-green);
    background-color: rgba(0, 169, 79, 0.1);
}

/* Header CTA Button */
.header-cta {
    margin-left: 10px;
}

.btn-header {
    background: linear-gradient(135deg, var(--afscme-green) 0%, var(--afscme-green-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 169, 79, 0.25);
    letter-spacing: 0.3px;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 169, 79, 0.35);
    background: linear-gradient(135deg, var(--afscme-green-dark) 0%, var(--afscme-green) 100%);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--afscme-green);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 10px;
}

.menu-toggle:hover {
    background-color: rgba(0, 169, 79, 0.08);
    border-color: var(--afscme-green-dark);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    height: 3px;
    background-color: var(--afscme-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle-text {
    color: var(--afscme-green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Menu Toggle Animation */
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Hide mobile-only menu item on desktop */
@media (min-width: 961px) {
    .mobile-only-menu-item {
        display: none;
    }
}

/* Responsive: Tablet and Mobile */
@media (max-width: 960px) {
    .header-inner {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 2px solid var(--afscme-green);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
        flex-direction: column;
        gap: 5px;
        min-width: 220px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-menu.toggled {
        display: flex;
    }

    /* Hide the separate header CTA on mobile - it's now in the menu */
    .header-cta {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-title {
        font-size: 1.2rem;
    }

    .site-description {
        font-size: 0.75rem;
    }

    .union-badge .badge-circle {
        width: 48px;
        height: 48px;
    }

    .union-badge .badge-circle svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.wp-block-button__link,
.button,
.btn {
    background-color: var(--afscme-green);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
}

.wp-block-button__link:hover,
.button:hover,
.btn:hover {
    background-color: var(--afscme-green-dark);
    color: white;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--afscme-green);
    border: 2px solid var(--afscme-green);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--afscme-green);
    color: white;
}

/* ==========================================================================
   Hero Section - West Hollywood Inclusive Design
   ========================================================================== */

.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
    border-bottom: 6px solid transparent;
    border-image: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    ) 1;
}

/* Subtle overlay for readability without heavy gradient */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 59, 92, 0.75); /* WeHo navy with transparency */
    backdrop-filter: blur(2px);
}

/* Pride accent stripe */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(
        to right,
        var(--pride-red) 0%,
        var(--pride-orange) 14.28%,
        var(--pride-yellow) 28.56%,
        var(--pride-green) 42.84%,
        var(--trans-blue) 57.12%,
        var(--pride-blue) 71.4%,
        var(--pride-purple) 85.68%,
        var(--trans-pink) 100%
    );
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
    padding: 60px 20px;
}

.section-alt {
    background-color: var(--neutral-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-navy);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--afscme-green);
    margin: 20px auto 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--afscme-green);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--dark-navy);
    color: white;
    padding: 40px 20px 20px;
}

.site-footer a {
    color: var(--afscme-green-light);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-branding {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section {
        padding: 40px 20px;
    }

    /* Safety comparison section - stack on mobile */
    #safety-issue .container > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

/* ==========================================================================
   West Hollywood Pride & Diversity Elements
   ========================================================================== */

/* Pride accent for section titles */
.section-title::after {
    background: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--afscme-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    ) !important;
}

/* Diversity statement banner */
.diversity-statement {
    background: linear-gradient(135deg, var(--weho-blue) 0%, var(--weho-navy) 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-top: 4px solid transparent;
    border-image: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    ) 1;
}

/* Pool image styling - for when you add pool photos */
.pool-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pool-image-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    );
    z-index: 2;
}

/* Navigation cards on homepage */
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Pride border utility class */
.pride-border {
    border: 3px solid transparent;
    border-image: linear-gradient(
        to right,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--trans-blue),
        var(--pride-blue),
        var(--pride-purple)
    ) 1;
}

/* Trans-inclusive accent for testimonials or cards */
.trans-inclusive-accent {
    border-left: 5px solid var(--trans-blue);
    border-right: 5px solid var(--trans-pink);
}

/* Alternative card with pride corner */
.pride-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 40px solid var(--pride-red);
    border-right: 40px solid transparent;
}

/* WeHo-specific styling for aquatic center reference */
.aquatic-center-banner {
    background: var(--weho-blue);
    color: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.aquatic-center-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(91, 206, 250, 0.3)
    ); /* Trans blue wave effect */
}

/* Inclusive button variants */
.btn-pride {
    background: linear-gradient(
        135deg,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--pride-blue),
        var(--pride-purple)
    );
    color: white;
    border: none;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.btn-pride:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* WeHo city colors alternate button */
.btn-weho {
    background-color: var(--weho-blue);
    color: white;
}

.btn-weho:hover {
    background-color: var(--weho-navy);
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section::before {
        background: rgba(0, 0, 0, 0.9);
    }

    .pride-border,
    .section-title::after {
        border-width: 4px;
    }
}

/* ============================================
   RESPONSIVE / MOBILE STYLES
   ============================================ */

/* Tablet and below (< 960px) */
@media screen and (max-width: 960px) {
    /* Stack navigation cards vertically on smaller screens */
    .nav-card {
        min-height: auto;
    }

    /* Ensure tower comparison images are readable */
    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile devices (< 768px) */
@media screen and (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Stack tower comparison vertically on mobile */
    .section#about .container > div > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust section padding on mobile */
    .section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* Issue cards stack better on mobile */
    .issues-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Testimonials full width on mobile */
    .testimonial {
        padding: 25px;
    }

    /* Contact section mobile */
    .contact-info {
        padding: 30px 20px !important;
    }

    /* Buttons full width on very small screens */
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
    }

    /* Footer adjustments */
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Very small mobile (< 480px) */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Reduce padding on very small screens */
    .nav-card,
    .issue-card {
        padding: 20px !important;
    }

    /* Make buttons more touch-friendly */
    .btn,
    .wp-block-button__link {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
