/*!
Theme Name: Wilmette Events
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Custom WordPress theme for Wilmette Events featuring Figtree, Poppins, and Oleo Script fonts, fluid responsive typography, and brand design variables.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wilmette-events
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/



/*--------------------------------------------------------------
# Imports
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Oleo+Script:wght@400;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/*--------------------------------------------------------------
# Generic & Reset
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-cream);
    color: var(--color-text-dark);
    font-family: var(--font-family-body);
    font-size: var(--body-base);
    line-height: var(--body-line-height);
}

/*--------------------------------------------------------------
# CSS Variables (:root)
--------------------------------------------------------------*/
:root {
    /* --- Brand Colors (Extracted from Design Layout) --- */
    --color-primary: #0A7B70;
    /* Primary Teal (Header / Footer / Cards) */
    --color-primary-dark: #005A52;
    /* Deep Teal Green (Footer Main) */
    --color-secondary: #3C257B;
    /* Royal Deep Purple (Buttons / Hero Overlay) */
    --color-secondary-hover: #291759;
    /* Hover State Purple */

    /* --- Accent Colors --- */
    --color-accent-coral: #D4462C;
    /* Coral Red (Accent Cursive / Banner / Borders) */
    --color-accent-coral-hover: #C53424;
    --color-accent-yellow: #F9AC1B;
    /* Highlight Warm Yellow */
    --color-accent-pink: #F8EDEC;
    /* Light Pink Soft Background Waves */

    /* --- Neutral Colors --- */
    --color-bg-cream: #FAF7F2;
    /* Main Section Background */
    --color-bg-white: #FFFFFF;
    /* Card & Container White */
    --color-text-dark: #1E1E1E;
    /* Primary Headings & Dark Text */
    --color-text-muted: #555555;
    /* Body Secondary Text */
    --color-text-light: #FFFFFF;
    /* Light Text for Dark Sections */
    --color-border: #E5E0D8;
    /* Light Neutral Borders */

    /* --- Font Families --- */
    --font-family-primary: "Figtree", sans-serif;
    --font-family-secondary: "Poppins", sans-serif;
    --font-family-accent: "Oleo Script", cursive;
    /* Used for italicized/script highlights */

    /* --- Font Assignments --- */
    --font-family-heading: var(--font-family-primary);
    --font-family-body: var(--font-family-secondary);

    /* --- Fluid Heading Sizes --- */
    --h1-size: clamp(44px, 5.2vw, 76px);
    --h2-size: clamp(34px, 3.8vw, 56px);
    --h3-size: clamp(26px, 2.8vw, 38px);
    --h4-size: clamp(22px, 2.0vw, 28px);
    --h5-size: clamp(19px, 1.5vw, 22px);
    --h6-size: clamp(16px, 1.2vw, 18px);

    /* --- Body Font Sizes --- */
    --body-large: clamp(18px, 1.2vw, 20px);
    --body-base: 16px;
    --body-small: 14px;

    /* --- Line Heights --- */
    --heading-line-height: 1.15;
    --body-line-height: 1.6;

    /* --- Font Weights --- */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* --- Layout & Spacing --- */
    --container-max: 1600px;
    --container-padding: clamp(16px, 4vw, 40px);
    --section-padding-y: clamp(60px, 7vw, 60px);

    /* --- Border Radii --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* --- Shadow --- */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Base Typography & Headings
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    margin: 0 0 0.5em 0;
    font-family: var(--font-family-heading);
    font-weight: var(--fw-extrabold);
    line-height: var(--heading-line-height);
    color: var(--color-text-dark);
}

/* Heading Sizes, Families & Default Colors */
h1 {
    font-size: var(--h1-size);
    font-family: var(--font-family-primary);
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--h2-size);
    font-family: var(--font-family-primary);
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--h3-size);
    font-family: var(--font-family-secondary);
    font-weight: var(--fw-bold);
    color: var(--color-text-dark);
}

h4 {
    font-size: var(--h4-size);
    font-family: var(--font-family-secondary);
    font-weight: var(--fw-semibold);
    color: var(--color-text-dark);
}

h5 {
    font-size: var(--h5-size);
    font-family: var(--font-family-secondary);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
}

