/* SAJA ELECTRIC — 1. Tokens 2. Base 3. Navigation 4. Hero 5. Sections
   6. Projects/gallery 7. Contact/footer 8. Dialog 9. Motion 10. Responsive */
:root {
  color-scheme: light;
  --ink: #15191a; --muted: #586164; --brand: #dde1e1;
  --paper: #fff; --surface: #f6f8f8; --line: #d8dede;
  --radius: 18px; --small-radius: 10px;
  --shadow: 0 12px 36px -24px rgba(21,25,26,.32);
  --container: 1200px; --gutter: clamp(18px,4vw,40px);
  --section-space: clamp(64px,8vw,112px); --header-height: 92px;
  --ease: cubic-bezier(.22,.8,.24,1);
  font-family: "Oxanium", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 108px; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.65; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #747e81; outline-offset: 5px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(34px,4.7vw,64px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px,3.2vw,42px); letter-spacing: -.8px; }
h3 { font-size: 21px; }
p { overflow-wrap: anywhere; }
.container { width: min(var(--container),calc(100% - var(--gutter)*2)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); margin-top: 20px; max-width: 62ch; }
.eyebrow { display: block; margin-bottom: 14px; text-transform: uppercase; font-size: 12px; letter-spacing: 2.5px; font-weight: 600; }
.section-title::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 20px; background: currentColor; transform-origin: left; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 10px; padding: 14px 20px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 13px 22px; border: 1px solid var(--ink); border-radius: var(--small-radius); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: transform .25s var(--ease); }
.button::after { content: ""; pointer-events: none; position: absolute; inset: -50%; background: linear-gradient(110deg,transparent 40%,rgba(255,255,255,.16) 50%,transparent 60%); transform: translateX(-100%); transition: transform .65s var(--ease); }
.button .icon { transition: transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover::after { transform: translateX(100%); }
.button:hover .icon { transform: translateX(3px); }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-outline { color: var(--paper); background: transparent; border-color: rgba(255,255,255,.6); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }

/* Navigation: normal links remain visible without JavaScript. */
.header { position: relative; z-index: 100; background: var(--brand); height: var(--header-height); }
.header::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: .86; backdrop-filter: blur(16px); pointer-events: none; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.brand { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.logo { width: 150px; height: 80px; object-fit: contain; }

.burger { position:absolute; left:0; top:50%; transform:translateY(-50%); width:46px; height:46px; padding:0; background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:14px; box-shadow:0 1px 2px #15191a0f,0 6px 14px -8px #15191a40; transition:transform .25s var(--ease); }
.burger:hover, .burger:focus-visible { background:white; box-shadow:0 1px 2px #15191a0f,0 10px 22px -10px #15191a59; transform:translateY(calc(-50% - 1px)); }
.burger span { position:absolute; left:13px; width:20px; height:2px; border-radius:2px; background:var(--ink); transition:transform .25s var(--ease),opacity .2s; }
.burger span:first-child { top:14px; }
.burger span:nth-child(2) { top:22px; transform-origin:left center; }
.burger span:last-child { top:30px; }
.burger[aria-expanded="false"]:is(:hover,:focus-visible) span:nth-child(2) { transform:scaleX(.65); }
.burger[aria-expanded="true"] { background:var(--ink); border-color:var(--ink); }
.burger[aria-expanded="true"] span { background:white; }
.burger[aria-expanded="true"] span:first-child { transform:translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.burger[aria-expanded="true"] span:last-child { transform:translateY(-8px) rotate(-45deg); }
.fallback-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--brand); padding: 12px; }
.side-menu { display: none; }
.side-menu a, .fallback-menu a { display: flex; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.fallback-menu a:hover, .side-menu a:hover, .side-menu a.is-active { background: var(--ink); color: white; }
.menu-ready { padding-top: 92px; }
.menu-ready .header { position: fixed; inset: 0 0 auto; background: rgba(221,225,225,.88); }
.menu-ready .header.scrolled { height: 76px; box-shadow: var(--shadow); }
.menu-ready .header.scrolled::before { opacity: 1; }
.menu-ready .header.scrolled .logo { height: 66px; }
.menu-ready .side-menu { position: fixed; z-index: 99; top: 92px; bottom: 0; left: 0; width: min(300px,88vw); display: block; overflow-y: auto; padding: 22px 14px 28px; background: white; transform: translateX(-105%); visibility: hidden; }
.menu-ready .header.scrolled + .side-menu { top: 76px; }
.menu-ready .side-menu.open { visibility: visible; transform: translateX(0); box-shadow: 20px 0 60px -25px rgba(21,25,26,.32); }
#sideMenu::before {
  content: "Saja Electric";
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px 0 48px;
  margin: 2px 6px 20px;

  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Crect%20width='32'%20height='32'%20rx='9'%20fill='%23dde1e1'/%3E%3Cg%20transform='translate%286%206%29%20scale%28.833%29'%20fill='none'%20stroke='%23171717'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2014a1%201%200%200%201-.78-1.63l9.9-10.2a.5.5%200%200%201%20.86.46l-1.92%206.02A1%201%200%200%200%2013%2010h7a1%201%200%200%201%20.78%201.63l-9.9%2010.2a.5.5%200%200%201-.86-.46l1.92-6.02A1%201%200%200%200%2011%2014z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 32px 32px;

  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}

#sideMenu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 4px 0;
  padding: 14px 14px;
  border-radius: 12px;

  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;

  -webkit-tap-highlight-color: transparent;
  transition: transform .22s var(--ease);
}

/* leading icon (drawn with a mask so it follows the text colour) */
#sideMenu a::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  opacity: 0.7;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition:
    opacity .22s var(--ease);
}

#sideMenu a[href$="#home"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%2021v-8a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v8'/%3E%3Cpath%20d='M3%2010a2%202%200%200%201%20.709-1.528l7-5.999a2%202%200%200%201%202.582%200l7%205.999A2%202%200%200%201%2021%2010v9a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%2021v-8a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v8'/%3E%3Cpath%20d='M3%2010a2%202%200%200%201%20.709-1.528l7-5.999a2%202%200%200%201%202.582%200l7%205.999A2%202%200%200%201%2021%2010v9a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z'/%3E%3C/svg%3E");
}

