/*
Theme Name: Reihana
Description: ثيم خفيف لموقع ريحانة — عرض المجموعات بأسلوب هادئ وأنيق، عربي أولاً (RTL).
Version: 1.5.1
Requires PHP: 7.4
Text Domain: reihana
*/

:root {
	/* Palette sampled from the Reihana logo: blush paper + caramel gold, anchored by deep cocoa. */
	--brand: #8a6240;
	--brand-deep: #4a3426;
	--brand-soft: #f6e4da;
	--blush: #faebe4;
	--gold: #c9a27a;
	--gold-ink: #8a6240;
	--beige: #f3e3d8;
	--cream: #fdf7f3;
	--white: #fffcfa;
	--ink: #3b2c23;
	--muted: #7a6458;
	--line: #eddcd1;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 14px 34px -18px rgba(74, 52, 38, .3);
	--shadow-soft: 0 6px 18px -10px rgba(74, 52, 38, .2);
	--font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "El Messiri", "IBM Plex Sans Arabic", serif;
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23b08258' stroke-opacity='.22'%3E%3Cpath d='M44 10l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/%3E%3Crect x='27' y='27' width='34' height='34' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.4; margin: 0 0 .5em; color: var(--brand-deep); letter-spacing: 0; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 64px; }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-ink); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 500 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: #d8b892; color: var(--brand-deep); }
.btn-outline { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--brand-deep); }
.btn-whatsapp { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-soft); }
.btn-whatsapp:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 247, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 46px; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; margin-inline-end: auto; }
.brand-mark { width: auto; height: 52px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; line-height: 1.15; color: var(--brand-deep); }
.brand-tag { font-size: .76rem; font-weight: 500; color: var(--gold-ink); }
.brand img { max-height: 54px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--brand); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 16px 24px; display: none; }
.nav-open .site-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 12px 6px; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a, .nav-list a:hover { color: var(--brand); }
.header-cta { display: none; }

@media (min-width: 900px) {
	.admin-bar .site-header { top: 32px; }
	.nav-toggle { display: none; }
	.site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; }
	.nav-list { display: flex; gap: 6px; }
	.nav-list a { border: 0; padding: 8px 14px; font-size: 1rem; border-radius: 999px; }
	.nav-list .current-menu-item > a, .nav-list .current_page_item > a { background: var(--brand-soft); }
	.header-cta { display: inline-flex; min-height: 42px; padding: 8px 20px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blush); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .8; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255, 252, 250, .95), rgba(250, 235, 228, 0) 65%); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; justify-items: center; padding-block: 48px 64px; text-align: center; }
.hero-logo { order: -1; width: min(48vw, 190px); height: auto; filter: drop-shadow(0 10px 24px rgba(138, 98, 64, .18)); }
.hero h1 { margin-bottom: 14px; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-arch { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--gold); }
@media (min-width: 900px) {
	.hero-inner { grid-template-columns: 1.1fr .9fr; padding-block: 72px 80px; text-align: start; justify-items: stretch; }
	.hero-copy p { margin-inline: 0; }
	.hero-copy .hero-actions { justify-content: flex-start; }
	.hero-logo { order: 0; width: 340px; justify-self: center; }
}

/* Page hero */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .55; }
.page-hero .container { position: relative; padding-block: 48px 40px; text-align: center; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 620px; margin-inline: auto; margin-bottom: 0; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span[aria-hidden] { margin-inline: 6px; color: var(--gold); }

/* Category cards */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cat-grid > .cat-card { flex: 0 0 calc(50% - 8px); }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow-soft); background: var(--brand-deep); }
.cat-card img, .cat-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(74, 52, 38, .88), rgba(74, 52, 38, .05) 60%); }
.cat-card:hover img, .cat-card:hover .ph { transform: scale(1.04); }
.cat-card-body { position: relative; z-index: 1; padding: 18px; }
.cat-card h3 { color: #fff; margin: 0; font-size: 1.45rem; }
.cat-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 252, 250, .16); border: 1px solid rgba(201, 162, 122, .55); font-size: .85rem; color: #fff; transition: background .25s, color .25s; }
.cat-card-cta svg { width: 15px; height: 15px; }
.cat-card:hover .cat-card-cta { background: var(--gold); border-color: var(--gold); color: var(--brand-deep); }
@media (min-width: 900px) { .cat-grid { gap: 22px; } .cat-grid > .cat-card { flex-basis: calc(25% - 16.5px); } }

