/*
 * Riggy Rigs theme.
 * Colours come from CSS variables set in the Customizer (see inc/customizer.php).
 */

:root {
	--riggy-accent: #f5b400;
	--riggy-accent-text: #141414;
	--riggy-dark: #17191c;
	--riggy-text: #1f2328;
	--riggy-bg: #ffffff;
	--riggy-muted: #646b73;
	--riggy-border: #e2e5e9;
	--riggy-soft: #f5f6f8;
	--riggy-radius: 10px;
	--riggy-width: 1240px;
	--riggy-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--riggy-heading: "Arial Narrow", "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--riggy-bg); color: var(--riggy-text); font: 17px/1.6 var(--riggy-font); }
#primary { flex: 1 0 auto; }
.site-main { width: 100%; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: inherit; }
h1, h2, h3, h4 { font-family: var(--riggy-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--riggy-width)); margin-inline: auto; }
.content-narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; background: #fff; color: #000; }
.skip-link:focus { left: 8px; }
.riggy-icon { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--riggy-accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid transparent; border-radius: var(--riggy-radius); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(.93); }
.btn-primary { background: var(--riggy-accent); color: var(--riggy-accent-text); }
.btn-primary:hover { color: var(--riggy-accent-text); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { color: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--riggy-radius); background: transparent; color: inherit; cursor: pointer; }
.icon-btn .riggy-icon { width: 24px; height: 24px; }

/* Top bar */
.topbar { background: #000; color: #d7dade; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar-item .riggy-icon { width: 15px; height: 15px; color: var(--riggy-accent); }
.topbar-contact { display: flex; gap: 20px; margin-left: auto; }
@media (max-width: 700px) { .topbar-hours { display: none; } .topbar-contact { width: 100%; justify-content: space-between; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--riggy-dark); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.site-brand { flex: none; }
.site-brand img { display: block; max-height: 54px; width: auto; }
.site-name { font-family: var(--riggy-heading); font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.site-nav { flex: 1; }
.site-nav .menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: rgba(255,255,255,.1); }
.site-nav .sub-menu { display: none; }
.nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-call, .nav-toggle { display: none; }
.nav-toggle-close { display: none; }
@media (max-width: 1020px) {
	.header-inner { min-height: 64px; gap: 10px; }
	.site-brand { margin-right: auto; }
	.site-brand img { max-height: 44px; }
	.header-cta { display: none; }
	.header-call, .nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: 64px 0 0; display: none; padding: 16px; background: var(--riggy-dark); overflow-y: auto; }
	.admin-bar .site-nav { top: 110px; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; font-size: 20px; }
	.site-nav .sub-menu { display: block; padding-left: 16px; list-style: none; }
	.nav-phone { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px; border-radius: var(--riggy-radius); background: var(--riggy-accent); color: var(--riggy-accent-text); font-weight: 800; font-size: 20px; text-decoration: none; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	body.nav-open { overflow: hidden; }
}

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding-top: 0; }
.section-soft { background: var(--riggy-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-title.center { text-align: center; }
.section-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--riggy-accent); }
@media (max-width: 700px) { .section { padding: 44px 0; } }

/* Hero */
.hero { position: relative; padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 70px); background: var(--riggy-dark); color: #fff; overflow: hidden; }
.hero.has-image { background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%), var(--hero-image) center / cover no-repeat, var(--riggy-dark); }
.hero:not(.has-image)::after { content: ""; position: absolute; right: -80px; bottom: -40px; width: 520px; height: 260px; background: var(--riggy-accent); opacity: .12; transform: skewX(-20deg); }
.hero-inner { position: relative; z-index: 1; }
.hero-title { max-width: 18ch; font-size: clamp(36px, 6.5vw, 68px); text-transform: uppercase; letter-spacing: -.02em; }
.hero-lead { max-width: 52ch; font-size: clamp(17px, 2vw, 21px); color: #e3e5e8; }
.hero-search { margin-top: 30px; max-width: 980px; color: var(--riggy-text); }

/* Stock types */
.type-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.type-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--riggy-border); border-radius: 999px; font-weight: 700; text-decoration: none; }
.type-chips a:hover { border-color: var(--riggy-accent); background: var(--riggy-soft); }
.type-chips span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--riggy-dark); color: #fff; font-size: 13px; text-align: center; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: var(--riggy-radius); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 18px; right: 22px; font-family: var(--riggy-heading); font-size: 48px; font-weight: 800; line-height: 1; color: var(--riggy-soft); }
.step-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: var(--riggy-accent); color: var(--riggy-accent-text); }
.step-icon .riggy-icon { width: 28px; height: 28px; }
.steps h3 { font-size: 22px; }
.steps p { margin: 0; color: var(--riggy-muted); }

