/*
Theme Name: Ashgar City
Description: Botanical brochure theme for the Ashgar City (Hay Al Ashgar / Oak Park) compound site: phases, photo gallery, developer and sales contact.
Version: 1.0.1
Author: biz-sky
Text Domain: ashgar-city
*/

:root {
	--cream: #f6f3ea;
	--cream-2: #ece7d8;
	--forest: #1f4d3a;
	--forest-dark: #143528;
	--moss: #3f7a5a;
	--sage: #a9c3a0;
	--wood: #a8743f;
	--wood-dark: #8a5d30;
	--ink: #1b2a22;
	--text: #3c4a41;
	--muted: #6c776f;
	--line: #dcd7c6;
	--leaf: 0 90px 0 90px;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "El Messiri", "Noto Kufi Arabic", serif; color: var(--forest-dark); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--wood); }
img { max-width: 100%; height: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .more .ico { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; inset-inline-start: 10px; top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s; white-space: nowrap; border: 1.5px solid transparent; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-dark); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-wood { background: var(--wood); color: #fff; }
.btn-wood:hover { background: var(--wood-dark); color: #fff; }
.btn-cream { background: var(--cream); color: var(--forest-dark); }
.btn-cream:hover { background: #fff; color: var(--forest-dark); }
.btn-line { border-color: rgba(246, 243, 234, .5); color: var(--cream); }
.btn-line:hover { background: rgba(246, 243, 234, .12); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--wood); }

/* Header */
.site-header { background: rgba(246, 243, 234, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(6px); }
.admin-bar .site-header { top: 32px; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest-dark); }
.brand:hover { color: var(--forest-dark); }
.brand img { max-height: 56px; width: auto; }
.leafmark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--forest); color: var(--sage); border-radius: 0 20px 0 20px; flex: none; }
.leafmark .ico { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: "El Messiri", serif; font-size: 1.3rem; }
.brand-text small { font-size: .72rem; color: var(--muted); }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 6px 10px; color: var(--ink); font-size: .84rem; line-height: 1.6; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--cream-2); color: var(--forest); }
.main-nav .sub-menu { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; background: #fff; border-radius: 16px; box-shadow: 0 14px 30px rgba(20, 53, 40, .12); list-style: none; padding: 8px; margin: 0; z-index: 5; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); padding: 8px 16px; border: 1.5px solid var(--forest); border-radius: 999px; white-space: nowrap; }
.header-phone:hover { background: var(--forest); color: #fff; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--forest); border-radius: 12px; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--forest); margin: 5px 0; }

/* Hero */
.hero { padding: 56px 0 70px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(169, 195, 160, .45), transparent 70%); inset-inline-end: -160px; top: -160px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--moss); font-weight: 600; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.2; margin-bottom: 8px; }
.hero-sub { font-family: "El Messiri", serif; color: var(--wood); font-size: 1.15rem; margin: 0 0 16px; }
.hero-text { color: var(--text); margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin: 0; }
.hero-media img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--leaf); box-shadow: 0 30px 60px -30px rgba(20, 53, 40, .6); }
.hero-media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--sage); border-radius: var(--leaf); z-index: -1; }
.hero-media figcaption { position: absolute; bottom: 26px; inset-inline-start: -26px; background: var(--forest); color: var(--cream); padding: 14px 20px; border-radius: 0 22px 0 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 30px rgba(20, 53, 40, .3); }
.hero-media figcaption .ico { width: 28px; height: 28px; color: var(--sage); }
.hero-media figcaption strong { font-family: "El Messiri", serif; font-size: 2rem; color: var(--sage); line-height: 1; }
.hero-media figcaption span { font-size: .85rem; max-width: 9em; line-height: 1.5; }

