/*
Theme Name: Restore Britain - Branch Theme
Theme URI: https://restorebritain.org.uk
Author: Lewis Ashdown
Author URI: https://restorebritain.org.uk
Description: A modern WordPress theme for Restore Britain branches. Rich homepage with social feeds, events, news, and branch info.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: rb-branch
*/

:root {
    --rb-navy: #051D3F;
    --rb-red: #C8102E;
    --rb-light: #F8FAFC;
    --rb-muted: #64748b;
    --rb-border: #e2e8f0;
}

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #111827; margin: 0; background: #fff; }
a { color: var(--rb-navy); text-decoration: none; }
a:hover { color: var(--rb-red); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--rb-navy); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 17px; }
.site-brand img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: rgba(255,255,255,.88); font-weight: 600; font-size: 14px; padding: 6px 0; }
.main-nav a:hover, .main-nav .current-menu-item a { color: #fff; border-bottom: 2px solid var(--rb-red); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--rb-navy) 0%, #0a2d5c 60%, #123a72 100%); color: #fff; padding: 80px 0 68px; text-align: center; }
.hero h1 { font-size: 44px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.5px; }
.hero p { font-size: 18px; max-width: 620px; margin: 0 auto 28px; opacity: .92; }
.btn { display: inline-block; background: var(--rb-red); color: #fff; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.btn:hover { background: #a50d26; color: #fff; }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.ghost:hover { background: #fff; color: var(--rb-navy); }

/* Sections */
.section { padding: 60px 0; }
.section h2 { font-size: 28px; margin: 0 0 28px; color: var(--rb-navy); font-weight: 800; }
.section-light { background: var(--rb-light); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border-radius: 12px; padding: 22px; border: 1px solid var(--rb-border); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--rb-navy); }
.card p { margin: 0; color: var(--rb-muted); font-size: 14px; }
.card .meta { font-size: 12px; color: var(--rb-muted); margin-bottom: 6px; }

/* Social */
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.social-box { background: #fff; border: 1px solid var(--rb-border); border-radius: 12px; overflow: hidden; }
.social-box h3 { margin: 0; padding: 14px 16px; background: var(--rb-navy); color: #fff; font-size: 15px; }
.social-box .feed { padding: 12px; min-height: 300px; }
@media (max-width: 720px) {
    .social-row { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--rb-navy); padding: 16px; }
    .hero h1 { font-size: 32px; }
}

/* Events */
.event-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rb-border); }
.event-date { background: var(--rb-navy); color: #fff; border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 56px; }
.event-date strong { display: block; font-size: 18px; }
.event-date span { font-size: 11px; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--rb-navy); color: rgba(255,255,255,.78); padding: 36px 0; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; }

/* Forms */
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--rb-border); border-radius: 8px; font-size: 15px; font-family: inherit; }
input:focus, textarea:focus { outline: none; border-color: var(--rb-navy); }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-row { margin-bottom: 14px; }