h6 {
    font-size: var(--h6-size);
    font-family: var(--font-family-secondary);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

p {
    font-family: var(--font-family-body);
    font-size: var(--body-base);
    color: var(--color-text-dark);
    margin-top: 0;
    margin-bottom: 1.2em;
}

/* Oleo Script Accent Highlights (e.g. "Celebrations.", "This Spectacular Summer") */
.heading-accent,
h1 em,
h1 span.script,
h2 em,
h2 span.script,
h3 em,
h3 span.script {
    font-family: var(--font-family-accent);
    font-weight: var(--fw-regular);
    font-style: normal;
    color: var(--color-accent-coral);
    padding-left: 0.1em;
    display: inline-block;
    text-transform: none;
    font-size: 0.95em;
}

/* Dark Section Heading Overrides */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.hero-section h1,
.hero-section h2 {
    color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Elements & Buttons
--------------------------------------------------------------*/
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-accent-coral);
}

/* Pill Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-family: var(--font-family-secondary);
    font-size: var(--body-base);
    font-weight: var(--fw-bold);
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Primary Purple Button (#442293) with fade-in transition and clean opacity hover */
.btn-primary {
    background-color: #442293;
    color: #FFFFFF !important;
    border-radius: 40px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #FFFFFF !important;
    background-color: #351a75;
    box-shadow: 0 8px 25px rgba(68, 34, 147, 0.3);
}
}

/* Outline Coral Button */
.btn-outline-coral {
    background-color: transparent;
    border: 2px solid var(--color-accent-coral);
    color: var(--color-accent-coral);
    border-radius: 40px;
}

.btn-outline-coral:hover {
    background-color: var(--color-accent-coral);
    color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Components & Cards
--------------------------------------------------------------*/

/* Top Red Announcement Banner */
.announcement-bar {
    background-color: var(--color-accent-coral);
    color: var(--color-text-light);
    font-family: var(--font-family-secondary);
    font-size: var(--body-small);
    font-weight: var(--fw-semibold);
    text-align: center;
    padding: 8px var(--container-padding);
}

/* Event Gradient Overlay Cards */
.event-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: var(--color-text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.event-card .card-title {
    font-family: var(--font-family-primary);
    font-size: var(--h4-size);
    font-weight: var(--fw-extrabold);
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Sponsors Highlight Box */
.sponsors-card {
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-accent-coral);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

/* Site Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    font-family: var(--font-family-secondary);
    padding-top: var(--section-padding-y);
    padding-bottom: 30px;
}

.site-footer h5,
.site-footer h6 {
    color: var(--color-text-light);
}

.site-footer a {
    color: var(--color-text-light);
    opacity: 0.85;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-accent-yellow);
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.font-figtree {
    font-family: var(--font-family-primary);
}

.font-poppins {
    font-family: var(--font-family-secondary);
}

.font-oleo {
    font-family: var(--font-family-accent);
}

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

.text-coral {
    color: var(--color-accent-coral);
}

.text-teal {
    color: var(--color-primary);
}

.text-purple {
    color: var(--color-secondary);
}

.bg-cream {
    background-color: var(--color-bg-cream);
}

.bg-pink {
    background-color: var(--color-accent-pink);
}

.bg-white {
    background-color: var(--color-bg-white);
}

/*--------------------------------------------------------------
# Global Container & Layout
--------------------------------------------------------------*/
.container {
    width: 80%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (max-width: 1199px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 767px) {
    .container {
        width: 94%;
    }
}

/* ==========================================================================
   SPONSORS BOX & OVERRIDE STYLES
   ========================================================================== */
.sponsors-framed-box {
    box-shadow: none !important;
}

.sponsor-grid-item {
    border: 2px dashed #D0C9C0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.sponsor-grid-item:hover {
    transform: none !important;
    border-color: #D0C9C0 !important;
    box-shadow: none !important;
}

.sponsor-grid-item img,
.sponsor-grid-item:hover img {
    filter: none !important;
    transform: none !important;
}

.sponsors-actions .sponsor-btn-primary:hover,
.sponsors-actions a.btn:first-child:hover {
    background-color: #3C257B !important;
    border-color: #3C257B !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    box-shadow: 0 8px 25px rgba(60, 37, 123, 0.4) !important;
}