/* Sections */
.section { padding: 70px 0; }
.sec-title { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.sec-title h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; }
.sec-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--wood); font-weight: 600; font-size: .9rem; }
.sec-kicker a { color: inherit; }
.sec-kicker::before { content: ""; width: 18px; height: 10px; background: var(--sage); border-radius: 0 10px 0 10px; }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.phase { background: #fff; border-radius: 0 36px 0 36px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px -18px rgba(20, 53, 40, .35); transition: transform .2s; }
.phase:hover { transform: translateY(-4px); }
.phase-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phase-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.phase-tag { align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--forest); background: rgba(169, 195, 160, .4); padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.phase h3 { font-size: 1.08rem; margin-bottom: 6px; }
.phase h3 a { color: var(--forest-dark); }
.phase p { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.phase .more { margin-top: auto; }

/* Gallery */
.gallery-sec { background: var(--forest-dark); }
.gallery-sec h2 { color: var(--cream); }
.gallery-sec .sec-kicker { color: var(--sage); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.mosaic a { display: block; overflow: hidden; border-radius: 6px; }
.mosaic a.m0 { grid-column: span 2; grid-row: span 2; border-radius: 0 70px 0 6px; }
.mosaic a.m5 { grid-column: span 2; border-radius: 6px 6px 50px 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.06); }

/* Developer */
.dev { background: var(--cream-2); }
.dev-grid { display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: start; max-width: 960px; }
.dev-badge { width: 140px; height: 140px; display: grid; place-items: center; background: var(--forest); color: var(--sage); border-radius: 0 60px 0 60px; }
.dev-badge .ico { width: 60px; height: 60px; stroke-width: 1.4; }
.dev h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Other projects */
.leaf-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; color: var(--sage); }
.leaf-rule span { flex: 1; height: 1px; background: var(--line); }
.leaf-rule svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { position: relative; display: block; border-radius: 0 40px 0 40px; overflow: hidden; aspect-ratio: 4 / 5; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 53, 40, .9), transparent 60%); }
.project span { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; color: #fff; font-family: "El Messiri", serif; font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.project:hover img { transform: scale(1.05); }

/* Contact band */
.contact-band { background: var(--forest); color: #d8e3d6; padding: 56px 0; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; width: 300px; height: 300px; background: rgba(169, 195, 160, .12); border-radius: 0 150px 0 150px; inset-inline-start: -80px; top: -120px; transform: rotate(20deg); }
.contact-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.contact-band h2 { color: #fff; margin-bottom: 4px; }
.contact-band p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page-head { background: var(--cream-2); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); margin: 6px 0 0; max-width: 26em; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-block: 44px 70px; align-items: start; }
.entry { background: #fff; border-radius: 0 40px 0 40px; padding: 34px; min-width: 0; box-shadow: 0 10px 30px -20px rgba(20, 53, 40, .3); }
.entry-featured img { display: block; width: 100%; border-radius: 0 30px 0 30px; margin-bottom: 24px; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1em; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.5em 0; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.side .sticky { position: sticky; top: 104px; display: grid; gap: 20px; }
.box { background: #fff; border-radius: 0 30px 0 30px; padding: 22px; box-shadow: 0 10px 30px -20px rgba(20, 53, 40, .3); }
.box h3 { font-size: 1.1rem; }
.box-forest { background: var(--forest); display: grid; gap: 10px; }
.box-forest > .ico { width: 30px; height: 30px; color: var(--sage); }
.box-forest h3 { color: #fff; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: .9rem; }
.side-list img { width: 58px; height: 46px; object-fit: cover; border-radius: 0 14px 0 14px; flex: none; }
.pagination { margin-top: 30px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ink); }
.pagination .current { background: var(--forest); color: #fff; }
.empty { text-align: center; }
.search-form { display: flex; gap: 8px; max-width: 420px; margin-top: 12px; }
.empty .search-form { margin-inline: auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-submit { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--wood); color: #fff; font: inherit; cursor: pointer; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #b8c7b9; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.site-footer a { color: #dfe8dd; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: var(--sage); }
.brand-foot .brand-text strong { color: #fff; }
.brand-foot .brand-text small { color: #b8c7b9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

@media (max-width: 1280px) { .header-phone { display: none; } }
@media (max-width: 1080px) {
	.phases, .projects { grid-template-columns: repeat(2, 1fr); }
	.header-phone { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; margin-inline-start: auto; }
	.main-nav { position: absolute; inset-inline: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; margin: 0; max-height: 75vh; overflow-y: auto; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; padding: 10px 16px 16px; }
	.main-nav .sub-menu { display: block; position: static; box-shadow: none; background: none; padding: 0; padding-inline-start: 14px; }
	.hero-grid, .layout, .footer-grid { grid-template-columns: 1fr; }
	.hero-media figcaption { inset-inline-start: 12px; }
	.hero-media::after { inset: 12px -8px -12px 8px; }
	.side .sticky { position: static; }
	.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.brand-text small { display: none; }
}
@media (max-width: 600px) {
	.phases, .projects { grid-template-columns: 1fr; }
	.project { aspect-ratio: 16 / 10; }
	.section { padding: 50px 0; }
	.hero { padding: 36px 0 54px; }
	.dev-grid { grid-template-columns: 1fr; }
	.dev-badge { width: 90px; height: 90px; border-radius: 0 40px 0 40px; }
	.dev-badge .ico { width: 40px; height: 40px; }
	.entry { padding: 20px; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.mosaic a.m0 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
