/* ==============================
   ZinZien.nu — site.css
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #333;
    background: #fff;
    line-height: 1.7;
}

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

a { color: #2a6496; text-decoration: none; transition: color .2s; }
a:hover { color: #1a4c76; text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: #222;
}

h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .75rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* --- Layout helpers --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section--gray { background: #f7f7f5; }
.section--dark { background: #1e2d3b; color: #e8e8e8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Header / Nav --- */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-family: 'Lato', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #333;
}

.nav-list a:hover { color: #2a6496; text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: .3s;
}

/* --- Hero --- */
#hero {
    padding-top: 70px; /* offset fixed header */
    background: #1e2d3b;
    color: #fff;
    text-align: center;
    padding-bottom: 80px;
}

.hero-inner {
    padding: 80px 24px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-inner p {
    font-size: 1.2rem;
    color: #c8d8e8;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* --- Essay section --- */
#charles { }

.essay-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.essay-intro .essay-text blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    border-left: 4px solid #2a6496;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #444;
}

.essay-link {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.4rem;
    border: 2px solid #2a6496;
    color: #2a6496;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background .2s, color .2s;
}

.essay-link:hover {
    background: #2a6496;
    color: #fff;
    text-decoration: none;
}

/* --- Full-width quote --- */
.quote-band {
    background: #2a6496;
    color: #fff;
    text-align: center;
    padding: 60px 24px;
}

.quote-band blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto .75rem;
    line-height: 1.5;
}

.quote-band cite {
    font-size: .9rem;
    opacity: .85;
    font-style: normal;
}

/* --- Events overview --- */
.events-intro { max-width: 780px; }

.events-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 2.5rem;
}

.event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.event-card h3 { color: #2a6496; }

.event-meta {
    margin: .75rem 0 1rem;
    font-size: .9rem;
    color: #666;
    line-height: 1.9;
}

.event-meta strong { color: #333; }

/* --- Charles Eisenstein bio --- */
.bio-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.bio-grid img {
    border-radius: 4px;
    width: 100%;
}

.bio-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    border-left: 4px solid #2a6496;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: #555;
}

/* --- Programma sections --- */
.programma-event {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.programma-event:last-child { border-bottom: none; margin-bottom: 0; }

.programma-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 2rem;
}

.programma-header img {
    border-radius: 4px;
    width: 100%;
}

.event-label {
    display: inline-block;
    background: #2a6496;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: .75rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: .95rem;
}

.schedule-table td {
    padding: 6px 12px 6px 0;
    vertical-align: top;
}

.schedule-table td:first-child {
    font-weight: 700;
    color: #2a6496;
    white-space: nowrap;
    padding-right: 24px;
    width: 80px;
}

/* --- Book covers --- */
.books-row {
    display: flex;
    gap: 24px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.book-item {
    text-align: center;
    max-width: 140px;
}

.book-item img { border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,.15); }

.book-item a { font-size: .85rem; display: block; margin-top: .5rem; }

/* --- Speakers --- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
    margin-top: 2.5rem;
}

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

.speaker-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #e0e8f0;
}

.speaker-card h4 { margin-bottom: .25rem; }
.speaker-card .role { font-size: .85rem; color: #888; margin-bottom: .75rem; }

.speaker-card blockquote {
    font-style: italic;
    font-size: .88rem;
    color: #555;
    border-left: 3px solid #2a6496;
    padding-left: .75rem;
    text-align: left;
}

/* --- Tickets --- */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.ticket-card {
    background: #fff;
    border: 1px solid #dde5ed;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}

.ticket-card.featured {
    border-color: #2a6496;
    box-shadow: 0 4px 20px rgba(42,100,150,.18);
}

.ticket-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a6496;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin: .75rem 0;
}

.ticket-card .price span { font-size: 1.2rem; }

.ticket-card h3 { font-size: 1.1rem; }

.ticket-card .ticket-meta {
    font-size: .85rem;
    color: #666;
    line-height: 1.7;
    margin: .75rem 0 1.5rem;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .2s, color .2s, transform .1s;
    cursor: pointer;
    border: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: #2a6496;
    color: #fff;
}

.btn-primary:hover { background: #1a4c76; color: #fff; text-decoration: none; }

.btn-outline {
    background: transparent;
    color: #2a6496;
    border: 2px solid #2a6496;
}

.btn-outline:hover { background: #2a6496; color: #fff; text-decoration: none; }

/* --- Locations --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.location-info {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.location-info h3 { margin-bottom: .4rem; }
.location-info address { font-style: normal; color: #666; font-size: .9rem; }

/* --- About ZinZien / Our story --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.team-photo img {
    width: 100%;
    border-radius: 6px;
}

/* --- Partners --- */
.partners-section { padding: 60px 0; }

.partners-section h2 { margin-bottom: 2rem; }

.partners-group { margin-bottom: 3rem; }
.partners-group h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #888;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.logos-row a {
    display: flex;
    align-items: center;
}

.logos-row img {
    max-height: 60px;
    max-width: 160px;
    width: auto;
    filter: grayscale(30%);
    opacity: .85;
    transition: opacity .2s, filter .2s;
}

.logos-row img:hover { opacity: 1; filter: none; }

/* --- Videos --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 2rem;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* --- Contact --- */
#contact { background: #f7f7f5; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .3rem;
    color: #444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    background: #fff;
    transition: border-color .2s;
    margin-bottom: 1.2rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2a6496;
    box-shadow: 0 0 0 3px rgba(42,100,150,.1);
}

.contact-form textarea { height: 130px; resize: vertical; }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.captcha-row label { margin-bottom: 0; white-space: nowrap; }

.captcha-row input {
    width: 80px;
    margin-bottom: 0;
}

.form-message {
    padding: .75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: .95rem;
    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: #1e2d3b;
    color: #aaa;
    text-align: center;
    padding: 32px 24px;
    font-size: .88rem;
}

footer a { color: #7aabcf; }
footer a:hover { color: #fff; }

.footer-social { margin-bottom: .75rem; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .essay-intro,
    .bio-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .programma-header {
        grid-template-columns: 1fr;
    }

    .programma-header img { max-width: 260px; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.12);
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-list.open { display: flex; }
    .nav-toggle { display: flex; }

    h2 { font-size: 1.6rem; }

    .hero-inner { padding: 48px 24px 32px; }

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

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

@media (max-width: 480px) {
    .tickets-grid,
    .speakers-grid { grid-template-columns: 1fr; }

    .logos-row { gap: 20px; }
    .logos-row img { max-height: 44px; max-width: 120px; }
}
