/* ============================================================
   SPECOM — Standby Power Engineering Company
   Marketing homepage styles
   ============================================================ */

:root {
  --red: #E4181C;
  --red-dark: #C4141A;
  --navy: #0B1E3B;
  --navy-2: #0A1830;
  --navy-3: #122a4d;
  --ink: #1B2432;
  --slate: #5A6472;
  --line: #E6E8EC;
  --bg-soft: #F4F6F8;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(16,24,40,.06);
  --shadow-md: 0 12px 30px rgba(16,24,40,.10);
  --container: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageFadeIn .5s ease forwards;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { opacity: 1; animation: none; } }
h1, h2, h3, h4, h5 { font-family: 'Poppins', system-ui, sans-serif; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 74px 0; }

/* ---- Accessibility: skip link + focus-visible ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--red); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
  z-index: 1000; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
.center { text-align: center; }
.red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 8px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(228,24,28,.30); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }

.eyebrow { display: inline-block; color: var(--red); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 14px; }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 34px; }

.green-tag { display: inline-flex; align-items: center; gap: 6px; color: #37c26a; font-weight: 600; font-size: 14px; }
.green-tag .leaf { font-size: 13px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.logo-img { height: 44px; width: auto; display: block; transition: height .25s ease; }
.logo-mark { color: #231F20; }
.logo-mark svg { width: 46px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 27px; color: var(--red); letter-spacing: .5px; }
.logo-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .2px; color: #2b3440; margin-top: 2px; }
.logo-light .logo-mark { color: #fff; }
.logo-light .logo-sub { color: #cfd6e0; }

.main-nav { margin-left: auto; align-self: stretch; }
.main-nav > ul { position: relative; display: flex; align-items: stretch; gap: 4px; height: var(--header-h); }
.main-nav > ul > li { display: flex; }
.main-nav > ul > li > a {
  position: relative; z-index: 1;
  font-size: 15px; font-weight: 500; color: #2b3440; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: color .2s ease;
}
/* Text turns white on hover, and while the sliding .nav-pill is resting under it */
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a,
.main-nav > ul > li > a.pill-active {
  color: #fff;
}
.nav-pill {
  position: absolute; top: 0; left: 0; height: var(--header-h); background: var(--red);
  z-index: 0; opacity: 0; pointer-events: none;
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.caret { font-size: 10px; opacity: .85; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 20;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: #2b3440; }
.dropdown li a:hover { background: var(--bg-soft); color: var(--red); }

.header-cta { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; transform-origin: center; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; z-index: 0; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bgs { position: absolute; inset: 0; z-index: -1; }
.hero-bg { position: absolute; inset: 0; opacity: 0; isolation: isolate; transition: opacity 1s ease; }
.hero-bg.is-active { opacity: 1; }
.hero-bg-video, .hero-bg-poster, .hero-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-poster { transition: opacity .8s ease; }
.hero-bg-poster.is-hidden { opacity: 0; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(7,17,34,.95) 0%, rgba(7,17,34,.82) 40%, rgba(7,17,34,.48) 72%, rgba(7,17,34,.30) 100%),
    linear-gradient(180deg, rgba(7,17,34,.30) 0%, transparent 30%, transparent 55%, rgba(6,13,26,.78) 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 46px; padding: 96px 24px 78px; align-items: center; }
.hero-copy { max-width: 640px; }

.hero-copy .green-tag { margin-bottom: 18px; }
.hero h1, .hero .hero-title { font-size: 47px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-lead { color: #c7d0dc; font-size: 16px; max-width: 470px; margin-bottom: 30px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-bottom: 32px; max-width: 500px; }
.hero-feature { display: flex; align-items: center; gap: 12px; }
.hf-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); }
.hf-icon svg { width: 26px; height: 26px; }
.hero-feature div { display: flex; flex-direction: column; }
.hero-feature strong { font-size: 15px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-feature span { font-size: 12.5px; color: #9fabbc; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph { background-color: #22314a; background-size: cover; background-position: center; position: relative; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }
.ph-datacenter { background-image: repeating-linear-gradient(90deg, #cfd6dd 0 6%, #b8c1cb 6% 7%), linear-gradient(180deg,#e9edf1,#c3ccd5); }
.ph-tech1, .ph-tech3 { background-image: linear-gradient(135deg,#e7b400,#c99400); }
.ph-tech2 { background-image: linear-gradient(135deg,#33507a,#1d2f4d); }
.ph-generator { background-image: linear-gradient(160deg,#dfe4e8,#aab4bf); }
.ph-ups { background-image: linear-gradient(160deg,#2b2f36,#0e1013); }
.ph-solar, .ph-solar2 { background-image: linear-gradient(160deg,#2f6fb0 0%,#2f6fb0 45%, #6ea04a 45%, #6ea04a 100%); }
.ph-engineering { background-image: linear-gradient(160deg,#4a5568,#232a36); }
.ph-tech-panel { background-image: linear-gradient(135deg,#e07b1a,#b9611a); }
.ph-corridor { background-image: repeating-linear-gradient(90deg,#d4dae0 0 8%,#bcc5cd 8% 9%), linear-gradient(180deg,#eef1f4,#c9d1d8); }
.ph-ats { background-image: linear-gradient(150deg,#c23b3b,#7a2222); }
.ph-gen2 { background-image: linear-gradient(160deg,#d3d9de,#9aa5b0); }
.ph-critical { background-image: linear-gradient(160deg,#3a4658,#202834); }
.ph-ups2 { background-image: linear-gradient(160deg,#3d4a5c,#1c2733); }
.ph-surge { background-image: linear-gradient(150deg,#e0a72a,#a86f10); }
.ph-ups-detail { background-image: linear-gradient(160deg,#3d4a5c,#1c2733); }
.ph-surge-detail { background-image: linear-gradient(150deg,#e0a72a,#a86f10); }
.ph-datacenter-detail { background-image: repeating-linear-gradient(90deg, #cfd6dd 0 6%, #b8c1cb 6% 7%), linear-gradient(180deg,#e9edf1,#c3ccd5); }
.ph-dcpower { background-image: linear-gradient(160deg,#4a4458,#26212f); }
.ph-dcpower-detail { background-image: linear-gradient(160deg,#4a4458,#26212f); }
.ph-utility-td { background-image: linear-gradient(155deg,#c98a3a,#7a4f1a); }
.ph-utility-td-detail { background-image: linear-gradient(155deg,#c98a3a,#7a4f1a); }

/* ---------- Stats strip ---------- */
.stats-strip { position: relative; background: rgba(4,12,26,.55); border-top: 1px solid rgba(255,255,255,.06); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 14px; padding: 22px 12px; justify-content: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: rgba(255,255,255,.12); }
.stat-ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(228,24,28,.55); display: grid; place-items: center; color: var(--red); }
.stat-ic svg { width: 22px; height: 22px; }
.stat b { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 800; color: #fff; display: block; line-height: 1; }
.stat span { font-size: 12.5px; color: #aeb9c7; }

/* ============================================================
   SUB-PAGE HERO
   Used by dedicated pages (Products & Services, and future pages).
   Background is the navy + hero-banner.jpeg photo treatment for now;
   swap the background-image for a <video> element per page once the
   client's drone footage is available (see docs/reference-fmlgy.md
   for the video-hero pattern this is designed to be swapped into).
   ============================================================ */
.page-hero { position: relative; background: var(--navy) url('../assets/img/hero-banner.jpeg') center 20%/cover no-repeat; color: #fff; overflow: hidden; animation: heroPan 20s ease-in-out infinite alternate; }
@keyframes heroPan { from { background-position: center 14%; } to { background-position: center 28%; } }
@media (prefers-reduced-motion: reduce) { .page-hero { animation: none; } }

/* ---- Bolt watermark (brand mark, used on dark/colored bands) ---- */
.bolt-watermark { position: absolute; top: 50%; right: -20px; transform: translateY(-50%) rotate(8deg); width: 220px; opacity: .07; color: #fff; pointer-events: none; z-index: 0; }
.bolt-watermark svg { width: 100%; height: auto; display: block; }
.cta-band .bolt-watermark { opacity: .14; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,17,34,.93) 0%, rgba(7,17,34,.88) 55%, rgba(7,17,34,.78) 100%); }
.page-hero-inner { position: relative; z-index: 1; padding: 58px 24px; }
.breadcrumb { font-size: 13px; color: #9fabbc; margin-bottom: 12px; }
.breadcrumb a { color: #c7d0dc; }
.breadcrumb a:hover { color: #fff; }
.page-hero .eyebrow { color: #ff6a6d; }
.page-hero h1 { font-size: 36px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.page-hero p { color: #c7d0dc; font-size: 15px; margin-top: 12px; max-width: 580px; }
.page-hero .hero-subline { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; color: #fff; text-transform: none; letter-spacing: 0; margin-top: 8px; max-width: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 42px; }
.services-head h2 { font-size: 31px; font-weight: 700; }
.services-head p { color: var(--slate); font-size: 15.5px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 34px; }
.service-grid--5 { grid-template-columns: repeat(5, 1fr); }
.service-grid--3col { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: visible;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sc-img { height: 150px; border-radius: var(--radius) var(--radius) 0 0; }
.sc-icon {
  position: absolute; top: 128px; left: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(228,24,28,.35);
  transition: transform .45s ease;
}
.service-card:hover .sc-icon { transform: rotate(180deg); }
.sc-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 18px; font-weight: 700; padding: 34px 20px 8px; }
.service-card p { font-size: 13.5px; line-height: 1.5; color: var(--slate); padding: 0 20px; }
.service-card ul { padding: 0 20px; }
.service-card ul li { position: relative; padding: 4px 0 4px 16px; font-size: 13.5px; color: var(--slate); }
.service-card ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.learn { display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); padding: 14px 20px 20px; }
.learn .arw { color: var(--red); transition: transform .2s; }
.learn:hover .arw { transform: translateX(4px); }

/* ---------- Service detail write-ups ---------- */
.service-details-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; margin-top: 64px; }
.service-spy { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.service-spy a { padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--slate); border-left: 2px solid transparent; margin-left: -2px; transition: color .2s ease, border-color .2s ease; }
.service-spy a:hover { color: var(--ink); }
.service-spy a.active { color: var(--red); border-left-color: var(--red); }
.service-details { margin-top: 0; display: flex; flex-direction: column; gap: 56px; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.service-detail-img { border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s ease, box-shadow .3s ease; }
.service-detail:hover .service-detail-img { transform: scale(1.035); box-shadow: var(--shadow-md); }
.service-detail-copy .eyebrow { margin-bottom: 10px; }
.service-detail-copy h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.service-detail-copy p { font-size: 15px; line-height: 1.65; color: var(--slate); margin-bottom: 20px; }
.service-detail:nth-child(even) .service-detail-img { order: 2; }
.service-detail:nth-child(even) .service-detail-copy { order: 1; }

/* ---------- We Also Provide ---------- */
.also-provide { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; margin-top: 14px; }
.also-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.also-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.also-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; margin-bottom: 22px; }
.check-list li { position: relative; padding: 6px 0 6px 26px; font-size: 13.5px; color: #37424f; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(228,24,28,.12); color: var(--red); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.also-img { border-radius: var(--radius); min-height: 260px; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries { background: #fff; }
.industry-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.industry {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: .2s;
}
.industry:hover { border-color: rgba(228,24,28,.4); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.ind-ic { width: 30px; height: 30px; color: var(--red); }
.ind-ic svg { width: 30px; height: 30px; }
.industry span:last-child { font-size: 11.5px; font-weight: 600; color: #37424f; line-height: 1.2; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
/* ---- Solid stats bar (standalone, not nested in a photo hero) ---- */
.about-stats { background: var(--navy); }
.about-stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); }

/* ---- Our Story ---- */
.story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story-img { border-radius: var(--radius); min-height: 380px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s ease, box-shadow .3s ease; }
.story-wrap:hover .story-img { transform: scale(1.035); box-shadow: var(--shadow-md); }
.story-copy h2 { font-size: 30px; font-weight: 700; margin: 10px 0 18px; }
.story-copy p { font-size: 15px; line-height: 1.7; color: var(--slate); margin-bottom: 16px; }

/* ---- Our Approach: process flow ---- */
.process-flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; }
.process-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(228,24,28,.1); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.process-ic svg { width: 26px; height: 26px; }
.process-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 12.5px; color: var(--slate); line-height: 1.4; }
.process-arrow { flex: 0 0 auto; color: var(--red); opacity: .5; margin-top: 22px; }
.process-arrow svg { width: 22px; height: 22px; }

/* ---- Values band (full-width navy) ---- */
.values-band { background: var(--navy); position: relative; overflow: hidden; }
.values-band .container { position: relative; z-index: 1; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: rgba(228,24,28,.18); color: var(--red); display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.value-ic svg { width: 22px; height: 22px; }
.value-item:hover .value-ic { transform: scale(1.12) rotate(-6deg); background: rgba(228,24,28,.32); }
.value-item h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.value-item p { font-size: 13px; color: #b7c1cf; line-height: 1.5; }

/* ---- Why Choose + Industries combined ---- */
.why-industries-wrap { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.why-col h2 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.why-col .check-list li { font-size: 14px; }
.why-photo { border-radius: var(--radius); height: 100%; min-height: 320px; box-shadow: var(--shadow-sm); }
.industries-col .industry-grid-compact { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* ---- Brands table ---- */
.brands-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brands-table-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.brands-table-row:last-child { border-bottom: none; }
.brands-cat-label { background: var(--bg-soft); display: flex; align-items: center; padding: 20px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .8px; color: var(--ink); }
.brands-cat-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; padding: 18px 20px; }
.brands-cat-logos span { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; color: #37424f; }

/* ---- Page hero feature row (small icon + text pairs under hero intro) ---- */
.page-hero-features { display: flex; align-items: flex-start; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.page-hero-feature { display: flex; gap: 12px; align-items: flex-start; }
.page-hero-feature .hf-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); border: 2px solid rgba(228,24,28,.4); border-radius: 50%; }
.page-hero-feature .hf-icon svg { width: 17px; height: 17px; }
.page-hero-feature strong { display: block; font-size: 14px; font-weight: 700; }
.page-hero-feature span { font-size: 12.5px; color: #9fabbc; }
.page-hero-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.15); }

/* ---- Contact info cards ---- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.contact-card.reveal { transition: opacity .6s ease, transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.contact-grid .contact-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-md); border-color: rgba(228,24,28,.35); }
.contact-card .stat-ic { margin: 0 auto 14px; transition: transform .4s cubic-bezier(.2,.7,.3,1), background .3s ease, color .3s ease; }
.contact-grid .contact-card:hover .stat-ic { transform: rotate(360deg) scale(1.1); background: var(--red); color: #fff; }
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.contact-card p { font-size: 13.5px; color: var(--slate); line-height: 1.6; }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--red); }
.contact-card .cc-emergency { color: var(--red); font-weight: 700; }

/* ---- Send Us a Message + Map ---- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-form-card { background: var(--navy); border-radius: var(--radius); padding: 38px 34px; color: #fff; }
.contact-form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact-form-card > p { font-size: 14px; color: #b7c1cf; margin-bottom: 22px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form-row .field { margin-top: 12px; }
#contactForm { display: flex; flex-direction: column; }
.contact-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow-sm); }
.contact-map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-info-card { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow-md); max-width: 240px; }
.map-info-card .logo-word { font-size: 18px; }
.map-info-card .logo-sub { font-size: 8.5px; }
.map-info-card p { font-size: 12px; color: var(--slate); margin-top: 8px; line-height: 1.5; }

/* ============================================================
   PARTNERS GRID (Our Partners page)
   ============================================================ */
.partners-section { position: relative; background: var(--bg-soft); overflow: hidden; }
.partners-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(11,30,59,.05) 0px, rgba(11,30,59,.05) 1px, transparent 1px, transparent 16px);
  pointer-events: none;
}
.partners-section .container { position: relative; z-index: 1; }

.partner-category { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.partner-category:last-child { margin-bottom: 0; }
.partner-category.reveal { transition: opacity .6s ease, transform .45s cubic-bezier(.2,.7,.3,1); }
.partner-category.open { border-color: rgba(228,24,28,.3); box-shadow: var(--shadow-md); }
.pc-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: none; border: 0; cursor: pointer; text-align: left; }
.pc-toggle-left { display: flex; align-items: center; gap: 14px; }
.pc-name { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.pc-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(228,24,28,.1); color: var(--red); flex-shrink: 0; }
.pc-icon svg { width: 20px; height: 20px; }
.pc-chevron { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--red); display: grid; place-items: center; transition: transform .3s ease, background .3s ease, color .3s ease; }
.pc-chevron svg { width: 15px; height: 15px; }
.partner-category.open .pc-chevron { transform: rotate(45deg); background: var(--red); color: #fff; }
.pc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.pc-panel-inner { overflow: hidden; }
.partner-category.open .pc-panel { grid-template-rows: 1fr; }
.pc-list { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 28px 28px; }
.pc-item { display: flex; flex-direction: column; gap: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; min-width: 210px; text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.pc-logo { max-height: 68px; max-width: 200px; width: auto; object-fit: contain; margin-bottom: 8px; }
.pc-item strong { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); transition: color .3s ease; }
.pc-item span { font-size: 12.5px; color: var(--slate); }
a.pc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(228,24,28,.3); background: #fff; }
a.pc-item:hover strong { color: var(--red); }

/* ============================================================
   WHAT WE DO (icon grid — About page)
   ============================================================ */
.wwd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wwd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.wwd-card.reveal { transition: opacity .6s ease, transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.wwd-grid .wwd-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-md); border-color: rgba(228,24,28,.35); }
.wwd-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(228,24,28,.1); color: var(--red); display: grid; place-items: center; margin: 0 auto 14px; transition: transform .4s cubic-bezier(.2,.7,.3,1), background .3s ease, color .3s ease; }
.wwd-ic svg { width: 22px; height: 22px; }
.wwd-grid .wwd-card:hover .wwd-ic { transform: rotate(360deg) scale(1.1); background: var(--red); color: #fff; }
.wwd-card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.wwd-card p { font-size: 12.5px; color: var(--slate); line-height: 1.55; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why { background: var(--bg-soft); }
.why-wrap { display: grid; grid-template-columns: 340px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.why-left {
  background: var(--navy); color: #fff; padding: 44px 38px; position: relative; display: flex; flex-direction: column; justify-content: center;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}
.eyebrow-red { color: var(--red); }
.why-left h2 { font-size: 27px; font-weight: 700; margin-bottom: 14px; }
.why-left p { color: #c2ccd8; font-size: 14.5px; margin-bottom: 24px; max-width: 240px; }
.why-left .btn { align-self: flex-start; }
.why-right { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 44px 34px 44px 20px; }
.why-ic { width: 40px; height: 40px; color: var(--red); margin-bottom: 14px; }
.why-ic svg { width: 40px; height: 40px; }
.why-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.why-item p { font-size: 13px; color: var(--slate); }

/* ============================================================
   WORK IN ACTION
   ============================================================ */
.work-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.work-filter-btn {
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.work-filter-btn:hover { border-color: var(--red); color: var(--red); }
.work-filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 32px; }
.work-card {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
#workGrid .work-card.is-filtered-out { display: none; }
.work-img { height: 158px; position: relative; }
.work-card figcaption { padding: 16px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.work-zoom-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11,30,59,.45); opacity: 0; transition: opacity .25s ease;
}
.work-card:hover .work-zoom-hint { opacity: 1; }
.work-zoom-hint svg { width: 28px; height: 28px; color: #fff; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: relative; background: transparent; width: 100%; max-width: 780px; box-shadow: none; padding: 0; }
.lightbox-img { width: 100%; height: 60vh; max-height: 520px; background: #12233f center/cover no-repeat; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.lightbox-caption { color: #fff; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; margin-top: 16px; }
.lightbox-close { top: -44px; right: 0; background: rgba(255,255,255,.15); color: #fff; }
.lightbox-close:hover { background: rgba(255,255,255,.3); color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
@media (max-width: 900px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   BRANDS
   ============================================================ */
.brands { background: var(--navy); color: #fff; padding: 40px 0 30px; }
.brands-title { text-align: center; font-size: 17px; font-weight: 600; color: #eef2f7; margin-bottom: 26px; }
.brands-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.brand-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .5px; color: #eef2f7; opacity: .92; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-logo small { font-size: 8px; font-weight: 500; letter-spacing: 2px; opacity: .7; margin-top: 3px; }
.dots { display: flex; gap: 8px; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.dot.active { background: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-2); color: #cfd6e0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.4fr; gap: 34px; padding: 54px 24px 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand > p { font-size: 13.5px; color: #a9b4c2; margin-bottom: 14px; max-width: 260px; }
.footer-brand .green-tag { margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.socials a svg { width: 16px; height: 16px; color: #fff; }
.socials a:hover { background: var(--red); }

.footer-col h5 { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13.5px; color: #a9b4c2; transition: .15s; }
.footer-col ul li a:hover { color: var(--red); padding-left: 3px; }
.footer-contact ul li { display: flex; gap: 9px; font-size: 13.5px; margin-bottom: 12px; color: #bcc5d1; align-items: flex-start; }
.fc-ic { flex: 0 0 auto; }
.emergency { margin-top: 6px; font-size: 13px; color: #9fa9b7; }
.emergency a { color: var(--red); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 12.5px; color: #8b96a5; }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1, .hero .hero-title { font-size: 40px; }
}
@media (max-width: 960px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s ease; margin: 0; }
  .main-nav.open { transform: translateY(0); }
  .main-nav > ul { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav > ul > li { display: block; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
  .main-nav.open > ul > li { opacity: 1; transform: none; }
  .main-nav.open > ul > li:nth-child(1) { transition-delay: .05s; }
  .main-nav.open > ul > li:nth-child(2) { transition-delay: .1s; }
  .main-nav.open > ul > li:nth-child(3) { transition-delay: .15s; }
  .main-nav.open > ul > li:nth-child(4) { transition-delay: .2s; }
  .main-nav.open > ul > li:nth-child(5) { transition-delay: .25s; }
  .main-nav > ul > li > a { width: 100%; padding: 14px 12px; box-sizing: border-box; border-radius: 6px; }
  .main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { background: var(--red); }
  .nav-pill { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: auto; display: none; }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .services-head { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid--5 { grid-template-columns: 1fr 1fr 1fr; }
  .also-provide { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-details-wrap { grid-template-columns: 1fr; }
  .service-spy { display: none; }
  .service-detail-img { min-height: 240px; }
  .service-detail:nth-child(even) .service-detail-img,
  .service-detail:nth-child(even) .service-detail-copy { order: initial; }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .why-wrap { grid-template-columns: 1fr; }
  .why-left { clip-path: none; }
  .why-right { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; }
  .story-wrap { grid-template-columns: 1fr; }
  .story-img { min-height: 260px; }
  .process-flow { justify-content: center; }
  .process-arrow { display: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .wwd-grid { grid-template-columns: 1fr 1fr; }
  .pc-toggle { padding: 18px 20px; }
  .pc-list { padding: 0 20px 22px; }
  .why-industries-wrap { grid-template-columns: 1fr; }
  .why-photo { min-height: 220px; }
  .industries-col .industry-grid-compact { grid-template-columns: repeat(4, 1fr); }
  .brands-table-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-map-wrap { min-height: 300px; }
}
@media (max-width: 560px) {
  .section { padding: 50px 0; }
  .hero h1, .hero .hero-title { font-size: 32px; }
  .hero-features { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid--5 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-right { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .also-lists { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; }
  .about-stats .stat { flex-direction: column; text-align: center; gap: 8px; }
  .values-grid { grid-template-columns: 1fr; }
  .wwd-grid { grid-template-columns: 1fr; }
  .pc-item { min-width: 0; flex: 1 1 100%; }
  .industries-col .industry-grid-compact { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .page-hero-features { flex-direction: column; gap: 14px; }
  .page-hero-divider { display: none; }
}

/* ============================================================
   ENHANCEMENTS — motion, hover, marquee, CTA band, back-to-top
   (inspired by Vertiv / Tide Power patterns)
   ============================================================ */

/* ---- Compact sticky header on scroll ---- */
.site-header { transition: box-shadow .25s ease; }
.header-inner { transition: height .25s ease; }
.logo-mark svg { transition: width .25s ease; }
.site-header.scrolled { --header-h: 62px; }
.site-header.scrolled .logo-mark svg { width: 38px; }
.site-header.scrolled .logo-img { height: 34px; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Card image zoom on hover ---- */
.sc-img, .work-img, .also-img { transition: transform .45s ease; }
.service-card, .work-card { overflow: hidden; }
.service-card:hover .sc-img, .work-card:hover .work-img { transform: scale(1.07); }
/* keep the floating service icon crisp above the zooming image */
.service-card { position: relative; }

/* ---- Brand logo marquee ---- */
.brands-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-marquee .brands-row { display: flex; flex-wrap: nowrap; width: max-content; justify-content: flex-start; gap: 64px; margin-bottom: 0; animation: marquee 132s linear infinite; }
.brands-marquee:hover .brands-row { animation-play-state: paused; }
.brands-marquee .brand-logo { flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dots { display: none; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(100deg, var(--red) 0%, #b3131a 100%); color: #fff; position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 15px; margin-top: 6px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f2f2f2; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---- Back to top ---- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(228,24,28,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s ease; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.4); z-index: 90;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 26px; height: 26px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* ---- Toast notification ---- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
  z-index: 300; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #4ade80; flex: 0 0 auto; }

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid rgba(228,24,28,.5); outline-offset: 3px; border-radius: 4px; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .brands-marquee .brands-row { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

@media (max-width: 560px) {
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .brands-row { justify-content: flex-start; }
  .whatsapp-float { width: 46px; height: 46px; left: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ============================================================
   REAL PHOTOS — Services section
   ============================================================ */
.service-card .ph-generator   { background-image: url('../assets/img/power-generation-card-2.jpg'); background-position: 70% center; }
.service-card .ph-ups         { background-image: url('../assets/img/battery-solutions-card.jpg'); }
.service-card .ph-solar       { background-image: url('../assets/img/renewable-energy-card2.jpg'); }
.service-card .ph-datacenter  { background-image: url('../assets/img/data-centers-card.jpg'); }
.service-card .ph-ups2        { background-image: url('../assets/img/ups-card.jpg'); }
.service-card .ph-utility-td  { background-image: url('../assets/img/transmission-distribution-card.jpg'); }
.service-card .ph-surge       { background-image: url('../assets/img/surge-protection.jpeg'); }
.service-card .ph-dcpower     { background-image: url('../assets/img/dc-power-card.jpeg'); }
/* real photos don't need the dark bottom scrim used for labelled placeholders */
.service-card .sc-img::after { display: none; }

/* We Also Provide — real photos */
.also-provide .ph-tech-panel { background-image: url('../assets/img/we-also-provide-rooftop-solar.jpg'); }
.also-provide .ph-corridor   { background-image: url('../assets/img/we-also-provide-2.jpg'); }
.also-provide .also-img::after { display: none; }
.also-provide .also-img { box-shadow: var(--shadow-sm); transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease; cursor: pointer; }
.also-provide .also-img:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-md); position: relative; z-index: 2; }

/* Service detail write-ups — real photos */
.service-detail-img.ph-battery-detail  { background-image: url('../assets/img/battery-solutions-detail.jpg'); }
.service-detail-img.ph-solar-detail    { background-image: url('../assets/img/renewable-energy-solar-farm.jpg'); background-position: left top; }
.service-detail-img.ph-backup-detail   { background-image: url('../assets/img/power-generation-detail.jpg'); }
.service-detail-img.ph-datacenter-detail { background-image: url('../assets/img/data-centers-detail.jpg'); }
.service-detail-img.ph-ups-detail { background-image: url('../assets/img/ups-detail.jpg'); }
.service-detail-img.ph-surge-detail { background-image: url('../assets/img/surge-protection.jpeg'); }
.service-detail-img.ph-dcpower-detail { background-image: url('../assets/img/dc-power-detail.jpeg'); }
.service-detail-img.ph-utility-td-detail { background-image: url('../assets/img/transmission-distribution-card.jpg'); }
.service-detail-img::after { display: none; }

/* About page — real photos */
.story-img.ph-story { background-image: url('../assets/img/about.jpg'); }
.story-img::after { display: none; }
.service-card .ph-standby-gen  { background-image: url('../assets/img/generater-installation.webp'); }
.service-card .ph-ups-critical { background-image: url('../assets/img/power-protection.jpg'); }
.service-card .ph-solar-sys    { background-image: url('../assets/img/solar-commercial.jpg'); }
.service-card .ph-inverters    { background-image: url('../assets/img/renewable-energy-detail.jpg'); }
.service-card .ph-eng-maint    { background-image: url('../assets/img/engineering-service.jpg'); }
.why-photo.ph-why-choose { background-image: url('../assets/img/we-also-provide-2.jpg'); }
.why-photo::after { display: none; }

/* Our Work in Action — real photos */
.work-card .ph-ats      { background-image: url('../assets/img/transfer-switch-installation.jpg'); }
.work-card .ph-gen2     { background-image: url('../assets/img/commercial-generator-installation.jpg'); }
.work-card .ph-solar2   { background-image: url('../assets/img/solar-commercial.jpg'); }
.work-card .ph-critical { background-image: url('../assets/img/power-protection.jpg'); }
.work-card .ph-work-datacenter { background-image: url('../assets/img/work-data-center.jpeg'); }
.work-card .ph-work-inverter1  { background-image: url('../assets/img/work-power-conversion.jpeg'); }
.work-card .ph-work-inverter2  { background-image: url('../assets/img/work-inverter-2.jpeg'); }
.work-card .ph-work-ats3       { background-image: url('../assets/img/ats3.jpeg'); }
.work-card .ph-work-ups2       { background-image: url('../assets/img/work-ups-2.jpeg'); }
.work-card .ph-work-ups3       { background-image: url('../assets/img/work-ups-3.jpeg'); }
.work-card .ph-work-hybrid-inverter { background-image: url('../assets/img/work-hybrid-inverter.jpg'); }
.work-card .ph-work-mv-overhead     { background-image: url('../assets/img/work-mv-overhead-distribution.jpg'); background-position: center 30%; }
.work-card .ph-work-commercial-pv   { background-image: url('../assets/img/work-commercial-solar-pv.jpg'); }
.work-card .ph-work-ground-pv       { background-image: url('../assets/img/work-ground-mount-solar-pv.jpg'); }
.work-card .work-img::after { display: none; }

/* ============================================================
   ENQUIRY MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(7,17,34,.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; background: #fff; width: 100%; max-width: 460px; border-radius: var(--radius);
  padding: 32px 28px 28px; box-shadow: var(--shadow-md); max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--slate); margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft); border: 0; color: var(--slate); display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }
#enquiryForm { display: flex; flex-direction: column; }
.modal-note { font-size: 12px; color: var(--slate); margin-top: 16px; }

/* ============================================================
   FLOATING-LABEL FORM FIELDS (enquiry modal + contact form)
   ============================================================ */
.field { position: relative; margin-top: 24px; }
.field:first-child { margin-top: 12px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--ink);
  padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none;
  resize: vertical; background: #fff; box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { padding-right: 34px; appearance: auto; }
.field label {
  position: absolute; left: 2px; top: 11px; font-size: 14px; color: var(--slate);
  pointer-events: none; transition: top .2s ease, font-size .2s ease, color .2s ease; margin: 0;
}
.field .req { color: var(--red); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field select ~ label {
  top: -18px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--red);
}
.field select:required:invalid ~ label { top: 11px; font-size: 14px; font-weight: 400; color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,24,28,.12); }
.field-icon { position: absolute; right: 12px; top: 9px; font-size: 15px; font-weight: 700; line-height: 1; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.field.valid .field-icon { opacity: 1; color: #1a9c56; }
.field.valid .field-icon::before { content: "\2713"; }
.field.invalid .field-icon { opacity: 1; color: var(--red); }
.field.invalid .field-icon::before { content: "\2715"; }
.field.valid input, .field.valid select, .field.valid textarea { border-color: #1a9c56; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }

/* Dark variant — used on the navy contact-form card */
.field--dark input, .field--dark select, .field--dark textarea { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.field--dark select option { color: var(--ink); }
.field--dark label { color: #9aa6b7; }
.field--dark input:focus ~ label, .field--dark input:not(:placeholder-shown) ~ label,
.field--dark textarea:focus ~ label, .field--dark textarea:not(:placeholder-shown) ~ label,
.field--dark select ~ label { color: #ff8a8d; }
.field--dark select:required:invalid ~ label { color: #9aa6b7; }
.modal-submit { margin-top: 16px; justify-content: center; width: 100%; border: none; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--red); z-index: 999; pointer-events: none; }

/* ============================================================
   HERO SCROLL CUE (homepage)
   ============================================================ */
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); color: #fff;
  display: grid; place-items: center; animation: heroBounce 2s ease-in-out infinite; transition: border-color .2s ease;
}
.hero-scroll-cue:hover { border-color: #fff; }
.hero-scroll-cue svg { width: 18px; height: 18px; }
@keyframes heroBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; } }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: rgba(228,24,28,.3); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq-toggle-ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--red);
  display: grid; place-items: center; transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq-toggle-ic svg { width: 14px; height: 14px; }
.faq-item.open .faq-toggle-ic { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 22px 20px; font-size: 14.5px; color: var(--slate); line-height: 1.65; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

/* ============================================================
   PROJECT GALLERY EMPTY STATE
   ============================================================ */
.work-empty-msg { text-align: center; color: var(--slate); font-size: 14.5px; padding: 30px 0; }
.work-empty-msg a { color: var(--red); font-weight: 600; }

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.mobile-cta-bar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: 60px; }
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; box-shadow: 0 -6px 20px rgba(16,24,40,.12);
  }
  .mobile-cta-bar a {
    flex: 1; text-align: center; padding: 16px 10px; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 14px;
  }
  .mobile-cta-bar .mcb-call { color: var(--ink); background: var(--bg-soft); }
  .mobile-cta-bar .mcb-enquire { color: #fff; background: var(--red); }
  .whatsapp-float, .to-top { bottom: 78px; }
}

/* ============================================================
   LANGUAGE SWITCHER (Google Translate)
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); }
.lang-switch svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lang-switch select { font: 600 13px 'Inter', sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.lang-switch select:hover { border-color: var(--red); }
.lang-gt-hidden { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.translate-note { text-align: center; font-size: 12px; color: #8b96a5; padding: 0 24px 14px; margin: 0; }
@media (max-width: 960px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
.logo { flex: 0 0 auto; }
@media (min-width: 961px) and (max-width: 1180px) {
  .header-inner { gap: 10px; }
  .main-nav > ul > li > a { font-size: 14px; padding: 0 8px; }
  .header-cta { padding: 11px 16px; font-size: 14px; }
  .lang-switch svg { display: none; }
  .lang-switch select { padding: 7px 4px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .logo-img { height: 38px; }
}
@media (max-width: 960px) {
  .header-inner { gap: 10px; }
  .lang-switch svg { display: none; }
  .lang-switch select { padding: 6px 4px; font-size: 12px; max-width: 92px; }
}
@media (max-width: 420px) {
  .logo-img { height: 38px; }
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slider { display: grid; grid-template-rows: 1fr auto; }
.hero-slide { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .3s, transform .7s ease .3s, visibility 0s; }
.hero-slide .hero-btns .btn { padding: 13px 24px; }
.hero-controls { grid-area: 2 / 1; display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.hero-arrow, .hero-pause { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.hero-arrow:hover, .hero-pause:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .ic-play { display: none; }
.hero-pause.is-paused .ic-pause { display: none; }
.hero-pause.is-paused .ic-play { display: block; }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s ease, background .3s ease; }
.hero-dot:hover { background: rgba(255,255,255,.75); }
.hero-dot.is-active { width: 30px; background: var(--red); }
.hero-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg.is-active .hero-bg-photo { animation: heroZoom 9s ease-out forwards; }
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-bg { transition-duration: .01s; transition-delay: 0s; }
}
@media (max-width: 560px) {
  .hero-slide .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-controls { margin-top: 24px; gap: 10px; }
}
