/* ============================================================
   آتلیه کودک نینو — نسخه ۵ (فارسی راست‌چین تمیز)
   سبک: الهام از lillerphoto ولی روشن، کودکانه، کاملاً فارسی
   ============================================================ */

:root {
  --brand: #FFD93D;          /* زرد لوگو */
  --brand-deep: #E8B400;
  --brand-soft: #FFF7DC;

  --ink: #1A1A1A;            /* متن اصلی */
  --ink-soft: #6B6B6B;       /* متن ملایم */
  --cream: #F7F5EF;          /* کرم روشن */
  --white: #FFFFFF;
  --line: #E8E5DE;           /* خطوط */

  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15.5px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.5; font-weight: 800; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section { padding: 90px 0; }

/* ---------- تیتر بخش ---------- */
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
  background: var(--brand-soft);
  padding: 5px 16px;
  border-radius: 100px;
}
.section-head h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 900; }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ---------- دکمه ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  min-height: 50px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(232,180,0,.3); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-light-outline:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- هدر (همیشه تیره و خوانا) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 19px; color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 3px 10px rgba(232,180,0,.35);
}
.logo .tag { font-size: 11px; font-weight: 600; color: var(--ink-soft); display: block; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); transition: color .15s ease; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn { padding: 10px 22px; font-size: 14px; min-height: 42px; color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); padding: 6px; }

/* ---------- هیرو (روشن، بدون نیاز به عکس) ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 90% 10%, rgba(255,217,61,.5), transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(255,217,61,.25), transparent 55%),
    var(--brand-soft);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-deep); }

.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1px; line-height: 1.35; margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-deep); }
.hero-desc { font-size: 16.5px; color: var(--ink-soft); max-width: 440px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }

/* ---- Hero photo (image) ---- */
.hero-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  max-height: 520px;
}
.hero-photo img,
.hero-photo picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- Hero buttons (inside new layout) ---- */
.hero-actions .btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  font-family: var(--font-sans);
}
.hero-actions .btn-primary {
  background: var(--black, #1a1814);
  color: #fff;
}
.hero-actions .btn-primary:hover { opacity: .88; }
.hero-actions .btn-outline {
  background: transparent;
  color: var(--black, #1a1814);
  border: 1.5px solid var(--black, #1a1814);
}
.hero-actions .btn-outline:hover { background: rgba(0,0,0,.06); }


.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat .num { font-size: 24px; font-weight: 900; }
.hero-stat .num small { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.hero-stat .lbl { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* قاب‌های عکس (با placeholder رنگی تا عکس بیاد) */
.hero-visual { position: relative; min-height: 400px; }
.hero-frame {
  position: absolute;
  border-radius: 18px;
  background: var(--white);
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-frame .ph { font-size: 58px; opacity: .7; }
.hero-frame.f1 { width: 250px; height: 310px; top: 0; right: 50px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.hero-frame.f2 { width: 200px; height: 250px; top: 80px; left: 0; background: linear-gradient(135deg, #FFE3E9, #FFC9D4); }
.hero-frame.f3 { width: 160px; height: 200px; bottom: 0; right: 0; background: linear-gradient(135deg, #E2F6EF, #BDEBDD); }



/* ---------- آمار ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid .num { font-size: 32px; font-weight: 900; color: var(--brand-deep); }
.stats-grid .label { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- ویژگی‌ها ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  background: var(--brand-soft);
}
.feature-card:nth-child(2) .icon { background: #FFE9EE; }
.feature-card:nth-child(3) .icon { background: #E4F5EF; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- گالری ---------- */
.gallery-section { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--white);
  box-shadow: var(--shadow);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; min-height: 280px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; padding: 34px 16px 12px;
  font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .caption { opacity: 1; }

/* ---------- خدمات ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service-row {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color .15s ease, background .15s ease;
}
.service-row:hover { border-color: var(--brand-deep); background: var(--brand-soft); }
.service-row .emoji {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.service-row .name { font-weight: 800; font-size: 15px; }
.service-row .desc { font-size: 13px; color: var(--ink-soft); }

/* ---------- درباره ---------- */
.about-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-visual {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.about-visual .ph { font-size: 100px; opacity: .8; }
.about-content h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 16px; }
.about-content p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15.5px; }
.about-content .about-list { list-style: none; margin: 20px 0 28px; }
.about-content .about-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 14.5px; }
.about-content .about-list li .check { color: var(--brand-deep); font-weight: 900; }

/* ---------- بلاگ ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint, #FFE98A));
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .cat {
  font-size: 11.5px; font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 100px;
  padding: 4px 13px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.6; }
.blog-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.blog-card .meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink);
  border-radius: 24px;
  padding: 66px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-band h2 .accent { color: var(--brand); }
.cta-band p { opacity: .75; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- تماس ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color .15s ease, background .15s ease;
}
.contact-method:hover { border-color: var(--brand-deep); background: var(--brand-soft); }
.contact-method .icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
}
.contact-method .label { font-size: 12px; color: var(--ink-soft); }
.contact-method .value { font-weight: 800; font-size: 15px; direction: ltr; text-align: right; }

.contact-card { border: 1px solid var(--line); border-radius: 20px; padding: 34px; background: var(--cream); }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card .hint { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font); font-size: 14.5px;
  background: var(--white);
  transition: border-color .15s ease;
  min-height: 48px;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-deep); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--brand); }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; opacity: .75; transition: opacity .15s ease; }
.footer-col a:hover { opacity: 1; color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* ---------- بلاگ/پست ---------- */
.blog-hero { padding: 70px 0 40px; text-align: center; background: var(--brand-soft); }
.blog-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.blog-hero p { color: var(--ink-soft); margin-top: 10px; }
.post-single { max-width: 740px; margin: 0 auto; padding: 52px 24px 80px; }
.post-single .post-head { margin-bottom: 56px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-single .post-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; line-height: 1.5; margin-bottom: 18px; letter-spacing: -0.3px; text-wrap: balance; }
.post-single .post-head .meta { color: var(--ink-soft); font-size: 13.5px; margin-top: 10px; letter-spacing: .1px; }
.post-single .post-cover { margin: 0 0 28px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.08); background: #F7F5EF; }
.post-single .post-cover img { width: 100%; height: auto; display: block; border-radius: 18px; margin: 0 !important; }
.post-single .post-cover .post-cover-caption { font-size: 12.5px; color: #8A847B; text-align: center; padding: 10px 12px 0; }
.post-single .post-body { font-size: 16.5px; line-height: 2.05; }
.post-single .post-body h2 { font-size: 22px; font-weight: 800; margin: 44px 0 16px; line-height: 1.55; }
.post-single .post-body h3 { font-size: 18.5px; font-weight: 800; margin: 32px 0 14px; line-height: 1.6; }
.post-single .post-body p { margin-bottom: 18px; }
.post-single .post-body ul, .post-single .post-body ol { margin: 0 24px 22px 0; }
.post-single .post-body li { margin-bottom: 10px; line-height: 1.9; }
.post-single .post-body img { border-radius: 14px; margin: 28px 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 700; color: var(--ink); }

/* ---------- لایت‌باکس ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 85vh; border-radius: 14px; }
.lightbox .close {
  position: absolute; top: 20px; left: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff;
  font-size: 20px; cursor: pointer;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .hero-inner, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-height: 400px; }
  .hero-visual { min-height: 340px; max-width: 440px; margin: 0 auto; }
  .features-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 74px; right: 0; left: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px; gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .features-grid, .blog-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; min-height: 220px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-height: 300px; border-radius: 16px; margin: 0 16px; }
  .hero { padding: 60px 0 70px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 24px; }
}
