/* Oraka theme – styles that theme.json cannot express (from the original
   Next.js design: fixed header, dotted hero, gradient titles, mobile tab bar,
   dark mode). Colours use the theme.json palette variables. */

html[lang="ar"] body, html[dir="rtl"] body { font-family: var(--wp--preset--font-family--cairo); }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Header ---------------------------------------------------------------- */
.oraka-site-header { position: fixed; top: 0; inset-inline: 0; z-index: 50; background: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .oraka-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .oraka-site-header { top: 46px; } }
.oraka-site-header > .wp-block-group { min-height: 5rem; }
.oraka-site-header .wp-block-site-logo img { height: 3rem; width: auto; object-fit: contain; }
.oraka-header-main { padding-top: 5.0625rem; }
:root .oraka-header__nav .wp-block-navigation-item__content, :root .oraka-site-footer a, :root .oraka-tabbar a { text-decoration: none; }
.oraka-header__nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem 0; }
.oraka-header__nav .wp-block-navigation-item__content::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--oraka-tab-icon) center / contain no-repeat; mask: var(--oraka-tab-icon) center / contain no-repeat; }
.oraka-header__nav .wp-block-navigation-item:not([class*="oraka-tab-"]) .wp-block-navigation-item__content::before { display: none; }
.oraka-site-header .oraka-header-right { margin-inline-start: auto; }
.oraka-header__nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); text-decoration: none; }
.oraka-header__nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
@media (max-width: 767px) { .oraka-site-header .oraka-nav--primary { display: none; } }

