/*
Theme Name:   Ryley Castles
Theme URI:    https://castles.ryleyventures.com
Author:       Ryley Ventures
Description:  Bright, mobile-friendly theme for Ryley Castles jumping castle hire. Designed to work with the “Ryley Castles – Castles & Bookings” plugin.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  ryley-castles-theme
*/

:root {
	--rc-primary: #1565c0;
	--rc-primary-dark: #0d47a1;
	--rc-accent: #ffb300;
	--rc-coral: #ff5a5f;
	--ink: #1d2433;
	--muted: #5b6475;
	--line: #e3e7ee;
	--soft: #f4f7fb;
	--sky: #e8f2ff;
	--radius: 16px;
	--wrap: 1180px;
	--head-font: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
	--body-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--rc-primary); }
a:hover { color: var(--rc-primary-dark); }
h1, h2, h3, h4 { font-family: var(--head-font); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.1em; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rc-coral); margin-bottom: .6em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--rc-primary); color: #fff; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--rc-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 101, 192, .25); }
.btn-accent { background: var(--rc-accent); color: #3a2a00; }
.btn-accent:hover { background: #ffa000; color: #3a2a00; box-shadow: 0 8px 20px rgba(255, 160, 0, .3); }
.btn-ghost { background: transparent; color: var(--rc-primary); box-shadow: inset 0 0 0 2px var(--rc-primary); }
.btn-ghost:hover { background: var(--rc-primary); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { max-height: 52px; width: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--head-font); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--body-font); font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: .5em .9em; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--sky); color: var(--rc-primary); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
	.nav-toggle { display: block; order: 3; }
	.header-phone { display: none; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.header-cta .btn { padding: .6em 1.1em; font-size: .9rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #e8f2ff 0%, #fff7e0 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: clamp(40px, 7vw, 90px) 0; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { color: var(--rc-primary); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #1b8a4a; font-weight: 900; margin-right: 6px; }
.hero-media { position: relative; }
.hero-media img, .hero-media svg { display: block; width: 100%; height: auto; border-radius: 28px; }
.hero-media img { aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 30px 60px rgba(13, 71, 161, .18); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-media { max-width: 520px; } }

/* ---------- features / steps ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; background: var(--sky); }
.feature:nth-child(2) .feature-icon { background: #fff3d6; }
.feature:nth-child(3) .feature-icon { background: #ffe3e4; }
.feature:nth-child(4) .feature-icon { background: #e1f5e8; }
.feature p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: 0 10px 30px rgba(20, 40, 80, .06); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--rc-accent); color: #3a2a00; font-family: var(--head-font); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }
.center { text-align: center; }
.mt { margin-top: 32px; }

/* ---------- page / content ---------- */
.page-hero { background: linear-gradient(160deg, #e8f2ff 0%, #fff7e0 100%); padding: clamp(36px, 6vw, 64px) 0; }
.page-hero h1 { margin: 0; }
.page-hero p { color: var(--muted); margin: .5em 0 0; font-size: 1.1em; max-width: 44em; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6em; }
.breadcrumbs a { color: var(--muted); }
.content { padding: clamp(36px, 6vw, 64px) 0; }
.entry-content > * { max-width: 780px; }
.entry-content > .alignwide, .entry-content > .rc-grid, .entry-content > .rc-booking, .entry-content > .contact-grid { max-width: none; }
.entry-content img { border-radius: 12px; }
.pagination { margin-top: 32px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: .4em .9em; border-radius: 8px; background: var(--soft); text-decoration: none; }
.pagination .current { background: var(--rc-primary); color: #fff; }

/* type filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .4em 1em; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.chips a.is-active, .chips a:hover { background: var(--rc-primary); color: #fff; }

/* ---------- single castle ---------- */
.castle-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .castle-top { grid-template-columns: 1fr; } }
.castle-summary h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.castle-price { font-family: var(--head-font); font-size: 1.8rem; font-weight: 800; color: var(--rc-primary-dark); margin: 0 0 .5em; }
.castle-summary .rc-details { grid-template-columns: 1fr 1fr; }
.castle-excerpt { font-size: 1.1em; color: var(--muted); }
.castle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.castle-body { margin-top: 40px; }
.castle-body .entry-content { max-width: 780px; }
.coming-soon-note { background: #fff8e1; border-radius: 12px; padding: 14px 18px; font-weight: 700; color: #6b4e00; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
a.contact-card:hover { box-shadow: 0 10px 24px rgba(20,40,80,.1); transform: translateY(-2px); color: var(--ink); }
.contact-card .ci { font-size: 26px; }
.contact-card strong { display: block; font-family: var(--head-font); font-size: 1.15rem; margin-top: 6px; }
.contact-card span { color: var(--muted); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--rc-primary); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background-image: radial-gradient(circle at 90% 10%, rgba(255,179,0,.35), transparent 40%), radial-gradient(circle at 0% 100%, rgba(255,90,95,.3), transparent 40%); }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; opacity: .9; }
.site-footer { background: #0f1b33; color: #c9d2e3; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 .5em; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--rc-primary); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