/* Sell band */
.sell-band { background: var(--riggy-accent); color: var(--riggy-accent-text); }
.sell-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.sell-band .btn-primary { background: var(--riggy-dark); color: #fff; }
.sell-band p { font-size: 19px; max-width: 60ch; }
@media (max-width: 760px) { .sell-band-inner { grid-template-columns: 1fr; } }

.ticks { margin: 0 0 1em; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 600; }
.ticks .riggy-icon { margin-top: 3px; }

/* About band */
.about-band { background: var(--riggy-dark); color: #e9ebee; }
.about-band .section-title { color: #fff; }
.about-band .ticks .riggy-icon { color: var(--riggy-accent); }
.about-band .section-link { color: #fff; }
.about-grid.has-image { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image img { display: block; border-radius: var(--riggy-radius); }
@media (max-width: 860px) { .about-grid.has-image { grid-template-columns: 1fr; gap: 24px; } }

/* Contact band */
.contact-band { background: var(--riggy-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Pages */
.page-header { padding: 48px 0 12px; }
.page-title { font-size: clamp(32px, 5vw, 50px); }
.page-lead { max-width: 62ch; font-size: 19px; color: var(--riggy-muted); }
.entry-content { padding-bottom: 48px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { margin-top: 1.4em; font-size: 30px; }
.entry-content ul.is-style-ticks { padding: 0; list-style: none; }
.entry-content ul.is-style-ticks li { position: relative; margin-bottom: 8px; padding-left: 32px; font-weight: 600; }
.entry-content ul.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--riggy-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 16.2-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.entry-content img { border-radius: var(--riggy-radius); }

/* Contact page */
.contact-page { display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: 40px; padding-bottom: 56px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--riggy-border); border-radius: var(--riggy-radius); text-decoration: none; }
a.contact-card:hover { border-color: var(--riggy-accent); }
.contact-card .riggy-icon { width: 26px; height: 26px; color: var(--riggy-accent); }
.contact-card strong { display: block; }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }

/* Sell page */
.sell-page { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; padding: 48px 0 64px; align-items: start; }
.sell-intro { position: sticky; top: 110px; }
.sell-steps { padding-left: 1.2em; }
.sell-steps li { margin-bottom: 12px; }
.sell-steps strong { display: block; }
@media (max-width: 900px) { .sell-page { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; } .sell-intro { position: static; } }

/* Blog */
.post-list { display: grid; gap: 28px; padding-bottom: 40px; }
.post-item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.post-item:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-thumb img { display: block; border-radius: var(--riggy-radius); aspect-ratio: 4 / 3; object-fit: cover; }
.post-title { font-size: 26px; }
.post-title a { text-decoration: none; }
.post-meta { color: var(--riggy-muted); font-size: 14px; }
.post-hero img { border-radius: var(--riggy-radius); }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; } }
.notfound { padding: 60px 0 80px; }

/* Footer */
.site-footer { background: var(--riggy-dark); color: #c9cdd2; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 36px; }
.footer-name { font-family: var(--riggy-heading); font-size: 24px; font-weight: 800; color: #fff; }
.footer-title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--riggy-accent); }
.contact-list, .plain-list, .socials { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.contact-list .riggy-icon { margin-top: 3px; color: var(--riggy-accent); }
.plain-list li { margin-bottom: 8px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp-float .riggy-icon { width: 30px; height: 30px; }
.whatsapp-float:hover { color: #fff; filter: brightness(.95); }

/* Vehicles plugin inside the theme */
.rr-wrap { width: min(100% - 32px, var(--riggy-width)); }
.rr-title, .rr-section h2, .rr-card-title, .rr-price, .rr-enquiry-title, .rr-form legend { font-family: var(--riggy-heading); }

/* WordPress core classes */
.alignwide { max-width: var(--riggy-width); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wp-caption-text, figcaption { color: var(--riggy-muted); font-size: 14px; }
.signage-page { grid-template-columns: 1.3fr 1fr; }
.signage-page .sell-intro { position: static; }
.signage-page .sell-form { position: sticky; top: 110px; }
.signage-page .entry-content img { border-radius: 8px; }
@media (max-width: 900px) { .signage-page { grid-template-columns: 1fr; } .signage-page .sell-form { position: static; } }
.signage-or { margin: 20px 0 10px; font-weight: 600; }
/* Latest stock on the home page: five across on wide screens. */
@media (min-width: 1200px) { .rr-grid.rr-grid-latest { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
