/*
Theme Name: Awal Al Talayie Umrah
Description: ثيم خاص بشركة أول الطلائع الدولية للعمرة والحج – كحلي وذهبي بأقواس ونقوش إسلامية.
Version: 1.0.3
Author: biz-sky
Text Domain: talayie-umrah
*/

:root {
	--navy: #163e6a;
	--navy-d: #0d2847;
	--gold: #b8924f;
	--gold-l: #e8d9b8;
	--ivory: #faf6ee;
	--ink: #1d2733;
	--muted: #5d6877;
	--line: #e7dfcf;
	--radius: 14px;
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23c9a869' stroke-width='1'%3E%3Cpath d='M30 4l7.5 18.5L56 30l-18.5 7.5L30 56l-7.5-18.5L4 30l18.5-7.5z'/%3E%3Crect x='17' y='17' width='26' height='26' transform='rotate(45 30 30)'/%3E%3Crect x='17' y='17' width='26' height='26'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink);
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: "Amiri", serif; line-height: 1.35; margin: 0 0 .5em; color: var(--navy-d); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; inset-inline-start: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 14px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .75em 1.6em; border-radius: 999px;
	font-weight: 600; font-size: 15px; line-height: 1.4;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a27d3d; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-d); }

/* Top bar & header */
.topbar { background: var(--navy-d); color: var(--gold-l); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--gold-l); }
.topbar a:hover { color: #fff; }
.topbar-links { gap: 18px !important; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(13,40,71,.08); }
.header-row { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand img { height: 62px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: "Amiri", serif; font-size: 22px; color: var(--navy-d); }
.brand-text span { color: var(--gold); font-size: 14px; font-weight: 500; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.main-nav { border-top: 1px solid var(--line); background: #fff; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a { display: block; padding: 10px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink); position: relative; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--navy); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-toggle { display: none; background: var(--navy); border: 0; border-radius: 10px; width: 44px; height: 44px; padding: 12px 11px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(180deg, rgba(13,40,71,.78), rgba(13,40,71,.9)), var(--hero) center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .18; }
.hero > * { position: relative; }
.hero-inner { text-align: center; padding-block: 90px 50px; max-width: 900px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(232,217,184,.5); color: var(--gold-l); padding: 6px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 22px; background: rgba(13,40,71,.4); }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 62px); margin-bottom: .2em; }
.hero-sub { font-size: clamp(17px, 2.3vw, 22px); margin: 0 0 8px; color: #f1ead9; }
.hero-tag { font-family: "Amiri", serif; font-size: 24px; color: var(--gold-l); margin: 0 0 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(232,217,184,.3); }
.hero-stats li { text-align: center; padding: 22px 10px 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats li + li { border-inline-start: 1px solid rgba(232,217,184,.3); }
.hero-stats strong { font-family: "Amiri", serif; font-size: 38px; color: var(--gold-l); line-height: 1.1; display: flex; }
.hero-stats strong svg { width: 36px; height: 38px; }
.hero-stats span { font-size: 14px; color: #e6e0d2; }

/* Sections */
.section { padding-block: 80px; }
.section-ivory { background: var(--ivory); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.about-text .kicker::after, .agent .kicker::after { display: none; }
.kicker-light { color: var(--gold-l); }

/* Arch frames (mihrab shape) */
.arch { display: block; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 4.4; background: var(--ivory); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.arch-tall { aspect-ratio: 4 / 5; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service { text-align: center; color: var(--ink); position: relative; display: block; }
.service:hover { color: var(--ink); }
.service:hover .arch img { transform: scale(1.06); }
.service-icon { width: 56px; height: 56px; margin: -28px auto 10px; position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-l); border: 4px solid #fff; }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 24px; margin-bottom: .2em; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
.about-media { position: relative; padding-inline-end: 30px; }
.about-media::before { content: ""; position: absolute; inset: 30px 0 -20px 30px; border: 2px solid var(--gold); border-radius: 999px 999px var(--radius) var(--radius); }
[dir="rtl"] .about-media::before { inset: 30px 30px -20px 0; }
.about-media .arch { position: relative; }
.about-badge { position: absolute; bottom: 30px; inset-inline-start: -10px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 22px; text-align: center; font-size: 14px; box-shadow: 0 12px 30px rgba(13,40,71,.25); }
.about-badge strong { display: block; font-family: "Amiri", serif; font-size: 40px; line-height: 1; color: var(--gold-l); }
.about-text h2 { font-size: clamp(28px, 3.6vw, 38px); }
.about-text > p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 30px; }
.values div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px; }
.values h4 { font-size: 21px; margin-bottom: .2em; }
.values p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.program { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .25s, transform .25s; }
.program:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(13,40,71,.12); }
.program-img { aspect-ratio: 4 / 3; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; }
.program-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.program h3 { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--navy-d); flex: 1; }
.more { color: var(--gold); font-weight: 600; font-size: 14px; }
.more::after { content: " ←"; }
[dir="ltr"] .more::after { content: " →"; }

/* Agent band */
.agent { background: var(--navy-d); color: #e6e0d2; position: relative; overflow: hidden; padding-block: 80px; }
.agent::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .1; }
.agent-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.agent h2 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); }
.agent .hero-btns { justify-content: flex-start; margin-top: 24px; }
.req-list { list-style: none; counter-reset: req; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-list li { counter-increment: req; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,217,184,.2); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.req-list li::before { content: counter(req); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 700; font-size: 14px; }

/* Hajj & fleet */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
	min-height: 320px; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 30px;
	display: flex; flex-direction: column; justify-content: flex-end;
	background: linear-gradient(180deg, rgba(13,40,71,0) 20%, rgba(13,40,71,.92)), var(--img) center/cover no-repeat;
	transition: transform .25s;
}
.feature:hover { color: #fff; transform: translateY(-4px); }
.feature .tag { align-self: flex-start; background: var(--gold); padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.feature h3 { color: #fff; font-size: 26px; }
.feature p { margin: 0; color: #e6e0d2; font-size: 15px; }

/* Post cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 18px 20px 22px; }
.post-card .meta { color: var(--gold); font-size: 13px; }
.post-card h3 { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.6; }
.post-card h3 a { color: var(--navy-d); }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--gold), #9a7638); color: #fff; padding-block: 46px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 32px; margin-bottom: .1em; }
.cta p { margin: 0; }
.cta .btn-gold { background: var(--navy-d); }
.cta .btn-gold:hover { background: #fff; color: var(--navy-d); }

/* Inner pages */
.page-head { background: var(--navy-d); color: #fff; position: relative; overflow: hidden; padding-block: 50px 46px; }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .12; }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 0; }
.crumbs { font-size: 14px; color: var(--gold-l); margin-bottom: 6px; }
.crumbs a { color: var(--gold-l); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 50px 70px; }
.entry-featured img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.entry-content { font-size: 17px; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content h1 { font-size: 30px; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 23px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li { margin-bottom: .3em; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content table tbody, .entry-content table thead { display: table; width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
/* Price tables carry their own inline cell colours, so only weight and row hover are added. */
.entry-content tr:first-child td, .entry-content th { font-weight: 700; color: var(--navy-d); }
.entry-content td[height] { height: auto; }
.entry-content tbody tr:hover td { background-color: var(--ivory); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery br { display: none; }

.side .sticky { position: sticky; top: 140px; display: grid; gap: 22px; }
.box { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 22px; }
.box-cta { background: var(--navy-d); color: #e6e0d2; border: 0; position: relative; overflow: hidden; }
.box-cta::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .1; }
.box-cta > * { position: relative; }
.box-cta h3 { color: #fff; }
.box-cta p { font-size: 14.5px; margin-top: 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; line-height: 1.6; }
.side-list a:hover { color: var(--navy); }
.side-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.pagination { margin-top: 30px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: #0a1f38; color: #b9c2cf; padding-top: 60px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo img { height: 70px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 16px; }
.site-footer h4 { color: var(--gold-l); font-size: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6dce5; }
.site-footer a:hover { color: var(--gold-l); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }

/* Responsive */
@media (max-width: 1100px) {
	.nav-toggle { display: flex; }
	.main-nav { display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding-block: 6px; }
	.main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
	.main-nav a::after { display: none; }
	.services { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
	.posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.about, .agent-inner, .feature-pair, .layout { grid-template-columns: 1fr; }
	.about-media { max-width: 420px; margin-inline: auto; width: 100%; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.side .sticky { position: static; }
}
@media (max-width: 640px) {
	.section, .agent { padding-block: 56px; }
	.brand img { height: 48px; }
	.brand-text strong { font-size: 18px; }
	.brand-text span { font-size: 13px; }
	.header-actions .btn { display: none; }
	.topbar .wrap > span:first-child { font-size: 12px; }
	.hero-inner { padding-block: 60px 34px; }
	.hero-stats strong { font-size: 30px; }
	.hero-stats span { font-size: 12.5px; }
	.services { grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 30px; }
	.service h3 { font-size: 20px; }
	.service p { font-size: 13.5px; }
	.values { grid-template-columns: 1fr; }
	.about-badge { inset-inline-start: 0; padding: 10px 16px; }
	.about-badge strong { font-size: 32px; }
	.posts, .footer-grid { grid-template-columns: 1fr; }
	.feature { min-height: 260px; padding: 22px; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.cta-inner { text-align: center; justify-content: center; }
}
@media (max-width: 420px) {
	.brand-text { display: none; }
}
