/*
Theme Name: Otana Finance
Author: Otana
Description: A Persian RTL block theme for the Otana vehicle-financing marketing site.
Requires at least: 6.6
Requires PHP: 7.4
Version: 1.1.0
Text Domain: otana-finance
*/

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/Vazirmatn-wght.woff2") format("woff2");
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

body {
	direction: rtl;
	overflow-x: hidden;
	font-synthesis: none;
}

.wp-site-blocks {
	overflow: clip;
}

/* Sections are full-bleed bands; no gap between them. */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
}

.wp-block-navigation a,
.wp-block-button__link {
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button__link:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wp-block-button__link:hover { transform: none; }
}

/* ---------- Icons (inline SVG; gold on dark, teal on light) ---------- */
.otana-icon-file { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.otana-icon-upload { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7 9l5-5 5 5'/%3E%3Cpath d='M5 15v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7 9l5-5 5 5'/%3E%3Cpath d='M5 15v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); }
.otana-icon-track { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.otana-icon-bank { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); }
.otana-icon-support { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M19 19c0 1.4-2 2.5-5 2.5'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M19 19c0 1.4-2 2.5-5 2.5'/%3E%3C/svg%3E"); }
.otana-icon-store { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l1.5-5h13L20 9M4 9h16v1.5a3 3 0 0 1-5.3 1.9 3 3 0 0 1-5.4 0A3 3 0 0 1 4 10.5zM5 13v7h14v-7M10 20v-4h4v4'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l1.5-5h13L20 9M4 9h16v1.5a3 3 0 0 1-5.3 1.9 3 3 0 0 1-5.4 0A3 3 0 0 1 4 10.5zM5 13v7h14v-7M10 20v-4h4v4'/%3E%3C/svg%3E"); }
.otana-icon-car { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16h16M6 16l1.6-5.2A2 2 0 0 1 9.5 9.4h5a2 2 0 0 1 1.9 1.4L18 16M5 16v3h3v-3M16 16v3h3v-3'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16h16M6 16l1.6-5.2A2 2 0 0 1 9.5 9.4h5a2 2 0 0 1 1.9 1.4L18 16M5 16v3h3v-3M16 16v3h3v-3'/%3E%3C/svg%3E"); }
.otana-icon-user { --otana-icon-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B24F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); --otana-icon-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C83' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
/* ---------- Logo ---------- */
.otana-logo { margin: 0; }
.otana-logo a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.otana-logo a:hover { text-decoration: none; }
.otana-logo__ring {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 5px solid var(--wp--preset--color--gold);
	box-shadow: inset 0 0 0 3px rgba(231, 178, 79, 0.25);
}
.otana-logo__text strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.otana-logo__text small { display: block; font-size: 0.66rem; letter-spacing: 0.22em; opacity: 0.75; line-height: 1.2; direction: ltr; text-align: right; }

/* ---------- Buttons ---------- */
.otana-btn-primary .wp-block-button__link {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--green);
	padding: 0.9rem 1.8rem;
}
.otana-btn-primary .wp-block-button__link:hover { background: #0b666c; border-color: #0b666c; }
.otana-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	padding: 0.85rem 1.6rem;
}
.otana-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--wp--preset--color--white); }

/* ---------- Header ---------- */
.otana-header {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--white);
	padding: 0.9rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.otana-header__bar { gap: 1.5rem; }
.otana-nav { flex: 1; }
.otana-nav .wp-block-navigation-item__content { color: rgba(255, 255, 255, 0.82); padding: 0.4rem 0.2rem; }
.otana-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--white); text-decoration: none; box-shadow: 0 2px 0 var(--wp--preset--color--green); }
.otana-header__actions .wp-block-button__link { padding: 0.6rem 1.2rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.otana-hero {
	background: #081826 url("assets/images/hero-night.svg") 72% center / cover no-repeat;
	color: var(--wp--preset--color--white);
	padding: clamp(3rem, 7vw, 6rem) 1.5rem 1.75rem;
	min-height: clamp(560px, 80vh, 780px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
}
/* The hero is a flex column, where auto side margins would shrink this wrapper to its content. */
.otana-hero__inner { width: 100%; }
.otana-hero__copy {
	max-width: 36rem;
	/* Text sits on the left, over the darker side of the scene; the car is on the right. */
	margin-right: auto !important;
	margin-left: 0 !important;
}
.otana-eyebrow { color: var(--wp--preset--color--gold); font-weight: 700; font-size: 0.95rem; margin: 0; }
.otana-hero__title {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.1rem, 4.4vw, 3.6rem);
	line-height: 1.5;
	margin: 0.75rem 0 1rem;
}
.otana-hero__lead { color: rgba(255, 255, 255, 0.84); font-size: 1.06rem; margin: 0; }
.otana-hero__actions { gap: 0.8rem; margin-top: 2rem; }

.otana-features {
	list-style: none;
	margin: 0 auto !important;
	padding: 1.5rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	width: 100%;
}
.otana-feature {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.92);
}
.otana-feature::before {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08) var(--otana-icon-gold) center / 22px no-repeat;
}

