/*
Theme Name: ReadingBook
Theme URI: https://readingbook.co.uk
Author: ReadingBook
Description: Fast local platform theme for ReadingBook.co.uk.
Version: 0.1.0
Text Domain: readingbook
*/

:root {
    --rb-bg: #f7faf9;
    --rb-surface: #ffffff;
    --rb-text: #102421;
    --rb-muted: #58706b;
    --rb-border: #dfe7e4;
    --rb-accent: #087f6f;
    --rb-accent-dark: #065f54;
    --rb-warm: #f1ab3d;
    --rb-shadow: 0 18px 48px rgba(10, 31, 28, 0.08);
    --rb-radius: 8px;
    --rb-max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--rb-bg);
    color: var(--rb-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--rb-accent);
}

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

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--rb-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.site-main {
    margin: 0 auto;
    max-width: var(--rb-max);
    padding: 0 24px;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 74px;
}

.brand {
    align-items: center;
    color: var(--rb-text);
    display: inline-flex;
    font-size: 1.24rem;
    font-weight: 900;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    background: var(--rb-accent);
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-weight: 900;
    height: 36px;
    place-items: center;
    width: 36px;
}

.main-nav {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 18px;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--rb-text);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-cta,
.button-primary {
    background: var(--rb-accent);
    border-radius: var(--rb-radius);
    color: #fff !important;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 11px 15px;
    text-decoration: none;
}

.site-main {
    padding-bottom: 56px;
    padding-top: 38px;
}

.hero {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    min-height: 540px;
}

.hero-copy {
    align-self: center;
}

.hero h1 {
    font-size: clamp(2.55rem, 6vw, 5.4rem);
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0 0 22px;
}

