/*
Theme Name: Rawdat Taybah
Author: Replit
Description: قالب عربي متجاوب لموقع روضة طيبة، مع إدارة الخدمات والمشاريع والمعارض من لوحة WordPress.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rawdat-taybah
*/

:root {
  --rt-ink: #173a2a;
  --rt-leaf: #2f8a4b;
  --rt-mint: #6fd16f;
  --rt-clay: #e0622a;
  --rt-paper: #f0f1f4;
  --rt-text: #27332c;
  --rt-muted: #66736b;
  --rt-content: 1160px;
  --rt-grid-cols: 3;
  --rt-hero-overlay: .6;
  --rt-radius: 24px;
  --rt-shadow: 0 12px 32px rgba(23, 58, 42, .10);
  --rt-font: "Tajawal", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--rt-text);
  background: #fff;
  font-family: var(--rt-font);
  font-size: 16px;
  line-height: 1.8;
}
body, button, input, select, textarea { font-family: var(--rt-font); }
img { max-width: 100%; height: auto; }
a { color: var(--rt-ink); text-decoration: none; }
a:hover { color: var(--rt-clay); }
button, input, select, textarea { font-size: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
.rt-wrap { width: min(var(--rt-content), calc(100% - 40px)); margin-inline: auto; }
.rt-section { padding-block: 76px; }
.rt-section--paper { background: var(--rt-paper); }
.rt-section--ink { color: #fff; background: var(--rt-ink); }
.rt-section-heading { margin: 0 0 28px; color: var(--rt-ink); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.35; }
.rt-section--ink .rt-section-heading { color: #fff; }
.rt-kicker { display: inline-block; margin: 0 0 20px; padding: 7px 22px; border-radius: 999px; color: #fff; background: var(--rt-ink); font-weight: 800; }
.rt-lead { max-width: 760px; margin: 0 auto 28px; color: var(--rt-muted); }
.rt-hero { position: relative; isolation: isolate; display: grid; min-height: min(760px, 90vh); place-items: center; overflow: hidden; padding: 150px 20px 90px; color: #fff; text-align: center; background: linear-gradient(135deg, var(--rt-ink), #1f4d36 62%, #101a14); }
.rt-hero__bg { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.rt-hero.has-image::before { position: absolute; inset: 0; z-index: -1; content: ""; background: #09180f; opacity: var(--rt-hero-overlay, .6); }
.rt-hero__inner { position: relative; width: min(850px, 100%); }
.rt-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.35; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.rt-hero h1::after { display: block; width: 84px; height: 4px; margin: 16px auto 0; border-radius: 4px; content: ""; background: var(--rt-mint); }
.rt-hero p { max-width: 720px; margin: 22px auto 0; font-size: clamp(1rem, 2vw, 1.25rem); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.rt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.rt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 25px; border: 2px solid transparent; border-radius: 999px; color: #fff; background: var(--rt-ink); font-weight: 800; transition: transform .18s ease, background .18s ease; }
.rt-button:hover, .rt-button--accent:hover { color: #fff; background: var(--rt-leaf); transform: translateY(-2px); }
.rt-button--accent { color: var(--rt-ink); background: var(--rt-mint); }
.rt-button--outline { border-color: currentColor; background: transparent; }
.rt-grid { display: grid; grid-template-columns: repeat(var(--rt-grid-cols), minmax(0, 1fr)); gap: 24px; }
.rt-card { overflow: hidden; border-radius: var(--rt-radius); background: #fff; box-shadow: var(--rt-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.rt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23,58,42,.16); }
.rt-card__image { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--rt-ink), var(--rt-leaf)); font-size: 3rem; }
.rt-card__image img { width: 100%; height: 100%; object-fit: cover; }
.rt-card__body { padding: 22px; }
.rt-card h2, .rt-card h3 { margin: 0; color: var(--rt-ink); font-size: 1.28rem; line-height: 1.5; }
.rt-card p { margin: 10px 0 0; color: var(--rt-muted); }
.rt-card__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 800; }
.rt-empty { padding: 30px; border-radius: var(--rt-radius); color: var(--rt-muted); background: #fff; text-align: center; box-shadow: var(--rt-shadow); }
.rt-inner-hero { padding: 145px 20px 64px; color: #fff; background: linear-gradient(135deg, var(--rt-ink), #1f4d36); }
.rt-inner-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.4; }
.rt-inner-hero .rt-wrap { text-align: center; }
.rt-breadcrumbs { margin: 0 0 18px; color: rgba(255,255,255,.78); font-size: .95rem; }
.rt-breadcrumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rt-content { max-width: 900px; margin-inline: auto; }
.rt-content > *:first-child { margin-top: 0; }
.rt-content h2, .rt-content h3 { color: var(--rt-ink); line-height: 1.4; }
.rt-content img { border-radius: 16px; }
.rt-feature-list, .rt-steps { display: grid; gap: 12px; padding: 0; list-style: none; }
.rt-feature-list li, .rt-step { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border-radius: 16px; background: var(--rt-paper); }
.rt-check { color: var(--rt-leaf); font-weight: 900; }
.rt-step__number { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--rt-ink); font-weight: 800; }
.rt-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rt-gallery figure { min-width: 0; margin: 0; }
.rt-gallery figcaption { padding: 5px 3px; color: var(--rt-muted); font-size: .92rem; }
.rt-gallery a { display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--rt-paper); }
.rt-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.rt-gallery a:hover img { transform: scale(1.04); }
.rt-js .rt-gallery .is-collapsed { display: none; }
.rt-gallery-more-wrap { margin-top: 28px; }
.rt-works-gallery { margin-top: 8px; }
.rt-form-note { margin: 0; color: var(--rt-muted); font-size: .92rem; }
.rt-faq details { margin: 12px 0; padding: 16px 20px; border-radius: 16px; background: var(--rt-paper); }
.rt-faq summary { color: var(--rt-ink); cursor: pointer; font-weight: 800; }
.rt-cta { padding: 34px; border-radius: var(--rt-radius); color: #fff; background: var(--rt-ink); text-align: center; }
.rt-cta h2 { margin: 0; color: inherit; }
.rt-cta p { color: rgba(255,255,255,.82); }
.rt-header { position: absolute; z-index: 20; inset: 0 0 auto; color: #fff; background: rgba(9,24,15,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rt-header--static { position: sticky; top: 0; color: var(--rt-ink); background: #fff; box-shadow: 0 5px 22px rgba(0,0,0,.08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.rt-header.is-scrolled { position: fixed; color: var(--rt-ink); background: rgba(255,255,255,.97); box-shadow: 0 5px 22px rgba(0,0,0,.11); }
.rt-header--static.is-scrolled { position: sticky; }
.rt-header__bar { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; }
.rt-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--rt-leaf); font-size: 1.55rem; font-weight: 900; }
.rt-brand:hover { color: var(--rt-mint); }
.rt-brand img { width: auto; max-width: 175px; max-height: 52px; object-fit: contain; }
.rt-nav { display: flex; align-items: center; gap: 25px; }
.rt-nav ul { display: contents; margin: 0; padding: 0; list-style: none; }
.rt-nav li { margin: 0; padding: 0; list-style: none; }
.rt-nav a { color: inherit; font-weight: 700; }
.rt-nav a:hover { color: var(--rt-mint); }
.rt-header.is-scrolled .rt-nav a:hover, .rt-header--static .rt-nav a:hover { color: var(--rt-clay); }
.rt-header__contact { display: flex; align-items: center; gap: 14px; }
.rt-header__contact a { color: inherit; font-weight: 700; }
.rt-menu-toggle { display: none; border: 0; color: inherit; background: transparent; font-size: 1.8rem; }
.rt-footer { padding-top: 58px; background: var(--rt-paper); }
.rt-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.rt-footer h2, .rt-footer h3 { margin: 0 0 14px; color: var(--rt-ink); font-size: 1.2rem; }
.rt-footer p { color: var(--rt-muted); }
.rt-footer ul { margin: 0; padding: 0; list-style: none; }
.rt-footer li { margin: 7px 0; }
.rt-footer__bottom { margin-top: 38px; padding: 16px 0; border-top: 1px solid #d3d8d4; color: var(--rt-muted); text-align: center; font-size: .9rem; }
.rt-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.rt-floating { position: fixed; z-index: 18; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 11px; }
.rt-floating a { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: var(--rt-ink); background: var(--rt-mint); box-shadow: var(--rt-shadow); font-size: 1.45rem; }
.rt-floating a:hover { color: #fff; background: var(--rt-leaf); }
.rt-floating svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.rt-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.rt-pagination .page-numbers { padding: 7px 13px; border-radius: 8px; background: var(--rt-paper); }
.rt-pagination .current { color: #fff; background: var(--rt-ink); }
.rt-form { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; padding: 26px; border-radius: var(--rt-radius); background: #fff; box-shadow: var(--rt-shadow); }
.rt-form label { display: grid; gap: 6px; color: var(--rt-ink); font-weight: 700; }
.rt-form input, .rt-form select, .rt-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8d1; border-radius: 10px; color: var(--rt-text); background: #fff; }
.rt-form textarea { min-height: 130px; resize: vertical; }
.rt-project-filter { margin: 20px 0; }
.rt-project-filter label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--rt-ink); font-weight: 700; }
.rt-project-filter select { min-width: 240px; padding: 10px 12px; border: 1px solid #cfd8d1; border-radius: 10px; background: #fff; }
.rt-notice { max-width: 760px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 12px; color: #164b28; background: #e8f7eb; }
.rt-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.rt-lightbox { position: fixed; z-index: 100000; inset: 0; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(0,0,0,.92); }
.rt-lightbox.is-open { display: flex; }
.rt-lightbox img { max-width: min(100%, 1200px); max-height: 88vh; object-fit: contain; }
.rt-lightbox button { position: absolute; border: 0; color: #fff; background: transparent; font-size: 2rem; }
.rt-lightbox__close { top: 14px; right: 22px; }
.rt-lightbox__prev { right: 20px; top: 50%; }
.rt-lightbox__next { left: 20px; top: 50%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { max-width: 1200px; }
.alignfull { width: 100%; }
@media (max-width: 920px) {
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-header__contact { display: none; }
  .rt-menu-toggle { display: block; }
  .rt-nav { position: absolute; inset: 78px 0 auto; display: none; align-items: stretch; gap: 0; padding: 12px 20px 20px; color: var(--rt-ink); background: #fff; box-shadow: var(--rt-shadow); }
  .rt-nav.is-open { display: flex; flex-direction: column; }
  .rt-nav a { padding: 8px 0; }
  .rt-nav ul { display: block; }
}
@media (max-width: 600px) {
  .rt-wrap { width: min(var(--rt-content), calc(100% - 30px)); }
  .rt-section { padding-block: 54px; }
  .rt-grid { grid-template-columns: 1fr; gap: 18px; }
  .rt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rt-footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .rt-hero { min-height: 76vh; padding-top: 120px; }
  .rt-inner-hero { padding-top: 120px; }
  .rt-floating { bottom: 12px; left: 12px; }
  .rt-floating a { width: 48px; height: 48px; }
  .rt-floating svg { width: 25px; height: 25px; }
  .rt-form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
