/* استایل بخش‌های صفحه‌ساز، لوگو، منوی موبایل و فوتر — بعد از style.css بارگذاری می‌شود */

/* لوگو و منو */
.logo{ text-decoration:none; }
.logo img{ display:block; max-width:220px; object-fit:contain; }
.nav-tools{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; width:42px; height:42px; border:none; border-radius:12px; background:rgba(63,90,108,.08); cursor:pointer; padding:0; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
nav.open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2){ opacity:0; }
nav.open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
@media (max-width:780px){
  .nav-toggle{ display:flex; }
  .nav-tools{ display:none; order:6; width:100%; justify-content:space-between; }
  nav.open .nav-links{ display:flex; flex-direction:column; gap:4px; width:100%; order:5; }
  nav.open .nav-links a{ padding:11px 6px; border-bottom:1px solid rgba(63,90,108,.12); }
  nav.open .nav-tools{ display:flex; }
}

/* فوتر */
.footer-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 22px; margin-bottom:12px; font-weight:600; }
.footer-links a:hover{ color:var(--roof); }

/* هیرو با تصویر دلخواه */
.scene-img{ position:relative; z-index:2; max-width:760px; margin:6px auto 0; text-align:center; }
.scene-img img{ display:block; margin:0 auto; max-height:420px; width:auto; border-radius:26px 26px 0 0; }

/* اعلان‌ها و فرم */
.notice{ padding:14px 16px; border-radius:14px; margin-bottom:16px; }
.notice.ok{ background:color-mix(in srgb, var(--house) 40%, #fff 60%); color:#20384a; }
.notice.err{ background:#ffe1e1; color:#8a1f1f; }
/* فیلد مخفی ضد اسپم. نباید از left:-9999px استفاده شود: در صفحه‌های راست‌به‌چپ (RTL) این کار
   صفحه را در گوشی ده‌هاهزار پیکسل به چپ کش می‌دهد و کاربر باید کلی اسکرول کند. */
.hp{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; opacity:0; pointer-events:none; }
.port-card{ display:block; }

/* بلوک متن */
.text-block{ max-width:720px; margin:0 auto; }
.text-block .kicker{ color:var(--roof); font-weight:700; font-size:.95rem; display:block; margin-bottom:8px; }
.text-block h2{ margin:0 0 14px; }
.text-block p{ color:var(--ink-soft); line-height:2; margin:0 0 14px; }
.text-block.is-center{ text-align:center; }

/* تصویر */
.fig{ margin:0 auto; text-align:center; }
.fig img{ display:block; width:100%; height:auto; border-radius:24px; }
.fig-narrow{ max-width:520px; }
.fig-normal{ max-width:860px; }
.fig-full{ max-width:none; }
.fig figcaption, .gallery figcaption{ color:var(--ink-soft); font-size:.88rem; margin-top:10px; }

/* تصویر + متن */
.image-text{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.image-text.img-left .it-img{ order:2; }
.it-img img{ display:block; width:100%; height:auto; border-radius:26px; }
.it-body .kicker{ color:var(--roof); font-weight:700; font-size:.95rem; display:block; margin-bottom:8px; }
.it-body h2{ margin:0 0 14px; }
.it-body p{ color:var(--ink-soft); line-height:2; margin:0 0 18px; }
@media (max-width:760px){ .image-text{ grid-template-columns:1fr; gap:22px; } .image-text.img-left .it-img{ order:0; } }

/* گالری */
.gallery{ display:grid; gap:16px; grid-template-columns:repeat(3,1fr); }
.gallery.cols-2{ grid-template-columns:repeat(2,1fr); }
.gallery.cols-4{ grid-template-columns:repeat(4,1fr); }
.gallery figure{ margin:0; text-align:center; }
.gallery img{ display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:18px; }
@media (max-width:760px){ .gallery, .gallery.cols-4{ grid-template-columns:repeat(2,1fr); } }

/* پرسش‌های متداول */
.faq{ max-width:760px; margin:0 auto; display:grid; gap:12px; }
.faq details{ background:#fff; border:1px solid rgba(32,56,74,.1); border-radius:18px; padding:4px 20px; }
.faq summary{ cursor:pointer; font-weight:700; padding:14px 0; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:1.3rem; line-height:1; color:var(--roof); }
.faq details[open] summary::after{ content:"−"; }
.faq details div{ color:var(--ink-soft); line-height:1.95; padding-bottom:10px; }
.faq details p{ margin:0 0 10px; }
@media (prefers-color-scheme:dark){ .faq details{ background:#16293a; border-color:rgba(255,255,255,.1); } }

/* فرم و کارت‌های تماس: جلوگیری از بیرون‌زدن محتوا در صفحه‌های باریک */
.contact-wrap > *{ min-width:0; }
.form-row input, .form-row textarea{ width:100%; min-width:0; box-sizing:border-box; }
.info-card > div:last-child{ min-width:0; }
.info-card span{ overflow-wrap:anywhere; }
@media (max-width:480px){ .form-card{ padding:22px 18px; border-radius:22px; } }
