/*
Theme Name: Speedy Machine
Theme URI: https://speedymachine.ae
Author: Ocean Peak Marketing
Description: Car rental theme for Speedy Machine Car Rental, Dubai. English and Arabic (RTL). Needs the Speedy Machine Core plugin.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: speedymachine
*/

:root {
	--bg: #0b0c0f;
	--bg2: #101216;
	--card: #14161b;
	--line: rgba(255, 255, 255, .08);
	--line2: rgba(255, 255, 255, .16);
	--text: #eceef1;
	--soft: #c9cdd4;
	--mute: #a3a8b1;
	--red: #a91d22;
	--red-hi: #c22329;
	--accent: #ff5a4f;
	--wa: #1fa855;
	--r: 16px;
	--display: "Chakra Petch", system-ui, sans-serif;
	--body: "Figtree", system-ui, sans-serif;
}

html[lang="ar"] {
	--display: "Cairo", system-ui, sans-serif;
	--body: "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.h { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
html[lang="ar"] .h { letter-spacing: 0; line-height: 1.35; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.meta { color: var(--mute); font-size: 14px; }
.sec { padding: 96px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { font-size: 36px; }
.link-accent { font-weight: 600; color: var(--accent); }
.link-accent:hover { color: #ff7d74; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); color: #fff; }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn-line:hover { border-color: rgba(255, 255, 255, .4); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #22bc5f; color: #fff; }
.btn-white { background: #fff; color: var(--bg); }
.btn-white:hover { color: var(--bg); background: #f1f1f1; }
.btn-icon { padding: 0 14px; }
.btn svg { flex: none; }

/* Pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; }
.pill span { color: var(--mute); font-weight: 500; font-size: 14px; }
.pill.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.pill.is-on span { color: #ffe3e1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 15, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--soft); padding: 8px 0; }
.nav a:hover, .nav a.is-on { color: #fff; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 600; font-size: 15px; padding: 10px 12px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line2); background: none; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.site-header .wrap.mnav-wrap { display: block; min-height: 0; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 12, 15, .92) 0%, rgba(11, 12, 15, .7) 40%, rgba(11, 12, 15, .15) 75%); }
html[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(11, 12, 15, .92) 0%, rgba(11, 12, 15, .7) 40%, rgba(11, 12, 15, .15) 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; z-index: 1; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 15, 0) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 64px; line-height: 1.02; }
html[lang="ar"] .hero h1 { font-size: 56px; line-height: 1.25; }
.hero p.lead { margin: 0; font-size: 19px; color: var(--soft); }

/* Search form */
.finder { background: var(--card); border: 1px solid var(--line2); border-radius: var(--r); padding: 20px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
html[lang="ar"] .field label { letter-spacing: 0; font-size: 13px; }
.field select, .field input { height: 48px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: var(--bg); color: var(--text); padding: 0 14px; font-size: 15px; width: 100%; color-scheme: dark; }
.finder .btn { min-width: 160px; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.trust svg { flex: none; color: var(--accent); }

/* Car cards */
.grid-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #1b1e24; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; background: rgba(11, 12, 15, .82); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body h2, .card-body h3 { font-size: 21px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { margin: 0; }
.price strong { font-family: var(--display); font-size: 24px; }
.card-btns { display: flex; gap: 8px; }

/* Steps, reviews, blog */
.band { background: var(--bg2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step b { font-family: var(--display); font-size: 44px; color: var(--red); line-height: 1; }
.step h3 { font-size: 22px; }
.step p { margin: 0; color: var(--mute); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { margin: 0; padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.review .stars { color: #ffb020; letter-spacing: 3px; margin: 0; }
.review blockquote { margin: 0; font-size: 18px; }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.post-card .card-media { aspect-ratio: 1730 / 909; }
.post-card h3, .post-card h2 { font-size: 20px; line-height: 1.35; }
.read-more { margin-top: auto; font-weight: 600; color: var(--soft); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--mute); }

/* CTA */
.cta { border-radius: 20px; background: var(--red); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 34px; color: #fff; }
.cta p { margin: 8px 0 0; font-size: 17px; color: #ffe3e1; }

/* Listing page */
.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: 48px; }
.page-head p { margin: 0; max-width: 760px; font-size: 18px; color: var(--soft); }
.crumbs { font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.toolbar { padding: 28px 0; }
.toolbar .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.toolbar .field { flex: 0 0 220px; }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; min-width: 46px; min-height: 46px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; }
.pager .is-on { background: var(--red); border-color: var(--red); }
.empty { padding: 40px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; color: var(--mute); }

/* Car page */
.car-layout { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding: 24px 0 72px; }
.car-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: #1b1e24; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.thumbs button.is-on { border-color: var(--red); }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.car-title h1 { font-size: 44px; }
.car-title p { margin: 8px 0 0; font-size: 17px; color: var(--mute); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.spec { padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.spec span { display: block; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.spec b { font-size: 17px; }
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.rates div { padding: 18px; }
.rates div + div { border-inline-start: 1px solid var(--line2); }
.rates span { display: block; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.rates b { font-family: var(--display); font-size: 22px; }
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; color: var(--soft); }
.features li::before { content: "✓"; color: var(--accent); margin-inline-end: 10px; }
.car-block h2 { font-size: 24px; margin-bottom: 16px; }
.book { flex: 1 1 360px; min-width: 0; position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.book .big { font-family: var(--display); font-size: 36px; }
.book .row2 { display: flex; gap: 12px; flex-wrap: wrap; }
.book .row2 .field { flex: 1 1 100%; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-top: 1px solid var(--line2); padding-top: 16px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; }
.quote dt { color: var(--mute); }
.quote dd { margin: 0; }
.quote .free { color: #5fd38d; }
.quote .total { border-top: 1px solid var(--line2); padding-top: 12px; font-weight: 700; font-size: 18px; }
.quote .total dt { color: var(--text); }
.book .note { margin: 0; text-align: center; color: var(--mute); font-size: 13px; }
.mbar { display: none; }

/* Article and pages */
.article { max-width: 780px; margin: 0 auto; padding: 32px 0 80px; }
.article h1 { font-size: 44px; margin: 12px 0 18px; }
.article .cover { width: 100%; border-radius: var(--r); margin: 24px 0 32px; }
.prose { color: var(--soft); font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--display); color: var(--text); line-height: 1.3; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line2); padding: 10px 12px; text-align: start; }
.prose th { background: var(--card); color: var(--text); }
.prose li { margin: .4em 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding: 40px 0 80px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card a { font-weight: 600; }
.map { width: 100%; min-height: 380px; border: 0; border-radius: var(--r); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.site-footer nav, .site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col-title { margin: 0 0 4px; font-weight: 600; }
.site-footer a { color: var(--mute); }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 36px; }
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.wa-float:hover { color: #fff; background: #22bc5f; }

/* Responsive */
@media (max-width: 1080px) {
	.nav { display: none; }
	.menu-btn { display: inline-flex; }
	.head-actions .btn-wa .num { display: none; }
}
@media (max-width: 760px) {
	.wrap { padding: 0 18px; }
	.sec { padding: 64px 0; }
	.sec-head h2 { font-size: 28px; }
	.site-header .wrap { min-height: 64px; gap: 12px; }
	.logo img { height: 30px; }
	.head-actions .btn-wa { display: none; }
	.hero { min-height: 0; }
	.hero::before, html[dir="rtl"] .hero::before { background: linear-gradient(0deg, rgba(11, 12, 15, 1) 35%, rgba(11, 12, 15, .55) 65%, rgba(11, 12, 15, .2) 100%); }
	.hero .wrap { padding-top: 200px; padding-bottom: 32px; gap: 24px; }
	.hero h1, html[lang="ar"] .hero h1 { font-size: 36px; line-height: 1.12; }
	html[lang="ar"] .hero h1 { line-height: 1.35; }
	.hero p.lead { font-size: 16px; }
	.finder { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
	.finder .field { flex: 0 0 auto; }
	.trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 14px; }
	.faq { gap: 20px; }
	.cta { padding: 28px; }
	.cta h2 { font-size: 26px; }
	.page-head h1, .car-title h1, .article h1 { font-size: 30px; }
	.rates { grid-template-columns: 1fr; }
	.rates div + div { border-inline-start: 0; border-top: 1px solid var(--line2); }
	.book { position: static; }
	.toolbar .field { flex: 1 1 100%; }
	.mbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 55; background: var(--bg); border-top: 1px solid var(--line2); padding: 12px 18px; gap: 12px; align-items: center; }
	.mbar p { margin: 0; flex: 1; }
	.has-mbar .wa-float { display: none; }
	.has-mbar .site-footer { padding-bottom: 100px; }
}
