/*
Theme Name: Switzer Investing Club
Theme URI: https://switzerinvestingclub.com.au
Author: Switzer Financial Group
Author URI: https://switzer.com.au
Description: Custom theme for Switzer Investing Club - Business and Investing events featuring Peter Switzer
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: switzer-investing-club
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --navy: #0a1628;
    --gold: #c9a962;
    --gold-light: #dfc98a;
    --cream: #f8f6f1;
    --charcoal: #2a2a2a;
    --warm-white: #fdfcfa;
    --white: #ffffff;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.serif {
    font-family: 'Cormorant Garamond', serif;
}

/* ==========================================================================
   Top Banner (Switzer Network Links)
   ========================================================================== */
.top-banner {
    background: var(--charcoal);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.top-banner a {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.top-banner a:hover {
    color: var(--gold);
}

.top-banner .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
    background: var(--navy);
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.site-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warm-white);
    letter-spacing: 0.05em;
}

.site-logo span {
    color: var(--gold);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--gold);
}

.main-navigation .nav-cta {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.75rem 1.5rem;
}

.main-navigation .nav-cta:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--warm-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 90vh;
    background: var(--navy);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(201, 169, 98, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.event-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--warm-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--warm-white);
}

.meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.meta-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Buttons / CTAs
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

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

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: 6rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--navy);
    font-weight: 400;
}

.section-title.light {
    color: var(--warm-white);
}

.section-intro {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border: 1px solid var(--gold);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 1rem;
}

/* ==========================================================================
   Events Section
   ========================================================================== */
.events-section {
    background: var(--cream);
}

.events-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.event-card-image {
    height: 200px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-card-content {
    padding: 2rem;
}

.event-card-date {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.event-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.event-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card-link:hover {
    color: var(--navy);
}

.event-card-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Speakers Section
   ========================================================================== */
.speakers-section {
    background: var(--white);
}

.speakers-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.speakers-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

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

.speaker-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-role {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.speaker-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 500;
}

.speaker-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.credential {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: var(--cream);
    color: var(--charcoal);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.speaker-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Why Attend / Benefits Section
   ========================================================================== */
.benefits-section {
    background: var(--navy);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.benefits-section .section-header {
    text-align: left;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    padding: 2.5rem;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.08);
}

.benefit-item:hover {
    border-color: var(--gold-light);
    background: rgba(201, 169, 98, 0.15);
    transform: translateY(-3px);
}

.benefit-text {
    color: var(--warm-white);
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
    font-weight: 500;
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimonial-section {
    background: var(--cream);
}

.testimonial-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.testimonial-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimonial-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.testimonial-text {
    text-align: left;
}

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--gold);
    line-height: 0.5;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.signature-image {
    width: 120px;
    height: auto;
    margin: 1.5rem 0 1rem;
    filter: brightness(0);
}

.quote-author {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

/* ==========================================================================
   Registration Section
   ========================================================================== */
.register-section {
    background: var(--warm-white);
}

.register-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.register-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.register-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

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

.register-detail-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.register-detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--navy);
}

.seats-remaining {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1.5rem;
}

.seats-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    background: var(--navy);
    padding: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ==========================================================================
   Sticky CTA Bar
   ========================================================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--gold);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-text {
    color: var(--warm-white);
    font-size: 0.9rem;
}

.sticky-cta-btn {
    background: var(--gold);
    color: var(--navy);
    padding: 0.75rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-cta-btn:hover {
    background: var(--gold-light);
    color: var(--navy);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--warm-white);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1100px) {
    .speakers-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 1.5rem 2rem;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section {
        padding: 4rem 2rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image::before {
        display: none;
    }

    .speakers-grid,
    .speakers-grid.three-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testimonial-image {
        width: 200px;
        margin: 0 auto;
    }

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

    .register-details {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sticky-cta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .sticky-cta-text {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .top-banner {
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-meta {
        gap: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WordPress Admin Bar Adjustment
   ========================================================================== */
.admin-bar .sticky-cta {
    /* Adjust for admin bar when logged in */
}

.admin-bar .site-header {
    /* Adjust header if needed */
}
