/* Tawafuq theme layer. Tokens mirror the active design system. */

:root {
	--tw-espresso: #2B0A03;
	--tw-terracotta: #C95433;
	--tw-terracotta-hover: #D75F3D;
	--tw-stone: #D4CCC4;
	--tw-cream: #FFF8F3;
	--tw-panel: #F5ECE4;
	--tw-body: #524440;
	--tw-border: #705A50;
	--tw-display: 'Doran', sans-serif;
	--tw-text: 'IBM Plex Sans Arabic', sans-serif;
}

/* ---- Typography primitives ---- */

.tw-h1 { font-family: var(--tw-display); font-weight: 400; font-size: clamp(28px, 4vw, 48px); line-height: 1.2; margin: 0; }
.tw-h2 { font-family: var(--tw-display); font-weight: 400; font-size: clamp(26px, 3.75vw, 48px); line-height: 1.2; color: var(--tw-espresso); margin: 0; }
.tw-h3 { font-family: var(--tw-display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; color: var(--tw-espresso); margin: 0; }
.tw-eyebrow { font-family: var(--tw-text); font-weight: 450; font-size: 16px; line-height: 24px; color: var(--tw-terracotta); text-transform: uppercase; margin: 0; }
.tw-body { font-family: var(--tw-text); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--tw-body); margin: 0; }
.tw-lede { font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; font-weight: 400; font-size: clamp(16px, 2vw, 24px); line-height: 32px; }

/* ---- Layout ---- */

.tw-container { max-width: 1280px; margin-inline: auto; width: 100%; }
.tw-section { padding-block: 64px; }
@media (min-width: 768px) { .tw-section { padding-block: 96px; } }
@media (min-width: 1280px) { .tw-section { padding-block: 120px; } }

.tw-grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .tw-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tw-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tw-rule { width: 96px; height: 4px; background: var(--tw-terracotta); }

/* ---- Skip link ---- */

.tw-skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; z-index: 100; background: var(--tw-espresso); color: var(--tw-stone); border-radius: 0 0 8px 8px; }
.tw-skip:focus { position: absolute; width: auto; height: auto; margin: 0; padding: 12px 20px; overflow: visible; clip-path: none; inset-inline-start: 16px; top: 0; }

/* ---- Header ---- */

.tw-nav-link { font-family: var(--tw-display); font-weight: 500; font-size: 16px; line-height: 26px; color: var(--tw-body); text-decoration: none; transition: color .2s; }
.tw-nav-link:hover, .tw-nav-link:focus-visible, .tw-nav-link.is-active { color: var(--tw-terracotta-hover); }
.tw-nav-link--mobile { font-size: 18px; }
.tw-cta { font-family: var(--tw-display); font-weight: 500; text-decoration: none; transition: background-color .2s; }
.tw-cta:hover { background: var(--tw-terracotta-hover) !important; }

/* ---- Buttons ---- */

.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 16px 32px; font-size: 16px; line-height: 24px; font-weight: 400; font-family: var(--tw-display); text-decoration: none; cursor: pointer; border: none; transition: background-color .2s, color .2s, border-color .2s; }
.tw-btn--primary { background: var(--tw-terracotta); color: #fff; }
.tw-btn--primary:hover { background: var(--tw-terracotta-hover); }
.tw-btn--ghost { background: transparent; border: 1px solid var(--tw-stone); color: var(--tw-stone); }
.tw-btn--ghost:hover { border-color: var(--tw-terracotta-hover); color: var(--tw-terracotta-hover); }
.tw-btn--ink { background: transparent; border: 1px solid var(--tw-border); color: var(--tw-espresso); }
.tw-btn--ink:hover { border-color: var(--tw-terracotta); color: var(--tw-terracotta); }

/* ---- Cards ---- */

.tw-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.tw-card__media { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--tw-panel); }
.tw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tw-card:hover .tw-card__media img { transform: scale(1.04); }
.tw-card__cat { font-family: var(--tw-text); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--tw-terracotta); text-transform: uppercase; }
.tw-card__title { font-family: var(--tw-display); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--tw-espresso); margin: 0; }
.tw-card__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; border-top: 1px solid rgba(112, 90, 80, .2); font-family: var(--tw-text); font-size: 14px; line-height: 22px; color: var(--tw-body); }
.tw-card__badge { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; background: rgba(43, 10, 3, .78); color: var(--tw-stone); font-family: var(--tw-text); font-size: 12px; line-height: 18px; padding: 4px 12px; border-radius: 4px; }

