/* ============================================================
   mozivio.com — "classic" public site template.
   Colors read from --brand-primary/--brand-secondary (set inline in
   themes/classic/layout.blade.php from config('branding.*')) so a tenant
   can recolor this template without editing CSS. Defaults below match
   Bravoer's original look.
   ============================================================ */

:root {
    --green:        var(--brand-primary, #009688);
    --green-dark:   var(--brand-secondary, #00796B);
    --green-light:  #E0F2F1;
    --green-mid:    #84B5B1;
    --off-white:    #F9F9F9;
    --dark:         #1A1A1A;
    --text:         #222222;
    --text-light:   #666666;
    --serif:        Arial, Helvetica, sans-serif;
    --sans:         Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--dark);
    background: var(--off-white);
    font-size: 17px;
    line-height: 1.7;
}
h1,h2,h3,h4,h5 { font-family: var(--serif); line-height: 1.2; }

/* paragraphs get breathing room */
.section p{
    margin-bottom: 0.85rem;
}

/* lists are indented with space between items */

.section ul, .section ol {
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
}
.section li {
    margin-bottom: 0.3rem;
}



/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    background: #1A1A1A;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar a:hover { color: #fff; }
.social-links { display: flex; gap: 1rem; }
.social-links a { font-size: 1rem; }

/* ── Nav ─────────────────────────────────────────────────── */
.main-nav {
    background: #fff;
    border-bottom: 3px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
}
.nav-logo img {
    height: 48px;
    width: auto;
}
.nav-logo-badge {
    width: 42px; height: 42px; border-radius: 6px; flex-shrink: 0;
    background: var(--green); color: var(--on-primary, #fff);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.nav-logo-text {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}
.nav-logo-sub {
    font-size: 0.6rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    line-height: 1;
    text-align: left;
    margin-bottom: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1.1rem;
    height: 72px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--green);
}
.nav-links > li > a.active {
    border-bottom: 3px solid var(--green);
    margin-bottom: -3px;
}
.nav-links > li.backstage > a {
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1.1rem;
    height: auto;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}
.nav-links > li.backstage > a:hover { background: var(--green-dark); }

/* Dropdowns */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: #fff;
    border-top: 3px solid var(--green);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 300;
}
.nav-links > li.dropdown-open > .dropdown-menu-custom { display: block; }
.dropdown-menu-custom a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s;
}
.dropdown-menu-custom a:hover {
    background: var(--green-light);
    color: var(--green);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--green);
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-green { background: var(--green); color: #fff; }
.section-light { background: var(--green-light); }
.section-gold  { background: var(--off-white); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.section-dark .section-label { color: #ffffff; }
.section-green .section-label { color: rgba(255,255,255,0.7); }

.hero-section .section-label { color: rgba(255,255,255,0.6); text-align: left; }
.hero-section .section-title { text-align: left; }

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}
.section-dark .section-title { color: #fff; }

.section-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 580px;
    line-height: 1.75;
}
.section-dark .section-lead { color: rgba(255,255,255,0.65); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-family: var(--sans);
}
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-white-outline { background: #ffffff; color: #fff; border-color: #ffffff; }
.btn-white-outline:hover { background: #b8913a; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--green); font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 0.5rem 0; }
.card-text { color: var(--text-light); font-size: 0.9rem; line-height: 1.65; }

/* ── Event cards ─────────────────────────────────────────── */
.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--green);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    align-items: flex-start;
}
.event-date-block {
    background: var(--green);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    min-width: 60px;
    flex-shrink: 0;
}
.event-date-day  { font-family: var(--serif); font-size: 2rem; font-weight: 900; line-height: 1; }
.event-date-mon  { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.event-date-year { font-size: 0.65rem; opacity: 0.7; }
.event-title     { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.event-meta      { font-size: 0.82rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.event-meta i    { color: var(--green); }

/* ── Photo grid ──────────────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.photo-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-links { columns: 2; column-gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; break-inside: avoid; }
.footer-links a:hover { color: #fff; }
.footer-title { color: #fff; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 1rem; text-decoration: none; transition: background 0.2s; }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #D1D5C9;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,60,0.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { width: 60px; height: 4px; background: var(--green); border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider-gold { background: #ffffff; }
.divider-white { background: rgba(255,255,255,0.5); }
.divider-center { margin-left: auto; margin-right: auto; }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ── Side-by-side content + image rows ──────────────────── */
.content-row { display: flex; flex-direction: row; gap: 4rem; align-items: center; }
.content-row > .col-text { flex: 1; min-width: 0; }
.content-row > .col-img  { flex: 1; min-width: 0; }
.content-row > .col-img img { width: 100%; display: block; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.content-row--reverse { flex-direction: row-reverse; }
/* Jeugd page specific layout - also defined inline in jeugd.blade.php for reliability */
.jeugd-layout { display: flex; flex-direction: row; gap: 4rem; align-items: center; }
.jeugd-layout > .jeugd-col-text { flex: 1; min-width: 0; }
.jeugd-layout > .jeugd-col-img  { flex: 1; min-width: 0; }
.jeugd-layout > .jeugd-col-img img { width: 100%; display: block; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Alert ───────────────────────────────────────────────── */
.alert-success-pub {
    background: var(--green-light);
    border: 1px solid var(--green);
    color: var(--green-dark);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* ── Decorative music-note texture (hero overlays) ──────────── */
/* Tenant-editable via Site Settings > Hero — literal values are only the
   fallback for the (normally-unreachable) case the vars are unset. */
.hero-texture {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat;
    display: var(--hero-pattern-display, block);
    opacity: var(--hero-pattern-opacity, 0.1);
    background-size: var(--hero-pattern-size, 140px) var(--hero-pattern-size, 140px);
    background-image: var(--hero-pattern-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ctext x='14' y='48' font-size='36' fill='white'%3E%E2%99%AA%3C/text%3E%3Ctext x='86' y='118' font-size='30' fill='white'%3E%E2%99%AB%3C/text%3E%3Ctext x='60' y='20' font-size='22' fill='white'%3E%E2%99%AA%3C/text%3E%3C/svg%3E"));
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (iPad landscape) - optimize spacing */
@media (max-width: 900px) {
    .nav-inner { padding: 0 1rem; }
    .nav-links > li > a { padding: 0 0.7rem; font-size: 0.85rem; }
    .nav-links > li.backstage > a { padding: 0.5rem 0.9rem; font-size: 0.8rem; margin-left: 0.3rem; }
    .nav-logo-text { font-size: 1.2rem; }
}

/* Tablet (iPad portrait) - further optimize */
@media (max-width: 820px) {
    .nav-inner { padding: 0 0.75rem; height: 64px; }
    .nav-links > li > a { padding: 0 0.6rem; font-size: 0.8rem; height: 64px; }
    .nav-links > li.backstage > a { padding: 0.4rem 0.8rem; font-size: 0.75rem; margin-left: 0.2rem; }
    .nav-logo { gap: 0.5rem; }
    .nav-logo-text { font-size: 1.1rem; }
    .nav-logo-sub { font-size: 0.5rem; }
    .topbar { padding: 0.3rem 1rem; font-size: 0.7rem; }
    .social-links { gap: 0.75rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e5e5; padding: 1rem 0; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
    .nav-links.open { display: flex; }
    .nav-links > li > a { height: auto; padding: 0.65rem 1.5rem; font-size: 0.9rem; }
    .nav-links > li.backstage > a { margin: 0.5rem 1.5rem; padding: 0.5rem 1.1rem; }
    .main-nav { position: sticky; }
    .nav-inner { position: relative; height: auto; min-height: 66px; padding: 0.45rem 1rem; }
    .nav-logo { gap: 0.6rem; }
    .nav-logo-text { font-size: 1.1rem; }
    .nav-toggle { display: block; }
    .dropdown-menu-custom { position: static; border-top: none; box-shadow: none; background: var(--green-light); }
    .nav-links > li:hover .dropdown-menu-custom { display: none; }
    .nav-links > li.open-mobile .dropdown-menu-custom { display: block; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .content-row, .content-row--reverse { flex-direction: column; gap: 2rem; }
    .jeugd-layout { flex-direction: column; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 3rem 0; }
    .event-card { flex-direction: column; gap: 1rem; }
}