/* Placeholder image */
.ph { display: grid; place-items: center; background: var(--blush) var(--pattern); color: var(--gold-ink); font-family: var(--font-display); font-size: 1.6rem; }
.ph span { padding: 6px 18px; border: 1px solid rgba(176, 130, 88, .4); border-radius: 999px; background: rgba(255, 252, 250, .7); }

/* Prose (pages) */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-inline-start: 3px solid var(--gold); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-deep); }

/* Story + values */
.story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } }
.story-visual { aspect-ratio: 4 / 5; max-height: 620px; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.value svg { width: 28px; height: 28px; color: var(--gold-ink); margin-bottom: 8px; }
.value h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.value p { font-size: .92rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--brand-deep); color: #efe2d8; border-radius: 28px; padding: 48px 24px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .7; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: var(--gold); }
.cta-band .hero-actions { margin-top: 20px; }

/* Contact */
.contact-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list .contact-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.contact-list a:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.contact-list strong { font-weight: 500; direction: ltr; unicode-bidi: plaintext; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.notice-ok { background: var(--brand-soft); color: var(--brand-deep); }
.notice-err { background: #f6e3dc; color: #7a2e17; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--brand-deep); color: #dccbbd; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .35; }
.footer-inner { position: relative; display: grid; gap: 32px; padding-block: 56px 32px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand-name { color: #fff; }
.footer-logo { width: 110px; height: auto; margin-bottom: 12px; opacity: .95; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #f3e6dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201, 162, 122, .45); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(201, 162, 122, .2); padding-block: 18px; font-size: .88rem; text-align: center; }

.wa-float { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-deep); color: #fff; border: 2px solid var(--gold); box-shadow: 0 10px 24px -8px rgba(74, 52, 38, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Generic content */
.entry-list { display: grid; gap: 24px; }
.wp-block-image img { border-radius: var(--radius-sm); }
.alignwide { max-width: 1000px; margin-inline: auto; }

/* =================================================================
 * Interactions
 * ================================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-scroll { overflow: hidden; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--brand-deep); cursor: pointer; font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* Header shrinks once the page scrolls */
.site-header { transition: box-shadow .3s, background .3s; }
.header-inner { transition: min-height .3s; }
.brand-mark { transition: height .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(74, 52, 38, .35); }
@media (min-width: 900px) {
	.site-header.is-scrolled .header-inner { min-height: 60px; }
	.site-header.is-scrolled .brand-mark { height: 42px; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero logo breathes gently */
@keyframes rh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rh-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-logo { animation: rh-float 7s ease-in-out infinite; }
.hero-copy > * { animation: rh-fade-up .8s both cubic-bezier(.2, .7, .2, 1); }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }

.cat-card { transition: transform .35s, box-shadow .35s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Back to top */
.to-top { position: fixed; z-index: 40; inset-inline-end: 16px; bottom: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--brand-deep); box-shadow: var(--shadow-soft); cursor: pointer; animation: rh-fade .3s; }
.to-top:hover { background: var(--brand-deep); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
 * Language switch + English (LTR) typography
 * ================================================================= */
.lang-switch { display: inline-grid; place-items: center; min-width: 46px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--brand-deep); font: 600 .9rem/1 var(--font-body); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.lang-switch:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.lang-switch:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .95rem; }
.lang-switch:lang(en) { letter-spacing: .08em; }
@media (min-width: 900px) {
	.site-nav { order: 1; }
	.header-cta { order: 2; }
	.lang-switch { order: 3; }
}

html:lang(en) {
	--font-display: "Cormorant Garamond", Georgia, serif;
}
html:lang(en) body { font-size: 16.5px; line-height: 1.75; }
html:lang(en) h1, html:lang(en) h2, html:lang(en) h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.005em; }
html:lang(en) h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
html:lang(en) h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
html:lang(en) .cat-card h3 { font-size: 1.7rem; }
html:lang(en) .value h3 { font-family: var(--font-body); }
html:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }
html:lang(en) .brand-name { font-size: 2rem; letter-spacing: .02em; }
html:lang(en) .brand-tag { letter-spacing: .04em; }
html:lang(en) .site-footer h2 { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.brand-tag { white-space: nowrap; }
@media (max-width: 480px) {
	html:lang(en) .brand-tag { letter-spacing: 0; font-size: .68rem; }
	html:lang(en) .brand-name { font-size: 1.75rem; }
}