#sideMenu a[href$="#services"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2014a1%201%200%200%201-.78-1.63l9.9-10.2a.5.5%200%200%201%20.86.46l-1.92%206.02A1%201%200%200%200%2013%2010h7a1%201%200%200%201%20.78%201.63l-9.9%2010.2a.5.5%200%200%201-.86-.46l1.92-6.02A1%201%200%200%200%2011%2014z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2014a1%201%200%200%201-.78-1.63l9.9-10.2a.5.5%200%200%201%20.86.46l-1.92%206.02A1%201%200%200%200%2013%2010h7a1%201%200%200%201%20.78%201.63l-9.9%2010.2a.5.5%200%200%201-.86-.46l1.92-6.02A1%201%200%200%200%2011%2014z'/%3E%3C/svg%3E");
}

#sideMenu a[href$="#projects"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2020a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2h-7.9a2%202%200%200%201-1.69-.9L9.6%203.9A2%202%200%200%200%207.93%203H4a2%202%200%200%200-2%202v13a2%202%200%200%200%202%202Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2020a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2h-7.9a2%202%200%200%201-1.69-.9L9.6%203.9A2%202%200%200%200%207.93%203H4a2%202%200%200%200-2%202v13a2%202%200%200%200%202%202Z'/%3E%3C/svg%3E");
}

#sideMenu a[href$="#about"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='M12%2016v-4'/%3E%3Cpath%20d='M12%208h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='M12%2016v-4'/%3E%3Cpath%20d='M12%208h.01'/%3E%3C/svg%3E");
}

#sideMenu a[href$="#contact"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72%2012.84%2012.84%200%200%200%20.7%202.81%202%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45%2012.84%2012.84%200%200%200%202.81.7A2%202%200%200%201%2022%2016.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72%2012.84%2012.84%200%200%200%20.7%202.81%202%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45%2012.84%2012.84%200%200%200%202.81.7A2%202%200%200%201%2022%2016.92z'/%3E%3C/svg%3E");
}

