/*
Theme Name: Siraj Travel
Theme URI: https://sirajtravel.com/
Author: SIRAJ TRAVEL
Description: قالب عربي RTL فاخر لشركة سراج ترافل للسياحة والنقل الخاص والإرشاد السياحي في إسبانيا.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: siraj-travel
Tags: rtl-language-support, custom-colors, translation-ready
*/

:root {
	--navy: #0b1a33;
	--navy-2: #14284a;
	--ivory: #faf8f2;
	--stone: #ece8dc;
	--gold: #b8923e;
	--gold-soft: #dcc48d;
	--gold-ink: #7d5f1c;
	--ink: #1b2437;
	--muted: #576175;
	--line: #d9d3c2;
	--focus: #2c6e7f;
	--font-body: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
	--font-display: "Amiri", "Traditional Arabic", "Times New Roman", serif;
	--lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23b8923e' stroke-width='1' opacity='.28'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--ink);
	background: var(--ivory);
	text-align: start;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
.ltr-inline { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 820px); }

/* ---------- أزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .8rem 1.6rem; min-height: 48px;
	font: 600 1rem/1.2 var(--font-body);
	border: 2px solid transparent; border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn--ghost { border-color: var(--gold-soft); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .95rem; }

/* ---------- الرأس ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(184,146,62,.35); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand__ar { font: 700 1.6rem/1.2 var(--font-display); color: #fff; }
.brand__en { font: 500 .72rem/1.2 var(--font-body); letter-spacing: .28em; color: var(--gold-soft); }
.brand:hover .brand__ar { color: var(--gold-soft); }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: #e9e4d4; text-decoration: none; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold-soft); color: #fff; border-radius: 8px; padding: .5rem .9rem; font: 500 .95rem var(--font-body); cursor: pointer; min-height: 44px; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
	.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; content: ""; }
	.nav-toggle__icon::before { position: absolute; top: -6px; }
	.nav-toggle__icon::after { position: absolute; top: 6px; }
	.site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(184,146,62,.35); }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.site-nav__cta { margin-top: 1rem; }
}

/* ---------- الواجهة الرئيسية ---------- */
.hero { background: var(--navy) var(--lattice); color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; max-width: 18ch; text-wrap: balance; }
.hero__lead { font-size: 1.15rem; color: #dcd7c8; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__art .arch { max-width: 360px; margin-inline: auto; border: 2px solid var(--gold); box-shadow: 0 0 0 8px rgba(184,146,62,.18); }
@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__art { order: -1; }
	.hero__art .arch { max-width: 240px; }
}

/* ---------- الإطار المقوّس (الهوية الأندلسية) ---------- */
.arch {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: 999px 999px 10px 10px;
	background: linear-gradient(160deg, var(--navy-2), var(--navy)) var(--lattice);
	display: grid; place-items: center;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch__label { padding: 1rem; text-align: center; font: 700 1.5rem/1.4 var(--font-display); color: var(--gold-soft); }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--stone { background: var(--stone); }
.section--navy { background: var(--navy) var(--lattice); color: #e5e0d1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: 2.2rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section__head p { color: #cfc9b8; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--4, .grid--3 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: .4rem; }
.card .arch { margin-bottom: .8rem; }
.card h3, .card .card__title { font-size: 1.25rem; margin-bottom: .2em; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.75; margin-bottom: .6rem; }
.card a { text-decoration: none; }
.card__link { margin-top: auto; font-weight: 600; color: var(--gold-ink); border-bottom: 2px solid var(--gold); align-self: flex-start; padding-bottom: 2px; }
.card--post { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.card--post h3 a, .card--post .card__title a { color: var(--navy); }

.city { display: block; text-decoration: none; color: inherit; }
.city .arch { margin-bottom: .9rem; border: 1px solid rgba(184,146,62,.5); transition: border-color .2s; }
.city:hover .arch { border-color: var(--gold-soft); }
.city h3 { margin-bottom: .15em; }
.city p { color: #cfc9b8; font-size: .95rem; line-height: 1.7; }

.card-link { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--gold); }
.card-link h3 { margin-bottom: .1em; }
.card-link p { color: var(--muted); font-size: .96rem; margin-bottom: .4rem; }
.card-link span { margin-top: auto; font-weight: 600; color: var(--gold-ink); }

.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 2rem; }
.why li { border-inline-start: 3px solid var(--gold); padding-inline-start: 1.1rem; }
.why h3 { margin-bottom: .2em; }
.why p { color: var(--muted); margin: 0; }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { background: var(--ivory); border-radius: 10px; padding: 1.4rem; border: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: var(--gold-soft); font: 700 1.2rem var(--font-display); margin-bottom: .8rem; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--navy) var(--lattice); color: #fff; text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6d0bf; }

/* ---------- الصفحات الداخلية ---------- */
.page-hero { background: var(--navy) var(--lattice); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .3em; }
.page-hero__lead { color: #d6d0bf; font-size: 1.1rem; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.crumbs li + li::before { content: "‹"; margin-inline-end: .3rem; color: var(--gold-soft); }
.crumbs a { color: var(--gold-soft); }
.crumbs span { color: #fff; }

.prose { padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose h2 { margin-top: 1.8em; }
.prose li { margin-bottom: .35em; }
.prose .grid { margin-block: 1.5rem; }
.prose .wp-block-image img { border-radius: 10px; }

.cta-block { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 10px; padding: 1.6rem; margin-block: 2.2rem; }
.cta-block h2 { margin-top: 0; font-size: 1.5rem; }
.cta-block .btn { margin-inline-end: .5rem; margin-top: .4rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: inside; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- نموذج الحجز ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2rem); }
.form__row { display: flex; flex-direction: column; gap: .35rem; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: .98rem; }
.form input, .form select, .form textarea {
	font: inherit; padding: .7rem .9rem; min-height: 48px; width: 100%;
	border: 1px solid #b7b09c; border-radius: 8px; background: var(--ivory); color: var(--ink);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: #a42a2a; background: #fff6f6; }
.field-error { color: #a42a2a; font-size: .9rem; margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.notice--ok { background: #eaf4ea; border: 1px solid #9cc79c; }
.notice--err { background: #fbeaea; border: 1px solid #d49a9a; }
.notice ul { margin: .4rem 0 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- التذييل ---------- */
.site-footer { background: var(--navy); color: #cfc9b8; padding-top: 3rem; border-top: 3px solid var(--gold); }
.site-footer a { color: #e9e4d4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer h2 { font: 700 1.2rem var(--font-display); color: #fff; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2.5rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.site-footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.socials { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem !important; }
@media (max-width: 1020px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed; inset-inline-start: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
	background: #1f9d55; color: #fff; text-decoration: none; font-weight: 600;
	padding: .75rem 1.3rem; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.wa-float:hover { background: #17824a; color: #fff; }

.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.pager a, .pager span { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- حركة: لحظة واحدة عند تحميل الواجهة ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero .arch { animation: arch-rise .9s cubic-bezier(.2,.7,.2,1) both; }
	@keyframes arch-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
