/*
Theme Name: ROE Hobby
Theme URI: https://roehobby.com
Author: ROE Hobby
Description: A clean, blank starter theme. Warm palette, mobile-friendly, fully editable via the block editor. Includes optional events and menu systems.
Version: 1.0.0
Text Domain: roe-hobby
*/

/* ============================================
   COLOR SYSTEM — change these to retheme
   ============================================ */
:root {
    --roe-terracotta: #c45c26;
    --roe-terracotta-dark: #a34b1e;
    --roe-brown: #5c4033;
    --roe-brown-dark: #4a2c2a;
    --roe-cream: #f7f3ee;
    --roe-cream-dark: #e8e0d5;
    --roe-text: #2c2420;
    --roe-text-muted: #6b5e56;
    --roe-white: #ffffff;
    --roe-radius: 10px;
    --roe-shadow: 0 4px 16px rgba(74, 44, 42, 0.08);
    --roe-max-width: 1140px;
    --roe-header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--roe-text);
    background: var(--roe-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--roe-terracotta); text-decoration: none; }
a:hover { color: var(--roe-terracotta-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--roe-brown-dark); }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.roe-wrap {
    max-width: var(--roe-max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.roe-section {
    padding: 48px 0;
}
.roe-section--cream { background: var(--roe-cream); }
.roe-section--white { background: var(--roe-white); }
.roe-section--brown { background: var(--roe-brown-dark); color: var(--roe-white); }
.roe-section--brown h2, .roe-section--brown h3 { color: var(--roe-white); }

/* ============================================
   HEADER
   ============================================ */
.roe-header {
    background: var(--roe-white);
    border-bottom: 1px solid var(--roe-cream-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}
.roe-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--roe-header-height);
    max-width: var(--roe-max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.roe-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--roe-brown-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 180px;
    overflow: hidden;
}
.roe-logo .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
}
.roe-logo .custom-logo {
    max-height: 48px;
    max-width: 160px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.roe-logo span { color: var(--roe-terracotta); }
.roe-nav {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.roe-nav a {
    color: var(--roe-brown);
    font-weight: 500;
    font-size: 0.95rem;
}
.roe-nav a:hover, .roe-nav .current-menu-item a { color: var(--roe-terracotta); }
.roe-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--roe-brown);
}

/* ============================================
   HERO
   ============================================ */
.roe-hero {
    background: linear-gradient(135deg, var(--roe-cream) 0%, #fff 100%);
    padding: 60px 0 40px;
}
.roe-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--roe-max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.roe-hero-badge {
    display: inline-block;
    background: var(--roe-terracotta);
    color: var(--roe-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.roe-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--roe-brown-dark);
}
.roe-hero p {
    font-size: 1.15rem;
    color: var(--roe-text-muted);
    max-width: 420px;
}
.roe-btn {
    display: inline-block;
    background: var(--roe-terracotta);
    color: var(--roe-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.2s;
}
.roe-btn:hover { background: var(--roe-terracotta-dark); color: var(--roe-white); }
.roe-btn--outline {
    background: transparent;
    border: 2px solid var(--roe-terracotta);
    color: var(--roe-terracotta);
}
.roe-btn--outline:hover { background: var(--roe-terracotta); color: var(--roe-white); }
.roe-hero-visual {
    position: relative;
    min-height: 280px;
}
.roe-hero-visual img {
    width: 100%;
    border-radius: var(--roe-radius);
    object-fit: cover;
}

/* ============================================
   EVENTS CARDS (homepage)
   ============================================ */
.roe-events-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.roe-event-card {
    background: var(--roe-white);
    border-radius: var(--roe-radius);
    overflow: hidden;
    box-shadow: var(--roe-shadow);
}
.roe-event-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 706 / 440;
    object-fit: cover;
    display: block;
}
.roe-event-card-body { padding: 16px; }
.roe-event-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.roe-event-card p { font-size: 0.9rem; color: var(--roe-text-muted); margin: 0; }
.roe-event-card .roe-meta { font-size: 0.85rem; color: var(--roe-terracotta); margin-top: 6px; }

/* ============================================
   CATEGORIES
   ============================================ */
.roe-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.roe-cat {
    background: var(--roe-white);
    border-radius: var(--roe-radius);
    padding: 24px 16px;
    box-shadow: var(--roe-shadow);
    transition: transform 0.2s;
}
.roe-cat:hover { transform: translateY(-4px); }
.roe-cat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: var(--roe-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.roe-cat h3 { font-size: 1rem; margin: 0; }

/* ============================================
   VISIT
   ============================================ */
.roe-visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.roe-visit-info h2 { font-size: 1.8rem; }
.roe-visit-info p { color: var(--roe-text-muted); }
.roe-hours { list-style: none; padding: 0; margin: 16px 0; }
.roe-hours li { padding: 4px 0; }
.roe-map-placeholder {
    background: var(--roe-cream-dark);
    border-radius: var(--roe-radius);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--roe-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.roe-footer {
    background: var(--roe-brown-dark);
    color: var(--roe-white);
    padding: 32px 0;
    text-align: center;
    font-size: 0.9rem;
}
.roe-footer a { color: var(--roe-cream); }
.roe-footer a:hover { color: var(--roe-white); }

/* ============================================
   BLOCK EDITOR CONTENT
   ============================================ */
.roe-page .wp-block-image { margin: 1.5em 0; }
.roe-page .wp-block-image img { border-radius: var(--roe-radius); }
.roe-page .wp-block-button .wp-block-button__link {
    background: var(--roe-terracotta);
    color: var(--roe-white);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
}
.roe-page .wp-block-button .wp-block-button__link:hover {
    background: var(--roe-terracotta-dark);
}
.roe-page .wp-block-columns { gap: 24px; }
.roe-page .wp-block-group { margin-bottom: 2em; }
.roe-page .has-text-align-center { text-align: center; }
.roe-page h1.wp-block-heading,
.roe-page h2.wp-block-heading,
.roe-page h3.wp-block-heading { margin-top: 1.5em; margin-bottom: 0.5em; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .roe-nav { display: none; }
    .roe-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--roe-header-height);
        left: 0;
        right: 0;
        background: var(--roe-white);
        padding: 16px 20px;
        border-bottom: 1px solid var(--roe-cream-dark);
        gap: 12px;
    }
    .roe-nav-toggle { display: block; }
    .roe-hero-inner { grid-template-columns: 1fr; }
    .roe-hero h1 { font-size: 2.2rem; }
    .roe-events-row { grid-template-columns: 1fr; }
    .roe-cats { grid-template-columns: repeat(2, 1fr); }
    .roe-visit { grid-template-columns: 1fr; }
    .roe-header-inner { position: relative; }
}

/* Calendar mobile list */
.roe-cal-list { display: none; }
.roe-cal-list-day {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--roe-cream-dark);
}
.roe-cal-list-date {
    min-width: 48px;
    text-align: center;
}
.roe-cal-list-dow {
    display: block;
    font-size: 12px;
    color: var(--roe-text-muted);
    text-transform: uppercase;
}
.roe-cal-list-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--roe-brown-dark);
}
.roe-cal-list-events { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.roe-cal-list-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
}
.roe-cal-list-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}
.roe-cal-list-item strong { display: block; }
.roe-cal-list-item span { display: block; font-size: 13px; color: var(--roe-text-muted); }
.roe-cal-list-item .roe-full { color: #c0392b; font-weight: 600; }
.roe-cal-list-room { font-size: 12px; color: #a00; }

@media (max-width: 700px) {
    .roe-cal-grid { display: none !important; }
    .roe-cal-list { display: block; }
}
