/*
Theme Name: Fatemeh Lotfiazar — Blocksy Child
Theme URI: https://example.com/
Description: قالب چایلد اختصاصی Blocksy برای وب‌سایت شخصی فاطمه لطفی‌آذر؛ طراح گرافیک با تمرکز بر نشر، پروژه‌های فرهنگی و هویت بصری.
Author: Custom
Template: blocksy
Version: 1.2.0
Text Domain: fatemeh-lotfiazar
Requires at least: 6.4
Requires PHP: 7.4
*/

:root {
  --fl-coral: #c9796f;
  --fl-coral-dark: #9f5750;
  --fl-coral-soft: #f4ddd7;
  --fl-rosewash: #fbf1ed;
  --fl-cream: #fffaf7;
  --fl-paper: #fffdfb;
  --fl-ink: #2c2524;
  --fl-muted: #776b67;
  --fl-line: #eadbd5;
  --fl-olive: #6f7057;
  --fl-shadow: 0 18px 50px rgba(75, 52, 46, 0.08);
  --fl-radius: 22px;
  --fl-wrap: min(1180px, calc(100% - 44px));
}

html { scroll-behavior: smooth; }
body.home {
  direction: rtl;
  background: var(--fl-cream);
  color: var(--fl-ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}
body.home,
body.home button,
body.home input,
body.home select,
body.home textarea,
body.home .fl-home,
body.home .fl-home *,
body.home h1,
body.home h2,
body.home h3,
body.home h4,
body.home h5,
body.home h6,
body.home .ct-headings-font,
body.home .ct-font,
body.home .entry-content,
body.home .entry-content * {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}
body.home .ct-header,
body.home footer.ct-footer { display: none !important; }
body.home #main-container,
body.home .site-main { background: var(--fl-cream); }
body.home .ct-container-full { padding: 0 !important; max-width: none !important; }
body.home .entry-content { margin: 0 !important; }

.fl-home *, .fl-home *::before, .fl-home *::after { box-sizing: border-box; }
.fl-home a { color: inherit; text-decoration: none; }
.fl-home img { max-width: 100%; display: block; }
.fl-wrap { width: var(--fl-wrap); margin-inline: auto; }
.fl-kicker { color: var(--fl-coral-dark); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.fl-section-title { font-size: clamp(27px, 3vw, 38px); margin: 0 0 22px; line-height: 1.35; font-weight: 800; }
.fl-section-title::after { content: ""; display: inline-block; width: 42px; height: 1px; background: var(--fl-coral); margin-right: 14px; vertical-align: middle; }
.fl-lead { font-size: 17px; line-height: 2.05; color: #5f5551; }

/* top navigation */
.fl-topbar { position: sticky; top: 0; z-index: 60; background: rgba(255,250,247,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,121,111,.14); }
.fl-topbar-inner { min-height: 74px; display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; gap: 20px; }
.fl-brand { display: flex; flex-direction: column; justify-self: start; }
.fl-brand strong { font-size: 22px; font-weight: 800; line-height: 1.2; }
.fl-brand span { font-size: 13px; color: var(--fl-muted); margin-top: 3px; }
.fl-nav { display: flex; align-items: center; justify-content: center; gap: 28px; font-size: 14px; font-weight: 500; }
.fl-nav a { position: relative; padding: 26px 0 22px; }
.fl-nav a::after { content:""; position:absolute; height:2px; left:50%; right:50%; bottom:14px; background:var(--fl-coral); transition:.25s ease; }
.fl-nav a:hover::after, .fl-nav a[aria-current="page"]::after { left:0; right:0; }
.fl-top-cta { justify-self: end; display: inline-flex; align-items:center; gap:8px; padding: 12px 18px; background: var(--fl-coral-dark); color:#fff !important; border-radius: 12px; font-weight:600; box-shadow: 0 9px 22px rgba(159,87,80,.15); }
.fl-menu-btn { display:none; background:transparent; border:0; font-size:25px; padding:10px; }

/* hero */
.fl-hero { border-bottom: 1px solid var(--fl-line); overflow: hidden; background: linear-gradient(105deg, #fffaf7 0%, #fffaf7 64%, #f8eae5 100%); }
.fl-hero-grid { min-height: 520px; display: grid; grid-template-columns: 46% 54%; direction: ltr; }
.fl-hero-photo { position: relative; min-height: 520px; overflow:hidden; }
.fl-hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent 55%, rgba(255,250,247,.88) 92%, var(--fl-cream) 100%); }
.fl-hero-photo img { width:100%; height:100%; object-fit:cover; object-position: 50% 36%; filter: saturate(.92) contrast(.98); }
.fl-hero-copy { direction: rtl; display:flex; flex-direction:column; justify-content:center; padding: 54px clamp(24px,5vw,74px) 46px 38px; position:relative; }
.fl-hero-copy::after { content:""; position:absolute; left:0; top:0; width:118px; height:100%; background: linear-gradient(180deg, rgba(201,121,111,.08), rgba(201,121,111,.03)); border-right:1px solid rgba(201,121,111,.12); }
.fl-hero h1 { font-size: clamp(38px, 4.7vw, 62px); margin: 10px 0 20px; line-height: 1.35; letter-spacing:-.025em; font-weight:900; max-width: 780px; }
.fl-hero h1 em { color:var(--fl-coral-dark); font-style:normal; }
.fl-hero p { margin:0; max-width:700px; font-size:17px; line-height:2.1; color:#5f5551; }
.fl-hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.fl-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:47px; padding: 0 22px; border-radius:11px; font-weight:600; transition:.2s ease; }
.fl-btn-primary { background: var(--fl-coral); color:#fff !important; box-shadow: 0 11px 24px rgba(201,121,111,.20); }
.fl-btn-primary:hover { transform: translateY(-2px); background:var(--fl-coral-dark); }
.fl-btn-ghost { border:1px solid var(--fl-line); background:rgba(255,255,255,.45); }
.fl-btn-ghost:hover { border-color:var(--fl-coral); color:var(--fl-coral-dark); }
.fl-hero-tags { display:flex; flex-wrap:wrap; gap:20px; margin-top:32px; padding-top:22px; border-top:1px solid var(--fl-line); }
.fl-hero-tag { display:flex; align-items:center; gap:10px; font-size:14px; color:#584f4c; }
.fl-hero-tag i { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--fl-rosewash); color:var(--fl-coral-dark); font-style:normal; font-size:17px; }

/* work */
.fl-section { padding: 70px 0; }
.fl-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:30px; }
.fl-text-link { font-size:14px; color:var(--fl-coral-dark); border-bottom:1px solid rgba(159,87,80,.35); padding-bottom:4px; }
.fl-work-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.fl-work-card { background:#fff; border:1px solid var(--fl-line); border-radius:18px; overflow:hidden; transition:.28s ease; box-shadow:0 6px 25px rgba(75,52,46,.035); }
.fl-work-card:hover { transform:translateY(-5px); box-shadow:var(--fl-shadow); }
.fl-work-thumb { aspect-ratio: 16/10; position:relative; overflow:hidden; background:linear-gradient(145deg,#f6ebe6,#ead7ce); }
.fl-work-thumb img { width:100%; height:100%; object-fit:cover; transition:.35s ease; }
.fl-work-card:hover .fl-work-thumb img { transform:scale(1.025); }
.fl-work-placeholder { position:absolute; inset:0; display:grid; place-items:center; padding:28px; text-align:center; }
.fl-work-placeholder::before { content:""; position:absolute; width:60%; height:75%; border-radius:5px; background:#fdf9f4; box-shadow:0 12px 25px rgba(60,40,34,.12); transform:rotate(-4deg); border:1px solid #ead8d1; }
.fl-work-placeholder::after { content:""; position:absolute; width:42%; height:60%; border-radius:5px; background:#4d5143; transform:translate(28%,7%) rotate(4deg); opacity:.94; }
.fl-work-placeholder span { position:relative; z-index:2; color:#fff; font-weight:700; max-width:160px; line-height:1.7; }
.fl-work-meta { padding:19px 20px 22px; }
.fl-work-meta h3 { margin:0 0 7px; font-size:19px; font-weight:750; }
.fl-work-meta p { margin:0; color:var(--fl-muted); font-size:13px; line-height:1.8; }

/* focus */
.fl-focus { padding-top: 10px; }
.fl-focus-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.fl-focus-card { background: rgba(255,255,255,.78); border:1px solid var(--fl-line); border-radius:16px; padding:25px 22px; min-height:175px; }
.fl-focus-icon { width:44px; height:44px; border:1px solid rgba(201,121,111,.35); border-radius:13px; display:grid; place-items:center; color:var(--fl-coral-dark); font-size:21px; margin-bottom:17px; background:var(--fl-rosewash); }
.fl-focus-card h3 { margin:0 0 9px; font-size:17px; }
.fl-focus-card p { margin:0; font-size:13.5px; line-height:1.9; color:var(--fl-muted); }

/* about */
.fl-about { background: #fff; border-block:1px solid var(--fl-line); }
.fl-about-grid { display:grid; grid-template-columns: 44% 56%; min-height:360px; direction:ltr; }
.fl-about-visual { position:relative; overflow:hidden; background:linear-gradient(135deg,#f1ded7,#faf1ed); }
.fl-about-visual img { width:100%; height:100%; object-fit:cover; object-position:center 32%; filter:saturate(.75); }
.fl-about-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 50%,rgba(255,255,255,.92) 98%); }
.fl-about-copy { direction:rtl; align-self:center; padding:54px clamp(28px,5vw,74px); }
.fl-about-copy p { max-width:720px; }

/* publishing */
.fl-publishing { padding: 72px 0; background: linear-gradient(180deg,var(--fl-cream),#f8eee9); position:relative; overflow:hidden; }
.fl-publishing::before, .fl-publishing::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:rgba(201,121,111,.08); filter:blur(1px); }
.fl-publishing::before { right:-150px; top:-120px; }
.fl-publishing::after { left:-180px; bottom:-190px; }
.fl-publishing-grid { position:relative; z-index:2; display:grid; grid-template-columns: 1fr 1.1fr; gap:60px; align-items:center; }
.fl-book-scene { min-height:290px; display:flex; align-items:flex-end; justify-content:center; gap:12px; padding:25px; }
.fl-book { width:135px; height:205px; background:#f6e8e2; border:1px solid #dec7bf; box-shadow:0 16px 34px rgba(55,38,33,.12); border-radius:4px 9px 9px 4px; padding:20px 14px; display:flex; align-items:center; justify-content:center; text-align:center; font-weight:700; line-height:1.8; color:#4b403d; }
.fl-book:nth-child(2) { background:#fff9f3; transform:translateY(-16px); }
.fl-book:nth-child(3) { background:#6d6d58; color:#fff; height:184px; }
.fl-publishing-copy p { font-size:16px; line-height:2.05; color:#5f5551; }

/* contact */
.fl-contact { padding:48px 0 30px; background:#fffdfb; border-top:1px solid var(--fl-line); }
.fl-contact-inner { display:flex; justify-content:space-between; align-items:center; gap:26px; }
.fl-contact h2 { margin:0 0 6px; font-size:24px; }
.fl-contact p { margin:0; color:var(--fl-muted); }
.fl-socials { display:flex; gap:10px; flex-wrap:wrap; }
.fl-social { padding:10px 15px; border:1px solid var(--fl-line); border-radius:10px; background:#fff; font-size:14px; }
.fl-social:hover { border-color:var(--fl-coral); color:var(--fl-coral-dark); }
.fl-footerline { padding:22px 0 26px; text-align:center; color:#9a8d88; font-size:12px; }

/* archive + single portfolio */
.fl-inner-page { direction:rtl; font-family:"Vazirmatn",Tahoma,Arial,sans-serif; background:var(--fl-cream); min-height:100vh; }
.fl-page-hero { padding:72px 0 48px; border-bottom:1px solid var(--fl-line); }
.fl-page-hero h1 { font-size:clamp(34px,5vw,60px); margin:0 0 13px; }
.fl-page-hero p { color:var(--fl-muted); max-width:760px; line-height:2; }
.fl-portfolio-archive { padding:54px 0 80px; }
.fl-single { padding:60px 0 90px; }
.fl-single-cover img { width:100%; max-height:620px; object-fit:cover; border-radius:20px; }
.fl-single-content { max-width:850px; margin:40px auto 0; font-size:17px; line-height:2.15; }

@media (max-width: 980px) {
  .fl-topbar-inner { grid-template-columns:1fr auto; }
  .fl-top-cta { display:none; }
  .fl-menu-btn { display:block; justify-self:end; }
  .fl-nav { position:absolute; inset-inline:22px; top:70px; flex-direction:column; align-items:stretch; gap:0; background:#fffaf7; border:1px solid var(--fl-line); border-radius:16px; box-shadow:var(--fl-shadow); padding:10px; opacity:0; visibility:hidden; transform:translateY(-8px); transition:.2s; }
  .fl-nav.is-open { opacity:1; visibility:visible; transform:none; }
  .fl-nav a { padding:13px 14px; }
  .fl-nav a::after { display:none; }
  .fl-hero-grid { grid-template-columns: 1fr; }
  .fl-hero-photo { min-height:420px; order:2; }
  .fl-hero-photo::after { background:linear-gradient(180deg,var(--fl-cream),transparent 20%); }
  .fl-hero-copy { order:1; padding:48px 22px 26px; }
  .fl-hero-copy::after { display:none; }
  .fl-work-grid { grid-template-columns:repeat(2,1fr); }
  .fl-focus-grid { grid-template-columns:repeat(2,1fr); }
  .fl-about-grid, .fl-publishing-grid { grid-template-columns:1fr; }
  .fl-about-visual { min-height:360px; }
  .fl-about-visual::after { background:linear-gradient(180deg,transparent 45%,#fff 100%); }
}

@media (max-width: 640px) {
  :root { --fl-wrap: min(100% - 28px, 1180px); }
  .fl-topbar-inner { min-height:64px; }
  .fl-brand strong { font-size:19px; }
  .fl-brand span { font-size:12px; }
  .fl-hero h1 { font-size:35px; }
  .fl-hero p { font-size:15px; }
  .fl-hero-tags { gap:12px; }
  .fl-hero-tag { flex:1 1 45%; }
  .fl-hero-photo { min-height:350px; }
  .fl-section { padding:52px 0; }
  .fl-section-head { align-items:start; flex-direction:column; }
  .fl-work-grid, .fl-focus-grid { grid-template-columns:1fr; }
  .fl-about-copy { padding:42px 22px; }
  .fl-publishing-grid { gap:25px; }
  .fl-book-scene { transform:scale(.88); margin-inline:-25px; }
  .fl-contact-inner { flex-direction:column; align-items:flex-start; }
}


/* v1.1.0 fixes */
.fl-brand strong,
.fl-nav,
.fl-top-cta,
.fl-kicker,
.fl-section-title,
.fl-hero h1,
.fl-work-meta h3,
.fl-focus-card h3,
.fl-contact h2,
.fl-book,
.fl-btn {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}


body.home .fl-home .fl-brand strong,
body.home .fl-home .fl-brand span,
body.home .fl-home .fl-nav a,
body.home .fl-home .fl-top-cta,
body.home .fl-home .fl-kicker,
body.home .fl-home .fl-section-title,
body.home .fl-home .fl-section-head h2,
body.home .fl-home .fl-hero h1,
body.home .fl-home .fl-hero p,
body.home .fl-home .fl-work-meta h3,
body.home .fl-home .fl-work-meta p,
body.home .fl-home .fl-focus-card h3,
body.home .fl-home .fl-focus-card p,
body.home .fl-home .fl-lead,
body.home .fl-home .fl-publishing-copy p,
body.home .fl-home .fl-contact h2,
body.home .fl-home .fl-contact p,
body.home .fl-home .fl-social,
body.home .fl-home .fl-footerline {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}