/* ---------- Sections ---------- */
.otana-section {
	padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
	background: var(--wp--preset--color--paper);
}
.otana-section--mist { background: var(--wp--preset--color--mist); }
.otana-section--dark { background: var(--wp--preset--color--deep); color: var(--wp--preset--color--white); }
.otana-section__head { margin-bottom: 2.5rem; }
.otana-section__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.otana-section__subtitle { color: var(--wp--preset--color--muted); font-size: 1.15rem; margin: 0.4rem 0 0; }
.otana-section--dark .otana-section__title { color: var(--wp--preset--color--white); }
.otana-section--dark .otana-section__subtitle { color: rgba(255, 255, 255, 0.7); }

/* Service cards */
.otana-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}
.otana-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 2rem 1.5rem;
	text-align: center;
	margin: 0 !important;
}
.otana-card::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 1.1rem;
	border-radius: 18px;
	background: var(--wp--preset--color--mint) var(--otana-icon-teal) center / 32px no-repeat;
}
.otana-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.otana-card p { color: var(--wp--preset--color--muted); font-size: 0.95rem; margin: 0; line-height: 1.9; }

/* Call to action band */
.otana-cta {
	margin-top: 2.5rem !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2.5rem;
	padding: 2.25rem 2.5rem;
	border-radius: 24px;
	border: 1px solid var(--wp--preset--color--line);
	background: linear-gradient(135deg, #e3f0f5 0%, #f6fafc 100%);
}
.otana-cta__copy { max-width: 40rem; }
.otana-cta__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 0.5rem; }
.otana-cta__copy p { color: var(--wp--preset--color--muted); margin: 0; }

/* Steps */
.otana-steps {
	list-style: none;
	counter-reset: otana-step;
	margin: 0 auto !important;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}
.otana-steps li {
	counter-increment: otana-step;
	padding: 1.75rem 1.5rem;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	line-height: 1.9;
}
.otana-steps li::before {
	content: counter(otana-step, persian);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}
.otana-steps strong { display: block; color: var(--wp--preset--color--white); font-size: 1.1rem; margin-bottom: 0.35rem; }

/* FAQ */
.otana-faq .wp-block-details {
	max-width: 52rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0;
}
.otana-faq summary {
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 1.15rem 0 1.15rem 2.5rem;
	position: relative;
}
.otana-faq summary::-webkit-details-marker { display: none; }
.otana-faq summary::after {
	content: "+";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--green);
	font-weight: 800;
}
.otana-faq details[open] summary::after { content: "−"; }
.otana-faq details p { color: var(--wp--preset--color--muted); margin: 0 0 1.2rem; }

/* ---------- Footer ---------- */
.otana-footer {
	background: var(--wp--preset--color--deep);
	color: rgba(255, 255, 255, 0.78);
	padding: 3.5rem 1.5rem 1.5rem;
}
.otana-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
}
.otana-footer__grid > * { margin: 0 !important; }
.otana-footer__brand p:not(.otana-logo) { margin: 1rem 0 0; font-size: 0.95rem; }
.otana-footer h3 { color: var(--wp--preset--color--gold); font-size: 0.95rem; margin: 0 0 0.75rem; }
.otana-footer__links p { margin: 0; line-height: 2.2; }
.otana-footer a { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.otana-footer a:hover { color: var(--wp--preset--color--white); }
.otana-footer__copy { margin: 2.5rem 0 0 !important; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.otana-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.otana-cards, .otana-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.otana-hero {
		background-image: linear-gradient(180deg, rgba(8, 24, 38, 0.55) 0%, rgba(8, 24, 38, 0.88) 100%), url("assets/images/hero-night.svg");
		background-position: center, 70% center;
		min-height: 0;
	}
	.otana-hero__copy { margin-right: 0 !important; }
	.otana-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.otana-cta { padding: 1.75rem 1.5rem; }
	.otana-footer__grid { grid-template-columns: 1fr 1fr; }
	.otana-footer__brand { grid-column: 1 / -1; }

	.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
}

@media (max-width: 560px) {
	.otana-cards, .otana-steps, .otana-features { grid-template-columns: 1fr; }
	.otana-header__actions .wp-block-button__link { padding: 0.5rem 0.9rem; }
	.otana-logo__text small { display: none; }
}
