/* ==========================================================================
   HeadPop — base design ported from the original static site (grey/gold),
   plus new components: pillars, carousel, calendar, ticket modal, newsletter.
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-grey: #2c3e50;
    --dark-grey: #1a1a1a;
    --medium-grey: #4a4a4a;
    --light-grey: #f5f5f5;
    --lighter-grey: #e8e8e8;
    --accent-color: #d4a017;
    --accent-dark: #b8860b;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
html { scroll-behavior: smooth; }

/* Navigation */
.navbar {
    background-color: var(--primary-grey);
    padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.5rem; font-weight: bold; color: var(--accent-color); letter-spacing: 1px; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { color: var(--white); text-decoration: none; font-weight: 500; transition: color .3s; position: relative; }
.nav-link:hover { color: var(--accent-color); }
.nav-link::after { content:''; position:absolute; bottom:-5px; left:0; width:0; height:2px;
    background-color: var(--accent-color); transition: width .3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background-color: var(--white); transition: all .3s; }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-grey) 0%, var(--dark-grey) 100%);
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero-decoration { position:absolute; width:500px; height:500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity:.1; border-radius:50%; top:-250px; right:-250px; animation: float 20s infinite ease-in-out; }
@keyframes float { 0%,100%{ transform: translate(0,0) rotate(0deg);} 50%{ transform: translate(-50px,50px) rotate(180deg);} }
.hero-content { text-align: center; color: var(--white); z-index: 1; max-width: 800px; padding: 2rem; }
.hero-title { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; animation: fadeInUp 1s ease; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 2rem; color: var(--lighter-grey); animation: fadeInUp 1s ease .2s both; }
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px);} to { opacity:1; transform: translateY(0);} }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; text-decoration: none; border-radius: 5px;
    font-weight: 600; transition: all .3s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background-color: var(--accent-color); color: var(--white); box-shadow: 0 4px 15px rgba(212,160,23,.3); }
.btn-primary:hover { background-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,160,23,.4); }

/* Sections */
.section { padding: 80px 0; background-color: var(--white); }
.section-alt { background-color: var(--light-grey); }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--primary-grey);
    position: relative; padding-bottom: 1rem; }
.section-title::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
    width:80px; height:4px; background: linear-gradient(90deg, transparent, var(--accent-color), transparent); }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.pillar-card { background: var(--white); padding: 2.5rem 2rem; border-radius: 12px; text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.08); border-top: 4px solid var(--accent-color);
    transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.pillar-card:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(212,160,23,.2); }
.pillar-icon { font-size: 3rem; margin-bottom: 1rem; }
.pillar-card h3 { color: var(--primary-grey); margin-bottom: 1rem; font-size: 1.5rem; }
.pillar-card p { color: var(--text-light); line-height: 1.8; flex-grow: 1; }
.pillar-cta { margin-top: 1.5rem; align-self: center; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: 10px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(212,160,23,.2); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--primary-grey); margin-bottom: 1rem; font-size: 1.5rem; }
.feature-card p { color: var(--text-light); line-height: 1.8; }

/* Carousel */
.carousel-section { background: var(--dark-grey); padding: 0; }
.carousel { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 460px; object-fit: cover; display: block; }
.carousel-link { display: block; color: inherit; text-decoration: none; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; }
.carousel-caption h3 { font-size: 1.8rem; margin-bottom: .3rem; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4);
    color: #fff; border: none; font-size: 2rem; width: 48px; height: 48px; cursor: pointer; border-radius: 50%;
    line-height: 1; transition: background .3s; }
.carousel-arrow:hover { background: var(--accent-color); }
.carousel-arrow.prev { left: 16px; } .carousel-arrow.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--accent-color); }

/* Calendar / events list */
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-card { display: flex; align-items: center; gap: 1.5rem; width: 100%; text-align: left;
    background: var(--white); border: none; border-left: 4px solid var(--accent-color); border-radius: 10px;
    padding: 1.2rem 1.5rem; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s; font-family: inherit; }
.event-card:hover { transform: translateX(6px); box-shadow: 0 8px 22px rgba(212,160,23,.2); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); color: #fff;
    border-radius: 8px; width: 64px; height: 64px; flex-shrink: 0; }
.event-day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .8rem; }
.event-info { flex-grow: 1; }
.event-info h3 { color: var(--primary-grey); font-size: 1.2rem; margin-bottom: .25rem; }
.event-info p { color: var(--text-light); font-size: .9rem; }
.event-cta { color: var(--accent-color); font-weight: 600; white-space: nowrap; }
.empty-note { text-align: center; color: var(--text-light); font-size: 1.05rem; }

/* Speakers */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; }
.speaker-card { background: var(--white); padding: 2rem; border-radius: 10px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.speaker-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(212,160,23,.2); }
.speaker-avatar { width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold;
    margin: 0 auto 1rem; overflow: hidden; border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.speaker-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.speaker-card h3 { color: var(--primary-grey); margin-bottom: .5rem; font-size: 1.3rem; }
.speaker-role { color: var(--accent-color); font-weight: 600; margin-bottom: 1rem; font-size: .9rem; }
.speaker-bio { color: var(--text-light); line-height: 1.8; font-size: .95rem; text-align: left; }
.speaker-bio p { margin: 0 0 .85rem; } .speaker-bio p:last-child { margin-bottom: 0; }
.speaker-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: center; }
.speaker-links a { color: var(--accent-color); font-size: .85rem; font-weight: 600; text-decoration: none; }
.speaker-links a:hover { text-decoration: underline; }