.hero p {
    color: var(--rb-muted);
    font-size: 1.12rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-secondary {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    color: var(--rb-text);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 11px 15px;
    text-decoration: none;
}

.hero-panel {
    align-self: center;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.search-preview {
    background: #f2f7f5;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.search-preview input {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    font: inherit;
    padding: 13px 14px;
}

.preview-listing {
    align-items: center;
    border-bottom: 1px solid var(--rb-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 0;
}

.preview-listing:last-child {
    border-bottom: 0;
}

.preview-listing strong,
.preview-listing span {
    display: block;
}

.preview-listing span {
    color: var(--rb-muted);
    font-size: 0.92rem;
}

.rating-pill {
    background: #fff7e8;
    border: 1px solid #f5d39a;
    border-radius: 999px;
    color: #9b5600;
    font-weight: 900;
    padding: 6px 9px;
}

.section {
    margin-top: 58px;
}

.section h2,
.entry-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 16px;
}

.section-lead {
    color: var(--rb-muted);
    max-width: 760px;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
}

.feature {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 20px;
}

.feature h3 {
    margin-top: 0;
}

.content-area {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: 28px;
}

.listing-details {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 24px 0;
}

.rb-listing-page {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: clamp(22px, 4vw, 42px);
}

.rb-listing-hero {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.rb-listing-hero .entry-title {
    max-width: 920px;
}

.rb-listing-hero .rb-card-topline a {
    background: #edf7f4;
    border: 1px solid #cce6df;
    border-radius: 999px;
    color: var(--rb-accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 5px 9px;
    text-decoration: none;
}

.rb-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.rb-quick-card {
    background: #f2f7f5;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: grid;
    gap: 8px;
    padding: 18px;
}

.rb-quick-card strong {
    font-size: 1rem;
}

.rb-quick-card span {
    color: var(--rb-accent-dark);
    font-weight: 900;
}

.rb-quick-card p {
    color: var(--rb-muted);
    margin: 0;
}

.detail-box {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 16px;
}

.detail-box span {
    color: var(--rb-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rb-rich-content {
    border-top: 1px solid var(--rb-border);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-top: 32px;
    padding-top: 30px;
}

.rb-rich-content h2,
.rb-nearby h2,
.rb-faq h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.1;
    margin: 0 0 14px;
}

.rb-rich-content aside {
    background: #f8fbfa;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 18px;
}

.rb-rich-content ul {
    margin: 0;
    padding-left: 20px;
}

.rb-nearby,
.rb-faq {
    border-top: 1px solid var(--rb-border);
    margin-top: 32px;
    padding-top: 30px;
}

.rb-nearby-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rb-nearby-grid a {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    color: var(--rb-text);
    display: grid;
    gap: 6px;
    padding: 14px;
    text-decoration: none;
}

.rb-nearby-grid a:hover {
    border-color: rgba(8, 127, 111, 0.42);
}

.rb-nearby-grid span {
    color: var(--rb-muted);
    font-size: 0.92rem;
}

.rb-faq details {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    margin-bottom: 10px;
    padding: 14px 16px;
}

.rb-faq summary {
    cursor: pointer;
    font-weight: 900;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: block;
    font: inherit;
    max-width: 720px;
    padding: 10px 12px;
    width: 100%;
}

.comment-form input[type="submit"] {
    background: var(--rb-accent);
    border: 0;
    border-radius: var(--rb-radius);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 11px 15px;
}

.rb-directory-shell {
    display: grid;
    gap: 20px;
}

.rb-directory-intro {
    align-items: center;
    background: linear-gradient(135deg, #10312d, #087f6f);
    border-radius: var(--rb-radius);
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 24px;
}

.rb-directory-intro h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.06;
    margin: 0 0 8px;
}

.rb-directory-intro p {
    color: #d7ede9;
    margin: 0;
    max-width: 760px;
}

.rb-button,
.rb-directory-filters button,
.rb-submit-form button {
    align-items: center;
    background: var(--rb-accent);
    border: 0;
    border-radius: var(--rb-radius);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    text-decoration: none;
}

.rb-button-light {
    background: #fff;
    color: var(--rb-accent-dark);
    flex: 0 0 auto;
}

.rb-directory-filters {
    align-items: end;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) minmax(180px, 220px) auto;
    padding: 14px;
}

.rb-directory-filters label,
.rb-submit-form label {
    color: var(--rb-muted);
    display: grid;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 6px;
    text-transform: uppercase;
}

.rb-directory-filters input,
.rb-directory-filters select,
.rb-submit-form input,
.rb-submit-form textarea {
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    color: var(--rb-text);
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.rb-directory-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.rb-listings {
    display: grid;
    gap: 14px;
}

.rb-results-bar {
    align-items: center;
    color: var(--rb-muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.rb-results-bar strong {
    color: var(--rb-text);
}

.rb-listing-card {
    align-items: start;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: 0 10px 28px rgba(10, 31, 28, 0.06);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 124px;
    padding: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rb-listing-card:hover {
    border-color: rgba(8, 127, 111, 0.36);
    box-shadow: 0 18px 42px rgba(10, 31, 28, 0.11);
    transform: translateY(-1px);
}

.rb-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.rb-card-topline span {
    background: #edf7f4;
    border: 1px solid #cce6df;
    border-radius: 999px;
    color: var(--rb-accent-dark);
    font-size: 0.76rem;
    font-weight: 900;
    padding: 4px 8px;
}

.rb-listing-card h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.08;
    margin: 0 0 10px;
}

.rb-listing-card h2 a {
    color: var(--rb-text);
    text-decoration: none;
}

.rb-listing-card h2 a:hover {
    color: var(--rb-accent);
}

.rb-listing-card p {
    margin: 6px 0;
}

.rb-address {
    color: var(--rb-muted);
    font-weight: 750;
}

.rb-services {
    color: var(--rb-text);
}

.rb-hours {
    color: var(--rb-accent-dark);
    font-weight: 850;
}

.rb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.rb-card-link {
    background: var(--rb-accent);
    border-radius: var(--rb-radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 8px 11px;
    text-decoration: none;
}

.rb-card-link-secondary {
    background: #f2f7f5;
    color: var(--rb-accent-dark);
}

.rb-rating {
    align-items: end;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.rb-rating strong {
    background: #fff7e8;
    border: 1px solid #f5d39a;
    border-radius: 999px;
    color: #9b5600;
    font-size: 1rem;
    padding: 6px 10px;
}

.rb-rating span {
    color: var(--rb-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.rb-map-panel,
.rb-empty,
.rb-notice {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: 20px;
}

.rb-map-panel {
    position: sticky;
    top: 96px;
}

.rb-map-panel h2 {
    font-size: 1.35rem;
    line-height: 1.1;
    margin: 0 0 14px;
}

.rb-map-visual {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(8, 127, 111, 0.14), rgba(241, 171, 61, 0.18)),
        radial-gradient(circle at 28% 24%, rgba(8, 127, 111, 0.22), transparent 25%),
        #f5fbf9;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: grid;
    gap: 10px;
    padding: 16px;
}

.rb-map-visual span {
    align-self: center;
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    color: var(--rb-text);
    font-size: 0.82rem;
    font-weight: 900;
    justify-self: start;
    padding: 6px 9px;
}

.rb-submit-form {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    display: grid;
    gap: 14px;
    padding: 20px;
}

.rb-seo-hub {
    margin: 42px 0;
}

.rb-link-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rb-link-grid a {
    border-bottom: 1px solid var(--rb-border);
    color: var(--rb-accent);
    font-weight: 900;
    padding: 8px 0;
    text-decoration: none;
}

.rb-news-hub,
.rb-events-hub,
.rb-forum-hub {
    display: grid;
    gap: 22px;
}

.rb-news-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rb-news-card {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: 0 10px 28px rgba(10, 31, 28, 0.06);
    display: grid;
    gap: 10px;
    padding: 18px;
}

.rb-news-card > span {
    color: var(--rb-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rb-news-card h2 {
    font-size: 1.22rem;
    line-height: 1.18;
    margin: 0;
}

.rb-news-card h2 a {
    color: var(--rb-text);
    text-decoration: none;
}

.rb-news-card p {
    color: var(--rb-muted);
    margin: 0;
}

.rb-tax-listings {
    margin-top: 22px;
}

.site-footer {
    background: #102421;
    color: #d7e5e1;
    margin-top: 70px;
}

.site-footer__inner {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto;
    padding-bottom: 34px;
    padding-top: 34px;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 900px) {
    .site-header__inner,
    .main-nav,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        position: static;
    }

    .site-header__inner {
        padding-bottom: 16px;
        padding-top: 16px;
    }

    .main-nav {
        gap: 10px;
    }

    .hero,
    .feature-grid,
    .site-footer__inner,
    .rb-directory-layout,
    .rb-directory-filters {
        grid-template-columns: 1fr;
    }

    .rb-directory-intro,
    .rb-results-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .rb-map-panel {
        position: static;
    }

    .rb-listing-card {
        grid-template-columns: 1fr;
    }

    .rb-listing-hero,
    .rb-rich-content {
        grid-template-columns: 1fr;
    }

    .rb-rating {
        justify-items: start;
        text-align: left;
    }
}
