@font-face{font-family:Vazirmatn;src:url('./fonts/Vazirmatn-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('./fonts/Vazirmatn-Bold.ttf') format('truetype');font-style:normal;font-weight:600 800;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('./fonts/Vazirmatn-Black.ttf') format('truetype');font-style:normal;font-weight:900;font-display:swap}
html{scroll-behavior:smooth;scroll-padding-top:7rem}
body{font-family:Vazirmatn,sans-serif;line-height:1.8;overflow-wrap:anywhere}
img{max-width:100%}
.icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;flex-shrink:0}
.space-x-reverse>:not(:last-child){margin-inline-start:0;margin-inline-end:0}
.space-x-3{column-gap:.75rem}.space-x-4{column-gap:1rem}.space-x-8{column-gap:2rem}
.skip-link{position:fixed;top:.5rem;right:.5rem;transform:translateY(-200%);padding:.75rem 1rem;background:#fff;color:#0c4a6e;z-index:1000;border:2px solid #0c4a6e;border-radius:.5rem}
.skip-link:focus{transform:none}
:focus-visible{outline:3px solid #0284c7;outline-offset:4px}
.hero-bg{background-color:#111827}
.slider-scroller{position:relative;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scroll-behavior:smooth;gap:0;overscroll-behavior-inline:contain}
.slider-scroller>.slide-image-link{display:block;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start}
.product-scroller .slide-image-link img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.detail-scroller{height:clamp(16rem,38vw,30rem)}
.gallery-scroller{gap:1rem;height:16rem}
.gallery-scroller>.slide-image-link{flex-basis:auto;width:auto}
.gallery-scroller img{width:auto;height:100%;object-fit:contain;border-radius:.5rem}
.slider-btn{min-width:44px;min-height:44px}
.slider-btn:disabled{opacity:.35}
/* In RTL the previous control belongs on the right. */
.prev-btn{right:.5rem;left:auto}
.next-btn{left:.5rem;right:auto}
summary{cursor:pointer}
details p{line-height:2}
nav[aria-label="مسیر صفحه"] a,footer a{padding-block:.3rem}
/* Dark text on amber and green buttons keeps contrast readable. */
a.bg-amber-500,button.bg-amber-500,a.bg-green-500{color:#111827}
a.bg-amber-500:hover,button.bg-amber-500:hover,a.bg-green-500:hover{color:#111827}
@media(min-width:768px) and (max-width:1279px){#navbar>div:first-child{flex-wrap:wrap;row-gap:1rem}#navbar>div:first-child>div:nth-child(2){order:3;justify-content:center;width:100%}#navbar .nav-link{font-size:.875rem}}
@media(max-width:639px){body>div:first-of-type>.container{flex-wrap:wrap;justify-content:center;gap:.5rem}body>div:first-of-type>.container>div:first-child{flex-wrap:wrap;justify-content:center;row-gap:.25rem}#contact .p-8{padding:1.25rem}#navbar img{height:3.5rem}#navbar>div:first-child{min-height:3.75rem}.scroll-top{bottom:1.5rem;left:1rem}.whatsapp-button{right:1rem;animation:none}#mobile-menu{max-height:calc(100dvh - 6rem);overflow-y:auto}}
@media(prefers-reduced-motion:reduce){html,body,.slider-scroller{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}.service-card:hover,.product-card:hover{transform:none}}

/* Revision: preserve image proportions and use explicit spacing at every breakpoint. */
.hero-bg>div{padding-block:clamp(3rem,6vw,5rem)}
.hero-bg .hero-logo{display:block;width:clamp(150px,17vw,200px);height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto 2rem;padding:10px;border:1px solid #ffffff80;border-radius:24px;background:#fffffff2;box-shadow:0 16px 40px #0003}
.hero-actions{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:16px;margin-bottom:8px}
.hero-actions>a{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:58px;margin:0!important;border-radius:12px;transition:transform .2s,background-color .2s,box-shadow .2s}
.hero-actions>a:hover{transform:translateY(-2px)}
.product-scroller{scrollbar-width:none}
.product-scroller::-webkit-scrollbar{display:none}
.product-scroller picture{display:block;width:100%;height:100%}
.section-eyebrow{display:block;font-size:.8rem;letter-spacing:.02em;font-weight:700;color:#b45309;margin-bottom:10px}
.consultation-panel{position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px;margin-top:40px;padding:32px;border:1px solid #dbe6ee;border-radius:24px;background:linear-gradient(120deg,#eef7fc,#fff 70%);box-shadow:0 12px 32px #0c4a6e0a}
.consultation-copy{max-width:33rem}
.consultation-copy h3{font-size:1.3rem;font-weight:900;line-height:1.8;color:#0c4a6e;margin-bottom:10px}
.consultation-copy p{font-size:.95rem;color:#526579;line-height:1.9;margin:0}
.consultation-actions{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.consultation-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:76px;padding:15px 22px;color:#172033;background:linear-gradient(120deg,#ffbe3b,#f59e0b);border:1px solid #e4a228;border-radius:16px;font-weight:900;box-shadow:0 10px 24px #f59e0b35,0 2px 0 #fff6 inset;transition:transform .2s,box-shadow .2s}
.consultation-button>.icon{font-size:1.5rem}
.button-subtitle{display:block;font-size:.78rem;font-weight:500;margin-top:1px}
.consultation-button:hover{transform:translateY(-3px);box-shadow:0 14px 30px #f59e0b50}
.consultation-button .cta-arrow{width:1.3em;transition:transform .2s}
.consultation-button:hover .cta-arrow{transform:translateX(-4px)}
.consultation-phone{font-size:.78rem;color:#345268;display:inline-flex;flex-wrap:wrap;justify-content:center;gap:8px}
.consultation-phone bdi{font-weight:700}
.gallery-section{background:radial-gradient(ellipse at 100% 0,#154868 0,transparent 55%),#091c2d;color:#f8fafc;padding-block:80px;overflow:hidden}
.gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.gallery-heading .section-eyebrow{color:#fbbf24}
.gallery-heading h2{font-size:clamp(1.8rem,3.4vw,2.8rem);font-weight:900;margin-bottom:12px;line-height:1.5}
.gallery-heading p{color:#bdd1e0;font-size:1rem}
.gallery-hint{display:inline-flex;align-items:center;gap:8px;color:#b7cbdb;font-size:.8rem;white-space:nowrap;padding-bottom:4px}
.gallery-hint .icon{font-size:1.1rem}
.gallery-scroller{height:auto;gap:20px;padding-block:12px 20px;scrollbar-width:none;scroll-padding-inline:0}
.gallery-scroller::-webkit-scrollbar{display:none}
.gallery-scroller>.gallery-card{position:relative;flex:0 0 calc((100% - 40px)/3);width:calc((100% - 40px)/3);height:auto;aspect-ratio:4/3;border-radius:18px;overflow:hidden;border:1px solid #ffffff24;background:#fff;box-shadow:0 12px 28px #0003;isolation:isolate;transition:transform .25s,border-color .25s}
.gallery-scroller .gallery-card img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;transition:transform .5s}
.gallery-card::after{position:absolute;inset:42% 0 0;content:'';background:linear-gradient(transparent,#02101ceb);pointer-events:none}
.gallery-card-caption{position:absolute;bottom:0;inset-inline:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 18px 16px;color:#fff;font-size:.88rem;font-weight:700;z-index:1}
.gallery-card-number{font-size:.7rem;font-weight:400;color:#cbd5e1;font-variant-numeric:tabular-nums}
.gallery-zoom{position:absolute;top:14px;left:14px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff60;border-radius:50%;color:#fff;background:#0b223c90;font-size:1.5rem;line-height:1;backdrop-filter:blur(8px);z-index:2}
.gallery-card:hover{transform:translateY(-5px);border-color:#fbbf2480}
.gallery-card:hover img{transform:scale(1.025)}
.gallery-toolbar{display:flex;align-items:center;gap:18px;margin-top:12px}
.gallery-controls{display:flex;gap:10px}
.gallery-control{display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffff35;border-radius:50%;color:#fff;background:#ffffff08;cursor:pointer;transition:background .2s,color .2s}
.gallery-control:hover:not(:disabled){color:#142b3e;background:#fbbf24;border-color:#fbbf24}
.gallery-control:disabled{opacity:.3;cursor:default}
.gallery-position{color:#c8d8e5;font-size:.8rem;white-space:nowrap;min-width:3.2rem;text-align:center;font-variant-numeric:tabular-nums}
.gallery-track{height:3px;flex:1;background:#ffffff20;border-radius:8px;overflow:hidden}
.gallery-track>span{display:block;width:0;height:100%;background:#fbbf24;transition:width .25s}
.gallery-lightbox{max-width:1200px;width:calc(100% - 40px);max-height:92dvh;margin:auto;padding:20px;border:1px solid #ffffff20;border-radius:20px;background:#0b1d2d;color:#fff;box-shadow:0 30px 90px #0009}
.gallery-lightbox::backdrop{background:#020b14ed;backdrop-filter:blur(8px)}
.lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.lightbox-top p{font-size:.95rem;color:#d3e1ec}
.lightbox-close,.lightbox-nav{display:grid;place-items:center;min-width:44px;height:44px;background:#ffffff12;color:#fff;border:1px solid #ffffff30;border-radius:50%;font-size:2rem;line-height:1;cursor:pointer}
.lightbox-close:hover,.lightbox-nav:hover{background:#ffffff30}
.lightbox-stage{display:flex;align-items:center;justify-content:center;gap:16px}
.lightbox-stage img{display:block;width:calc(100% - 120px);height:min(68dvh,780px);object-fit:contain;border-radius:10px;background:#fff}
.lightbox-count{text-align:center;color:#b6ccdc;font-size:.8rem;margin-top:14px}
html.has-lightbox{overflow:hidden}
.related-products{margin-top:56px;padding-top:36px;border-top:1px solid #dce5ec}
.related-products-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.related-products-heading h2{font-size:1.7rem;font-weight:900;color:#102d44;line-height:1.6}
.related-products-heading .section-eyebrow{margin-bottom:6px}
.related-products-heading>p{max-width:24rem;font-size:.9rem;color:#607487;line-height:1.9}
.related-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0;margin:0;list-style:none}
.related-products-grid>li{min-width:0}
.related-card{display:flex;flex-direction:column;height:100%;overflow:hidden;background:#fff;border:1px solid #dce5ec;border-radius:20px;box-shadow:0 6px 18px #102d4406;color:#102d44;text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.related-card:hover{transform:translateY(-5px);border-color:#e7ad39;box-shadow:0 14px 30px #102d4410}
.related-card-image{display:flex;align-items:center;justify-content:center;height:190px;padding:22px;background:#fff;border-bottom:1px solid #edf2f6}
.related-card-image img{display:block;width:100%;height:100%;object-fit:contain}
.related-card-content{display:flex;flex-direction:column;flex:1;padding:22px}
.related-card-category{align-self:flex-start;margin-bottom:14px;padding:3px 10px;border-radius:7px;background:#eff6fa;color:#4c6b81;font-size:.7rem;font-weight:700}
.related-card h3{font-size:1.1rem;line-height:1.8;font-weight:900;margin:0 0 3px}
.related-card-brand{font-size:.78rem;color:#567489;margin-bottom:12px}
.related-card-description{font-size:.88rem;line-height:1.9;color:#607487;margin-bottom:22px}
.related-card-action{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding:12px 14px;border-radius:10px;background:#0c4a6e;color:#fff;font-size:.78rem;font-weight:700;transition:background .2s}
.related-card-action .icon{font-size:1.2rem}
.related-card:hover .related-card-action{background:#075985}
@media(min-width:640px) and (max-width:999px){.related-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.related-products{margin-top:40px;padding-top:28px}.related-products-heading{align-items:start;flex-direction:column;gap:10px}.related-products-heading h2{font-size:1.5rem}.related-products-grid{grid-template-columns:minmax(0,1fr);gap:18px}.related-card-image{height:190px}.related-card-content{padding:20px}}
@media(prefers-reduced-motion:reduce){.related-card:hover{transform:none}}
@media(max-width:1023px){.gallery-scroller>.gallery-card{flex-basis:calc((100% - 20px)/2);width:calc((100% - 20px)/2)}.consultation-panel{align-items:stretch;gap:24px;padding:26px}.consultation-copy{flex:1}.consultation-actions{justify-content:center}}
@media(max-width:767px){.hero-bg .hero-logo{width:156px;border-radius:20px;margin-bottom:24px}.hero-actions>a{width:100%}.hero-actions{flex-direction:column}.consultation-panel{flex-direction:column;padding:24px;text-align:center}.consultation-actions{width:100%}.consultation-button{width:100%;max-width:340px}.consultation-copy h3{font-size:1.2rem}.gallery-section{padding-block:56px}.gallery-heading{align-items:start;flex-direction:column;gap:16px}.gallery-hint{white-space:normal}.gallery-scroller{gap:14px}.gallery-scroller>.gallery-card{flex-basis:86%;width:86%;border-radius:16px}.gallery-card-caption{font-size:.78rem;padding:20px 14px 14px}.gallery-toolbar{gap:12px}.gallery-lightbox{width:calc(100% - 20px);padding:12px;border-radius:16px}.lightbox-top p{font-size:.75rem}.lightbox-stage{gap:5px}.lightbox-stage img{width:calc(100% - 88px);height:60dvh}.lightbox-nav{min-width:36px;height:44px}}
