/*
Theme Name: CabAssist UK
Theme URI: https://cabassistuk.com
Author: CabAssist UK
Description: Premium taxi and private hire theme for CabAssist UK. Works with the CabAssist UK Booking plugin. Edit pages with the block editor and business details under Appearance, Customize.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabassist-uk
*/

:root { --cab-navy: #10192B; --cab-accent: #EAB308; --cab-grey: #F3F4F6; --cab-text: #1F2937; --cab-muted: #6B7280; --cab-radius: 14px; --cab-shadow: 0 10px 34px rgba(16,25,43,.10); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cab-text); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cab-navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cab-accent); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; background: #fff; color: var(--cab-navy); padding: 12px 18px; left: 8px; top: 8px; width: auto; height: auto; z-index: 100000; }
h1, h2, h3, h4 { color: var(--cab-navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cab-navy); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.site-brand .cab-logo, .site-brand .custom-logo { height: var(--cab-logo-h, 56px); width: auto; max-width: 100%; display: block; }
.site-brand__name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.site-brand__name span { color: var(--cab-accent); }
.site-brand__tag { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cab-accent); font-weight: 600; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.primary-nav a { display: block; padding: 10px 14px; color: #e5e7eb; text-decoration: none; font-weight: 600; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--cab-accent); }
.header-cta { display: inline-block; background: var(--cab-accent); color: var(--cab-navy); font-weight: 800; padding: 11px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.header-cta:hover { filter: brightness(.95); }
.header-phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--cab-accent); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 980px) {
	.nav-toggle { display: inline-block; }
	.site-header__inner { flex-wrap: wrap; }
	.primary-nav, .header-actions { display: none; width: 100%; margin: 0; }
	.site-header.is-open .primary-nav, .site-header.is-open .header-actions { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.header-actions { display: none; padding-bottom: 8px; }
	.site-header.is-open .header-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
}
.header-actions { display: flex; align-items: center; gap: 18px; }

/* Layout */
.site-main { display: block; }
.cab-prose { max-width: 820px; margin: 0 auto; padding: 56px 24px 72px; }
.cab-prose .entry-title { margin-bottom: 24px; }
.site-main .alignfull { width: 100%; max-width: none; }
.cab-section { padding: clamp(56px, 8vw, 96px) 24px; }
.cab-section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.cab-section--grey { background: var(--cab-grey); }
.cab-section--navy { background: var(--cab-navy); color: #e5e7eb; }
.cab-section--navy h2, .cab-section--navy h3 { color: #fff; }
.cab-eyebrow { color: #a16207; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.cab-section--navy .cab-eyebrow, .cab-hero .cab-eyebrow { color: var(--cab-accent); }
.cab-center { text-align: center; }
.cab-lead { font-size: 19px; color: var(--cab-muted); max-width: 720px; }
.cab-center.cab-lead { margin-left: auto; margin-right: auto; }
.wp-block-columns { gap: 32px; margin-bottom: 0; align-items: center; }
.wp-block-columns.is-not-stacked-on-mobile { flex-wrap: nowrap; }
@media (max-width: 781px) { .wp-block-columns { gap: 24px; } }

/* Hero */
.cab-hero { position: relative; isolation: isolate; background-color: var(--cab-navy); background-image: var(--cab-hero-image, none); background-size: cover; background-position: var(--cab-hero-pos, center center); color: #e5e7eb; padding: clamp(48px, 7vw, 88px) 24px clamp(56px, 8vw, 104px); }
.cab-hero::before { content: ""; position: absolute; inset: 0; background: var(--cab-navy); opacity: var(--cab-hero-overlay, .75); z-index: 0; pointer-events: none; }
.cab-hero > * { position: relative; z-index: 1; max-width: 1280px; margin-left: auto; margin-right: auto; }
.cab-hero h1, .cab-hero h2 { color: #fff; }
.cab-hero .cab-lead { color: #cbd5e1; }
.cab-hero--page { padding: clamp(56px, 8vw, 96px) 24px; text-align: center; }
.cab-hero--page .cab-lead { margin-left: auto; margin-right: auto; }
.cab-hero .wp-block-columns { align-items: flex-start; }

/* Buttons */
.wp-block-buttons { gap: 14px; margin-top: 8px; }
.wp-block-button__link { background: var(--cab-accent); color: var(--cab-navy); font-weight: 800; border-radius: 999px; padding: 14px 28px; text-decoration: none; display: inline-block; border: 2px solid var(--cab-accent); transition: transform .15s, filter .15s; }
.wp-block-button__link:hover { filter: brightness(.96); transform: translateY(-1px); color: var(--cab-navy); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cab-navy); border-color: var(--cab-navy); }
.cab-hero .is-style-outline .wp-block-button__link, .cab-section--navy .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }
.cab-hero .is-style-outline .wp-block-button__link:hover, .cab-section--navy .is-style-outline .wp-block-button__link:hover { color: #fff; border-color: #fff; }

/* Cards */
.cab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; }
.cab-cards > * { margin: 0 !important; }
.cab-card { background: #fff; border-radius: var(--cab-radius); box-shadow: var(--cab-shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e5e7eb; }
.cab-card figure { margin: 0; }
.cab-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cab-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cab-card__body p { color: var(--cab-muted); }
.cab-card__body .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.cab-trust { text-align: center; }
.cab-trust h3 { font-size: 19px; margin-bottom: 6px; }
.cab-trust h3::before { content: ""; display: block; width: 44px; height: 4px; background: var(--cab-accent); border-radius: 4px; margin: 0 auto 14px; }
.cab-trust p { color: var(--cab-muted); margin: 0; }
.cab-section--navy .cab-trust p { color: #cbd5e1; }
.cab-image-round img { border-radius: var(--cab-radius); box-shadow: var(--cab-shadow); width: 100%; object-fit: cover; }
.cab-check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.cab-check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.cab-check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--cab-accent); border-bottom: 3px solid var(--cab-accent); transform: rotate(-45deg); }
.cab-quote { background: #fff; border-radius: var(--cab-radius); box-shadow: var(--cab-shadow); padding: 26px; border-left: 5px solid var(--cab-accent); margin: 0; height: 100%; }
.cab-quote p { font-size: 18px; font-style: italic; }
.cab-quote cite { font-style: normal; font-weight: 700; color: var(--cab-navy); }
.cab-cta { background: linear-gradient(110deg, var(--cab-navy), #1b2a47); text-align: center; color: #e5e7eb; }
.cab-cta h2 { color: #fff; }
.cab-cta .wp-block-buttons { justify-content: center; }
.cab-contact-card { background: #fff; border-radius: var(--cab-radius); padding: 24px; box-shadow: var(--cab-shadow); text-align: center; border: 1px solid #e5e7eb; }
.cab-contact-card h3 { margin-bottom: 6px; font-size: 18px; }
.cab-contact-card p { margin: 0; }
.cab-service-row { margin-bottom: 56px; }
.cab-service-row:last-child { margin-bottom: 0; }
.cab-map-embed { border-radius: var(--cab-radius); overflow: hidden; box-shadow: var(--cab-shadow); line-height: 0; }
.cab-map-embed iframe { width: 100%; height: 380px; border: 0; }
.cab-form-wrap { max-width: 980px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--cab-navy); color: #cbd5e1; padding: 56px 24px 24px; }
.site-footer a { color: #e5e7eb; text-decoration: none; }
.site-footer a:hover { color: var(--cab-accent); text-decoration: underline; }
.site-footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--cab-accent); margin-top: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__brand { font-size: 24px; font-weight: 800; color: #fff; }
.site-footer__brand span { color: var(--cab-accent); }
.site-footer__bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-links a { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wp-block-button__link { transition: none; } }


/* ---- v1.1 additions ---- */
.site-footer__brand .cab-logo { height: 64px; width: auto; max-width: 100%; display: block; }
.cab-hero h1 { color: #fff; }
.cab-hero h1 .cab-gold, .cab-gold { color: var(--cab-accent); }
.cab-hero h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--cab-accent); margin-top: 16px; border-radius: 2px; }
.cab-hero--page h1::after { margin-left: auto; margin-right: auto; }

/* Promotional banner under the menu */
.cab-banner { background: var(--cab-banner-bg, #EAB308); color: var(--cab-banner-fg, #10192B); overflow: hidden; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; line-height: 1; }
.cab-banner__track { display: flex; width: max-content; }
.cab-banner__half { display: flex; flex-shrink: 0; }
.cab-banner__item { padding: 11px 36px; white-space: nowrap; }
.cab-banner__item::after { content: "\2022"; margin-left: 72px; opacity: .6; }
.cab-banner.is-animated .cab-banner__track { animation: cab-marquee var(--cab-banner-speed, 28s) linear infinite; }
.cab-banner.is-animated:hover .cab-banner__track, .cab-banner.is-animated:focus-within .cab-banner__track { animation-play-state: paused; }
@keyframes cab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.cab-banner .cab-banner__track { animation: none !important; width: 100%; justify-content: center; }
	.cab-banner__half[aria-hidden="true"] { display: none; }
	.cab-banner__half { flex-wrap: wrap; justify-content: center; }
	.cab-banner__item:nth-child(n+2) { display: none; }
	.cab-banner__item::after { content: none; }
}
@media (max-width: 600px) { .cab-banner { font-size: 13px; } .cab-banner__item { padding: 9px 24px; } }

/* Office map section */
.cab-office h2 { margin-bottom: 14px; }
.cab-office__details { font-style: normal; margin: 16px 0 0; }
.cab-office__details p { margin: 0 0 6px; }
.cab-office__dir { display: inline-block; background: var(--cab-accent); color: var(--cab-navy); font-weight: 800; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.cab-office .cab-map-embed iframe { min-height: 340px; }
.cab-form-wrap { max-width: 1240px; }