/* Mobile bottom tab bar (like the original app) -------------------------- */
.oraka-tabbar { display: none; }
@media (max-width: 767px) {
	.oraka-tabbar { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; height: 4rem; background: var(--wp--preset--color--base); border-top: 1px solid var(--wp--preset--color--border); }
	.oraka-tabbar .wp-block-navigation, .oraka-tabbar .wp-block-navigation__container { width: 100%; height: 4rem; justify-content: space-around !important; gap: 0 !important; flex-wrap: nowrap !important; }
	.oraka-tabbar .wp-block-navigation-item { flex: 1; justify-content: center; }
	.oraka-tabbar .wp-block-navigation-item__content { display: flex !important; flex-direction: column; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 500; color: var(--wp--preset--color--muted) !important; text-align: center; line-height: 1.1; }
	.oraka-tabbar .current-menu-item .wp-block-navigation-item__content { color: var(--wp--preset--color--primary-dark) !important; }
	.oraka-tabbar .wp-block-navigation-item__content::before { content: ""; width: 1.25rem; height: 1.25rem; background: currentColor; -webkit-mask: var(--oraka-tab-icon) center / contain no-repeat; mask: var(--oraka-tab-icon) center / contain no-repeat; }
	body { padding-bottom: 4rem; }
}
/* Tab icons: add the CSS class (Advanced → Additional CSS class) to a menu link. */
.oraka-tab-home { --oraka-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.oraka-tab-cars { --oraka-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
.oraka-tab-export { --oraka-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }
.oraka-tab-faq { --oraka-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.oraka-tab-about { --oraka-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }

/* Block styles ---------------------------------------------------------- */
/* "Display" title (slug kept as "gradient" so existing pages keep working). */
.is-style-gradient, .oraka-gradient-title {
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 800 !important; font-stretch: 118%; letter-spacing: -0.025em; line-height: 1.02;
}
html[lang="ar"] .is-style-gradient { letter-spacing: 0; line-height: 1.35; font-stretch: normal; }
.wp-block-group.is-style-dotted {
	background-color: #16223c !important; color: #fff;
	background-image: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1px); background-size: 30px 30px;
}
.wp-block-group.is-style-card { border: 1px solid var(--wp--preset--color--border); border-radius: .75rem; background: var(--wp--preset--color--base); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.wp-block-group.is-style-notice { border: 1px solid #fde68a; border-radius: .75rem; background: #fffbeb; color: #78350f; }
.wp-block-button.is-style-secondary .wp-block-button__link { background: #fff; color: #111827; }
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: #f3f4f6; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); padding-inline: .5rem; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--surface); }
.wp-block-button__link { display: inline-flex; align-items: center; gap: .35rem; }

.wp-block-details summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex-shrink: 0; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(180deg); }
.wp-block-details > :not(summary) { margin-top: .75rem; color: var(--wp--preset--color--muted); line-height: 1.7; }
.wp-block-details.is-style-card { border: 1px solid var(--wp--preset--color--border); border-radius: .75rem; padding: 1rem 1.25rem; background: var(--wp--preset--color--base); }
.wp-block-details.is-style-card + .wp-block-details.is-style-card { margin-top: .75rem; }
ul.is-style-check { list-style: none; padding-inline-start: 0; }
ul.is-style-check li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .5rem; }
ul.is-style-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3rem; width: 1rem; height: 1rem; background: var(--wp--preset--color--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Footer ---------------------------------------------------------------- */
.oraka-site-footer a { color: inherit; }
.oraka-site-footer a:hover { color: var(--wp--preset--color--primary); }
.oraka-site-footer .oraka-credit a { color: var(--wp--preset--color--primary); }

/* Car page layout ------------------------------------------------------- */
@media (min-width: 1024px) { .oraka-car-layout > .wp-block-column:first-child { flex-basis: 58.333% !important; } }
@media (max-width: 1023px) { .oraka-cars-layout.wp-block-columns { flex-wrap: wrap !important; } .oraka-cars-layout > .wp-block-column { flex-basis: 100% !important; } }

/* Dark mode: remap the palette; everything using palette colours follows. */
html.dark {
	color-scheme: dark;
	--wp--preset--color--base: #0a0a0a;
	--wp--preset--color--contrast: #fafafa;
	--wp--preset--color--surface: #171717;
	--wp--preset--color--muted: #a3a3a3;
	--wp--preset--color--subtle: #a3a3a3;
	--wp--preset--color--border: #2a2a2a;
	--wp--preset--color--primary: #3b82f6;
	--wp--preset--color--primary-dark: #60a5fa;
	--wp--preset--color--primary-soft: #0f1c33;
	--wp--preset--color--primary-softer: #1e3a8a;
}
html.dark .wp-block-site-logo img { background: #fff; border-radius: .375rem; padding: .125rem .375rem; }
html.dark .wp-block-button__link:hover { background: #d4d4d4; }
html.dark .wp-block-group.is-style-notice { background: #2a2108; border-color: #57430f; color: #fde68a; }
html.dark .oraka-notice--danger { background: #2a0f0f; border-color: #7f1d1d; color: #fecaca; }
html.dark .oraka-notice--success { background: #0c2414; border-color: #14532d; color: #bbf7d0; }
html.dark .oraka-notice--demo, html.dark .oraka-pill--demo { background: #2a2108; border-color: #57430f; color: #fde68a; }
html.dark .oraka-terms--logos .oraka-term__img img { background: #fff; border-radius: .375rem; padding: .25rem; }
html.dark .oraka-home-search { background: rgb(23 23 23 / .92); }
html.dark .oraka-home-search input { color: #fafafa; }

/* Footer menu: vertical list without icons (like the original footer). */
.oraka-site-footer .wp-block-navigation__container, .oraka-site-footer .wp-block-navigation { flex-direction: column; align-items: flex-start !important; gap: .5rem !important; }
.oraka-site-footer .wp-block-navigation-item__content::before { display: none !important; }
.oraka-site-footer .wp-block-navigation { font-size: .875rem; font-weight: 400; }
/* Dark mode: keep text on the night-blue sections light. */
html.dark .is-style-dotted .has-base-color { color: #fff !important; }
html.dark .is-style-dotted .has-primary-softer-color { color: #dbeafe !important; }
html.dark .wp-block-button.is-style-secondary .wp-block-button__link { background: #fff; color: #111827; }
/* Tighter accordion lists (FAQ, countries). */
:root :where(.wp-block-group) > .wp-block-details + .wp-block-details:not(.is-style-card) { margin-block-start: 0; }
.wp-block-details:not(.is-style-card) { padding-top: .9rem; padding-bottom: .9rem; }
ol.oraka-steps li { margin-bottom: .6rem; }

/* ======================================================================
   2026-11 redesign (home page, header, footer). Brand: white, black and
   the logo blue only. One bold element: the lit "showroom" hero.
   ====================================================================== */
h1, h2, .wp-block-heading { font-stretch: 112%; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] .wp-block-heading { font-stretch: normal; letter-spacing: 0; }
html[lang="ar"] body { line-height: 1.75; }

/* Header: quieter, no icons in the desktop menu. */
.oraka-site-header { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--wp--preset--color--border); }
.oraka-site-header .wp-block-navigation-item__content::before { display: none !important; }
.oraka-site-header .wp-block-navigation { font-weight: 550; }

/* Hero ----------------------------------------------------------------- */
.oraka-hero { position: relative; isolation: isolate; overflow: hidden; margin-inline: clamp(.5rem, 1.2vw, 1rem) !important; border-radius: clamp(1.25rem, 2.5vw, 2rem); background: #000; }
.oraka-hero::before { content: ""; position: absolute; z-index: -1; inset: 30% -10% -10%; background: radial-gradient(50% 42% at 50% 56%, rgb(61 107 255 / .55), rgb(0 48 138 / .28) 48%, transparent 78%); }
.oraka-hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 34%; background: linear-gradient(to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / .035)); border-top: 1px solid rgb(255 255 255 / .06); }
:root .oraka-hero__title { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; line-height: .96; color: #fff; }
html[lang="ar"] .oraka-hero__title { font-weight: 800; line-height: 1.25; letter-spacing: 0; }
:root .oraka-hero__lead { max-width: 38rem; margin: 1.1rem auto 0 !important; color: rgb(255 255 255 / .68); font-size: clamp(1rem, 1.4vw, 1.175rem); line-height: 1.55; }
.oraka-hero__car { max-width: 58rem !important; margin: clamp(.5rem, 2vw, 1.5rem) auto 0 !important; }
.oraka-hero__car img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 30px rgb(0 0 0 / .75)); -webkit-box-reflect: below -4px linear-gradient(to bottom, transparent 72%, rgb(255 255 255 / .16)); }
.oraka-hero__search { margin-top: clamp(1.5rem, 3vw, 2.75rem) !important; }
@media (prefers-reduced-motion: no-preference) {
	.oraka-hero__car img { animation: oraka-roll-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
	[dir="rtl"] .oraka-hero__car img { animation-name: oraka-roll-in-rtl; }
}
@keyframes oraka-roll-in { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }
@keyframes oraka-roll-in-rtl { from { opacity: 0; transform: translateX(6%) scaleX(-1); } to { opacity: 1; transform: scaleX(-1); } }
[dir="rtl"] .oraka-hero__car img { transform: scaleX(-1); }

/* Home sections -------------------------------------------------------- */
.oraka-home-section .wp-block-heading { font-weight: 750; }
.oraka-home-section > .wp-block-heading.has-text-align-center, .oraka-home-section > .wp-block-group > .wp-block-heading.has-text-align-center { margin-bottom: var(--wp--preset--spacing--50); }

/* Two paths: buy / export */
.oraka-paths > .wp-block-column { display: flex; }
.oraka-path { position: relative; overflow: hidden; flex: 1; min-height: 24rem; border-radius: 1.5rem; }
.oraka-path > .wp-block-group { position: relative; z-index: 1; max-width: 30rem; }
.oraka-path .wp-block-heading { margin-top: 0; }
.oraka-path__img { position: absolute !important; z-index: 0; inset-inline-end: -4%; bottom: -6%; width: 58%; margin: 0 !important; }
.oraka-path__img img { width: 100%; height: auto; }
[dir="rtl"] .oraka-path__img img { transform: scaleX(-1); }
.oraka-path--buy { padding-bottom: 9rem !important; }
.oraka-on-dark-muted { color: rgb(255 255 255 / .7); }
.oraka-flags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: rgb(255 255 255 / .7); }
.oraka-flags img { width: 28px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / .18); }
.oraka-flags span { margin-inline-start: .35rem; }
@media (max-width: 781px) { .oraka-path { min-height: 0; } .oraka-path__img { width: 70%; } }

/* How buying works (dark band) */
.oraka-dark-band { margin-inline: clamp(.5rem, 1.2vw, 1rem) !important; border-radius: clamp(1.25rem, 2.5vw, 2rem); position: relative; overflow: hidden; isolation: isolate; }
.oraka-steps__media { position: relative; }
.oraka-steps__media::before { content: ""; position: absolute; z-index: -1; inset: 10% -10% 0; background: radial-gradient(50% 45% at 50% 60%, rgb(61 107 255 / .45), transparent 75%); }
.oraka-steps-car img { width: 100%; height: auto; filter: drop-shadow(0 24px 26px rgb(0 0 0 / .7)); }
ol.oraka-howto { counter-reset: step; list-style: none; margin: var(--wp--preset--spacing--50) 0 0; padding: 0; }
ol.oraka-howto li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 255 255 / .14); color: rgb(255 255 255 / .7); line-height: 1.55; }
ol.oraka-howto li::before { content: counter(step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; color: #fff; font-weight: 700; font-stretch: 115%; }
ol.oraka-howto li strong { color: #fff; font-size: 1.125rem; font-weight: 650; }
ol.oraka-howto li br { display: none; }
ol.oraka-howto li strong { display: block; margin-bottom: .2rem; }

/* FAQ in two columns */
.oraka-faq-cols .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding-block: 1.1rem; }
.oraka-faq-cols .wp-block-details summary { font-size: 1.0625rem; font-weight: 600; }

/* Contact band */
.oraka-contact-band { border: 1px solid var(--wp--preset--color--border); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); }
.oraka-contact-band > .wp-block-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.oraka-contact-band .wp-block-heading { margin: 0 0 .4rem; }
.oraka-contact-band p { margin: 0; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--wp--preset--color--contrast); background: transparent; color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* Footer (black) */
.oraka-site-footer { color: rgb(255 255 255 / .68); }
.oraka-site-footer a { color: rgb(255 255 255 / .82); text-decoration: none; }
.oraka-site-footer a:hover { color: #fff; text-decoration: underline; }
.oraka-site-footer .oraka-footer-brand { color: #fff; font-size: 1.35rem; font-stretch: 125%; letter-spacing: -0.01em; margin-bottom: .5rem; }
.oraka-site-footer .oraka-footer-title { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.oraka-site-footer .oraka-footer-list { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.oraka-site-footer .oraka-footer-list li + li { margin-top: .55rem; }
.oraka-site-footer .oraka-footer-bottom { border-top: 1px solid rgb(255 255 255 / .14); }
.oraka-site-footer .oraka-credit a { color: rgb(255 255 255 / .82); text-decoration: underline; }
.oraka-site-footer .wp-block-navigation-item__content { color: rgb(255 255 255 / .82) !important; }
html.dark .oraka-site-footer { background: #000 !important; border-top: 1px solid #1f1f1f; }
html.dark .oraka-hero, html.dark .oraka-dark-band, html.dark .oraka-path--export { box-shadow: 0 0 0 1px #1f1f1f; }
.oraka-site-footer .wp-block-navigation, .oraka-site-footer .wp-block-navigation__container { gap: .55rem !important; font-size: .875rem; }
.oraka-site-footer .wp-block-navigation-item__content { padding: 0 !important; }
.oraka-path .wp-block-heading { font-stretch: 108%; line-height: 1.08; }
@media (max-width: 600px) {
	:root .oraka-hero__title { font-stretch: 100%; letter-spacing: -0.02em; }
	.oraka-contact-band .wp-block-buttons { justify-content: flex-start !important; }
	.oraka-steps__media { max-width: 85%; margin-inline: auto; }
}
/* Dark mode: text on the black sections stays white (base turns dark there). */
html.dark .has-navy-background-color .has-base-color, html.dark .has-navy-background-color.has-base-color { color: #fff !important; }
html.dark .oraka-path--export .wp-block-button.is-style-secondary .wp-block-button__link { background: #fff; color: #000; }
