*{box-sizing:border-box} :root{--wine:#168C8C;--dark:#102A43;--cream:#F5FAFC;--pink:#EAF3F6;--ink:#203746}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif}a{text-decoration:none;color:inherit}.site-header{height:92px;background:#F5FAFC;position:relative;z-index:10;border-bottom:1px solid #DCE8ED}.header-inner{height:100%;padding:0 3.5%;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:10px;margin-right:auto;color:var(--wine);min-width:190px}.brand b{display:block;font:700 32px 'Noto Naskh Arabic',serif}.brand small{display:block;font-size:10px}.logo-mark{height:55px;width:45px;border:3px solid #5DA9AD;border-bottom:0;border-radius:50% 50% 0 0;display:grid;place-items:center;font-size:29px}.header-inner nav{display:flex;align-items:center;gap:5px;white-space:nowrap}.header-inner nav a{font-size:11px;font-weight:600;padding:12px;border-radius:30px}.header-inner nav a:hover,.header-inner nav .active{background:var(--wine);color:white}.search{display:flex;background:#EAF3F6;border-radius:30px;padding:4px 9px;min-width:175px}.search input{border:0;background:none;outline:0;width:100%;font:inherit;font-size:11px}.search button{border:0;background:none;color:var(--wine);font-size:23px}.hamburger{display:none;border:0;background:none;color:var(--wine);font-size:23px}.hero{height:385px;position:relative;overflow:hidden;background:linear-gradient(120deg,#B8CBD5,#E7F1F4 50%,#607D8B)}.placeholder{position:relative;display:grid;place-items:center;background:linear-gradient(130deg,#C4D8DE,#EAF3F6 48%,#C4D8DE);color:#607D8B;font-size:10px;overflow:hidden}.placeholder:before{content:'';position:absolute;inset:0;background:linear-gradient(145deg,transparent 35%,#FFFFFF44 50%,transparent 65%)}.hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,#102A4340,#DCE8ED55 50%,#102A4350),linear-gradient(180deg,#B8CBD5,#E7F1F4 58%,#607D8B)}.hero-bg:after{content:'';position:absolute;bottom:0;left:0;right:0;height:36%;background:#168C8C33;clip-path:polygon(0 60%,12% 25%,26% 60%,40% 18%,55% 55%,70% 10%,85% 50%,100% 15%,100% 100%,0 100%)}.hero-bg small{position:absolute;bottom:12px;right:15px;z-index:1;background:#FFFFFF99;padding:5px 10px;border-radius:20px}.hero-content{position:absolute;top:55px;left:24%;right:20%;text-align:center;color:var(--wine)}.eyebrow{font-size:12px;margin-bottom:5px}.hero h1{font:700 clamp(42px,5vw,72px) 'Noto Naskh Arabic',serif;margin:0}.hero h2{font:600 22px 'Noto Naskh Arabic',serif;margin:4px 0}.ornament{margin:12px;color:var(--wine);font-size:16px}.hero-btn{position:absolute;top:260px;left:-75%;background:var(--wine);color:white;border-radius:30px;padding:11px 20px;font-size:12px}.hero-btn:hover{background:var(--dark);color:white}.dots{position:absolute;bottom:12px;left:50%;display:flex;gap:9px}.dots i{width:12px;height:12px;border-radius:50%;background:#fff;border:1px solid white}.dots .selected{background:var(--wine)}.categories{padding:28px 3.4%;display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.category{height:190px;border:1px solid #DCE8ED;border-radius:17px;overflow:hidden;background:#F8FCFD;box-shadow:0 4px 10px #102A4318;transition:.25s}.category:hover{transform:translateY(-6px);box-shadow:0 12px 22px #102A4320}.cat-img{height:123px}.cat-info{margin-top:-14px;position:relative;border-radius:45% 45% 0 0/18px 18px 0 0;background:#F8FCFD;min-height:82px;padding:18px 16px 8px;display:flex;align-items:center;justify-content:space-between}.cat-info b,.cat-info small{display:block}.cat-info b{font-size:14px}.cat-info small{font-size:10px;color:#607D8B;margin-top:3px}.cat-info strong{font-size:29px;color:var(--wine)}.lower{padding:0 3.4% 24px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{border-radius:17px;min-height:193px;overflow:hidden;box-shadow:0 4px 10px #102A4318}.timeline{padding:14px 22px;background:linear-gradient(120deg,#F8FCFD,#EAF3F6)}.panel-title h3{font-size:23px;font-weight:800;margin:0}.panel-title small{font-size:10px}.timeline-items{height:105px;display:flex;justify-content:space-around;align-items:center;position:relative}.timeline-line{position:absolute;left:15%;right:15%;top:42px;height:2px;background:#5DA9AD}.era{z-index:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:7px;font:inherit}.era i{width:108px;height:59px;border-radius:12px;border:2px solid white;display:grid;place-items:center;font-size:9px;font-style:normal}.era b{font-size:11px}.era.active i{outline:2px solid #5DA9AD;outline-offset:2px}.timeline-foot{display:flex;justify-content:space-between;align-items:center;color:#607D8B}.timeline-foot button{border:0;border-radius:50%;width:36px;height:36px;background:#F8FCFD;color:var(--wine);font-size:24px}.smart{background:linear-gradient(110deg,#102A43,#168C8C 60%,#102A43);color:white;display:flex;align-items:center;padding:25px 7%;gap:20px;position:relative}.smart:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(45deg,transparent 0 20px,#102A4308 21px 22px)}.smart-copy{z-index:1;flex:1}.smart-copy h3{font:700 23px 'Noto Naskh Arabic',serif;color:#ffe8d9}.smart-copy p{font-size:11px;line-height:1.9}.smart-copy a{display:inline-block;border-radius:25px;background:#f7e2d3;color:#102A43;padding:9px 17px;font-size:11px}.qr{z-index:1;background:white;color:#111;width:105px;height:105px;border:6px solid white;border-radius:8px;display:grid;place-items:center;font-size:75px;position:relative}.qr small{position:absolute;bottom:-20px;font-size:7px;color:white;letter-spacing:2px}.phone{z-index:1;font-size:45px;transform:rotate(12deg)}.footer{position:relative;background:linear-gradient(#EAF3F6,#EAF3F6);padding:30px 3.4% 0;overflow:hidden}.skyline{position:absolute;bottom:40px;left:0;right:0;height:100px;opacity:.2;background:linear-gradient(0deg,#7B9BAA 0 2px,transparent 2px),repeating-linear-gradient(90deg,transparent 0 45px,#7B9BAA 46px 55px,transparent 56px 78px);clip-path:polygon(0 100%,0 50%,8% 50%,8% 25%,12% 25%,12% 60%,20% 60%,20% 10%,25% 10%,25% 65%,38% 65%,38% 30%,44% 30%,44% 0,50% 30%,50% 65%,66% 65%,66% 15%,71% 15%,71% 65%,86% 65%,86% 35%,92% 35%,92% 65%,100% 65%,100% 100%)}.footer-inner{position:relative;z-index:1}.footer-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:5px 0 22px;border-bottom:1px solid #DCE8ED}.footer-brand b{display:block;color:var(--wine);font:700 25px 'Noto Naskh Arabic',serif}.footer-brand small,.footer-head p{font-size:11px;color:#607D8B}.footer-head p{margin:0}.social{display:flex;gap:8px}.social a{width:34px;height:34px;border:1px solid #8FBFC3;border-radius:50%;display:grid;place-items:center;color:var(--wine)}.social a:hover{background:var(--wine);color:white}.footer-grid{display:grid;grid-template-columns:1fr 1fr 1.3fr 1.4fr;gap:30px;padding:25px 0}.footer-grid h4{font-size:13px;color:var(--dark);font-weight:800;margin-bottom:13px}.footer-grid a{display:block;font-size:11px;color:#607D8B;margin:8px 0}.footer-grid a:hover{color:var(--wine)}.footer-grid p{font-size:11px;line-height:1.9;color:#607D8B}.footer-grid form{display:flex;border:1px solid #DCE8ED;background:#F8FCFD;border-radius:30px;padding:4px}.footer-grid input{min-width:0;flex:1;border:0;background:none;outline:0;padding:7px;font:inherit;font-size:10px}.footer-grid button{border:0;border-radius:25px;background:var(--wine);color:white;padding:7px 14px;font:inherit;font-size:10px}.footer-bottom{border-top:1px solid #DCE8ED;padding:13px 0;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#607D8B}.footer-bottom b{font:700 14px 'Noto Naskh Arabic',serif;color:var(--wine)}.footer-bottom a{color:var(--wine)}@media(max-width:1200px){.header-inner{gap:10px}.header-inner nav a{padding:9px 7px;font-size:10px}.search{min-width:130px}.brand{min-width:160px}.brand b{font-size:27px}}@media(max-width:991px){.site-header{height:78px}.hamburger{display:block}.brand{margin-right:0}.search{margin-right:auto;min-width:40px;width:40px}.search input{display:none}.header-inner nav{display:none;position:absolute;top:78px;right:12px;left:12px;background:#F8FCFD;padding:12px;border-radius:15px;box-shadow:0 12px 25px #102A431F;flex-direction:column;align-items:stretch}.header-inner nav.open{display:flex}.hero{height:350px}.hero-content{left:10%;right:10%}.categories{grid-template-columns:repeat(3,1fr)}.lower{grid-template-columns:1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.header-inner{padding:0 12px;gap:8px}.brand b{font-size:23px}.brand small{font-size:8px}.logo-mark{width:35px;height:45px}.hero{height:325px}.hero-content{top:62px;left:4%;right:4%}.hero h1{font-size:42px}.hero h2{font-size:16px}.hero-btn{top:245px;left:-3%;font-size:10px}.categories{padding:20px 13px;grid-template-columns:repeat(2,1fr);gap:12px}.category{height:168px}.cat-img{height:105px}.cat-info{padding:17px 10px 7px}.cat-info b{font-size:12px}.cat-info small{font-size:9px}.lower{padding:0 13px 20px}.timeline{padding:13px 9px}.panel-title h3{font-size:19px}.era i{width:80px;height:52px}.era b{font-size:9px}.smart{padding:20px 13px;gap:10px}.smart-copy h3{font-size:17px}.smart-copy p{font-size:9px}.qr{width:75px;height:75px;font-size:50px}.phone{display:none}.footer{padding:24px 15px 0}.footer-head{flex-wrap:wrap}.footer-head p{width:100%;order:3}.footer-grid{grid-template-columns:1fr 1fr;gap:20px 12px}.footer-grid h4{font-size:11px}.footer-bottom{flex-wrap:wrap;gap:8px}.footer-bottom b{order:3;width:100%;text-align:center}}

/* اصلاحات هدر و چیدمان چهار کارت */
.header-inner{
  justify-content:space-between;
  gap:24px;
}
.header-right{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.brand{margin-right:0;flex:0 0 auto}
.header-inner nav{flex:0 1 auto}
.search{
  flex:0 0 190px;
  margin:0;
  direction:rtl;
}
.categories{grid-template-columns:repeat(4,minmax(0,1fr))}

/* در عرض‌های متوسط، منو جمع‌شونده می‌شود تا هدر فشرده نشود */
.hamburger{display:none}
@media(max-width:1100px){
  .site-header{height:78px}
  .header-inner{padding:0 3.5%;gap:12px}
  .header-right{gap:12px}
  .hamburger{display:block;flex:0 0 auto}
  .header-inner nav{
    display:none;
    position:absolute;
    top:78px;
    right:12px;
    left:12px;
    background:#F8FCFD;
    padding:12px;
    border-radius:15px;
    box-shadow:0 12px 25px #102A431F;
    flex-direction:column;
    align-items:stretch;
    white-space:normal;
    z-index:20;
  }
  .header-inner nav.open{display:flex}
  .header-inner nav a{font-size:12px;padding:11px 13px}
  .search{flex-basis:170px}
  .categories{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .header-inner{padding:0 12px;gap:8px}
  .header-right{gap:8px}
  .brand{min-width:0}
  .brand b{font-size:23px}
  .brand small{font-size:8px}
  .logo-mark{width:35px;height:45px}
  .search{flex:0 0 42px;width:42px;min-width:42px;padding:4px}
  .search input{display:none}
  .search button{width:100%;padding:0}
  .categories{padding:20px 13px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:360px){
  .brand b{font-size:19px}
  .brand small{font-size:7px}
  .logo-mark{width:30px;height:39px;font-size:23px}
}


/* تعاملات و انیمیشن‌ها؛ بدون تغییر در ساختار اصلی و نقاط شکست ریسپانسیو */
:root {
  --motion-fast: 180ms;
  --motion-medium: 280ms;
  --motion-ease: cubic-bezier(.2,.75,.25,1);
}
button, .header-inner nav a, .footer a, .category, .social a, .smart-copy a {
  -webkit-tap-highlight-color: transparent;
}
button, .header-inner nav a, .footer a, .social a, .smart-copy a {
  transition: color var(--motion-fast) var(--motion-ease),
              background-color var(--motion-fast) var(--motion-ease),
              border-color var(--motion-fast) var(--motion-ease),
              box-shadow var(--motion-medium) var(--motion-ease),
              transform var(--motion-fast) var(--motion-ease),
              opacity var(--motion-fast) var(--motion-ease);
}
button {
  cursor: pointer;
}
button:active, .social a:active, .smart-copy a:active {
  transform: scale(.96);
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #168C8C;
  outline-offset: 3px;
}
.category {
  transition: transform var(--motion-medium) var(--motion-ease),
              box-shadow var(--motion-medium) var(--motion-ease),
              border-color var(--motion-medium) var(--motion-ease);
}
.category:active {
  transform: translateY(-2px) scale(.99);
}
.era i {
  transition: transform var(--motion-medium) var(--motion-ease),
              box-shadow var(--motion-medium) var(--motion-ease),
              outline-color var(--motion-medium) var(--motion-ease);
}
.era:hover i, .era.active i {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px #102A4318;
}
.timeline-foot button:hover, .footer-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px #102A4326;
}

/* منوی همبرگری با ترنزیشن باز و بسته شدن */
.hamburger {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 3px;
  background: var(--wine);
  transform-origin: center;
  transition: transform var(--motion-medium) var(--motion-ease),
              opacity var(--motion-fast) var(--motion-ease),
              width var(--motion-fast) var(--motion-ease);
}
.hamburger:hover { background: #168C8C0d; }
.hamburger[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 5px;
}
.hamburger[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.header-inner nav {
  transition: opacity var(--motion-medium) var(--motion-ease),
              transform var(--motion-medium) var(--motion-ease),
              visibility var(--motion-medium);
}
@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .header-inner nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top right;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--motion-medium) var(--motion-ease),
                transform var(--motion-medium) var(--motion-ease),
                max-height var(--motion-medium) var(--motion-ease),
                visibility var(--motion-medium);
  }
  .header-inner nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    max-height: 75vh;
    overflow-y: auto;
  }
  .header-inner nav a {
    transform: translateX(8px);
    opacity: 0;
    transition: transform var(--motion-medium) var(--motion-ease),
                opacity var(--motion-medium) var(--motion-ease),
                color var(--motion-fast), background-color var(--motion-fast);
  }
  .header-inner nav.open a {
    transform: translateX(0);
    opacity: 1;
  }
  .header-inner nav.open a:nth-child(2) { transition-delay: 35ms; }
  .header-inner nav.open a:nth-child(3) { transition-delay: 65ms; }
  .header-inner nav.open a:nth-child(4) { transition-delay: 95ms; }
  .header-inner nav.open a:nth-child(5) { transition-delay: 125ms; }
  .header-inner nav.open a:nth-child(6) { transition-delay: 155ms; }
}
@media (max-width: 600px) {
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .search {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 25;
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    height: 42px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px transparent;
    transform: translateY(-50%);
    transition: width var(--motion-medium) var(--motion-ease),
                background-color var(--motion-medium) var(--motion-ease),
                box-shadow var(--motion-medium) var(--motion-ease),
                border-color var(--motion-medium) var(--motion-ease);
  }
  .search input {
    display: block;
    width: 0;
    min-width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: width var(--motion-medium) var(--motion-ease),
                opacity var(--motion-fast) var(--motion-ease);
  }
  .search button {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
  }
  .search.open {
    width: min(260px, calc(100vw - 145px));
    min-width: 0;
    background: #F8FCFD;
    border-color: #DCE8ED;
    box-shadow: 0 7px 20px #102A431C;
  }
  .search.open input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding: 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


:root{--wine:#168C8C;--dark:#102A43;--cream:#F5FAFC;--pink:#EAF3F6;--ink:#203746;--sand:#DCE8ED}
body{background:#F8FCFD;color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif}
.site-header{height:88px;background:#F8FCFD;border-bottom:1px solid #DCE8ED;box-shadow:0 4px 18px #102A4308}
.header-inner{max-width:1440px;margin:auto;padding:0 4%;display:flex;justify-content:space-between;align-items:center;gap:22px}
.header-right{display:flex;align-items:center;gap:18px;min-width:0}
.brand{min-width:180px}.brand b{font-size:30px}.brand small{color:#856c62}
.header-inner nav{gap:4px}.header-inner nav a{font-size:11px;padding:11px 13px;color:#496777}
.header-inner nav a:hover,.header-inner nav .active{background:var(--wine);color:#fff}
.search{flex:0 0 190px;background:#EAF3F6;border:1px solid #DCE8ED}
.search input{font-family:Vazirmatn,Tahoma,sans-serif}
.hero{height:420px;background:#DCE8ED}
.hero-bg{background:linear-gradient(90deg,#102A4340,#DCE8ED44 50%,#102A4350),linear-gradient(180deg,#B8CBD5,#E7F1F4 58%,#607D8B)}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.88;mix-blend-mode:soft-light}
.hero-content{top:58px;left:12%;right:12%;padding:20px}
.hero h1{color:#168C8C;text-shadow:0 2px 16px #FFFFFF77}
.hero h2{color:#102A43}
.hero .eyebrow{color:#6e3d43;font-weight:600}
.hero-btn{position:static;display:inline-block;margin-top:12px;background:var(--wine);color:white;border-radius:30px;padding:11px 22px;font-size:12px;box-shadow:0 8px 20px #102A4324}
.hero-btn:hover{background:var(--dark);color:#fff;transform:translateY(-2px)}
.dots{bottom:15px}
.categories{max-width:1440px;margin:auto;padding:34px 4%;gap:20px}
.category{height:205px;border:1px solid #DCE8ED;border-radius:18px;background:#FFFFFF;box-shadow:0 5px 18px #102A4310}
.category:hover{border-color:#5DA9AD}
.cat-img{height:135px}
.cat-info{background:#F8FCFD;padding:18px 16px 10px}
.cat-info b{font-size:14px;color:#203746}
.cat-info small{color:#607D8B}
.lower{max-width:1440px;margin:auto;padding:0 4% 34px;gap:20px}
.panel{border:1px solid #DCE8ED;box-shadow:0 6px 20px #102A4314}
.timeline{background:linear-gradient(130deg,#FFFFFF,#EAF3F6);padding:18px 24px}
.panel-title h3{color:var(--wine);font-family:'Noto Naskh Arabic',serif}
.timeline-line{background:#5DA9AD}
.era i{background:linear-gradient(135deg,#C4D8DE,#EAF3F6 55%,#C4D8DE);color:#607D8B}
.era b{color:#496777}
.smart{border-radius:18px;background:linear-gradient(115deg,#102A43,#168C8C 60%,#102A43);padding:28px 7%}
.smart-copy h3{font-size:24px}
.smart-copy p{color:#EAF3F6}
.smart-copy a{font-weight:600}
.footer{background:linear-gradient(#F5FAFC,#EAF3F6);padding:34px 4% 0;border-top:1px solid #DCE8ED}
.footer-inner{max-width:1440px;margin:auto}
.footer-head{padding-bottom:24px}
.footer-brand b{font-size:27px}
.footer-grid{padding:30px 0;gap:35px}
.footer-grid h4{font-size:13px}
.footer-grid a,.footer-grid p{font-size:11px}
.footer-bottom{padding:16px 0}
button,.category,.hero-btn,.social a{transition:all .24s ease}
@media(max-width:1100px){
 .site-header{height:78px}.header-inner{padding:0 3.5%;gap:12px}
 .header-right{gap:12px}.hamburger{display:flex}
 .header-inner nav{display:none;position:absolute;top:78px;right:12px;left:12px;background:#F8FCFD;padding:12px;border:1px solid #DCE8ED;border-radius:16px;box-shadow:0 14px 30px #102A431C;flex-direction:column;align-items:stretch;z-index:30}
 .header-inner nav.open{display:flex}.header-inner nav a{font-size:12px;padding:12px 14px}
 .search{flex-basis:170px}
}
@media(max-width:991px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.lower{grid-template-columns:1fr}.hero{height:365px}}
@media(max-width:600px){
 .site-header{height:74px}.header-inner{padding:0 12px}.header-right{gap:8px}
 .brand{min-width:0}.brand b{font-size:23px}.brand small{font-size:8px}
 .logo-mark{width:35px;height:45px;font-size:24px}
 .search{flex:0 0 42px;width:42px;min-width:42px;padding:4px}.search input{display:none}
 .hero{height:340px}.hero-content{top:23px;left:3%;right:3%;padding:12px}
 .hero h1{font-size:39px}.hero h2{font-size:16px}.hero-btn{margin-top:8px;padding:9px 17px}
 .categories{padding:22px 13px;gap:12px}.category{height:175px}.cat-img{height:112px}
 .cat-info{padding:17px 10px 7px}.cat-info b{font-size:12px}.cat-info small{font-size:9px}
 .lower{padding:0 13px 22px}.timeline{padding:14px 10px}.era i{width:80px;height:52px}
 .smart{padding:20px 13px}.smart-copy h3{font-size:17px}.qr{width:75px;height:75px;font-size:50px}
 .footer{padding:24px 15px 0}.footer-grid{grid-template-columns:1fr 1fr;gap:20px 12px}
 .footer-head{flex-wrap:wrap}.footer-head p{width:100%;order:3}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* ---------------------------------------------------------
   مدیریت یکپارچه تصاویر
   تصاویر به اندازه قاب والد درمی‌آیند؛ بدون بزرگ‌نمایی دستی،
   کشیدگی یا سرریز از کادر.
   --------------------------------------------------------- */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* قاب‌های تصویری با ارتفاع/ابعاد مشخص */
.hero-bg,
.cat-img,
.era i,
.attraction-image,
.figure-image,
.person-photo {
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cat-img img,
.era i img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.attraction-image img,
.figure-image img,
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* تصاویر داخل قاب placeholder نیز از اندازه قاب پیروی می‌کنند. */
.placeholder > img {
  width: 100%;
  height: 100%;
  object-position: center;
}

/* جلوگیری از به‌هم‌ریختگی تصاویر در کارت‌ها و صفحات باریک */
.category,
.attraction-card,
.figure-card,
.person-photo {
  min-width: 0;
}

@media (max-width: 600px) {
  .hero-bg img,
  .attraction-image img,
  .figure-image img,
  .person-photo img {
    object-position: center;
  }
}


/* صفحات داخلی و اجزای تکمیلی ساوه‌نما */
.search.open { flex-basis: 250px; }
.search.open input { display: block; min-width: 0; }
.search button { cursor: pointer; }
.search-page { min-height: 55vh; }
.search-hero { min-height: 230px; background: linear-gradient(130deg,#EAF3F6,#F5FAFC 48%,#DCE8ED); }
.search-hero .hero-content { position: relative; inset: auto; padding: 48px 18px; }
.search-results-wrap { max-width: 980px; margin: 0 auto; padding: 35px 18px 65px; }
.large-search { display: flex; gap: 8px; background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 18px; padding: 8px; }
.large-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 14px; font: 14px Vazirmatn; color: var(--ink); }
.large-search button { border: 0; border-radius: 13px; padding: 10px 22px; background: var(--wine); color: #fff; font: 600 12px Vazirmatn; }
.search-summary { color: #607D8B; font-size: 12px; margin: 18px 4px; }
.search-results { display: grid; gap: 12px; }
.search-result-card { padding: 18px 20px; border: 1px solid #DCE8ED; border-radius: 15px; background: #F8FCFD; }
.search-result-card h2 { font-size: 16px; color: var(--wine); margin: 0 0 7px; }
.search-result-card p { font-size: 12px; color: #607D8B; line-height: 2; margin: 0; }

.home-gallery { max-width: 1440px; margin: 0 auto; padding: 22px 4% 45px; }
.home-section-heading { text-align: center; margin: 0 auto 22px; }
.home-section-heading span { font-size: 11px; color: #607D8B; }
.home-section-heading h2 { font: 700 27px 'Noto Naskh Arabic',serif; color: var(--wine); margin: 4px 0; }
.home-section-heading p { font-size: 11px; color: #607D8B; margin: 0; }
.home-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.home-gallery-grid a { height: 190px; position: relative; overflow: hidden; border-radius: 16px; border: 1px solid #DCE8ED; background: #F5FAFC; }
.home-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-gallery-grid a:hover img { transform: scale(1.045); }
.home-gallery-grid span { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(transparent,#27151bd9); }
.home-souvenirs { max-width: 1350px; margin: 0 auto 45px; padding: 26px 4%; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 20px; }
.home-souvenirs h2 { color: var(--wine); font: 700 27px 'Noto Naskh Arabic',serif; margin: 6px 0; }
.home-souvenirs p { color: #607D8B; font-size: 12px; line-height: 2.1; }
.home-souvenirs img { width: 100%; height: 220px; object-fit: cover; border-radius: 15px; }

.editorial-hero { position: relative; min-height: 310px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(130deg,#EAF3F6,#F5FAFC 48%,#DCE8ED); border-bottom: 1px solid #DCE8ED; }
.editorial-hero .hero-bg { position: absolute; inset: 0; }
.editorial-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.editorial-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#F5FAFCB8,#F5FAFC8C); }
.editorial-hero .hero-content { position: relative; z-index: 1; inset: auto; padding: 45px 18px; max-width: 900px; margin: auto; }
.editorial-hero h1 { color: var(--wine); font: 700 clamp(34px,5vw,54px) 'Noto Naskh Arabic',serif; margin: 7px 0; }
.editorial-hero p { color: #607D8B; font-size: 13px; line-height: 2; }
.editorial-wrap { max-width: 1200px; margin: auto; padding: 42px 3.5% 65px; }
.editorial-intro { max-width: 950px; margin: 0 auto 34px; text-align: center; }
.editorial-intro h2 { color: var(--wine); font: 700 25px 'Noto Naskh Arabic',serif; margin: 10px 0; }
.editorial-intro p { color: #607D8B; font-size: 13px; line-height: 2.35; margin: 9px 0; text-align: justify; }
.souvenir-section { margin-top: 38px; }
.souvenir-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.souvenir-card { padding: 22px; background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 17px; box-shadow: 0 5px 15px #102A430C; }
.souvenir-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #EAF3F6; font-size: 25px; margin-bottom: 13px; }
.souvenir-card h3 { color: #203746; font-size: 15px; margin: 0 0 8px; }
.souvenir-card p { color: #607D8B; font-size: 11px; line-height: 2.15; margin: 0; }
.editorial-note,.source-box,.about-contact { margin-top: 30px; padding: 23px 25px; background: #EAF3F6; border: 1px solid #DCE8ED; border-radius: 17px; }
.editorial-note strong,.source-box h2,.about-contact h2 { color: var(--wine); font-size: 17px; margin: 0 0 8px; }
.editorial-note p,.source-box p,.about-contact p { color: #607D8B; font-size: 12px; line-height: 2.2; margin: 6px 0; }
.source-list { margin: 10px 0 0; padding: 0 20px 0 0; color: #607D8B; }
.source-list li { margin: 8px 0; font-size: 11px; line-height: 2; }
.source-list a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.about-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 35px 0; }
.about-pillars article { background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 16px; padding: 22px; text-align: center; }
.about-pillars article span { color: var(--wine); font-size: 28px; }
.about-pillars h3 { color: #203746; font-size: 15px; margin: 8px 0; }
.about-pillars p { color: #607D8B; font-size: 11px; line-height: 2; margin: 0; }
.about-contact a { color: var(--wine); font-size: 12px; font-weight: 700; }

.place-page .person-photo { margin: 0; }
.place-intro { min-height: 180px; padding: 25px; display: flex; gap: 25px; align-items: center; justify-content: space-between; background: linear-gradient(120deg,#F8FCFD,#EAF3F6); border: 1px solid #DCE8ED; border-radius: 18px; }
.place-intro p { color: #496777; font-size: 13px; line-height: 2.3; margin: 0; flex: 1; }
.place-stamp { width: 130px; min-width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #C4D8DE; border-radius: 50%; color: var(--wine); background: #F8FCFD; }
.place-stamp span { font-size: 11px; }
.place-stamp strong { font-size: 38px; line-height: 1.3; }
.place-stamp small { font-size: 8px; color: #607D8B; }
.place-page .person-description h2:not(:first-child) { margin-top: 23px; }
.place-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.fact-item { min-height: 100px; padding: 17px; background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 14px; }
.fact-item span,.fact-item strong { display: block; }
.fact-item span { color: #607D8B; font-size: 10px; margin-bottom: 7px; }
.fact-item strong { color: #365568; font-size: 12px; line-height: 1.9; }
.qr-symbol { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--wine); font-size: 58px; }
.qr-symbol small { font-size: 9px; color: #607D8B; }
.related-places { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.related-places a { color: var(--wine); font-size: 12px; font-weight: 700; padding: 10px 14px; background: #F8FCFD; border: 1px solid #DCE8ED; border-radius: 25px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11px; color: #607D8B; margin: 0 0 24px; }
.breadcrumb a { color: var(--wine); font-weight: 600; }

@media(max-width:900px) {
  .home-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .souvenir-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .place-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .place-page .person-top { grid-template-columns: 1fr; }
  .place-page .person-photo { height: 220px; grid-row: 1; }
  .place-intro { align-items: flex-start; }
  .place-stamp { width: 90px; min-width: 90px; height: 90px; }
  .place-stamp strong { font-size: 29px; }
}
@media(max-width:600px) {
  .home-gallery { padding: 12px 13px 30px; }
  .home-gallery-grid { gap: 10px; }
  .home-gallery-grid a { height: 140px; }
  .home-souvenirs { margin: 0 13px 28px; padding: 18px; grid-template-columns: 1fr; gap: 15px; }
  .home-souvenirs h2 { font-size: 22px; }
  .home-souvenirs img { height: 150px; }
  .editorial-hero { min-height: 245px; }
  .editorial-hero .hero-content { padding: 32px 15px; }
  .editorial-wrap { padding: 28px 13px 45px; }
  .editorial-intro h2 { font-size: 21px; }
  .editorial-intro p { font-size: 12px; }
  .souvenir-grid,.about-pillars { grid-template-columns: 1fr; }
  .souvenir-card { padding: 18px; }
  .place-intro { display: block; padding: 19px; }
  .place-stamp { margin: 18px auto 0; }
  .place-facts { grid-template-columns: 1fr 1fr; }
  .fact-item { padding: 13px; }
  .related-places { flex-direction: column; }
  .large-search { border-radius: 14px; }
  .large-search button { padding: 9px 13px; }
}
@media(max-width:380px) {
  .place-facts { grid-template-columns: 1fr; }
}

@media(max-width:600px) {
  .site-header { position: relative; }
  .search.open {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    flex: none;
    z-index: 50;
    box-shadow: 0 10px 24px #102A431F;
  }
  .search.open input { display: block; width: 100%; }
}


/* کارت‌های فهرست جاذبه‌ها و مشاهیر */
.attractions-hero,.figures-hero { position: relative; overflow: hidden; text-align: center; padding: 58px 20px 48px; background: linear-gradient(130deg,#EAF3F6,#F5FAFC 48%,#DCE8ED); border-bottom: 1px solid #DCE8ED; }
.attractions-hero:before,.attractions-hero:after,.figures-hero:before,.figures-hero:after { content:""; position:absolute; border:1px solid #a8786650; border-radius:50%; width:260px; height:260px; top:-155px; }
.attractions-hero:before,.figures-hero:before { right:-75px; }
.attractions-hero:after,.figures-hero:after { left:-75px; top:auto; bottom:-195px; }
.attractions-hero .eyebrow,.figures-hero .eyebrow { color:#8c5360; font-weight:600; }
.attractions-hero h1,.figures-hero h1 { position:relative; z-index:1; font:700 clamp(34px,5vw,55px) 'Noto Naskh Arabic',serif; color:var(--wine); margin:8px 0 5px; }
.attractions-hero p,.figures-hero p { position:relative; z-index:1; margin:0; color:#607D8B; font-size:14px; }
.attractions-hero .ornament,.figures-hero .ornament { position:relative; z-index:1; margin:15px 0 0; }
.attractions-wrap,.figures-wrap { max-width:1250px; margin:auto; padding:34px 3.4% 58px; }
.attractions-toolbar,.figures-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:23px; flex-wrap:wrap; }
.attractions-heading h2,.figures-heading h2 { font-size:23px; color:var(--wine); font-weight:800; margin:0 0 4px; }
.attractions-heading p,.figures-heading p { font-size:11px; color:#607D8B; margin:0; }
.filter-row,.figures-controls { display:flex; gap:8px; flex-wrap:wrap; }
.filter-btn { border:1px solid #DCE8ED; background:#F8FCFD; color:#765b53; border-radius:24px; padding:8px 15px; font:500 11px Vazirmatn; cursor:pointer; }
.filter-btn:hover,.filter-btn.active { background:var(--wine); border-color:var(--wine); color:#fff; }
.attraction-grid,.figure-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.attraction-card,.figure-card { min-width:0; overflow:hidden; background:#F8FCFD; border:1px solid #DCE8ED; border-radius:17px; box-shadow:0 5px 15px #102A4314; transition:transform .25s,box-shadow .25s; }
.attraction-card:hover,.figure-card:hover { transform:translateY(-5px); box-shadow:0 13px 26px #102A4318; }
.attraction-image,.figure-image { display:block; height:190px; position:relative; overflow:hidden; background:linear-gradient(140deg,#C4D8DE,#EAF3F6 52%,#bba69b); }
.attraction-image:before,.figure-image:before { content:""; position:absolute; inset:0; background:linear-gradient(145deg,transparent 35%,#FFFFFF55 50%,transparent 65%); pointer-events:none; z-index:1; }
.attraction-body,.figure-body { padding:17px 18px 18px; }
.attraction-tag,.figure-tag { display:inline-block; font-size:10px; color:var(--wine); background:#E6F1F3; padding:5px 10px; border-radius:20px; margin-bottom:9px; }
.attraction-body h3,.figure-body h3 { font-size:17px; font-weight:800; margin:0 0 8px; color:#203746; }
.attraction-body p,.figure-body p { font-size:11px; line-height:2; color:#607D8B; min-height:52px; margin:0 0 14px; }
.attraction-link,.figure-link { display:flex; align-items:center; justify-content:space-between; color:var(--wine); font-size:11px; font-weight:700; border-top:1px solid #f0e3dc; padding-top:12px; }
.attraction-link span:last-child,.figure-link span:last-child { font-size:20px; transition:transform .2s; }
.attraction-card:hover .attraction-link span:last-child,.figure-card:hover .figure-link span:last-child { transform:translateX(-4px); }
.figure-meta { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px; }
.figure-meta span { font-size:10px; color:#607D8B; background:#EAF3F6; border-radius:15px; padding:4px 9px; }
.figure-search { display:flex; align-items:center; background:#F8FCFD; border:1px solid #DCE8ED; border-radius:24px; padding:3px 12px; min-width:240px; }
.figure-search input { border:0; outline:0; background:transparent; padding:8px 3px; width:100%; font:12px Vazirmatn; color:#203746; }
.figure-search button { border:0; background:transparent; color:var(--wine); font-size:20px; cursor:pointer; }
.no-results,.figures-empty { display:none; text-align:center; padding:35px; color:#607D8B; background:#F8FCFD; border:1px dashed #DCE8ED; border-radius:15px; margin-top:16px; }
[hidden] { display:none !important; }

/* ساختار پایه صفحه جزئیات مکان‌ها، هم‌خانواده با صفحات مشاهیر */
.person-page { max-width:1120px; margin:0 auto; padding:30px 3.4% 64px; }
.person-top { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:28px; align-items:start; }
.person-copy { min-width:0; }
.person-label { display:inline-block; color:var(--wine); background:#E6F1F3; border:1px solid #DCE8ED; border-radius:30px; padding:7px 14px; font-size:11px; font-weight:600; margin-bottom:10px; }
.person-copy h1 { font:700 clamp(34px,5vw,48px) 'Noto Naskh Arabic',serif; color:var(--wine); margin:0 0 7px; }
.person-lead { font-size:15px; line-height:2; color:#496777; margin:0; }
.person-photo { height:255px; border-radius:18px; border:1px solid #DCE8ED; background:linear-gradient(140deg,#C4D8DE,#EAF3F6 52%,#bba69b); display:grid; place-items:center; position:relative; overflow:hidden; }
.video-section { margin-top:36px; }
.section-heading { display:flex; align-items:center; gap:12px; margin:0 0 14px; }
.section-heading:before { content:""; width:4px; height:26px; border-radius:5px; background:var(--wine); }
.section-heading h2 { font-size:20px; color:var(--wine); margin:0; font-weight:800; }
.person-description { margin-top:32px; background:#F8FCFD; border:1px solid #DCE8ED; border-radius:18px; padding:24px 26px; box-shadow:0 4px 13px #102A430C; }
.person-description h2 { font-size:20px; color:var(--wine); margin:0 0 12px; }
.person-description p { font-size:13px; line-height:2.35; color:#496777; margin:0; }
.qr-section { margin-top:30px; background:#EAF3F6; border:1px solid #DCE8ED; border-radius:18px; padding:23px 25px; display:grid; grid-template-columns:1fr 150px; gap:22px; align-items:center; }
.qr-copy h2 { font-size:18px; color:var(--wine); margin:0 0 8px; }
.qr-copy p { font-size:11px; line-height:2; color:#607D8B; margin:0; }
.qr-blank { height:140px; width:140px; background:#fff; border:1px dashed #DCE8ED; border-radius:10px; }
.virtual-tour { margin-top:28px; padding:22px 25px; background:#F8FCFD; border:1px solid #DCE8ED; border-radius:18px; }
.virtual-tour h2 { font-size:18px; color:var(--wine); margin:0 0 7px; }
.virtual-tour p { font-size:11px; color:#607D8B; margin:0; }
.virtual-tour .source-list { margin-top:10px; }
@media(max-width:900px) {
  .attraction-grid,.figure-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .attraction-image,.figure-image { height:180px; }
}
@media(max-width:760px) {
  .person-page { padding:22px 14px 42px; }
  .person-top { grid-template-columns:1fr; }
  .person-photo { height:210px; grid-row:1; }
  .person-copy h1 { font-size:36px; }
  .person-description { padding:19px; }
  .qr-section { grid-template-columns:1fr; }
  .qr-blank { width:130px; height:130px; }
}
@media(max-width:600px) {
  .attractions-hero,.figures-hero { padding:48px 15px 42px; }
  .attractions-wrap,.figures-wrap { padding:25px 13px 40px; }
  .attractions-toolbar,.figures-toolbar { align-items:flex-start; }
  .filter-row,.figures-controls,.figure-search { width:100%; }
  .filter-btn { padding:7px 12px; }
  .attraction-grid,.figure-grid { gap:12px; }
  .attraction-image,.figure-image { height:130px; }
  .attraction-body,.figure-body { padding:12px; }
  .attraction-body h3,.figure-body h3 { font-size:14px; }
  .attraction-body p,.figure-body p { font-size:10px; min-height:66px; }
  .attraction-tag,.figure-tag { font-size:9px; }
  .person-page { padding:22px 14px 42px; }
  .breadcrumb { margin-bottom:18px; }
  .video-section { margin-top:30px; }
  .qr-section { padding:18px; }
}
@media(max-width:380px) {
  .attraction-grid,.figure-grid { grid-template-columns:1fr; }
  .attraction-image,.figure-image { height:170px; }
}

.no-results,.figures-empty { display:block; }

.figures-hero { min-height:310px; padding:0; }
.figures-hero .hero-bg { position:absolute; inset:0; }
.figures-hero .hero-bg img { width:100%; height:100%; object-fit:cover; opacity:.24; }
.figures-hero:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#F5FAFCB8,#F5FAFC8C); pointer-events:none; }
.figures-hero .hero-content { position:relative; z-index:2; inset:auto; max-width:900px; margin:auto; padding:45px 18px; }
@media(max-width:600px) { .figures-hero { min-height:245px; padding:0; } .figures-hero .hero-content { padding:32px 15px; } }

.figures-hero:after { border:0; border-radius:0; width:auto; height:auto; top:0; right:0; bottom:0; left:0; }


/* =========================================================
   Savenama refreshed palette: Ice White / Ocean Teal / Midnight Blue
   ========================================================= */
:root {
  --wine: #168C8C;
  --dark: #102A43;
  --cream: #F5FAFC;
  --pink: #EAF3F6;
  --ink: #203746;
  --sand: #DCE8ED;
  --ice-white: #F5FAFC;
  --ocean-teal: #168C8C;
  --midnight-blue: #102A43;
  --muted-blue: #607D8B;
}
html, body { background: var(--ice-white); color: var(--ink); }
.site-header { background: #F8FCFD; border-bottom-color: #DCE8ED; }
.brand, .header-inner nav a:hover, .header-inner nav .active { color: #fff; }
.brand { color: var(--midnight-blue); }
.header-inner nav a:hover, .header-inner nav .active { background: var(--ocean-teal); }
.search { background: #EAF3F6; border-color: #DCE8ED; }
.search button, .hamburger { color: var(--ocean-teal); }
.hero { background: linear-gradient(120deg,#C4D8DE,#EAF3F6 52%,#8FBFC3); }
.hero h1, .hero .ornament, .editorial-hero h1,
.attractions-hero h1, .figures-hero h1,
.home-section-heading h2, .home-souvenirs h2 { color: var(--midnight-blue); }
.hero h2, .hero .eyebrow { color: var(--midnight-blue); }
.hero-btn, .filter-btn:hover, .filter-btn.active,
.large-search button { background: var(--ocean-teal); border-color: var(--ocean-teal); }
.hero-btn:hover, .large-search button:hover { background: #0F777B; }
.category, .panel, .attraction-card, .figure-card, .souvenir-card,
.about-pillars article, .person-description, .fact-item,
.search-result-card, .related-places a { border-color: #DCE8ED; }
.category, .attraction-card, .figure-card, .souvenir-card,
.about-pillars article, .person-description, .fact-item,
.search-result-card, .related-places a { background: #F8FCFD; }
.cat-info { background: #F8FCFD; }
.cat-info b, .attraction-body h3, .figure-body h3,
.souvenir-card h3, .about-pillars h3 { color: var(--midnight-blue); }
.cat-info small, .attraction-body p, .figure-body p,
.souvenir-card p, .about-pillars p, .footer-grid p { color: #607D8B; }
.cat-info strong, .footer-brand b, .footer-grid h4,
.footer-grid a:hover, .footer-bottom a { color: var(--ocean-teal); }
.timeline { background: linear-gradient(130deg,#FFFFFF,#EAF3F6); }
.panel-title h3, .attractions-heading h2, .figures-heading h2,
.section-heading h2, .person-description h2, .qr-copy h2 { color: var(--midnight-blue); }
.timeline-line { background: #5DA9AD; }
.era.active i { outline-color: var(--ocean-teal); }
.smart { background: linear-gradient(115deg,#102A43,#168C8C 68%,#0B4656); }
.smart-copy h3 { color: #F5FAFC; }
.smart-copy a { background: #EAF3F6; color: var(--midnight-blue); }
.footer { background: linear-gradient(#F5FAFC,#EAF3F6); border-top-color: #DCE8ED; }
.footer-head { border-bottom-color: #DCE8ED; }
.footer-grid h4 { color: var(--midnight-blue); }
.footer-grid a { color: #496777; }
.footer-bottom { border-top-color: #DCE8ED; color: #607D8B; }
.editorial-hero, .attractions-hero, .figures-hero,
.search-hero { background: linear-gradient(130deg,#EAF3F6,#F5FAFC 48%,#DCE8ED); border-bottom-color: #DCE8ED; }
.editorial-hero:after, .figures-hero:after { background: linear-gradient(90deg,#F5FAFCB8,#F5FAFC8C); }
.editorial-hero p, .attractions-hero p, .figures-hero p,
.editorial-intro p, .person-lead, .person-description p { color: #496777; }
.person-label, .attraction-tag, .figure-tag { color: var(--ocean-teal); background: #EAF3F6; border-color: #DCE8ED; }
 .place-intro { min-height: 0; display: block; background: linear-gradient(120deg,#F8FCFD,#EAF3F6); border-color: #DCE8ED; }
.place-intro p { color: #496777; }
.breadcrumb { color: #607D8B; }
.breadcrumb a, .attraction-link, .figure-link, .related-places a,
.about-contact a, .source-list a { color: var(--ocean-teal); }
.filter-btn { background: #F8FCFD; border-color: #DCE8ED; color: #496777; }
.figure-search { background: #F8FCFD; border-color: #DCE8ED; }
.figure-search input { color: var(--ink); }
.figure-search button { color: var(--ocean-teal); }
.qr-section, .editorial-note, .source-box, .about-contact { background: #EAF3F6; border-color: #DCE8ED; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--ocean-teal); }

/* The homepage keeps a stable four-card grid without changing image proportions. */
.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.category { min-width: 0; display: flex; flex-direction: column; height: 205px; }
.cat-img { flex: 0 0 135px; min-width: 0; }
.cat-info { flex: 1 1 auto; min-width: 0; }
.cat-info span { min-width: 0; }
.cat-info b { line-height: 1.7; }
.cat-info small { line-height: 1.7; }
@media (max-width: 900px) {
  .categories { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .categories { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 20px 13px; }
  .category { height: 175px; }
  .cat-img { flex-basis: 112px; }
  .cat-info { padding: 15px 10px 7px; }
  .cat-info b { font-size: 12px; }
  .cat-info small { font-size: 9px; }
}

/* Shared responsive video player used by attraction detail pages. */
.saveh-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  background: #102A43;
  box-shadow: 0 6px 24px #102A4326;
}
.saveh-video img, .saveh-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.saveh-video video { background: #102A43; }
.saveh-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(22,140,140,.94);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s;
}
.saveh-play:hover { background: #0F777B; transform: scale(1.08); }
.video-error {
  width: 100%;
  height: 100%;
  min-height: 150px;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #F5FAFC;
  background: #102A43;
  font-size: 13px;
  line-height: 2;
}


/* نقشه اختصاصی هر صفحه جاذبه گردشگری */
.place-map-section {
  padding: 34px 20px 42px;
  background: #F3F8F8;
  border-top: 1px solid #DCE9E8;
}
.place-map-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}
.place-map-heading { margin-bottom: 18px; }
.place-map-eyebrow {
  color: #168C8C;
  font-size: 11px;
  font-weight: 800;
}
.place-map-heading h2 {
  margin: 6px 0 8px;
  color: #102A43;
  font-size: clamp(19px, 2.5vw, 25px);
}
.place-map-heading p {
  margin: 0;
  color: #607D8B;
  font-size: 13px;
  line-height: 1.9;
}
.place-map-frame {
  height: 330px;
  overflow: hidden;
  border: 1px solid #D5E4E6;
  border-radius: 17px;
  background: #E8F0F1;
  box-shadow: 0 8px 25px rgba(16,42,67,.08);
}
.place-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.place-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.place-map-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid #BBD8D8;
  border-radius: 11px;
  color: #0F777B;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.place-map-actions a:hover {
  color: #fff;
  background: #168C8C;
  border-color: #168C8C;
}
.place-map-note {
  margin: 10px 0 0;
  color: #718590;
  font-size: 10px;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .place-map-section { padding: 26px 14px 32px; }
  .place-map-frame { height: 260px; border-radius: 13px; }
  .place-map-actions { display: grid; grid-template-columns: 1fr; }
  .place-map-actions a { justify-content: space-between; }
}

/* QR code in the homepage "Get to know Saveh" panel. */
.smart .qr {
  padding: 4px;
  overflow: hidden;
}
.smart .qr a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.smart .qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Clickable QR codes in the opening area of attraction detail pages. */
.place-page .person-copy { position: relative; padding-left: 116px; min-height: 112px; }
.top-qr-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #C8DDDF;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #102A4312;
}
.top-qr-placeholder a,
.top-qr-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
}
.top-qr-placeholder img { object-fit: contain; }

/* Virtual-tour panel: replace --tour-background: none with a local image URL when ready. */
.qr-section {
  background-color: #EAF3F6;
  background-image:
    linear-gradient(135deg, rgba(234,243,246,.48), rgba(248,252,253,.58)),
    var(--tour-background, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.qr-symbol a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.qr-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.tour-qr-placeholder {
  display: grid;
  place-items: center;
  color: #8AA7B0;
  font: 800 18px Vazirmatn, Tahoma, sans-serif;
  letter-spacing: 2px;
}

/* Homepage chatbot: desktop = fixed bottom-right; mobile = center of the four cards. */
.categories {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#home-chatbot-slot {
  position: fixed;
  z-index: 100000;
  right: 22px;
  bottom: 22px;
  left: auto;
  top: auto;
  transform: none;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
#home-chatbot-slot #savenama-chatbot {
  position: static;
  pointer-events: auto;
}
#home-chatbot-slot .sc-launcher {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  width: 62px !important;
  height: 62px !important;
}
#home-chatbot-slot .sc-panel {
  position: fixed !important;
  right: 22px !important;
  bottom: 96px !important;
}

@media (max-width: 991px) {
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .place-page .person-top { display: flex; flex-direction: column; gap: 20px; }
  .place-page .person-copy { order: 1; width: 100%; padding-left: 90px; min-height: 82px; }
  .place-page .person-photo { order: 2; width: 100%; height: 210px; }
  #home-chatbot-slot {
    position: absolute;
    z-index: 40;
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    right: auto;
    bottom: auto;
    transform: none;
    width: 48px;
    height: 48px;
  }
  #home-chatbot-slot .sc-launcher {
    width: 48px !important;
    height: 48px !important;
    border: 3px solid #fff;
    box-shadow: 0 7px 22px #102A4345;
  }
  #home-chatbot-slot .sc-launcher svg { width: 22px; height: 22px; }
  #home-chatbot-slot .sc-panel {
    right: 10px !important;
    bottom: 76px !important;
    width: calc(100vw - 20px) !important;
    height: min(680px, calc(100dvh - 90px)) !important;
    max-height: calc(100dvh - 90px) !important;
  }
  .top-qr-placeholder { width: 76px; height: 76px; }
}


/* ---------------------------------------------------------
   QR layout final fix — SavehNama
   - QR codes are embedded in the existing top-qr-placeholder
     on every attraction detail page.
   - Homepage QR stays fully inside the "ساوه را از نزدیک بشناسید" card.
   --------------------------------------------------------- */
.lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
.lower > .panel,
.smart {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.smart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 18px);
  width: 100%;
  padding: clamp(16px, 2.6vw, 27px) clamp(13px, 3.8vw, 36px);
  border-radius: 18px;
  overflow: hidden;
}
.smart-copy {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.smart-copy h3,
.smart-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.smart-copy h3 {
  margin-top: 0;
  line-height: 1.75;
}
.smart-copy p {
  line-height: 1.9;
}
.smart-copy a {
  max-width: 100%;
  white-space: normal;
}
.smart .qr {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(78px, 8vw, 104px);
  width: clamp(78px, 8vw, 104px);
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 2px solid #fff;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(5, 31, 45, .18);
}
.smart .qr a {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}
.smart .qr img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}

/* Detail-page QR: the whole square is a clickable link, with no overlap. */
.place-page .person-copy {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  padding-left: 116px;
  min-height: 112px;
}
.top-qr-placeholder {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #C8DDDF;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 42, 67, .10);
}
.top-qr-placeholder a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}
.top-qr-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}
.top-qr-placeholder a:focus-visible,
.smart .qr a:focus-visible {
  outline: 3px solid #F4C66A;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .place-page .person-copy {
    width: 100%;
    padding-left: 90px;
    min-height: 82px;
  }
  .top-qr-placeholder {
    width: 76px;
    height: 76px;
  }
}
@media (max-width: 600px) {
  .lower {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 13px;
    padding-right: 13px;
  }
  .smart {
    width: 100%;
    gap: 10px;
    padding: 16px 12px;
  }
  .smart-copy { flex: 1 1 0%; min-width: 0; }
  .smart-copy h3 { font-size: 17px; line-height: 1.7; }
  .smart-copy p { font-size: 10px; line-height: 1.85; }
  .smart .qr {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 4px;
  }
}
@media (max-width: 360px) {
  .smart { gap: 8px; padding: 14px 10px; }
  .smart .qr {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

/* =================================
   FIX: Homepage Category Images
   Mobile Responsive
================================= */

@media (max-width: 600px) {

  .categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .category {
    width: 100%;
    min-width: 0;
    height: 175px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
  }

  .cat-img {
    width: 100%;
    height: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    position: relative;
  }

  .cat-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .cat-info {
    flex: 1;
    min-width: 0;
    padding: 13px 9px 7px;
    overflow: hidden;
  }

  .cat-info b {
    font-size: 12px;
    line-height: 1.6;
  }

  .cat-info small {
    font-size: 9px;
    line-height: 1.5;
  }
}

/* گوشی‌های کوچک */
@media (max-width: 380px) {
  .category {
    height: 165px;
  }

  .cat-img {
    height: 102px;
    flex-basis: 102px;
  }

  .cat-info {
    padding: 12px 8px 6px;
  }

  .cat-info b {
    font-size: 11px;
  }

  .cat-info small {
    font-size: 8px;
  }
}
