/*
Theme Name: Rouhafza — Sokoot-e Roshan v6
Theme URI: https://rouhafzas.com
Author: Rouhafza
Description: A Persian full-site-editing theme for personal stories about faith, life and hope.
Version: 6.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: rouhafza
Tags: blog, full-site-editing, rtl-language-support, block-patterns, custom-colors
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .25em; }
img { max-width: 100%; height: auto; }

.rouhafza-shell { position: relative; isolation: isolate; }
.rouhafza-header { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.rouhafza-hero { min-height: 720px; overflow: hidden; position: relative; }
.rouhafza-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: #cba64a;
  opacity: .55;
}
.rouhafza-hero .wp-block-cover__inner-container { width: 100%; }
.rouhafza-character { filter: drop-shadow(0 30px 35px rgba(4, 16, 30, .32)); }
.rouhafza-character img { max-height: 670px; width: auto; object-fit: contain; object-position: bottom; }
.rouhafza-kicker { letter-spacing: .05em; }
.rouhafza-title { text-wrap: balance; }
.rouhafza-gold-line { width: 72px !important; border-top-width: 2px !important; }
.rouhafza-quote { position: relative; }
.rouhafza-quote::before { content: "“"; position: absolute; top: -52px; right: -24px; color: #cba64a; font-size: 7rem; line-height: 1; opacity: .45; }
.rouhafza-series .wp-block-column { transition: transform .25s ease, background-color .25s ease; }
.rouhafza-series .wp-block-column:hover { transform: translateY(-5px); background: #f7f0e3; }
.rouhafza-posts .wp-block-post { padding-block: clamp(1.5rem, 4vw, 3.25rem); border-bottom: 1px solid #d8d0c2; }
.rouhafza-posts .wp-block-post:last-child { border-bottom: 0; }
.rouhafza-avatar img { border-radius: 999px; }
.rouhafza-instagram { overflow: hidden; }
.rouhafza-instagram .wp-block-cover__background { mix-blend-mode: multiply; }
.rouhafza-footer a { color: inherit; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.wp-block-button__link { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }

@media (max-width: 781px) {
  .rouhafza-hero { min-height: auto; }
  .rouhafza-hero-copy { padding-top: 7rem !important; padding-bottom: 1rem !important; text-align: center; }
  .rouhafza-hero-copy .wp-block-buttons, .rouhafza-hero-copy .wp-block-separator { justify-content: center; margin-inline: auto; }
  .rouhafza-character { text-align: center; }
  .rouhafza-character img { max-height: 460px; }
  .rouhafza-quote::before { right: 0; }
  .rouhafza-series .wp-block-column { min-height: auto !important; }
}

/* Warm editorial homepage — mirrors the selected reference using supplied brand art. */
.warm-home { direction: rtl; background:#fffaf3; color:#293b4c; }
.warm-hero { min-height:540px; margin:0; gap:0!important; background:linear-gradient(90deg,#31465a,#243649 52%,#1e3041); color:#fff; overflow:hidden; }
.warm-hero-copy { min-height:540px; padding:2.25rem clamp(1.5rem,5vw,5rem); display:flex; flex-direction:column; justify-content:center; align-items:center; }
.warm-mark { margin:0 auto -12px!important; }
.warm-title { margin:0!important; font-size:clamp(4rem,7vw,6.8rem)!important; font-weight:500; line-height:1; }
.warm-line { width:128px!important; border-color:#bd9032!important; border-width:3px 0 0!important; margin:1.6rem auto 1rem!important; transform:rotate(-3deg); }
.warm-button .wp-block-button__link { background:#b96f63; border-radius:999px; padding:1rem 2.2rem; font-size:1.25rem; color:#fff; }
.warm-hero-person { min-height:540px; display:flex; align-items:flex-end; justify-content:center; background:radial-gradient(circle at 45% 45%,#567186,#33495d 42%,#243649 74%); }
.warm-hero-person figure { margin:0; }
.warm-hero-person img { width:auto; height:520px; object-fit:contain; filter:drop-shadow(0 25px 35px rgba(17,27,36,.5)); }
.warm-journal { min-height:455px; margin:0; gap:0!important; background:#fffaf3; overflow:hidden; }
.warm-journal-copy { min-height:455px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:2.5rem; background:linear-gradient(155deg,#fffdf8,#fbf4ea); }
.warm-journal-copy h2 { font-size:clamp(2.5rem,5vw,4.8rem)!important; font-weight:500; }
.warm-quote { color:#b96f63; font:700 6rem/.5 Georgia,serif; margin:0; }
.warm-line.rose { width:230px!important; border-color:#b96f63!important; }
.warm-journal-image, .warm-journal-image figure { min-height:455px; height:455px; margin:0; overflow:hidden; background:transparent!important; border:0!important; box-shadow:none!important; }
.warm-journal-image figure { display:flex; align-items:flex-end; justify-content:center; }
.warm-journal-image img { width:auto; max-width:94%; height:94%; object-fit:contain; object-position:center bottom; }
.warm-categories { padding:2.25rem 1.5rem 3.6rem; gap:2.4rem!important; }
.warm-categories figure { overflow:hidden; border-radius:48% 42% 45% 38%/18% 22% 20% 24%; background:#eaded1; }
.warm-categories img { width:100%; height:190px; }
.warm-category-lights figure,.warm-category-heart figure { background:linear-gradient(145deg,#e7dbce,#f3e9df); }
.warm-category-lights img { width:auto; max-width:100%; margin:auto; padding:.45rem 0; object-fit:contain!important; object-position:center!important; }
.warm-category-heart img { width:auto; max-width:100%; margin:auto; padding:.15rem; object-fit:contain!important; object-position:center!important; }
.warm-categories h2 { font-weight:500; }
.warm-instagram { min-height:145px; overflow:hidden; padding:.65rem 1.5rem; background:linear-gradient(8deg,#f7e9e3,#edcfc7); }
.warm-instagram .wp-block-columns { margin-bottom:0; }
.warm-instagram img { max-height:130px; object-fit:contain; }
.warm-instagram h2 { margin:0; font-size:clamp(1.35rem,2.4vw,1.9rem)!important; }
.warm-instagram-character { margin:0!important; text-align:center; }
.warm-instagram-character,.warm-instagram-character img { background:transparent!important; border:0!important; box-shadow:none!important; }
.warm-instagram-cta { gap:.85rem!important; }
.warm-instagram-icon { margin:0!important; }
.warm-instagram-icon .wp-social-link { transform:none!important; }
.warm-categories a { color:inherit; text-decoration:none; }
.warm-categories .wp-block-column { transition:transform .2s ease; }
.warm-categories .wp-block-column:hover { transform:translateY(-4px); }
.warm-static-cards img,
.warm-post-card .wp-block-post-featured-image img { width:100%; height:230px; aspect-ratio:4/3; object-fit:cover; object-position:center; border-radius:22px; }
.single-post .wp-block-post-featured-image img { width:100%; max-height:520px; aspect-ratio:16/9; object-fit:cover; object-position:center; }
.single-post .rouhafza-article-image { max-width:820px; margin:1rem auto 2rem; padding:.75rem; border-radius:26px; background:#f3eadf; }
.single-post .rouhafza-article-image img { display:block; width:100%; max-height:560px; object-fit:contain; object-position:center; border-radius:18px; }
.rouhafza-faith-visual { position:relative; max-width:820px!important; margin:1rem auto 2rem!important; overflow:hidden; border-radius:26px; background:linear-gradient(145deg,#eadfd2,#f8efe7); }
.rouhafza-faith-visual .rouhafza-article-image { margin:0 auto!important; padding:.5rem!important; background:transparent!important; border:0!important; }
.rouhafza-faith-visual .rouhafza-faith-logo { position:absolute; top:1rem; left:1rem; z-index:2; margin:0!important; }
.rouhafza-faith-visual .rouhafza-faith-logo img { width:96px!important; height:96px!important; object-fit:contain; }
.single-post .wp-block-post-content { font-size:1.08rem; line-height:2.05; }
.single-post .wp-block-post-content > * { max-width:760px; margin-inline:auto; }
.rouhafza-share-tools { max-width:760px; margin:2.5rem auto; padding:1.25rem; border:1px solid #e2cfbd; border-radius:22px; background:#fff8f1; text-align:center; }
.rouhafza-share-label { margin:0 0 .8rem; font-weight:700; }
.rouhafza-share-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:.75rem; }
.rouhafza-copy-button,.rouhafza-telegram-button { border:0; border-radius:999px; padding:.75rem 1.2rem; font:inherit; cursor:pointer; text-decoration:none; }
.rouhafza-copy-button { background:#293b4c; color:#fff; }
.rouhafza-telegram-button { background:#229ed9; color:#fff; }
.rouhafza-copy-status { min-height:1.5em; margin:.65rem 0 0; font-size:.9rem; }
@media(max-width:781px){.warm-hero-copy,.warm-hero-person{min-height:auto}.warm-hero-copy{padding:3.5rem 1.4rem 2.5rem}.warm-hero-person{height:400px}.warm-hero-person img{height:390px}.warm-journal-copy{min-height:330px}.warm-journal-image,.warm-journal-image figure{height:390px;min-height:390px}.warm-categories{padding-top:3rem}.warm-categories img{height:250px}.warm-instagram{text-align:center}}

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

/* Reference-fidelity pass: quiet split hero and Persian RTL rhythm. */
[dir="rtl"], body.rtl { direction: rtl; text-align: right; }
.rouhafza-hero > .wp-block-columns { max-width: none !important; width: 100%; min-height: 690px; gap: 0 !important; }
.rouhafza-hero-copy { padding-inline: clamp(2.25rem, 5vw, 5rem) !important; text-align: right; }
.rouhafza-hero-copy .wp-block-heading { font-weight: 500; letter-spacing: -.045em; }
.rouhafza-hero-copy .wp-block-buttons { justify-content: flex-start; }
.rouhafza-hero-copy .wp-block-button__link { background: transparent; color: #f7f1e7; border: 1px solid #cba64a; min-width: 10rem; text-align: center; }
.rouhafza-hero-media { overflow: hidden; min-height: 690px; }
.rouhafza-hero-media figure { height: 100%; margin: 0; }
.rouhafza-hero-media img { width: 100%; height: 100%; min-height: 690px; object-fit: cover; object-position: center; }

@media (max-width: 781px) {
  .rouhafza-hero > .wp-block-columns { min-height: 0; }
  .rouhafza-hero-copy { text-align: center; }
  .rouhafza-hero-copy .wp-block-buttons { justify-content: center; }
  .rouhafza-hero-media, .rouhafza-hero-media img { min-height: 390px; height: 390px; }
}