/* Cards on the espresso ground */
.tw-on-dark .tw-card__title { color: var(--tw-stone); }
.tw-on-dark .tw-card__meta { color: rgba(212, 204, 196, .7); border-top-color: rgba(212, 204, 196, .2); }

/* ---- Filter bar ---- */

.tw-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tw-filter { font-family: var(--tw-text); font-size: 15px; line-height: 24px; padding: 8px 22px; border-radius: 8px; border: 1px solid rgba(112, 90, 80, .25); background: transparent; color: var(--tw-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tw-filter:hover { border-color: var(--tw-terracotta); color: var(--tw-terracotta); }
.tw-filter.is-active { background: var(--tw-terracotta); border-color: var(--tw-terracotta); color: #fff; }
.tw-hidden { display: none !important; }

/* ---- Footer ---- */

.tw-fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tw-fhead { font-family: var(--tw-text); font-weight: 600; font-size: 16px; line-height: 24px; color: var(--tw-terracotta); text-align: right; display: block; width: 100%; }
.tw-fmuted { font-family: var(--tw-text); font-weight: 400; font-size: 15px; line-height: 26px; color: rgba(212, 204, 196, .6); margin: 0; text-align: right; }
.tw-flinks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; width: 100%; }
.tw-flinks a { font-family: var(--tw-text); font-weight: 400; font-size: 15px; line-height: 24px; color: rgba(212, 204, 196, .7); text-decoration: none; text-align: right; transition: color .2s; }
.tw-flinks a:hover { color: var(--tw-terracotta); }
.tw-fbottom { border-top: 1px solid rgba(212, 204, 196, .1); padding: 28px 0 36px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.tw-social { width: 40px; height: 40px; border: 1px solid rgba(212, 204, 196, .2); border-radius: 9999px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: rgba(212, 204, 196, .6); transition: border-color .2s, color .2s; }
.tw-social:hover { border-color: var(--tw-terracotta); color: var(--tw-terracotta); }

/* ---- Forms ---- */

.tw-field { display: flex; flex-direction: column; gap: 8px; }
.tw-label { font-family: var(--tw-text); font-size: 14px; line-height: 22px; color: var(--tw-body); }
.tw-input, .tw-select, .tw-textarea { font-family: var(--tw-text); font-size: 15px; line-height: 24px; color: var(--tw-espresso); background: #fff; border: 1px solid rgba(112, 90, 80, .25); border-radius: 8px; padding: 14px 16px; outline: none; width: 100%; box-sizing: border-box; text-align: right; transition: border-color .2s; }
.tw-input:focus, .tw-select:focus, .tw-textarea:focus { border-color: var(--tw-terracotta); }
.tw-textarea { min-height: 132px; resize: vertical; }
.tw-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tw-form-msg { font-family: var(--tw-text); font-size: 14px; line-height: 22px; }
.tw-form-msg.is-error { color: #B3341A; }
.tw-form-msg.is-success { color: #2F7D4F; }

/* Newsletter, on the espresso ground */
.tw-news { display: flex; flex-direction: row; align-items: stretch; gap: 8px; width: 100%; }
.tw-news__input { flex: 1; height: 52px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(212, 204, 196, .2); border-radius: 8px; padding: 0 16px; font-family: var(--tw-text); font-weight: 400; font-size: 15px; color: #fff; outline: none; text-align: right; box-sizing: border-box; }
.tw-news__input::placeholder { color: rgba(212, 204, 196, .5); }
.tw-news__input:focus { border-color: var(--tw-terracotta); }
.tw-news__btn { flex-shrink: 0; width: 57px; height: 52px; background: var(--tw-terracotta); border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--tw-stone); transition: background-color .2s; }
.tw-news__btn:hover { background: var(--tw-terracotta-hover); }
.tw-news__btn[disabled] { cursor: wait; opacity: .7; }

/* ---- Pagination ---- */

.tw-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.tw-pagination .page-numbers { font-family: var(--tw-text); font-size: 15px; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgba(112, 90, 80, .25); color: var(--tw-body); text-decoration: none; padding: 0 12px; transition: background-color .2s, color .2s, border-color .2s; }
.tw-pagination .page-numbers:hover { border-color: var(--tw-terracotta); color: var(--tw-terracotta); }
.tw-pagination .page-numbers.current { background: var(--tw-terracotta); border-color: var(--tw-terracotta); color: #fff; }

/* ---- Scroll reveal. Degrades to visible without JS. ---- */

.tw-js .tw-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.tw-js .tw-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.tw-js .tw-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.tw-card:hover .tw-card__media img { transform: none; }
	* { scroll-behavior: auto !important; }
}

/* ---- Editor content inside a post body ---- */

.tw-prose { font-family: var(--tw-text); font-size: 17px; line-height: 1.9; color: var(--tw-body); }
.tw-prose > * + * { margin-top: 1.4em; }
.tw-prose h2 { font-family: var(--tw-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--tw-espresso); }
.tw-prose h3 { font-family: var(--tw-display); font-weight: 500; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: var(--tw-espresso); }
.tw-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.tw-prose a { color: var(--tw-terracotta); text-underline-offset: 3px; }
.tw-prose blockquote { margin: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--tw-terracotta); font-size: 19px; color: var(--tw-espresso); }
.tw-prose ul, .tw-prose ol { padding-inline-start: 24px; }
.tw-prose li + li { margin-top: .5em; }
/* Contact rows and paired form fields */
.tw-contact-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; border-top: 1px solid rgba(112,90,80,.2); padding-top: 16px; }
.tw-field-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tw-field-pair { grid-template-columns: 1fr 1fr; } }
.tw-tile { display: block; }
.custom-logo-link{display:flex;align-items:center;line-height:0}.custom-logo{width:94px;height:61px;object-fit:contain;max-width:none}.tw-nav-link,.tw-cta{white-space:nowrap}header .container{gap:24px}.tw-on-dark .tw-contact-row{align-items:flex-start;border-top-color:rgba(212,204,196,0.2)}.tw-form--dark .tw-label{color:rgba(212,204,196,0.75)}.tw-form--dark .tw-input,.tw-form--dark .tw-select,.tw-form--dark .tw-textarea{background:rgba(255,255,255,0.05);border-color:rgba(212,204,196,0.2);color:#FFFFFF}.tw-form--dark .tw-input::placeholder,.tw-form--dark .tw-textarea::placeholder{color:rgba(212,204,196,0.5)}.tw-form--dark .tw-input:focus,.tw-form--dark .tw-select:focus,.tw-form--dark .tw-textarea:focus{border-color:#C95433}.tw-form--dark .tw-select option{color:#2B0A03}.tw-form--dark .tw-form-msg.is-success{color:#8FCB9B}.flex-row-reverse{flex-direction:row-reverse}@media (min-width:768px){.md\:flex-row-reverse{flex-direction:row-reverse}}.tw-board{display:flex;flex-wrap:wrap;justify-content:center;gap:40px 48px;width:100%}.tw-board__item{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0;width:145px}.tw-board__photo{width:145px;height:220px;object-fit:cover;object-position:top center;display:block;background:#E4D9CE}.tw-board__photo--empty{display:block}.tw-board__caption{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.tw-board__name{font-family:'Doran',sans-serif;font-weight:500;font-size:14px;line-height:1.4;color:#1F1B16}.tw-board__role{font-family:'IBM Plex Sans Arabic',sans-serif;font-weight:400;font-size:12px;line-height:1.5;color:#705A50}/* Flex inputs must be allowed to shrink. Without min-width:0 an input keeps its intrinsic ~20-character width and pushes out of its row, which surfaces as a horizontal scroll strip on narrow screens (notably iOS Safari). */.tw-news{max-width:100%}.tw-news__input{min-width:0;flex:1 1 0%;width:100%;max-width:100%}.tw-news__btn{flex:0 0 57px}.tw-input,.tw-select,.tw-textarea{min-width:0;max-width:100%}.tw-field,.tw-field-pair{min-width:0}/* Structural guard: clip (not hidden) so position:sticky on the header survives. */html{overflow-x:clip}body{overflow-x:clip;max-width:100%}