/* Internal pages only. Shared header and footer use the exact Home-page HTML and /style.css. */
html body{background:#f7f5f0;color:#172a3a}
.elmas-topbar,.elmas-topbar *{box-sizing:border-box}
header.header .shell{width:min(1200px,calc(100% - 72px))}
header.header #nav{display:flex;gap:27px;align-items:center;justify-content:center;flex:1;font-size:13px;font-weight:700}
header.header #nav a{font-family:inherit;font-size:13px;font-weight:700}
header.header #nav .elmas-about-options{background:#fff;color:#172431;position:absolute;top:calc(100% + 13px);left:0;min-width:250px;border:1px solid #e6dfd3;border-radius:6px;box-shadow:0 15px 32px #0002;padding:6px 0;z-index:200;display:flex;flex-direction:column;gap:0}
header.header #nav .elmas-about-options a{display:block!important;text-decoration:none;padding:11px 16px!important;font-size:13px!important;line-height:1.4!important;color:#172431!important;border:0!important}
header.header #nav .elmas-about-options a:after{display:none!important}
header.header #nav .elmas-about-options a:hover,header.header #nav .elmas-about-options a[aria-current=page]{background:#f5efe4!important;color:#8b672e!important}
header.header #nav .elmas-about-dropdown{position:relative}
header.header #nav .elmas-about-dropdown>summary{font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;list-style:none;display:flex;gap:7px;align-items:center;white-space:nowrap}
header.header #nav .elmas-about-dropdown>summary::-webkit-details-marker{display:none}
header.header #nav .elmas-about-dropdown:not([open]) .elmas-about-options{display:none!important}
.elmas-about-banner{position:relative!important;background:#102b45!important;height:auto!important;min-height:0!important;overflow:hidden!important;display:block!important;padding:0!important;aspect-ratio:1394/200}
.elmas-about-banner .approved-banner-art{display:block;width:100%;height:100%;object-fit:fill;position:relative;z-index:1}
.elmas-about-banner>.shell,.elmas-about-banner .hero-content{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
/* Project cards and galleries */
main .intro{margin:0 auto!important;padding:32px 16px 8px!important;max-width:780px;line-height:1.75;text-align:center}
main .section{padding:26px 0 70px!important}
main .section h2{margin:0 0 9px!important}
main .projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
main .project-entry{min-width:0;overflow:hidden;border-radius:10px;border:1px solid #e6dfd3;background:#fff;box-shadow:0 12px 28px #0000000a}
main .project-viewer{height:340px;position:relative;overflow:hidden;background:#f1eee9}
main .project-viewer .photo{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
main .project-viewer .photo img{max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center}
main .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:45px;height:53px;display:flex;align-items:center;justify-content:center;background:rgba(12,29,45,.78);border:1px solid #ffffff99;border-radius:5px;color:white;font-size:38px;line-height:1;cursor:pointer;z-index:2;box-shadow:0 3px 13px #0003}
main .gallery-arrow:hover,main .gallery-arrow:focus-visible{background:#b69a68;color:#172431;outline:2px solid #fff}
main .gallery-prev{left:12px}main .gallery-next{right:12px}
main .gallery-counter{position:absolute;bottom:13px;right:14px;background:rgba(12,29,45,.82);color:white;border-radius:20px;padding:3px 12px;font-size:12px;font-weight:700;letter-spacing:.03em}
main .project-entry .body{padding:24px 25px 27px;background:#fff}
main .project-entry .body h3{color:#172a3a;font:normal 27px/1.23 Georgia,serif;margin:0 0 12px}
main .project-entry .body p{font-size:15px;line-height:1.8;color:#4d5964;margin:0!important}
/* Partner image artwork remains fully visible; updated source files now match each label. */
main .cards .card .photo img{object-fit:contain!important}
/* Existing homepage footer styling is authoritative. */
footer{background:#1b1b1b!important;color:#fff!important}
footer .shell{width:min(1200px,calc(100% - 72px))}
footer .footer-brand img{filter:brightness(0) invert(1)!important}
footer .refined-footer{display:grid!important;grid-template-columns:minmax(240px,1.55fr) repeat(3,minmax(140px,1fr))!important;gap:clamp(24px,3.2vw,55px)!important;padding-top:14px;padding-bottom:58px}
footer .refined-footer .footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
footer .footer-column a,footer .footer-column button{color:#fff!important}
footer .footer-column>span{color:#d7bb8b}
[dir=rtl] header.header #nav .elmas-about-options{left:auto;right:0}
[dir=rtl] main .gallery-prev{right:12px;left:auto}[dir=rtl] main .gallery-next{left:12px;right:auto}
@media(max-width:1000px){footer .refined-footer{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.elmas-about-banner{aspect-ratio:auto;height:230px!important}.elmas-about-banner .approved-banner-art{object-fit:cover;object-position:left center}.elmas-about-banner>.shell{clip:auto!important;position:absolute!important;z-index:2!important;inset:0!important;width:auto!important;height:auto!important;padding:40px 20px!important;white-space:normal!important;display:flex!important;flex-direction:column!important;justify-content:center!important;background:linear-gradient(90deg,rgba(5,24,42,.80),transparent 75%)}.elmas-about-banner>.shell h1{font-size:clamp(26px,5vw,40px)!important;color:white}.elmas-about-banner>.shell p,.elmas-about-banner>.shell .eyebrow{display:none!important}.elmas-about-banner .approved-banner-art{opacity:.65}
main .projects{grid-template-columns:1fr}main .project-viewer{height:285px}footer .refined-footer{grid-template-columns:1fr 1fr!important}header.header .shell,footer .shell{width:calc(100% - 32px)!important}}
@media(max-width:500px){footer .refined-footer{grid-template-columns:1fr!important}main .project-viewer{height:265px}}

.elmas-about-banner.custom-about-banner{aspect-ratio:auto!important;min-height:350px!important;background-size:cover!important;background-position:center!important;display:flex!important;align-items:center!important}
.elmas-about-banner.custom-about-banner>.approved-banner-art{display:none!important}
.elmas-about-banner.custom-about-banner>.shell{position:relative!important;inset:auto!important;width:min(1160px,calc(100% - 48px))!important;height:auto!important;clip:auto!important;overflow:visible!important;white-space:normal!important;padding:75px 0!important;z-index:2!important}
.elmas-about-banner.custom-about-banner>.shell h1{color:white!important;font:normal clamp(38px,5vw,66px)/1.15 Georgia,serif!important;max-width:780px;margin:12px 0!important}
.elmas-about-banner.custom-about-banner>.shell p{color:#f4f2ee!important;max-width:690px;font-size:17px!important;display:block!important}
.elmas-about-banner.custom-about-banner>.shell .eyebrow{display:block!important;color:#dbb77a!important}

/* MOBILE NAVIGATION CORRECTION — 2026-11-07
   Scoped to the three About Us pages that load this stylesheet.
   Keeps Home page, desktop navigation and existing project data untouched. */
@media (max-width:760px) {
  body header.header {position:relative;z-index:150;}
  body header.header .header-inner {min-height:68px;height:auto;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;flex-wrap:nowrap;gap:10px;}
  body header.header .logo {min-width:0;flex:1 1 auto;max-width:calc(100% - 130px);}
  body header.header .logo img {width:42px;height:42px;flex:0 0 42px;}
  body header.header .logo strong {font-size:20px;}
  body header.header .logo small {font-size:8px;line-height:1.2;}
  body header.header .header-cta {display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-inline-start:auto;}
  body header.header .header-cta .nav-contact {display:none!important;}
  body header.header .header-cta #hamburger {display:inline-flex!important;align-items:center;justify-content:center;border:0;background:transparent;color:#172431;min-width:44px;min-height:44px;font-size:27px;padding:5px;cursor:pointer;}
  body header.header #nav {position:absolute!important;top:100%!important;left:0!important;right:0!important;margin:0!important;width:100%!important;max-width:none!important;background:#fffdf9!important;border-top:1px solid #e7dfd1!important;box-shadow:0 14px 24px rgba(17,35,49,.14)!important;padding:8px max(16px,calc((100vw - 600px)/2)) 14px!important;max-height:min(70dvh,520px);overflow-y:auto;overflow-x:hidden;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;flex:none!important;z-index:200!important;}
  body header.header #nav:not(.open) {display:none!important;}
  body header.header #nav.open {display:flex!important;}
  body header.header #nav>a,body header.header #nav>.elmas-about-dropdown>summary {display:flex!important;align-items:center;justify-content:flex-start;min-height:44px;padding:10px 15px!important;margin:0!important;color:#172431!important;font-family:inherit!important;font-size:14px!important;font-weight:700!important;line-height:1.4!important;text-align:start!important;white-space:normal;}
  body header.header #nav>.elmas-about-dropdown>summary {font-family:inherit!important;font-size:14px!important;font-weight:700!important;}
  body header.header #nav>a:after {display:none!important;}
  body header.header #nav>.elmas-about-dropdown {position:static!important;display:block;width:100%;border-bottom:1px solid #eee8dd;}
  body header.header #nav>.elmas-about-dropdown .elmas-about-options {position:static!important;left:auto!important;right:auto!important;top:auto!important;display:flex;min-width:0!important;width:100%!important;box-shadow:none!important;background:#f6f2ec!important;border:0!important;border-radius:6px!important;padding:3px 0 6px!important;margin:0 0 8px!important;}
  body header.header #nav>.elmas-about-dropdown:not([open]) .elmas-about-options {display:none!important;}
  body header.header #nav .elmas-about-options a {padding:10px 20px!important;min-height:42px;white-space:normal!important;font-size:13px!important;}
  body header.header #nav>a {border-bottom:1px solid #eee8dd;}
  body header.header #nav>.elmas-about-dropdown>summary:focus-visible,
  body header.header #nav>a:focus-visible,
  body header.header #nav .elmas-about-options a:focus-visible {outline:2px solid #b69a68;outline-offset:-2px;}
  body .elmas-topbar .topbar-inner {min-height:0;padding-top:6px;padding-bottom:6px;display:flex;align-items:center;justify-content:center!important;}
  body .elmas-topbar .topbar-contacts {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 13px;font-size:11px;}
  body .elmas-topbar .topbar-social {display:none!important;}
  body main .intro {font-size:15px!important;line-height:1.65!important;padding:24px 16px 4px!important;}
}
@media (max-width:380px) {
  body header.header .logo {max-width:calc(100% - 111px);gap:6px;}
  body header.header .logo img {width:35px;height:35px;flex-basis:35px;}
  body header.header .logo strong {font-size:17px;}
  body header.header .logo small {font-size:7px;}
  body header.header .header-cta {gap:3px;}
}

/* New mobile banners + content; original menu fixes retained above. */
/* Mobile compatibility improvements for About Us pages only */
@media(max-width:760px){

  .elmas-about-banner{height:auto!important;min-height:300px!important;aspect-ratio:auto!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;display:flex!important;align-items:center!important;position:relative!important}
  .elmas-about-banner::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,27,47,.55),rgba(7,27,47,.70));z-index:1}
  .elmas-about-banner .approved-banner-art{display:none!important}
  .elmas-about-banner>.shell{clip:auto!important;position:relative!important;z-index:2!important;inset:auto!important;width:calc(100% - 28px)!important;height:auto!important;padding:28px 0 24px!important;overflow:visible!important;white-space:normal!important;display:block!important;background:none!important}
  .elmas-about-banner>.shell .eyebrow{display:block!important;font-size:11px!important;letter-spacing:.16em!important;color:#d7bb8b!important;margin-bottom:8px!important}
  .elmas-about-banner>.shell h1{display:block!important;font-size:clamp(28px,8vw,38px)!important;line-height:1.16!important;color:#fff!important;max-width:95%!important;margin:0 0 10px!important}
  .elmas-about-banner>.shell p{display:block!important;font-size:14px!important;line-height:1.6!important;color:#edf2f6!important;max-width:92%!important;margin:0!important}
  body.about-page-company .elmas-about-banner{background-image:url('/assets/about-banners/company-profile-mobile.webp')!important}
  body.about-page-projects .elmas-about-banner{background-image:url('/assets/about-banners/projects-mobile.webp')!important}
  body.about-page-partners .elmas-about-banner{background-image:url('/assets/about-banners/partners-mobile.webp')!important}
  main .intro, main .shell>.intro, .intro{padding:18px 0 4px!important;font-size:14px!important;line-height:1.7!important;max-width:100%!important}
  main .section{padding:20px 0 42px!important}
  main .section h2{font-size:28px!important;line-height:1.2!important;margin-bottom:8px!important}
  .underline{margin-bottom:18px!important}
  .cards{grid-template-columns:1fr!important;gap:18px!important}
  .card .photo{height:220px!important}
  .card .body{padding:18px 18px 22px!important}
  .card h3{font-size:22px!important;line-height:1.25!important}
  .card p,.gallery figcaption{font-size:14px!important;line-height:1.65!important}
  .gallery{grid-template-columns:1fr!important;gap:16px!important}
  .gallery .photo{height:220px!important}
  .project-viewer{height:230px!important}
  .project-entry .body{padding:18px 18px 22px!important}
  .project-entry .body h3{font-size:22px!important;line-height:1.25!important}
  .project-entry .body p{font-size:14px!important;line-height:1.7!important}
  .gallery-arrow{width:38px!important;height:46px!important;font-size:30px!important}
  .gallery-prev{left:8px!important}.gallery-next{right:8px!important}
  .gallery-counter{right:10px!important;bottom:10px!important;font-size:11px!important}
  footer .refined-footer{gap:22px!important;padding-top:10px!important;padding-bottom:34px!important}
}
@media(max-width:420px){
  .elmas-about-banner{min-height:270px!important}
  .elmas-about-banner>.shell h1{font-size:28px!important}
  .elmas-about-banner>.shell p{font-size:13px!important}


}

/* FINAL: navigation visibility is enforced after all responsive content rules. */
@media (max-width:760px) {
  html body header.header #nav:not(.open) {display:none!important;visibility:hidden!important;}
  html body header.header #nav.open {display:flex!important;visibility:visible!important;}
  html body header.header #hamburger {display:inline-flex!important;}
}