#sideMenu a[href$="materiale.html"]::before,
#sideMenu a[href$="#materiale"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2021.73a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73z'/%3E%3Cpath%20d='M12%2022V12'/%3E%3Cpath%20d='m3.3%207%207.703%204.734a2%202%200%200%200%201.994%200L20.7%207'/%3E%3Cpath%20d='m7.5%204.27%209%205.15'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2021.73a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73z'/%3E%3Cpath%20d='M12%2022V12'/%3E%3Cpath%20d='m3.3%207%207.703%204.734a2%202%200%200%200%201.994%200L20.7%207'/%3E%3Cpath%20d='m7.5%204.27%209%205.15'/%3E%3C/svg%3E");
}

/* trailing chevron */
#sideMenu a::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

#sideMenu a:hover {
  background: rgba(21, 25, 26, 0.06);
  color: var(--ink);
}

#sideMenu a:hover::before {
  opacity: 1;
}

#sideMenu a:hover::after {
  opacity: 0.55;
  transform: translateX(0);
}

/* current section */
#sideMenu a.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 20px -12px rgba(21, 25, 26, 0.6);
}

#sideMenu a.is-active::before {
  opacity: 1;
  background-color: var(--brand);
}

#sideMenu a.is-active::after {
  opacity: 0.7;
  transform: translateX(0);
}

#sideMenu a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

#sideMenu a.is-active:focus-visible {
  outline-color: var(--brand);
}