/* Talks */
.talks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.talk-card { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s; border-left: 4px solid var(--accent-color); }
.talk-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(212,160,23,.2); }
.talk-date { color: var(--accent-color); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.talk-card h3 { color: var(--primary-grey); margin-bottom: .5rem; font-size: 1.3rem; }
.talk-speaker { color: var(--medium-grey); font-weight: 600; margin-bottom: 1rem; font-size: .95rem; }
.talk-description { color: var(--text-light); line-height: 1.8; }

/* Newsletter */
.newsletter-text { text-align: center; color: var(--text-light); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 240px; padding: 12px; border-radius: 5px;
    border: 2px solid var(--lighter-grey); font-size: 1rem; }
.newsletter-form input:focus { outline: none; border-color: var(--accent-color); }
.hp-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info h3 { color: var(--primary-grey); margin-bottom: 2rem; font-size: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-icon { font-size: 1.5rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background-color: var(--accent-color); color: var(--white); border-radius: 50%; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--primary-grey); margin-bottom: .3rem; }
.contact-item p { color: var(--text-light); margin: 0; }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--accent-color); text-decoration: underline; }
.contact-form { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.08); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; color: var(--primary-grey); font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid var(--lighter-grey);
    border-radius: 5px; font-size: 1rem; font-family: inherit; transition: border-color .3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }
.form-group textarea { resize: vertical; }
.form-message { margin-top: 1rem; padding: 1rem; border-radius: 5px; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* Footer */
.footer { background-color: var(--primary-grey); color: var(--white); text-align: center; padding: 2rem 0; }
.footer-admin { margin-top: .5rem; }
.footer-admin a { color: rgba(255,255,255,.45); font-size: .8rem; text-decoration: none; }
.footer-admin a:hover { color: var(--accent-color); }

/* Ticket modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: flex-start;
    justify-content: center; z-index: 2000; padding: 4vh 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 12px; max-width: 720px; width: 100%; position: relative;
    padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 2rem;
    line-height: 1; cursor: pointer; color: var(--text-light); }
.modal-close:hover { color: var(--accent-color); }
.ticket-widget-head h3 { color: var(--primary-grey); font-size: 1.5rem; margin-bottom: .3rem; padding-right: 2rem; }
.ticket-widget-meta { color: var(--text-light); margin-bottom: 1.2rem; font-size: .95rem; }

/* Dark mode toggle */
.dark-mode-toggle { background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: border-color .3s, background .3s; flex-shrink: 0; margin-left: 1rem; }
.dark-mode-toggle:hover { border-color: var(--accent-color); background: rgba(212,160,23,.15); }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { position: fixed; left: -100%; top: 64px; flex-direction: column; background: var(--primary-grey);
        width: 100%; text-align: center; transition: .3s; box-shadow: 0 10px 27px rgba(0,0,0,.05); padding: 2rem 0; gap: 1.4rem; }
    .nav-menu.active { left: 0; }
    .hero-title { font-size: 2.5rem; } .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .features-grid, .speakers-grid, .talks-grid, .pillars-grid { grid-template-columns: 1fr; }
    .carousel-slide img { height: 280px; }
    .event-card { gap: 1rem; padding: 1rem; }
    .event-cta { display: none; }
    .modal { padding: 1.4rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1rem; }
    .section { padding: 60px 0; }
    .carousel-slide img { height: 220px; }
}

/* Dark mode */
body.dark-mode { --white:#121212; --light-grey:#1e1e1e; --lighter-grey:#2a2a2a; --text-dark:#e0e0e0;
    --text-light:#aaaaaa; --primary-grey:#1a1a2e; --dark-grey:#0d0d0d; }
body.dark-mode .section-alt { background-color: #1a1a1a; }
body.dark-mode .talk-card, body.dark-mode .speaker-card, body.dark-mode .feature-card,
body.dark-mode .pillar-card, body.dark-mode .event-card, body.dark-mode .contact-form,
body.dark-mode .modal, body.dark-mode input, body.dark-mode textarea {
    background-color: #1e1e1e; color: var(--text-dark); border-color: #333; }
body.dark-mode label { color: var(--text-dark); }
body.dark-mode .footer { background-color: #0d0d0d; }
body.dark-mode .navbar { background-color: #1a1a2e; }
body.dark-mode .nav-link { color: #e0e0e0; }
body.dark-mode .hero-subtitle { color: #bbbbbb; }
body.dark-mode .contact-info h3, body.dark-mode .contact-item strong { color: #e0e0e0; }
body.dark-mode .contact-item p { color: #aaaaaa; }
body.dark-mode .section-title, body.dark-mode .feature-card h3, body.dark-mode .speaker-card h3,
body.dark-mode .talk-card h3, body.dark-mode .pillar-card h3, body.dark-mode .event-info h3,
body.dark-mode .ticket-widget-head h3, body.dark-mode h1, body.dark-mode h2,
body.dark-mode h3, body.dark-mode h4 { color: #e0e0e0; }
