/* V7: steady presentation and a consistent Nile Steel identity. */
:root{--site-chrome-bg:#062433;--site-brand-size:86px}
html{scroll-behavior:auto}
*,*::before,*::after{animation:none!important;transition:none!important}
.reveal,.reveal.ready,.image-reveal{visibility:visible!important;transform:none!important}
.reveal:not([data-nile-animating]),.image-reveal:not([data-nile-animating]){opacity:1!important;translate:none!important}
.depth-card,.depth-card:hover,.product-card:hover,.branch-preview-card:hover{transform:none!important}
.depth-card:not([data-nile-animating]),.product-card:hover:not([data-nile-animating]),.branch-preview-card:hover:not([data-nile-animating]){translate:none!important}
.hero-photo img:not(.nile-motion-photo),.product-image img:not(.nile-motion-photo),.gallery-tile img:not(.nile-motion-photo),.about-photo-frame img:not(.nile-motion-photo),.branch-company-photo img:not(.nile-motion-photo),.tool-preview-card img:not(.nile-motion-photo){transform:none!important;scale:1!important}
.hero-bottom,.hero-autoplay-progress{display:none!important}
.site-header.header-smart,.page-inner .site-header.header-smart,.site-header.header-smart.is-scrolled,.site-header.header-smart.menu-active{background:var(--site-chrome-bg);backdrop-filter:none;-webkit-backdrop-filter:none;transition:transform .25s ease!important}
.site-header.header-smart.is-hidden:not(.menu-active):not(.keyboard-active){transform:translate3d(0,-110%,0);pointer-events:none}
#site-header .nav-actions > .language-button { order: 1; }
.site-header.header-smart.is-at-page-end {
  border-bottom-color: var(--site-chrome-bg);
  /* Cover the fractional gap from viewport and scroll rounding. */
  box-shadow: 0 3px 0 var(--site-chrome-bg);
}
.site-header.is-at-page-end .utility-bar { border-bottom-color: transparent; }
.site-header.is-at-page-end ~ .site-footer .footer-bottom { border-top-color: transparent; }
body:has(> #site-header.is-at-page-end) > #site-progress { visibility: hidden; }
.site-header.is-at-page-end ~ .site-footer .footer-identity,
.site-header.is-at-page-end ~ .site-footer .footer-shortcuts {
  visibility: hidden;
}

/* Keep both slots stable while the quote action moves between them. */
.site-header.header-smart .header-quote,
.site-footer .footer-quote {
  transition: opacity 170ms ease, translate 210ms ease, visibility 0s linear !important;
}
.site-header.header-smart .header-quote,
.site-header.is-quote-in-footer ~ .site-footer .footer-quote {
  opacity: 1;
  translate: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 170ms, 170ms, 0s !important;
}
.site-header.header-smart.is-quote-in-footer .header-quote,
.site-footer .footer-quote {
  opacity: 0;
  translate: 0 8px;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, 170ms !important;
}
.site-header.header-smart.is-quote-in-footer .header-quote { translate: 0 -8px; }
@media (prefers-reduced-motion: reduce) {
  .site-header.header-smart .header-quote,
  .site-footer .footer-quote {
    translate: none !important;
    transition: none !important;
  }
}

.site-header .utility-bar{background:var(--site-chrome-bg)}
@media(prefers-reduced-motion:reduce){.site-header.header-smart{transition:none!important}}
.gallery-tile,.gallery-tile img,.product-image,.product-image img,.hero-photo,.hero-slide,.branch-company-photo img{cursor:default!important}

.about-photo-frame,.product-image,.gallery-tile,.branch-company-photo,.branch-preview-photo,.tool-preview-card,.dialog-photo{position:relative}

.dialog-photo{border-radius:12px;overflow:hidden}
.dialog-photo img{display:block;width:100%}
.site-footer{background:var(--site-chrome-bg);color:#fff;border-top:1px solid #ffffff18}
.site-footer .footer-main{display:grid;grid-template-columns:190px minmax(150px,1fr) minmax(360px,1.4fr);gap:40px;align-items:center;padding-block:44px}
.site-footer .footer-brand{display:block;width:180px}
.site-footer .footer-brand img{width:100%;height:auto}
.site-footer .footer-main>p{margin:0;padding:0;color:#c2d2da;font-size:13px;line-height:2}
.site-footer .footer-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 24px;width:100%}
.site-footer .footer-nav a{display:flex;align-items:center;min-height:44px;padding:7px 0;color:#e6eef2;font-size:12px;line-height:1.8}
.site-footer a:hover,.site-footer button:hover{color:#ffb08c}
.footer-bottom{border-top:1px solid #ffffff22;padding-block:22px;color:#b9cdd8;gap:20px}
.contact-section{background:#edf3f6;color:#123b50;padding-block:64px}
.contact-heading{border-bottom:1px solid #cbdbe3;padding-bottom:32px;margin-bottom:32px}
.contact-heading h2{color:#103d54;font-size:clamp(32px,4.5vw,58px);letter-spacing:-1px;line-height:1.5}
.contact-heading .section-kicker,.contact-heading .section-kicker.light{color:#9f3f1f}
.contact-heading-arrow{color:#103d54;border-color:#c4d7e1;background:#fff}
.contact-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.contact-block,.contact-block:last-child{grid-column:auto;padding:28px 24px;background:#fff;border:1px solid #d7e3e9;border-radius:16px;box-shadow:0 8px 24px #06364e08;gap:10px;min-width:0}
.contact-block .contact-label{display:block;color:#8f3b21;font-size:13px;font-weight:600;margin-bottom:12px;line-height:1.8}
.contact-block>a,.contact-block>a.contact-small,.contact-block>a.email-contact{color:#123b50;font-family:var(--font-en);font-size:clamp(18px,1.65vw,24px);font-weight:600;letter-spacing:0;line-height:1.6;margin:0;min-height:42px;direction:ltr;unicode-bidi:isolate;max-width:100%;overflow-wrap:anywhere;text-align:start}
.contact-block>a:hover{color:#a5401e;text-decoration:underline;text-underline-offset:5px}
.contact-block>a .icon{color:#ad4a28;flex-shrink:0}
.contact-block .social-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid #e0e9ee;padding-top:18px;margin-top:8px;width:100%;color:#526d7c}
.contact-block .social-links a{color:#123b50;background:#eef4f7;border:1px solid #d5e2e9;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:9px}
.contact-block .social-links span{font-size:11px;line-height:1.8}
#branches{scroll-margin-top:calc(var(--header-offset,100px) + 24px);border-top:1px solid #dbe5e9}
@media(max-width:1000px){
 .site-footer .footer-main{grid-template-columns:160px 1fr;gap:24px}
 .site-footer .footer-nav{grid-column:1/-1}
 .contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .contact-block:last-child{grid-column:1/-1}
}
@media(max-width:900px){
 /* The menu button is at the inline end: left in Arabic, right in English. */
 .nav-panel,.nav-panel.mobile-drawer{inset-inline-start:auto;inset-inline-end:0;text-align:start;transform:translateX(-110%);border-inline-start:1px solid #ffffff24;border-inline-end:0}
 html[dir="ltr"] .nav-panel,html[dir="ltr"] .nav-panel.mobile-drawer{transform:translateX(110%)}
 html[dir] .nav-panel.is-open{transform:translateX(0);visibility:visible}
 .nav-panel nav,.nav-more-menu{direction:inherit;text-align:start}
 .drawer-heading{justify-content:space-between}
 .drawer-contact{align-items:stretch}
 .drawer-contact>a[href^="tel:"]{align-self:flex-start}
}
@media(max-width:600px){
 .site-footer .footer-main{grid-template-columns:1fr;gap:22px;padding-block:32px}
 .site-footer .footer-brand{width:160px}
 .site-footer .footer-main>p{text-align:start;font-size:12px}
 .site-footer .footer-nav{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding-top:14px;border-top:1px solid #ffffff22}
 .footer-bottom,.footer-bottom>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px}
 .contact-section{padding-block:38px}
 .contact-grid{grid-template-columns:1fr;gap:16px}
 .contact-block:last-child{grid-column:auto}
 .contact-block,.contact-block:last-child{padding:24px}
 .contact-block>a,.contact-block>a.contact-small,.contact-block>a.email-contact{font-size:23px}
 .contact-heading{padding-inline-end:60px}
 .contact-heading h2{font-size:32px}
 
 
}

/* Card photography stays clear of added logo badges. */
.home-preview .service-row summary{min-height:60px}
.home-preview .service-row summary h3{font-size:20px}

/* V9: rounded dialogs with scrolling contained inside the curved shell. */
.site-dialog{border-radius:24px;overflow:hidden;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}
.site-dialog[open]{display:flex;flex-direction:column}
.site-dialog .dialog-top{position:relative;flex:0 0 auto;padding:14px 24px;border-radius:24px 24px 0 0;gap:16px;min-height:82px}
.site-dialog .dialog-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:28px 32px 32px;scrollbar-width:thin;scrollbar-color:#8aa0ab transparent}
.site-dialog .dialog-body::-webkit-scrollbar{width:7px}
.site-dialog .dialog-body::-webkit-scrollbar-thumb{background:#8aa0ab;border-radius:12px}
.dialog-photo{border-radius:16px;margin-bottom:24px;overflow:hidden}
.dialog-photo .dialog-product-image{margin:0;border-radius:16px}
.quote-preview,.source-list a,.copy-button{border-radius:12px}
.dialog-brand{display:block;width:54px;height:54px;object-fit:contain;flex-shrink:0;margin-inline-end:auto}
.dialog-eyebrow{display:none}
.dialog-top .dialog-close{order:2;flex-shrink:0;width:44px;height:44px;border-radius:12px}
.site-header.header-smart .main-nav{height:100px}
.site-header.header-smart .brand{width:116px;justify-content:center}
.site-header.header-smart .brand img{display:block;width:var(--site-brand-size);height:var(--site-brand-size);object-fit:contain}
.nav-panel.mobile-drawer .drawer-heading>img{width:80px;height:80px;max-height:none;object-fit:contain}
.site-footer .footer-brand{width:132px;justify-self:start}
.site-footer .footer-brand img{display:block;width:132px;height:132px;object-fit:contain}

.site-footer .footer-nav .footer-quote{justify-content:center;color:white;align-self:center;padding:12px 16px;min-height:48px;font-size:12px;white-space:normal;text-align:center}
.floating-wa.is-footer-hidden{display:none!important}
@media(max-width:900px){
 :root{--site-brand-size:72px}
 .site-header.header-smart .main-nav{height:86px}
 .site-header.header-smart .main-nav .brand{width:90px}
}
@media(max-width:600px){
 .site-dialog{width:calc(100% - 24px);border-radius:20px;max-height:calc(100dvh - 32px)}
 .site-dialog .dialog-top{padding:12px 18px;min-height:76px;border-radius:20px 20px 0 0}
 .site-dialog .dialog-body{padding:22px 20px 26px}
 .dialog-brand{width:50px;height:50px}
 .dialog-photo .dialog-product-image{height:190px}
 .site-footer .footer-brand,.site-footer .footer-brand img{width:112px;height:112px}
 
}

/* V10: two rows of quick links and centered copyright. */
.site-dialog.resource-dialog{width:min(600px,calc(100% - 24px))}
.resource-answer-button{width:100%;border:0;border-top:1px solid var(--line);background:transparent;color:var(--navy);font-family:inherit;cursor:pointer;text-align:start;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.resource-answer-button:hover{color:#aa4220}
.resource-answer-button:focus-visible{outline:2px solid var(--orange);outline-offset:5px;border-radius:6px}
.resource-answer-steps{margin:0;padding-inline-start:24px;color:var(--ink)}
.resource-answer-steps li{padding:12px 6px;line-height:1.95;font-size:14px;border-bottom:1px solid var(--line)}
.resource-answer-steps li:last-child{border-bottom:0}
.site-header.header-smart.home-over-hero,.site-header.header-smart.home-over-hero.is-scrolled{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}
.site-header.home-over-hero .utility-bar{background:transparent;border-color:transparent}
#home .hero-slide{transform:none;visibility:visible;opacity:0;z-index:0;pointer-events:none;transition:opacity 1.5s ease-in-out!important;animation:none!important}
#home .hero-slide.is-active{transform:none;visibility:visible;opacity:1;z-index:1}
@media(prefers-reduced-motion:reduce){#home .hero-slide{transition:none!important}}
.site-footer .footer-nav{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:12px 22px;align-items:center}
.site-footer .footer-bottom{display:flex;justify-content:center;align-items:center;text-align:center;padding-block:24px}
.site-footer .footer-bottom>span{display:block;width:100%;margin:0;text-align:center;line-height:1.9}
@media(max-width:600px){.site-footer .footer-nav{gap:10px 12px}.site-footer .footer-nav a{font-size:10px;justify-content:center;text-align:center;line-height:1.8;min-height:48px}.site-footer .footer-nav .footer-quote{font-size:10px;padding:10px 7px}.site-footer .footer-bottom{font-size:10px;padding-block:20px}}