.menu-ready::after { content: ""; position: fixed; z-index: 98; inset: 0; background: rgba(21,25,26,.3); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.menu-open::after { opacity: 1; }
.scroll-progress { position: fixed; z-index: 150; inset: 0 0 auto; height: 3px; background: #525c60; transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(760px,calc(100svh - 92px)); display: grid; align-items: center; color: white; padding-block: 90px 130px; overflow: hidden; background: #303638; }
.hero::after { content: ""; position: absolute; inset: auto -1px -1px; height: 28px; background: var(--surface); clip-path: polygon(0 100%,100% 0,100% 100%); }
.hero-slider, .slide { position: absolute; inset: 0; z-index: -2; }
.slide { opacity: 0; transition: opacity .7s var(--ease); overflow: hidden; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(10,14,16,.78),rgba(10,14,16,.40)); }
.hero-content { position: relative; }
.hero-content h1 { max-width: 850px; }
.hero-content p { max-width: 600px; margin-top: 24px; font-size: clamp(16px,1.8vw,21px); color: #eef0f0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; font-size: 12px; }
.trust-chips span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; background: rgba(255,255,255,.06); }
.electric-line { width: 88px; height: 2px; background: white; margin-bottom: 24px; transform-origin: left; }
.hero-controls { position: absolute; bottom: 55px; right: max(100px,var(--gutter)); display: flex; align-items: center; gap: 10px; }
.slide-dots { display: flex; }
.slide-dots button { width: 44px; height: 44px; border: 0; background: transparent; color: white; display: grid; place-items: center; }
.slide-dots button::before { content: ""; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; }
.slide-dots button[aria-pressed="true"]::before { background: white; transform: scale(1.3); }
.slider-pause { min-height: 44px; padding: 8px 12px; color: white; background: rgba(21,25,26,.5); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; font-size: 12px; }
.scroll-cue { position: absolute; bottom: 55px; left: var(--gutter); display: flex; align-items: center; gap: 16px; min-height: 44px; color: white; font-size: 12px; text-decoration: none; }

/* Section rhythm and cards */
.pattern { position: relative; isolation: isolate; }
.pattern::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .045; background-image: radial-gradient(currentColor 1px,transparent 1px); background-size: 24px 24px; pointer-events: none; }
.services-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .button { margin-top: auto; font-size: 13px; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-5px); border-color: #626e72; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.04); }
.process-section { background: white; }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.process-grid::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: var(--line); transform-origin: left; }
.process-grid li { position: relative; }
.step-number { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font-weight: 600; }
.process-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.projects { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.project-card { position: relative; display: block; isolation: isolate; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: #333b3e; color: white; box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,14,16,.88),rgba(10,14,16,.08) 75%); z-index: 1; }
.project-info { position: absolute; z-index: 2; bottom: 24px; left: 24px; right: 64px; }
.project-info h3 { font-size: clamp(18px,2vw,24px); }
.project-info p { color: #e2e7e8; margin-top: 8px; font-size: 13px; }
.project-arrow { position: absolute; z-index: 2; right: 18px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transition: transform .3s var(--ease); }
.project-card:hover img { transform: scale(1.05); }
.project-card:hover .project-arrow { transform: translateX(3px); }
.stats-section { position: relative; color: white; background: var(--ink); }
.stats-section::after { content: ""; position: absolute; inset: auto 0 -1px; height: 24px; background: white; clip-path: polygon(0 100%,100% 0,100% 100%); }
.stats-section .section-heading p { color: #c8d0d2; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.stat { border-top: 1px solid #4c5659; padding-top: 24px; }
.counter { font-size: clamp(36px,4.5vw,60px); font-weight: 600; font-variant-numeric: tabular-nums; display: block; min-height: 1.65em; }
.stat p { color: #d4dadd; font-size: 14px; }
.partners { background: white; }
.partners-logos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; align-items: center; }
.partners-logos .partner-logo { text-align:center; line-height:64px; font-weight:600; max-width:100%; width: 150px; height: 64px; object-fit: contain; margin: auto; filter: grayscale(1); }
.partners-logos .partner-logo:hover { filter: grayscale(0); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.gallery-tile { display: block; overflow: hidden; border-radius: 14px; background: var(--brand); aspect-ratio: 1; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-tile:hover img { transform: scale(1.05); }
.cta-section { background: var(--ink); color: white; text-align: center; }
.cta-section::after { content: ""; position: absolute; inset: -23px 0 auto; height: 24px; background: var(--ink); clip-path: polygon(0 100%,100% 0,100% 100%); }
.cta-box { max-width: 800px; }
.cta-box .section-heading { margin-inline: auto; }
.cta-box .section-heading p { color: #c8d0d2; margin-inline: auto; }
.cta-box .section-title::after { margin-inline: auto; }

/* Project pages share this stylesheet and javajs.js. */
.project-hero { text-align: center; max-width: 900px; margin: auto; padding: 48px 20px 20px; }
.project-hero h1 { font-size: clamp(28px,4vw,36px); margin-bottom: 15px; }
.project-hero p { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 24px; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: white; font-weight: 600; text-decoration: none; }
.back-link span { transition: transform .25s var(--ease); }
.back-link:hover span { transform: translateX(-3px); }
.project-gallery { max-width: 1140px; margin: auto; padding: 40px 20px 90px; }
.project-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; grid-auto-rows:260px; }
.project-photos .gallery-tile { position:relative; min-width:0; min-height:0; aspect-ratio:auto; }
.project-photos .gallery-tile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.project-photos .gallery-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgb(0 0 0 / .6),transparent 55%); }
.photo-place { position: absolute; z-index: 1; bottom: 12px; left: 14px; display: inline-flex; align-items: center; gap: 5px; color: white; font-size: 14px; }
.photo-place .icon { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .project-photos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .project-photos { grid-auto-rows:auto; }
  .project-photos .gallery-tile { aspect-ratio:1; }
  .photo-place { left: 8px; bottom: 8px; font-size: 12px; }
}
.project-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 36px; }
.catalog-intro { padding-block: var(--section-space); min-height: 50vh; }
.catalog-intro p { margin-block: 20px; }

/* Contact */
.contact-section { background: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); transition: transform .3s var(--ease); }
.contact-box:hover { transform: translateY(-3px); }
.contact-box > .icon { margin-bottom: 20px; }
.contact-box p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.contact-box a { display: inline-flex; min-height: 44px; align-items: center; }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-form > p { margin-block: 14px 24px; font-size: 14px; color: var(--muted); }
.form-row { display: grid; gap: 6px; margin-block: 14px; }
.form-row label { font-size: 14px; font-weight: 600; }
input,select,textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #aab5b8; border-radius: 8px; background: white; color: var(--ink); font-size: 16px; }
textarea { resize: vertical; }
.field-error { font-size: 12px; font-weight: 600; color: var(--ink); }
[aria-invalid="true"] { border: 2px solid var(--ink); }
#formStatus { margin-top: 16px; }
#formFallback { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Footer and persistent controls */
.footer { background: var(--brand); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 48px; }
.footer-logo { width: 170px; height: 100px; object-fit: contain; margin-bottom: 16px; }
.footer-col h2 { font-size: 18px; margin-bottom: 18px; }
.footer-col p { color: var(--muted); font-size: 14px; }
.footer-col a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; }
.social-links { margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; margin-top: 40px; border-top: 1px solid #bdc6c8; font-size: 12px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
/* Kontaktet e Saja Electric 3, edhe në telefon. */
.floating-contact { position: fixed; z-index: 70; right: max(20px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.floating-contact a { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #000; color: white; box-shadow: 0 10px 30px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
.floating-contact a[href^="https:"] { background: #25d366; }
.floating-contact .contact-glyph { display:block; width:20px; height:20px; fill:currentColor; stroke:none; }
.floating-contact a[href^="https:"] .contact-glyph { width:30px; height:30px; }
.floating-contact a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 5px solid #000; pointer-events: none; }
.floating-contact a[href^="https:"]::before { border-color: #25d366; }
.floating-contact a:hover { transform: translateY(-4px); }
.floating-contact span { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .floating-contact a::before { animation: contact-pulse 2s ease-out infinite; }
}
@keyframes contact-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.38); opacity: 0; } }
.back-top { position: fixed; z-index: 65; bottom: 24px; left: 22px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }

/* Native lightbox */
.lightbox { width: min(1200px,96vw); max-height: 94svh; border: 1px solid #566164; border-radius: 16px; padding: 18px; background: var(--ink); color: white; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.lightbox button { display: grid; place-items: center; min-width: 48px; min-height: 48px; background: #30383b; color: white; border: 1px solid #747e81; border-radius: 10px; font-size: 22px; }
.lightbox-stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 12px; align-items: center; }
.lightbox-stage img { width: 100%; height: min(68svh,720px); object-fit: contain; touch-action: pan-y; }
#lightbox-caption { padding: 16px 60px 0; text-align: center; font-size: 14px; }
body.dialog-open { overflow: hidden; }

/* Motion: transform/opacity only; base content never starts hidden. */
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08) translate(-.5%,.3%); } }
@keyframes cue { 50% { transform: translateY(5px); } }
@keyframes line { from { opacity: .2; transform: scaleX(.1); } to { opacity: 1; transform: scaleX(1); } }
@keyframes page-enter { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-enter .3s ease-out; }
  .menu-ready .side-menu { transition: transform .35s var(--ease); }
  .hero-content h1 { animation: enter .7s var(--ease) both; }
  .hero-content p { animation: enter .7s .1s var(--ease) both; }
  .hero-cta { animation: enter .7s .2s var(--ease) both; }
  .trust-chips { animation: enter .7s .3s var(--ease) both; }
  .electric-line { animation: line .7s var(--ease) both; }
  .slider-ready .slide.active img { animation: ken-burns 8s linear both; }
  .hero.is-paused .slide img { animation-play-state: paused; }
  .scroll-cue span { animation: cue 2s ease-in-out 3; }
  .reveal-pending { opacity: 0; transform: translateY(22px); }
  .reveal-pending.is-revealed { opacity: 1; transform: none; transition: opacity .6s var(--ease),transform .6s var(--ease); transition-delay: var(--reveal-delay,0ms); }
  .section-heading.is-revealed .section-title::after,
  .process-grid.is-revealed::before { animation: line .65s var(--ease) both; }
  .image-loaded { animation: page-enter .4s ease-out; }
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .project-grid { gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {

  .hero { min-height: 680px; padding-block: 64px 170px; }
  .hero-controls { bottom: 48px; right: auto; left: var(--gutter); }
  .scroll-cue { bottom: 105px; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-grid::before { display: none; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-info { bottom: 16px; left: 14px; right: 12px; }
  .project-info h3 { font-size: 16px; }
  .project-arrow { width: 32px; height: 32px; top: 12px; right: 12px; bottom: auto; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .partners-logos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col:first-child { grid-column: 1/-1; }
  .footer { padding-bottom: 110px; }
  .back-top { bottom: 20px; left: 16px; right: auto; }
  .lightbox { padding: 10px; }
  .lightbox-stage { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 4px; }
  .lightbox button { min-width: 44px; min-height: 44px; }
  #lightbox-caption { padding: 12px 0 0; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: auto; }
  .hero-cta { gap: 10px; }
  .hero-cta .button { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
