/*
 Theme Name:   AHEPA Chapter 41
 Theme URI:    https://ahepa41.org
 Description:  Custom child theme for AHEPA Chapter 41, Brooklyn, NY — Promoting Hellenism since 1922
 Author:       AHEPA Chapter 41
 Template:     kadence
 Version:      1.3.0
 Text Domain:  ahepa41
*/

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    --ahepa-navy: #17496d;
    --ahepa-navy-dark: #0f3450;
    --ahepa-gold: #C5960C;
    --ahepa-gold-light: #d4a82e;
    --ahepa-coral: #ED694B;
    --ahepa-coral-dark: #d45535;
    --ahepa-cream: #F5F2EB;
    --ahepa-charcoal: #2D2D2D;
    --ahepa-white: #FFFFFF;
    --ahepa-gray: #666666;
    --ahepa-light-gray: #e8e8e8;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 4px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: 0.3s ease;
}

/* ==========================================================================
   2. Global Typography
   ========================================================================== */

body {
    font-family: var(--font-body);
    color: var(--ahepa-charcoal);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ahepa-navy);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.1rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1.2em; }

a {
    color: var(--ahepa-navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--ahepa-gold);
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header-wrap {
    background: var(--ahepa-white);
    border-bottom: 3px solid var(--ahepa-navy);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Site branding */
.site-branding .site-title,
.site-branding .site-title a {
    font-family: var(--font-heading);
    color: var(--ahepa-navy);
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-branding .site-description {
    font-family: var(--font-body);
    color: var(--ahepa-gold);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Primary Navigation */
.header-navigation .menu > li > a {
    font-family: var(--font-body);
    color: var(--ahepa-charcoal);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.825rem;
    padding: 10px 16px;
    transition: color var(--transition);
    position: relative;
}

.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a,
.header-navigation .menu > li.current-menu-ancestor > a {
    color: var(--ahepa-navy);
}

/* Active nav indicator */
.header-navigation .menu > li.current-menu-item > a::after,
.header-navigation .menu > li.current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--ahepa-gold);
}

/* Dropdown menus */
.header-navigation .header-menu-container ul ul,
.header-navigation .sub-menu {
    background: var(--ahepa-white);
    border-top: 3px solid var(--ahepa-gold);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 220px;
}

.header-navigation .sub-menu li a {
    color: var(--ahepa-charcoal);
    font-size: 0.85rem;
    padding: 10px 20px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.header-navigation .sub-menu li a:hover {
    color: var(--ahepa-navy);
    background: var(--ahepa-cream);
    padding-left: 24px;
}

/* ==========================================================================
   4. Sticky Header
   ========================================================================== */

.item-is-fixed .site-header-wrap,
.item-is-stuck .site-header-wrap {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.wp-block-button__link,
.button,
button[type="submit"],
input[type="submit"],
.kb-button,
.entry-content .wp-block-button__link {
    background-color: var(--ahepa-coral) !important;
    color: var(--ahepa-white) !important;
    border: 2px solid var(--ahepa-coral) !important;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 14px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.kb-button:hover,
.entry-content .wp-block-button__link:hover {
    background-color: var(--ahepa-navy) !important;
    border-color: var(--ahepa-navy) !important;
    color: var(--ahepa-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Outline button variant */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--ahepa-navy) !important;
    border: 2px solid var(--ahepa-navy) !important;
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--ahepa-navy) !important;
    color: var(--ahepa-white) !important;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer-wrap,
.site-footer {
    background-color: var(--ahepa-navy) !important;
    color: var(--ahepa-white);
}

.site-footer a {
    color: var(--ahepa-gold);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--ahepa-white);
}

.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
.footer-widget-area h3,
.footer-widget-area h4 {
    color: var(--ahepa-gold) !important;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.site-footer p,
.footer-widget-area p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.8;
}

.site-footer .footer-widget-area {
    padding: 50px 0 30px;
}

/* Footer bottom bar */
.site-footer .site-footer-bottom-wrap,
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Footer social icons */
.site-footer .social-button {
    color: var(--ahepa-gold);
    transition: color var(--transition);
}

.site-footer .social-button:hover {
    color: var(--ahepa-white);
}

/* ==========================================================================
   7. Greek Meander Divider
   ========================================================================== */

.meander-divider {
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--ahepa-gold) 0%, var(--ahepa-gold) 30%,
        var(--ahepa-navy) 30%, var(--ahepa-navy) 50%,
        var(--ahepa-gold) 50%, var(--ahepa-gold) 80%,
        var(--ahepa-navy) 80%, var(--ahepa-navy) 100%
    );
    background-size: 40px 100%;
    opacity: 0.6;
    margin: 0;
    line-height: 0;
    font-size: 0;
}

/* ==========================================================================
   8. Homepage Styles
   ========================================================================== */

/* Hide page title on homepage */
.home .entry-header,
.home .page-title,
.home .entry-title {
    display: none !important;
}

/* Remove default content padding on homepage for full-bleed sections */
.home .entry-content-wrap,
.home .content-wrap {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.home .entry-content > .wp-block-group {
    margin-left: 0;
    margin-right: 0;
}

/* Hero section */
.hero-section {
    background: radial-gradient(ellipse at 30% 50%, #1d5a85 0%, #17496d 40%, #0f3450 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    width: 340px;
    height: 340px;
    background: url('https://ahepa41.org/wp-content/uploads/2026/02/greek-coat-of-arms.png') no-repeat center / contain;
    opacity: 0.04;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 340px;
    height: 340px;
    background: url('https://ahepa41.org/wp-content/uploads/2026/02/greek-coat-of-arms.png') no-repeat center / contain;
    opacity: 0.04;
    pointer-events: none;
}

.hero-section .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--ahepa-white) !important;
    font-size: 3.2rem;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}

.hero-section p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.03em;
    opacity: 0.92;
}

/* Section spacing */
.home .entry-content > .wp-block-group {
    margin-bottom: 0 !important;
}

/* Get Involved cards — gold top border and hover effect */
.home .wp-block-column[style*="border-top-color"] {
    background: var(--ahepa-white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.home .wp-block-column[style*="border-top-color"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. Content Page Styles
   ========================================================================== */

/* Content links */
.entry-content a {
    color: var(--ahepa-navy);
    text-decoration: underline;
    text-decoration-color: rgba(23, 73, 109, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition);
}

.entry-content a:hover {
    color: var(--ahepa-gold);
    text-decoration-color: var(--ahepa-gold);
}

/* Lists */
.entry-content ul {
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

/* Separator / divider */
.wp-block-separator {
    border: none;
    height: 2px;
    opacity: 1;
}

/* Officers page */
.officers-grid .wp-block-column {
    background: var(--ahepa-white);
    border-top: 4px solid var(--ahepa-gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 36px 24px 32px !important;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.officers-grid .wp-block-column:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.officers-grid .wp-block-column h3 {
    font-family: var(--font-body) !important;
    font-weight: 700;
    letter-spacing: 2.5px;
    font-size: 0.8rem !important;
    color: var(--ahepa-gold) !important;
    margin-bottom: 12px;
}

.officers-grid .wp-block-column .wp-block-separator {
    width: 40px;
    margin: 0 auto 16px;
    border: none;
    height: 2px;
    background: var(--ahepa-gold);
    opacity: 0.4;
}

.officers-grid .wp-block-column p {
    color: var(--ahepa-navy);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Payment box (Dues / Donations) */
.wp-block-group[style*="border-color:#C5960C"] {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.wp-block-group[style*="border-color:#C5960C"]:hover {
    box-shadow: var(--shadow-md);
}

/* Benefit cards (Become a Member, etc.) */
.benefit-cards .wp-block-column {
    background: var(--ahepa-white);
    border-top: 4px solid var(--ahepa-gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px 24px 28px !important;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-cards .wp-block-column:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-cards .wp-block-column h4 {
    color: var(--ahepa-navy);
    margin-bottom: 8px;
}

.benefit-cards .wp-block-column p {
    color: var(--ahepa-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Pillar cards (About AHEPA) */
.pillar-cards .wp-block-column {
    background: var(--ahepa-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 20px 24px !important;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-cards .wp-block-column:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pillar-cards .wp-block-column h4 {
    color: var(--ahepa-navy);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pillar-cards .wp-block-column p {
    color: var(--ahepa-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.pillar-cards .pillar-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}

/* Info card (reusable gold-bordered box) */
.info-card {
    border-top: 4px solid var(--ahepa-gold) !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    box-shadow: var(--shadow-sm);
}

/* CTA box (styled call-to-action section) */
.cta-box {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.cta-box:hover {
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   10. WPForms Contact Form
   ========================================================================== */

.wpforms-container .wpforms-field-label {
    font-family: var(--font-body);
    color: var(--ahepa-navy);
    font-weight: 600;
    font-size: 0.9rem;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
    border: 1px solid var(--ahepa-light-gray);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
    border-color: var(--ahepa-navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 73, 109, 0.15);
}

/* ==========================================================================
   11. News Cards & Event Cards
   ========================================================================== */

.news-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   12a. Photo Gallery
   ========================================================================== */

.wp-block-gallery .wp-block-image img {
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   12. Responsive — Tablet (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section::before {
        width: 240px;
        height: 240px;
        right: 5%;
    }

    .hero-section::after {
        width: 240px;
        height: 240px;
        left: 5%;
    }

    .header-navigation .menu > li > a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   13. Responsive — Mobile (max 768px)
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Hero section mobile */
    .hero-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .hero-section::before {
        width: 200px;
        height: 200px;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.04;
    }

    .hero-section::after {
        display: none;
    }

    /* Stack columns */
    .wp-block-columns {
        flex-direction: column !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 20px;
    }

    /* Buttons full width on mobile */
    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        display: block;
        text-align: center;
    }

    /* Payment box mobile */
    .wp-block-group[style*="border-color:#C5960C"] {
        padding: 24px !important;
    }

    .wp-block-group[style*="border-color:#C5960C"] p[style*="font-size:48px"] {
        font-size: 36px !important;
    }

    /* Footer mobile */
    .site-footer .footer-widget-area {
        padding: 30px 0 20px;
    }

    /* Meander thinner on mobile */
    .meander-divider {
        height: 4px;
    }
}

/* ==========================================================================
   14. Responsive — Small Mobile (max 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    h2 { font-size: 1.3rem; }
}

/* ==========================================================================
   15. Print Styles
   ========================================================================== */

@media print {
    .site-header-wrap,
    .site-footer-wrap,
    .meander-divider,
    .wp-block-button {
        display: none !important;
    }

    body {
        color: #000;
        font-size: 12pt;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
