/*
Theories on Tap - Simple HTML/CSS Website
Clean, modern design for brewery lecture events
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* CSS Variables for Color Scheme */
:root {
    --primary-orange: #FE8101;
    --dark-bg: #202020;
    --light-beige: #e2c588;
    --cream: #f6e5cd;
    --secondary-orange: #ed9c14;
    --white: #ffffff;

    /* Font Variables */
    --title-font: 'Lexend Deca', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    color: var(--cream);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
}

/* SVG Geometric Background */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-shapes img {
    position: absolute;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 500;
}

p, span, div, a, li {
    font-family: var(--body-font);
}

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

/* Header Styles */
.site-header {
    background: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.site-logo img {
    max-height: 120px;
    width: auto;
}

.site-logo h1 {
    font-family: var(--title-font);
    color: var(--primary-orange);
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(254, 129, 1, 0.3);
}

.site-logo p {
    font-family: var(--body-font);
    color: var(--light-beige);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Logo Area */
.logo-upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.logo-placeholder {
    text-align: center;
    color: var(--light-beige);
    font-size: 0.9rem;
    font-weight: 300;
}

.site-logo img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    gap: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--dark-bg);
    background-color: var(--cream);
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--light-beige);
    transition: all 0.3s ease;
}

.nav-menu li a.active {
    background-color: var(--light-beige);
    border-color: var(--light-beige);
    color: var(--dark-bg);
}

.nav-menu li a {
    background-color: transparent;
    color: var(--cream);
    border-color: var(--light-beige);
}

.nav-menu li a:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: var(--title-font);
    font-size: 5.5rem;
    color: var(--cream);
    font-weight: 500;
    max-width: 1200px;
    line-height: 1.1;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Events Section */
.events-section {
    background-color: var(--light-beige);
    padding: 80px 0;
    color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--title-font);
    text-align: center;
    font-size: 3.5rem;
    color: var(--dark-bg);
    margin-bottom: 60px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.events-list {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    align-items: center;
}

.event-row:last-child {
    border-bottom: none;
}

.event-row:hover {
    background-color: #f9f9f9;
}

.event-location {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--dark-bg);
    text-align: left;
}

.event-date {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-orange);
    font-weight: 500;
    text-align: center;
}

.event-topic {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--dark-bg);
    text-align: right;
}

/* Page Styles */
.page-content {
    background: transparent;
    color: var(--cream);
    padding: 80px 0;
    min-height: 70vh;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-content h1 {
    font-family: var(--title-font);
    font-size: 3.5rem;
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 500;
}

.page-content h2 {
    font-family: var(--title-font);
    color: var(--light-beige);
    margin: 40px 0 20px 0;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
}

.page-content h3 {
    font-family: var(--title-font);
    color: var(--secondary-orange);
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.page-content p {
    font-family: var(--body-font);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-align: center;
}

.page-content ul {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-content li {
    margin-bottom: 10px;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--light-beige);
    backdrop-filter: blur(10px);
}

.contact-form label,
.contact-form input,
.contact-form textarea,
.contact-form select {
    color: var(--dark-bg);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--body-font);
    font-weight: 500;
    color: var(--dark-bg);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 400;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(254, 129, 1, 0.15);
    background-color: #fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(254, 129, 1, 0.2);
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 129, 1, 0.3);
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto 40px auto;
    max-width: 700px;
    text-align: center;
    font-family: var(--body-font);
    font-weight: 500;
    display: none !important; /* Hide by default */
}

/* Ensure banners are hidden initially */
#success-banner,
#error-banner {
    display: none !important;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Call to Action Styles */
.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: rgba(254, 129, 1, 0.1);
    border-radius: 15px;
    border: 2px solid var(--primary-orange);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h3 {
    font-family: var(--title-font);
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-section p {
    font-family: var(--body-font);
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--cream);
}

.cta-section a {
    background-color: var(--primary-orange);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-section a:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-2px);
}

/* Contact Additional Info */
.contact-additional {
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: center;
    padding: 25px;
    background-color: rgba(226, 197, 136, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(226, 197, 136, 0.3);
}

.contact-additional h3 {
    font-family: var(--title-font);
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-additional p {
    font-family: var(--body-font);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--cream);
}

.contact-additional strong {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--light-beige);
}

/* Footer */
.site-footer {
    background: transparent;
    padding: 60px 0 40px 0;
    border-top: 4px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-family: var(--title-font);
    color: var(--primary-orange);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.footer-text {
    font-family: var(--body-font);
    color: var(--light-beige);
    font-size: 1rem;
    font-weight: 400;
}

/* Social Media Icons */
.social-media {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(226, 197, 136, 0.1);
    border: 1px solid var(--light-beige);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 129, 1, 0.3);
}

.social-link:hover svg {
    color: var(--white);
}

.social-link.instagram svg {
    color: var(--light-beige);
}

.social-link.tiktok svg {
    color: var(--light-beige);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        text-align: center;
        width: 100%;
    }

    .events-list {
        margin: 0 20px;
        padding: 15px;
    }

    .event-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
    }

    .event-location,
    .event-date,
    .event-topic {
        text-align: center;
    }

    .contact-form {
        padding: 30px;
        margin: 30px 20px;
    }

    .page-content h1 {
        font-size: 2.5rem;
    }

    /* Scale down background shapes on mobile */
    .background-shapes img {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.8rem;
        padding: 0 20px;
    }

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

    .page-content h1 {
        font-size: 2rem;
    }

    .site-logo h1 {
        font-size: 2rem;
    }

    /* Further scale down background shapes on small mobile */
    .background-shapes img {
        transform: scale(0.5);
    }
}
