/* =====================================================================
   Upfront Welding & Metal Fabrication P/L — professional theme
   Clean corporate layout · brand blue #0161BE with red #E00000 accents
   Light theme by default (follows the device), dark theme via toggle.
   ---------------------------------------------------------------------
   1 tokens · 2 base · 3 layout & type · 4 buttons · 5 header ·
   6 hero · 7 stats · 8 about · 9 services · 10 why us · 11 projects ·
   12 process · 13 CTA · 14 FAQ · 15 contact · 16 footer ·
   17 lightbox & WhatsApp · 18 animations · 19 responsive
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #0161be;
  --primary-hover: #014f9c;
  --primary-soft: #e8f1fb;
  --accent: #e00000;
  --navy: #0b1f3a;
  --wa: #25d366;

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1b2d;
  --heading: #0b1f3a;
  --muted: #5b6578;
  --border: #e3e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .04);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 27, 45, .28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #3d8fe6;
  --primary-hover: #5aa2ee;
  --primary-soft: rgba(61, 143, 230, .14);
  --accent: #ff4d4d;
  --navy: #070d18;

  --bg: #0b1220;
  --bg-alt: #0f1829;
  --surface: #131d31;
  --text: #e6ecf5;
  --heading: #f3f6fb;
  --muted: #9aa6ba;
  --border: #22304a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; padding: .7rem 1rem; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout & type ---------- */
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); transition: background-color .4s var(--ease); }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
  color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.section-label::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head--center .section-label::after { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.section-intro { color: var(--muted); font-size: 1.075rem; }
.text-primary { color: var(--primary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; margin-bottom: 1.4rem;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .85rem; font-weight: 600;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i-arrow, .btn .i:last-child:not(:first-child) { transition: transform .25s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn--sm { padding: .55rem .95rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px var(--primary); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 12px 26px -10px var(--primary); }
.btn--outline { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { color: var(--primary); background: var(--primary-soft); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: #0b1f3a; }
.btn--white:hover { box-shadow: 0 12px 26px -12px rgba(0,0,0,.4); }
.btn--outline-white { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 700; font-size: .92rem; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--heading);
  transition: background-color .25s, border-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 5. Topbar & header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .85rem; transition: background-color .4s var(--ease); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 15px; height: 15px; color: #6fb2ff; }

.header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background-color .4s var(--ease);
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 66px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { color: var(--heading); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link { position: relative; padding: .5rem .8rem; font-size: .94rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--heading); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; }
.menu-btn__bars { position: relative; width: 18px; height: 14px; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-btn__bars i:nth-child(1) { top: 0; } .menu-btn__bars i:nth-child(2) { top: 6px; } .menu-btn__bars i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Theme toggle: sun in light theme, moon in dark */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn__icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.theme-btn__sun { color: #f59e0b; }
.theme-btn__moon { transform: translateY(100%) rotate(-60deg); opacity: 0; }
[data-theme="dark"] .theme-btn__sun { transform: translateY(-100%) rotate(60deg); opacity: 0; }
[data-theme="dark"] .theme-btn__moon { transform: none; opacity: 1; color: #a5c8ff; }

/* ---------- 6. Hero (full-width photo background) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0b1220;
  min-height: clamp(620px, calc(100svh - 116px), 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 5vh, 4rem) 0 clamp(1.5rem, 3vh, 2.2rem);
}
/* photo slideshow: slides cross-fade slowly while each photo drifts and zooms (js part 4b).
   The leaving slide keeps moving while it fades, so the motion never stops or jumps.
   JS also adds a gentle parallax to .hero__bg */
.hero__bg { position: absolute; inset: -4% 0; z-index: -2; will-change: transform; background: #0b1220; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.45, 0, .25, 1); overflow: hidden; }
.hero__slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 68% 50%); transform: scale(1.06); backface-visibility: hidden; will-change: transform; }
.hero__slide.is-active img, .hero__slide.is-leaving img { animation: hero-drift-a 10s linear both; }
.hero__slide:nth-child(even).is-active img, .hero__slide:nth-child(even).is-leaving img { animation-name: hero-drift-b; }
@keyframes hero-drift-a { from { transform: scale(1.14) translate3d(1.6%, .6%, 0); } to { transform: scale(1.03) translate3d(-.6%, 0, 0); } }
@keyframes hero-drift-b { from { transform: scale(1.03) translate3d(-1%, 0, 0); } to { transform: scale(1.14) translate3d(1.2%, -.8%, 0); } }
/* readability overlay: deep navy on the left where the text sits, photo stays vivid on the right */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 14, 28, .86) 0%, rgba(6, 14, 28, .7) 32%, rgba(6, 14, 28, .28) 58%, rgba(6, 14, 28, 0) 80%),
    linear-gradient(0deg, rgba(6, 14, 28, .8) 0%, rgba(6, 14, 28, 0) 34%),
    radial-gradient(60% 50% at 62% 70%, rgba(255, 140, 40, .12), transparent 70%);
}
/* thin brand line along the bottom edge */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.hero__inner { position: relative; width: min(1200px, 100% - 2.5rem); }
.hero__content { max-width: 720px; }
.eyebrow--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.eyebrow--glass .i { color: #6fb2ff; }
.hero__title { color: #fff; font-size: clamp(2.3rem, min(5vw, 7.2vh), 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__accent { position: relative; color: #6fb2ff; white-space: nowrap; }
.hero__accent::after { /* red underline that draws in once the headline appears */
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .9s .5s var(--ease);
}
.hero__title.is-in .hero__accent::after, html:not(.js) .hero__accent::after { transform: scaleX(1); }
.hero__lead { color: rgba(255, 255, 255, .86); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.3rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .93rem; color: #fff; }
.hero__points .i { color: #6fb2ff; }
/* slide indicators: the active bar fills up until the next photo */
.hero__dots { display: flex; gap: .5rem; margin-top: 1.6rem; }
.hero__dots button { position: relative; width: 38px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dots button::before, .hero__dots span { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 4px; }
.hero__dots button::before { background: rgba(255, 255, 255, .35); transition: background-color .3s; }
.hero__dots button:hover::before { background: rgba(255, 255, 255, .6); }
.hero__dots span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-current="true"] span { transform: scaleX(1); transition: transform var(--slide-time, 7s) linear; }
.hero__dots.is-paused [aria-current="true"] span { transition: none; }
.hero__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ---------- 7. Key figures: glass bar over the hero photo ---------- */
.hero__stats-wrap { position: relative; width: min(1200px, 100% - 2.5rem); }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(1.8rem, 4vh, 3rem);
  border-radius: var(--radius-lg); background: rgba(8, 18, 36, .55); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
.stat { padding: 1.1rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat strong { display: block; color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.stat span:not([data-count]) { color: rgba(255, 255, 255, .75); font-size: .88rem; font-weight: 500; }
/* scroll cue */
.hero__scroll { position: absolute; left: 50%; bottom: 14px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@media (min-height: 900px) and (min-width: 961px) { .hero__scroll { display: block; } .hero { padding-bottom: 3.6rem; } }

/* ---------- 8. About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.about__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: -1; border-radius: var(--radius-lg); border: 2px solid var(--primary-soft); background: var(--primary-soft); }
.about__tag { position: absolute; left: 1.2rem; bottom: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 10px; background: rgba(11,31,58,.85); color: #fff; font-size: .86rem; font-weight: 600; backdrop-filter: blur(6px); }
.about__content p:not(.section-label) { color: var(--muted); }
.director { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.director__avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.director__avatar .i { width: 24px; height: 24px; }
.director strong { display: block; color: var(--heading); }
.director span { color: var(--muted); font-size: .88rem; }
.director .btn { margin-left: auto; }

/* ---------- 9. Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background-color .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.service__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-alt); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 2.2rem 1.4rem 1.5rem; }
.service__icon { position: absolute; top: -26px; left: 1.4rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 10px 20px -8px var(--primary); transition: background-color .3s, transform .35s var(--ease); }
.service:hover .service__icon { background: var(--accent); transform: rotate(-6deg); }
.service__icon .i { width: 24px; height: 24px; }
.service h3 { font-size: 1.15rem; font-weight: 800; }
.service p { color: var(--muted); font-size: .94rem; }
.checklist { display: grid; gap: .45rem; margin: .2rem 0 1.4rem; }
.checklist li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; font-weight: 500; }
.checklist .i { color: var(--primary); margin-top: .25em; width: 1rem; height: 1rem; }
.service .link-arrow { margin-top: auto; }

/* ---------- 10. Why us ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why__intro .btn { margin-top: 1rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature { padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background-color .4s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.feature__icon { width: 48px; height: 48px; margin-bottom: 1.1rem; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: background-color .3s, color .3s; }
.feature:hover .feature__icon { background: var(--primary); color: #fff; }
.feature__icon .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- 11. Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .9rem; transition: all .25s var(--ease); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), background-color .4s var(--ease); }
.project:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project.is-hiding { opacity: 0; transform: scale(.96); }
.project.is-hidden { display: none; }
.project__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); aspect-ratio: 4 / 3; overflow: hidden; }
.project__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project__btn::after { content: ""; position: absolute; inset: 0; background: rgba(11,31,58,.45); opacity: 0; transition: opacity .3s; }
.project__zoom { position: absolute; left: 50%; top: 50%; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b1f3a; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.project__btn:hover img, .project__btn:focus-visible img { transform: scale(1.07); }
.project__btn:hover::after, .project__btn:focus-visible::after { opacity: 1; }
.project__btn:hover .project__zoom, .project__btn:focus-visible .project__zoom { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.project figcaption { padding: 1rem 1.2rem 1.1rem; }
.project figcaption span { display: block; color: var(--primary); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project figcaption strong { color: var(--heading); font-size: 1rem; }

/* ---------- 12. Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step__icon { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); color: var(--primary); box-shadow: var(--shadow-sm); transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.step:hover .step__icon { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-4px); }
.step__icon .i { width: 28px; height: 28px; }
.step__num { position: absolute; top: -6px; left: calc(50% + 18px); z-index: 2; padding: .1rem .45rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- 13. CTA ---------- */
.cta { position: relative; padding: clamp(3.5rem, 7vw, 5rem) 0; overflow: hidden; background: linear-gradient(120deg, #0161be, #0b3a75 70%); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: .3rem; }
.cta p { color: rgba(255,255,255,.82); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq__list { display: grid; gap: .8rem; }
.faq__item { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, box-shadow .3s, background-color .4s var(--ease); }
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; color: var(--heading); font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- 15. Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.6rem; align-items: start; }
.contact__info { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .3s, transform .3s var(--ease), background-color .4s var(--ease); }
.info-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateX(4px); }
.info-card__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.info-card__icon--wa { background: rgba(37,211,102,.14); color: #16a34a; }
.info-card__icon .i { width: 22px; height: 22px; }
.info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { color: var(--heading); font-weight: 600; transition: color .2s; }
.info-card a:hover { color: var(--primary); }
.form { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 1rem; transition: background-color .4s var(--ease); }
.form h3 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--bg);
  padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form__error { margin: 0; color: var(--accent); font-weight: 600; font-size: .92rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
/* Responsive map: keeps a wide shape on desktop, taller on phones */
.map { position: relative; margin-top: 1.6rem; aspect-ratio: 16 / 7; min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3.4; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map iframe:not([src]) { display: none; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.map__link { position: absolute; right: 12px; bottom: 12px; z-index: 1; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: 4rem; transition: background-color .4s var(--ease); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer strong { color: #fff; }
.brand--footer small { color: rgba(255,255,255,.6); }
.footer__about p { margin-top: 1.1rem; max-width: 34ch; }
.footer h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__contact li, .footer__contact a { display: inline-flex; align-items: center; gap: .55rem; }
.footer__contact .i { width: 16px; height: 16px; color: #6fb2ff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* ---------- 17. Lightbox & WhatsApp ---------- */
.lightbox { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.lightbox::backdrop { background: rgba(7,13,24,.82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in .35s var(--ease); }
.lightbox[open]::backdrop { animation: fade-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__inner { position: relative; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #0b1220; transition: opacity .25s; }
.lightbox img.is-swapping { opacity: 0; }
.lightbox__caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; }
.lightbox__caption span { display: block; color: var(--primary); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lightbox__caption strong { color: var(--heading); }
.lightbox__btn { position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #0b1f3a; box-shadow: var(--shadow); transition: background-color .2s, transform .2s; }
.lightbox__btn:hover { background: #fff; transform: scale(1.06); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: calc(37vh - 22px); }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }

.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; height: 56px; min-width: 56px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: .6rem; border-radius: 999px; background: var(--wa); color: #fff;
  font-weight: 700; box-shadow: 0 12px 28px -10px rgba(22,163,74,.7); transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover .wa-float__label { max-width: 140px; }

/* ---------- 18. Animations (scroll reveal; JS adds .is-in) ---------- */
.js [data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--delay, 0) * 110ms); }
.js [data-animate="fade"] { transform: scale(.97); }
.js [data-animate].is-in { opacity: 1; transform: none; }
/* service/feature cards keep their own hover transform after revealing */
.js .service[data-animate].is-in, .js .feature[data-animate].is-in { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .8s var(--ease), background-color .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-animate] { opacity: 1; transform: none; }
  .hero__slide img { transform: none; animation: none !important; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hide-md { display: none !important; }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 116px); z-index: 99;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .85rem .5rem; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1rem; }
  .menu-btn { display: grid; }
  .header__cta { display: none; }
  .about, .why, .faq, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 14, 28, .66) 0%, rgba(6, 14, 28, .6) 45%, rgba(6, 14, 28, .85) 100%); }
  .hero__slide img { object-position: var(--pos-m, 62% 50%); }
  .about__media { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .hide-sm { display: none !important; }
  .topbar__inner { justify-content: center; }
  .brand__text small { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .stat { padding: 1rem .6rem; }
  .services, .projects, .why__grid, .steps, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .director .btn { margin-left: 0; }
  .about__media::before { inset: 1rem -.6rem -.6rem 1rem; }
  .wa-float { right: 1rem; bottom: 1rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 76px; }
}

/* =====================================================================
   20. Content update (company profile, quote, CSR, company details)
   Uses the same tokens as the rest of the site.
   ===================================================================== */
/* Red "accent" button for quotation actions */
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); box-shadow: 0 12px 26px -10px var(--accent); }

/* "To be confirmed" marker for details awaiting confirmation */
.pending {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; border: 1px dashed #f59e0b;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap;
}
[data-theme="dark"] .pending { color: #fbbf24; }

/* About: mission, vision, values */
.mvv { display: grid; gap: .8rem; margin-top: 1.6rem; }
.mvv__item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); transition: border-color .3s, background-color .4s var(--ease); }
.mvv__item:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.mvv__icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.mvv__icon .i { width: 20px; height: 20px; }
.mvv__item h3 { font-size: .95rem; font-weight: 800; margin: 0 0 .15rem; }
.mvv__item p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Service cards: number badge, image overlay, note */
.service__img { position: relative; }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,31,58,.45)); pointer-events: none; }
.service__num {
  position: absolute; right: .9rem; top: .9rem; z-index: 1; padding: .2rem .6rem; border-radius: 8px;
  background: rgba(11,31,58,.78); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .06em; backdrop-filter: blur(4px);
}
.service__note { display: flex; gap: .45rem; align-items: flex-start; margin: -.4rem 0 1.2rem; padding: .6rem .7rem; border-radius: 10px; background: var(--primary-soft); color: var(--heading) !important; font-size: .82rem !important; line-height: 1.5; }
.service__note .i { color: var(--primary); width: 1rem; height: 1rem; margin-top: .15em; }

/* Coverage + power backup strip */
.service-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.service-strip__item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); transition: background-color .4s var(--ease); }
.service-strip__item + .service-strip__item { border-left-color: var(--accent); }
.service-strip__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.service-strip__item + .service-strip__item .service-strip__icon { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.service-strip__icon .i { width: 24px; height: 24px; }
.service-strip p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-strip strong { display: block; color: var(--heading); font-size: 1rem; }

/* Projects: illustrative-image label + selected experience list */
.project__note { position: absolute; left: .7rem; top: .7rem; z-index: 1; padding: .2rem .55rem; border-radius: 6px; background: rgba(11,31,58,.75); color: #fff; font-size: .72rem; font-weight: 600; }
.experience { margin-top: 2.4rem; padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: background-color .4s var(--ease); }
.experience h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.experience h3 .i { color: var(--primary); }
.experience ul { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.6rem; }
.experience li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; }
.experience li .i { color: var(--primary); width: 1rem; height: 1rem; margin-top: .3em; }

/* Corporate social responsibility */
.csr__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.csr__list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.csr__list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); transition: background-color .4s var(--ease); }
.csr__list li > .i { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; border-radius: 10px; background: var(--primary); color: #fff; }
.csr__list strong { display: block; color: var(--heading); }
.csr__list span { color: var(--muted); font-size: .94rem; }
.csr__panel {
  position: relative; overflow: hidden; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(140deg, #0161be, #0b3a75 75%); box-shadow: var(--shadow-lg);
}
.csr__panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 32px 32px; }
.csr__badge { position: relative; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }
.csr__badge .i { width: 32px; height: 32px; }
.csr__quote { position: relative; margin: 1.4rem 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35; }
.csr__tags { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.csr__tags span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .85rem; font-weight: 600; }
.csr__tags .i { width: 1rem; height: 1rem; }

/* Request a quote */
.quote { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0; overflow: hidden; background: linear-gradient(120deg, #0b1f3a, #0b3a75 60%, #0161be); color: #fff; }
.quote::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); }
.quote__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.section-label--light { color: #9cc9ff; }
.quote h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.quote__text > p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.quote__points { display: grid; gap: .5rem; margin-top: 1.2rem; }
.quote__points li { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.quote__points .i { color: #6fb2ff; }
.quote__actions { display: grid; gap: 1rem; }
.quote-btn {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 14px; color: #fff;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.quote-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(0,0,0,.7); }
.quote-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.quote-btn__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.quote-btn__icon .i { width: 24px; height: 24px; }
.quote-btn__text { display: grid; flex: 1; line-height: 1.3; }
.quote-btn__text strong { font-size: 1.08rem; font-weight: 800; }
.quote-btn__text small { font-size: .88rem; opacity: .88; }
.quote-btn > .i:last-child { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.quote-btn:hover > .i:last-child { transform: translateX(4px); }
.quote-btn--email { background: #d60000; padding-block: 1.35rem; }      /* prominent red */
.quote-btn--email:hover { background: #b80000; }
.quote-btn--wa { background: #16a34a; }                                 /* WhatsApp green, dark enough for white text */
.quote-btn--wa:hover { background: #15803d; }
.quote-btn[hidden] { display: none; }

/* Company registration details */
.company__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.company__item { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .3s, background-color .4s var(--ease); }
.company__item:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.company__item dt { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.company__item dt .i { color: var(--primary); width: 1.05rem; height: 1.05rem; }
.company__item dd { margin: 0; color: var(--heading); font-weight: 700; }
.company__item dd a:hover { color: var(--primary); }

/* Contact: email list, opening hours */
.email-list, .hours { display: grid; gap: .4rem; margin-top: .2rem; }
.email-list li { display: grid; }
.email-list span, .hours li span:first-child { color: var(--muted); font-size: .8rem; font-weight: 600; }
.email-list a { overflow-wrap: anywhere; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.hours li span:last-child { color: var(--heading); font-weight: 600; white-space: nowrap; }
.info-card h3 .pending { margin-left: .35rem; }
.info-card__small { font-size: .86rem; margin-top: .35rem !important; }
.info-card > div { min-width: 0; flex: 1; }

/* Footer image credits */
.credits { max-width: 640px; font-size: .78rem; }
.credits summary { cursor: pointer; }
.credits p { margin: .5rem 0 0; color: rgba(255,255,255,.6); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .company__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .csr__inner, .quote__inner { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .experience ul, .company__grid { grid-template-columns: 1fr; }
  .quote-btn { padding: 1rem; }
  .quote-btn__text strong { font-size: 1rem; }
}

/* =====================================================================
   21. Loading screen + theme transition (adopted from the previous site,
       restyled for this theme)
   ===================================================================== */
body.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 1.3rem;
  pointer-events: none;
}
html:not(.js) .loader { display: none; }
/* two halves that slide apart when loading finishes */
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; z-index: -1; background: var(--bg); transition: background-color .4s var(--ease); }
.loader__panel--top { top: 0; }
.loader__panel--bot { bottom: 0; }
.loader__panel--top::after { /* thin brand line along the seam */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); transition: width .6s var(--ease);
}
.loader.is-done .loader__panel--top::after { width: 100%; }
.loader__core { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.loader__core img { width: 68px; height: 68px; filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent)); animation: loader-pulse 1.6s ease-in-out infinite; }
@keyframes loader-pulse { 50% { transform: scale(1.05); } }
.loader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: var(--border); stroke-width: 3; }
.loader__ring .loader__arc {
  stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--p, 100);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 60%, transparent)); transition: stroke-dashoffset .2s;
}
.loader__txt { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.loader__txt b { color: var(--heading); font-weight: 800; }
/* exit: logo + text shrink away, then the halves slide off-screen */
.loader.is-done .loader__core, .loader.is-done .loader__txt { opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--ease); }
.loader.is-done .loader__panel--top { transform: translateY(-101%); transition: transform .9s .3s cubic-bezier(.65, 0, .35, 1); }
.loader.is-done .loader__panel--bot { transform: translateY(101%); transition: transform .9s .3s cubic-bezier(.65, 0, .35, 1); }

/* Theme switch: the new theme spreads in a circle from the toggle button
   (View Transitions API; browsers without it switch instantly with colour easing) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-btn:active { transform: scale(.92); }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* Header: links never wrap; use the menu button below 1100px so the
   header never gets crowded on tablets and small laptops */
.nav__link { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 116px); z-index: 99;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .85rem .5rem; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1rem; }
  .menu-btn { display: grid; }
}

/* Footer: discreet staff link to the photo manager (/admin) */
.footer__staff { margin-left: auto; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__staff:hover { color: #fff; }
@media (max-width: 640px) { .footer__staff { margin-left: 0; } }
