/* ------------------------------------------------------------------
   Rahab Beauty Foundation - site theme
   Loaded after style.css (Sadaka template). All brand overrides live
   here; do not put page-level <style> blocks in views.
------------------------------------------------------------------- */

:root {
  --rahab-sand: #d5c7ad;
  --rahab-cream: #f8f4ea;
  --rahab-gold: #7a6a45;      /* primary: 5.3:1 on white */
  --rahab-gold-dark: #5e5134;
  --rahab-olive: #8a8e75;
  --rahab-dark: #2e2b24;
  --rahab-dark-2: #3b372e;

  --primary-color: var(--rahab-gold);
  --secondary-color: var(--rahab-dark);
  --heading-color: #2b2924;
  --paragraph: #5c5a52;      /* darker than template grey for readability */
  --span: #5c5a52;
  --sub-bg: var(--rahab-cream);
}

html { scroll-behavior: smooth; }

img { max-width: 100%; height: auto; }

/* Wider layout: content can use more of large screens */
@media (min-width: 1400px) {
  .container { max-width: 1440px; }
}
@media (min-width: 1800px) {
  .container { max-width: 1680px; }
}
.container { padding-left: 24px; padding-right: 24px; }   /* matches .g-5 row gutters, no edge overflow */

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rahab-sand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--rahab-dark); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Buttons ---------- */
.btn-one, .btn-two { background-color: var(--rahab-gold); }
.btn-one .btn-inner, .btn-two .btn-inner { padding: 13px 30px; }
.btn-light-outline {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  border: 2px solid var(--rahab-sand); color: #fff; font-weight: 700;
  text-transform: uppercase; transition: var(--transition);
}
.btn-light-outline:hover { background: var(--rahab-sand); color: var(--rahab-dark); }
.btn-gold-outline {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  border: 2px solid var(--rahab-gold); color: var(--rahab-gold); font-weight: 700;
  text-transform: uppercase; transition: var(--transition);
}
.btn-gold-outline:hover { background: var(--rahab-gold); color: #fff; }

/* ---------- Header ---------- */
.header-top { background-color: var(--rahab-dark); padding: 10px 0; }
.header-top .header-top-wrp .info i,
.header-top .header-top-wrp .info a:hover,
.header-top .header-top-wrp .link-info li a:hover { color: var(--rahab-sand); }
.header-top .header-top-wrp .link-info li a { font-size: 16px; }

.header-area {
  position: sticky; top: 0; z-index: 999;
  background-color: #fff; box-shadow: var(--shadow);
}
.header_logo { height: 64px; width: auto; margin: 8px 0; }
@media (max-width: 991px) { .header_logo { height: 52px; } }
.header__main .main-menu ul li a { padding: 28px 0; }
.header__main .main-menu ul li a.active { color: var(--rahab-gold); }
.header__main .main-menu ul li .sub-menu { min-width: 220px; }

.sidebar-area .logo img { width: 120px; }
.sidebar-area .info li a, .sidebar-area .info li i { color: #fff; }
.sidebar-area .info li i { color: var(--rahab-sand); margin-right: 8px; }

/* ---------- Page banners (inner pages) ---------- */
.page-banner {
  position: relative; isolation: isolate;
  padding: 120px 0 110px; text-align: center;
  background-color: var(--rahab-dark);
  background-size: cover; background-position: center;
}
.page-banner::before {           /* keeps white text readable on any photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,27,22,.55) 0%, rgba(30,27,22,.75) 100%);
}
.page-banner h1 { color: #fff; font-size: 52px; line-height: 1.15; margin-bottom: 12px; }
.page-banner .breadcrumb-list, .page-banner .breadcrumb-list a { color: #fff; font-weight: 500; }
.page-banner .breadcrumb-list a:hover { color: var(--rahab-sand); }
.page-banner .breadcrumb-list .current { color: var(--rahab-sand); }
@media (max-width: 767px) {
  .page-banner { padding: 70px 0 60px; }
  .page-banner h1 { font-size: 34px; }
}

/* ---------- Home hero (split: text panel + photo) ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr;
  min-height: min(88vh, 860px);
  background: var(--rahab-dark);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(24px, 6vw, 110px);
  color: #e9e4d8;
}
.hero__eyebrow {
  color: var(--rahab-sand); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 14px; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; margin-bottom: 24px; }
.hero__lead { color: #e9e4d8; font-size: 19px; line-height: 1.65; max-width: 640px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__media { position: relative; overflow: hidden; min-height: 420px; }
.hero__media .swiper { position: absolute; inset: 0; }
.hero__media .swiper-wrapper, .hero__media .swiper-slide { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 991px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; height: 62vh; min-height: 360px; }
  .hero__text { padding: 48px 20px 56px; }
  .hero__lead { font-size: 17px; }
}

/* ---------- Generic sections ---------- */
.section { padding: 110px 0; }
.section--cream { background: var(--rahab-cream); }
.section--dark { background: var(--rahab-dark); color: #e9e4d8; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .section-header h5 { color: var(--rahab-sand); }
@media (max-width: 767px) { .section { padding: 64px 0; } }

.section-header h5 { color: var(--rahab-gold); }
.section-header h2 { text-transform: none; }
.section-header p { margin-top: 18px; }
.lead-text { font-size: 18px; line-height: 1.75; }

/* Service / value cards */
.value-card {
  height: 100%; background: #fff; border-radius: 16px; padding: 34px 30px;
  border: 1px solid #ece5d6; box-shadow: var(--shadow);
}
.value-card i { font-size: 30px; color: var(--rahab-gold); margin-bottom: 18px; }
.value-card h3 { font-size: 21px; margin-bottom: 10px; }

/* ---------- Founder summary cards ---------- */
.founder-card {
  display: flex; gap: 28px; height: 100%; background: #fff;
  border-radius: 18px; padding: 28px; border: 1px solid #ece5d6; box-shadow: var(--shadow);
}
.founder-card__photo { flex: 0 0 160px; }
.founder-card__photo img { width: 160px; height: 200px; object-fit: cover; object-position: top; border-radius: 12px; }
.founder-card h3 { font-size: 24px; margin-bottom: 4px; }
.founder-card .role { color: var(--rahab-gold); font-weight: 600; display: block; margin-bottom: 14px; }
.founder-card p { margin-bottom: 18px; }
.link-arrow { color: var(--rahab-gold); font-weight: 700; }
.link-arrow:hover { color: var(--rahab-gold-dark); }
.link-arrow i { margin-left: 6px; transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
@media (max-width: 575px) {
  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-card__photo { flex-basis: auto; }
}

/* ---------- Founder story page ---------- */
.story__photo img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.story__quick {
  background: var(--rahab-cream); border-radius: 16px; padding: 26px 28px; margin-top: 28px;
}
.story__quick li { padding: 6px 0; display: flex; gap: 12px; }
.story__quick i { color: var(--rahab-gold); margin-top: 6px; width: 18px; }
.story__body p { font-size: 18px; line-height: 1.8; margin-bottom: 22px; }
.story__body blockquote {
  border-left: 4px solid var(--rahab-sand); padding: 6px 0 6px 22px; margin: 30px 0;
  font-family: var(--quicksand); font-size: 22px; line-height: 1.5; color: var(--heading-color); font-weight: 600;
}
.story__body h2 { font-size: 30px; margin: 40px 0 18px; }

/* ---------- Donate ---------- */
.bank-card {
  background: var(--rahab-dark); color: #e9e4d8; border-radius: 18px; padding: 36px;
}
.bank-card h3 { color: #fff; margin-bottom: 22px; }
.bank-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.bank-card dt { color: var(--rahab-sand); font-weight: 600; }
.bank-card dd { margin: 0; color: #fff; font-weight: 600; word-break: break-word; }
.bank-card .copy-btn {
  background: transparent; border: 1px solid #6d6656; color: var(--rahab-sand);
  border-radius: 6px; font-size: 13px; padding: 0 8px; margin-left: 8px;
}
@media (max-width: 575px) {
  .bank-card { padding: 26px 22px; }
  .bank-card dl { grid-template-columns: 1fr; gap: 2px; }
  .bank-card dd { margin-bottom: 10px; }
}

.doc-card {
  display: flex; gap: 18px; align-items: center; height: 100%;
  background: #fff; border: 1px solid #ece5d6; border-radius: 14px; padding: 22px 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.doc-card:hover { border-color: var(--rahab-gold); transform: translateY(-2px); }
.doc-card i.fa-file-pdf { font-size: 38px; color: #b23b2e; }
.doc-card h4 { font-size: 18px; margin-bottom: 4px; }
.doc-card span { font-size: 14px; }
.doc-card .doc-card__dl { margin-left: auto; color: var(--rahab-gold); font-size: 20px; }

.donate-cta {
  background: linear-gradient(135deg, var(--rahab-dark) 0%, var(--rahab-dark-2) 100%);
  border-radius: 22px; padding: 56px clamp(24px, 5vw, 70px); color: #e9e4d8;
}
.donate-cta h2 { color: #fff; }

/* ---------- Contact ---------- */
.contact-card {
  height: 100%; text-align: center; padding: 34px 24px; border-radius: 18px;
  background: var(--rahab-cream); border: 1px solid #e6dcc6;
}
.contact-card .icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--rahab-gold); color: #fff; display: grid; place-items: center; font-size: 24px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 10px; }
.contact-card a { color: var(--heading-color); font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--rahab-gold); }

.contact__form label { font-weight: 600; color: var(--heading-color); margin-bottom: 6px; display: block; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; border: 1px solid #ddd5c3; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 20px; background: #fff; color: var(--heading-color);
}
.contact__form textarea { min-height: 160px; }
.contact__form .field-validation-error { color: #b23b2e; font-size: 14px; display: block; margin: -14px 0 14px; }
.contact__form button[type=submit] { border: 0; }
.form-alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.form-alert--ok { background: #eef5e9; color: #2f5a1f; }

/* ---------- Footer ---------- */
.footer-area { background-color: var(--rahab-dark) !important; }
.footer__item .logo img { width: 120px; }
.footer__item p, .footer__item .link li a { color: #d8d2c3; }
.footer__item .link li a:hover { color: var(--rahab-sand); }
.footer__item .primary-color, .primary-color { color: var(--rahab-sand) !important; }
.footer__item .social-icon a { color: #fff; }
.footer__item .social-icon a:hover, .footer__item .social-icon a.active {
  background-color: var(--rahab-sand) !important; color: var(--rahab-dark) !important;
}
.footer__wrp { padding-top: 90px !important; padding-bottom: 70px !important; }
.footer__copytext p, .footer__copytext a { color: #bdb6a5; }
.footer__reg { font-size: 14px; color: #bdb6a5; margin-top: 10px; }

/* Back-to-top ring uses brand colour */
.scroll-up svg.scroll-circle path { stroke: var(--rahab-gold); }
.scroll-up::after { color: var(--rahab-gold); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.footer__address, .footer__address span { color: #d8d2c3; }
.donate-cta p { color: #e9e4d8; }
.bank-card .muted { color: #bdb6a5; }

/* Template hides <br> on small screens; we use them deliberately */
br { display: initial !important; }

/* ---------- Policy pages ---------- */
.policy h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 110px; }
.policy p, .policy li { font-size: 17px; line-height: 1.75; }
.policy ul:not(.story__quick) { list-style: disc; padding-left: 22px; margin-bottom: 22px; }
.policy ul:not(.story__quick) li { margin-bottom: 6px; }
.policy__toc { background: var(--rahab-cream); border-radius: 14px; padding: 22px 26px; margin: 28px 0 10px; }
.policy__toc ol { list-style: decimal; padding-left: 22px; margin: 10px 0 0; columns: 2; column-gap: 32px; }
.policy__toc li { font-size: 16px; margin-bottom: 4px; break-inside: avoid; }
.policy__toc a, .policy a { color: var(--rahab-gold); }
@media (max-width: 575px) { .policy__toc ol { columns: 1; } }

/* ---------- Previous projects (home) ---------- */
.projects { position: relative; overflow: hidden; }
.project + .project { margin-top: 110px; }
@media (max-width: 991px) { .project + .project { margin-top: 70px; } }

.project__media { position: relative; padding: 0 70px 60px 0; }
.project--reverse .project__media { padding: 0 0 60px 70px; }
.project__media::before {               /* soft offset frame behind the photo */
  content: ""; position: absolute; top: 28px; left: 28px; right: 42px; bottom: 32px;
  border: 2px solid var(--rahab-sand); border-radius: 26px; z-index: 0;
}
.project--reverse .project__media::before { left: 42px; right: 28px; }
.project__photo {
  position: relative; z-index: 1; display: block; width: 100%;
  border-radius: 24px; box-shadow: 0 24px 50px -24px rgba(46,43,36,.45);
  object-fit: cover; aspect-ratio: 4 / 3;
}
.project__media--portrait .project__photo { aspect-ratio: 4 / 5; object-position: center 30%; }

.project__inset {
  position: absolute; z-index: 2; bottom: 0; margin: 0;
  border-radius: 18px; overflow: hidden; background: #fff; padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(46,43,36,.5);
}
.project__inset--video { right: 0; width: 34%; max-width: 210px; }

.project__inset--video video { display: block; width: 100%; height: auto; aspect-ratio: 408 / 720; object-fit: cover; border-radius: 13px; }
.project__inset figcaption { font-size: 12px; line-height: 1.35; text-align: center; padding: 7px 4px 3px; color: var(--paragraph); }
.project__inset--poster { left: 0; width: 34%; max-width: 200px; border: 0; cursor: zoom-in; transition: transform .25s; }
.project__inset--poster:hover { transform: translateY(-4px) rotate(-1deg); }
.project__inset--poster img { display: block; width: 100%; height: auto; border-radius: 13px; }
.project__inset--poster span {
  position: absolute; left: 12px; bottom: 12px; background: rgba(46,43,36,.85); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}

.project__body { position: relative; }
.project__num {
  display: block; font-family: var(--quicksand); font-weight: 700; font-size: 72px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--rahab-sand); margin-bottom: 10px;
}
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project__tags li {
  background: #fff; border: 1px solid #e6dcc6; color: var(--rahab-gold-dark);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.project__tags i { margin-right: 6px; color: var(--rahab-gold); }
.project__title { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; margin-bottom: 18px; }
.project__body p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.project__note { color: var(--rahab-gold-dark); font-weight: 600; font-style: italic; }
.project__note i { color: #b8475a; margin-right: 8px; }
.project__body .btn-gold-outline { background: transparent; }

.project__contents { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 24px; }
.project__contents li {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 10px 16px; font-weight: 600; color: var(--heading-color); box-shadow: var(--shadow);
}
.project__contents i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rahab-cream); color: var(--rahab-gold); font-size: 15px;
}
.project__quote {
  position: relative; margin: 0; padding: 26px 28px 26px 30px; border-radius: 18px;
  background: var(--rahab-dark); color: #ece6d8; font-family: var(--quicksand);
  font-size: 18px; line-height: 1.65; font-weight: 500;
}
.project__quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 22px; font-size: 80px; line-height: 1;
  color: var(--rahab-sand); font-family: Georgia, serif;
}

@media (max-width: 575px) {
  .project__media, .project--reverse .project__media { padding: 0 34px 46px 0; }
  .project--reverse .project__media { padding: 0 0 46px 34px; }
  .project__media::before { top: 16px; left: 16px; right: 20px; bottom: 26px; }
  .project--reverse .project__media::before { left: 20px; right: 16px; }
  .project__inset--video, .project__inset--poster { width: 38%; }
  .project__num { font-size: 56px; }
}

/* Poster lightbox */
.lightbox {
  margin: auto; inset: 0; border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(20,18,14,.85); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: -16px; right: -16px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--rahab-sand); color: var(--rahab-dark); font-size: 18px;
}
