/* Universal Power Engineering & Facilities — Design System */
@import url('../assets/fonts/faces.css');

/* Light theme (default) */
:root,
html[data-theme='light'] {
  --navy: #101a4b;
  --navy-deep: #0a1030;
  --navy-mid: #1a2b5c;
  --red: #d1232a;
  --red-dark: #a81b21;
  --white: #ffffff;
  --off-white: #f5f6fa;
  --slate: #4a5168;
  --slate-light: #8b92a8;
  --line: rgba(16, 26, 75, 0.12);
  --green: #2e7d32;
  --yellow: #e8b923;

  --bg: #ffffff;
  --bg-alt: linear-gradient(180deg, #f5f6fa, #eef0f6 100%);
  --surface: #ffffff;
  --text: #101a4b;
  --text-muted: #4a5168;
  --header-bg: rgba(255, 255, 255, 0.94);
  --nav-link: #1a2b5c;
  --card-shadow: 0 16px 32px rgba(16, 26, 75, 0.1);
  --input-bg: #ffffff;
  --toggle-bg: #f0f2f8;
  --toggle-icon: #101a4b;
  --why-icon-bg: #ffffff;
  --filter-bg: #ffffff;
  --filter-active-bg: #101a4b;
  --filter-active-text: #ffffff;
  --code-bg: rgba(16, 26, 75, 0.08);
  --success-bg: #e8f5e9;
  --success-text: #1b5e20;
  --hero-overlay: linear-gradient(
      105deg,
      rgba(10, 16, 48, 0.96) 0%,
      rgba(10, 16, 48, 0.88) 34%,
      rgba(16, 26, 75, 0.45) 62%,
      rgba(209, 35, 42, 0.2) 100%
    ),
    linear-gradient(to top, rgba(10, 16, 48, 0.72) 0%, transparent 45%);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme — keep brand navy/red for banners; use semantic tokens for UI chrome */
html[data-theme='dark'] {
  --navy: #101a4b;
  --navy-deep: #070b1c;
  --navy-mid: #1a2b5c;
  --red: #ef4444;
  --red-dark: #dc2626;
  --white: #ffffff;
  --off-white: #141a32;
  --slate: #a8b0c8;
  --slate-light: #7d86a3;
  --line: rgba(232, 236, 255, 0.14);
  --green: #4ade80;
  --yellow: #fbbf24;

  --bg: #0b1020;
  --bg-alt: linear-gradient(180deg, #121933, #0b1020 100%);
  --surface: #151c35;
  --text: #e8ecff;
  --text-muted: #a8b0c8;
  --header-bg: #0b1020;
  --nav-link: #c5cef0;
  --card-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  --input-bg: #10162b;
  --toggle-bg: #1a2342;
  --toggle-icon: #e8ecff;
  --why-icon-bg: #1a2342;
  --filter-bg: #151c35;
  --filter-active-bg: #ef4444;
  --filter-active-text: #ffffff;
  --code-bg: rgba(232, 236, 255, 0.1);
  --success-bg: #12301f;
  --success-text: #86efac;
  --hero-overlay: linear-gradient(
      105deg,
      rgba(5, 8, 20, 0.92) 0%,
      rgba(8, 12, 28, 0.7) 42%,
      rgba(16, 26, 75, 0.35) 70%,
      rgba(180, 30, 40, 0.22) 100%
    ),
    linear-gradient(to top, rgba(5, 8, 20, 0.8) 0%, transparent 48%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme='dark'] {
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

html[data-theme='dark'] .site-header {
  background: #0b1020;
  border-bottom-color: rgba(232, 236, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--toggle-bg);
  color: var(--toggle-icon);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.theme-icon {
  display: none;
  line-height: 0;
}

html[data-theme='light'] .theme-icon-moon,
html[data-theme='dark'] .theme-icon-sun {
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--nav-link);
  position: relative;
  transition: color 0.2s var(--ease);
}

html[data-theme='dark'] .nav a {
  color: #d5dbf5;
}

html[data-theme='dark'] .nav a:hover,
html[data-theme='dark'] .nav a.active {
  color: #ff6b70;
}

.nav a:hover,
.nav a.active {
  color: var(--red);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy-deep);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

html[data-theme='dark'] .header-cta {
  background: var(--red);
}

/* Only show the in-menu CTA on mobile */
.header-cta.mobile-show {
  display: none;
}

.header-cta:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.header-cta.header-wa,
html[data-theme='dark'] .header-cta.header-wa {
  background: #128c7e;
}

.header-cta.header-wa:hover {
  background: #075e54;
}

.header-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.2s;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: #ffffff;
  color: #101a4b;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-whatsapp {
  background: #128c7e;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #075e54;
  transform: translateY(-2px);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: max(620px, calc(100dvh - var(--header-h)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  color: var(--white);
  overflow: hidden;
  max-width: 100%;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.hero-slider-viewport {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hero-slider-viewport::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-slide-label {
  position: absolute;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 4;
  padding: 0.35rem 0.7rem;
  background: rgba(10, 16, 48, 0.72);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  z-index: 1;
}

.hero-slider-credit {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 4;
  text-align: right;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.hero .hero-slide-label,
.hero .hero-slider-credit {
  margin: 0;
  max-width: 16rem;
  opacity: 1;
  animation: none;
}

.hero-slider-controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-slider-credit,
.hero-slide-label {
  z-index: 4;
}

.hero-ctrl,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 16, 48, 0.55);
  color: #ffffff;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-ctrl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-ctrl .icon-play {
  fill: currentColor;
  stroke: none;
}

.hero-ctrl [hidden] {
  display: none;
}

.hero-dot {
  width: 42px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 99px;
}

.hero-dot[aria-current='true'] {
  background: var(--red);
  border-color: var(--red);
  width: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4.5rem 0 5.5rem;
  max-width: 720px;
  min-width: 0;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1rem;
  animation: riseIn 0.8s var(--ease) 0.15s both;
}

.hero-brand em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero h1,
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  animation: riseIn 0.8s var(--ease) 0.3s both;
}

.hero-content > p {
  font-size: 1.1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  animation: riseIn 0.8s var(--ease) 0.45s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.8s var(--ease) 0.6s both;
}

@keyframes riseIn {
  from {
    transform: translateY(22px);
  }
  to {
    transform: translateY(0);
  }
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(209, 35, 42, 0.12), transparent 40%),
    linear-gradient(135deg, #070b1c 0%, #101a4b 55%, #152456 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.02) 12px,
    rgba(255, 255, 255, 0.02) 24px
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.page-hero p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.page-hero .eyebrow {
  color: #ffb4b7;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-navy {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-navy .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* ——— Service links (not hero cards) ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-link {
  display: block;
  padding: 1.5rem 1.35rem 1.4rem;
  border-top: 3px solid var(--red);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.service-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.service-link .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #101a4b;
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

html[data-theme='dark'] .service-link .icon {
  background: var(--red);
}

.service-link .icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.service-link h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.service-link p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-link .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Why us ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--why-icon-bg);
  border: 2px solid rgba(209, 35, 42, 0.35);
  color: var(--red);
  display: grid;
  place-items: center;
}

.why-item .icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.why-item h3 {
  color: var(--text);
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ——— CTA band ——— */
.cta-band {
  padding: 3.5rem 0;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 55%, #3a1220 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -40%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 35, 42, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.cta-inner h2 span {
  color: #ff6b70;
}

.cta-inner p {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Process ——— */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.25rem 0.5rem 0;
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.process-step h3 {
  color: var(--text);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ——— Product / project grids ——— */
.product-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-item,
.project-item {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.product-item:hover,
.project-item:hover {
  transform: translateY(-3px);
}

.media-frame {
  position: relative;
  background: #101a4b;
}

.product-item img,
.project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: #101a4b;
}

.media-note {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.45rem;
  background: rgba(10, 16, 48, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-item .body,
.project-item .body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.product-item h3,
.project-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.product-item p,
.project-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.enquire-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.enquire-link:hover {
  text-decoration: underline;
}

/* Sticky mobile call bar */
.mobile-callbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--navy);
  padding: 0.65rem 1rem;
  gap: 0.5rem;
  box-shadow: 0 -8px 24px rgba(10, 16, 48, 0.25);
}

.mobile-callbar a {
  flex: 1;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem;
  border-radius: var(--radius);
}

.mobile-callbar a.call {
  background: var(--red);
}

.mobile-callbar a.wa {
  background: #128c7e;
}

@media (max-width: 960px) {
  .mobile-callbar {
    display: flex;
  }

  body {
    padding-bottom: 68px;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--filter-bg);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--filter-active-bg);
  color: var(--filter-active-text);
  border-color: var(--filter-active-bg);
}

.product-item[hidden],
.project-item[hidden] {
  display: none;
}

/* ——— About split ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-visual {
  position: relative;
  min-height: 420px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 48px rgba(16, 26, 75, 0.18);
}

.page-hero code,
.section-head code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.section-head code {
  background: var(--code-bg);
  color: var(--text);
}

.footer-name {
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.2rem;
  display: block;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split-visual::after {
  content: 'Our work';
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--red);
  padding: 0.55rem 0.9rem;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.split-copy h2 {
  color: var(--text);
}

.split-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.check-list {
  margin-top: 1.25rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  color: var(--text);
}

.check-list li::before {
  content: '';
  width: 8px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: #101a4b;
  color: #ffffff;
  padding: 2rem 1.75rem;
}

html[data-theme='dark'] .contact-card {
  background: #151c35;
  border: 1px solid var(--line);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
}

.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a8e;
  margin-bottom: 0.15rem;
}

.contact-detail a:hover {
  color: #ffb4b7;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.hero-ctrl:focus-visible,
.hero-dot:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.field-error {
  color: var(--red-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

html[data-theme='dark'] .field-error {
  color: #fecaca;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  background: var(--success-bg);
  border-left: 3px solid var(--green);
  color: var(--success-text);
  font-weight: 600;
}

.form-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-card-actions {
  margin-top: 1.5rem;
}

.form-success.show {
  display: block;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ff8a8e;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 0.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-note p + p {
  margin-top: 0.45rem;
}

.footer-note a {
  color: #ffffff;
  margin-right: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bar {
  border-top: none;
  padding: 1.1rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: #ffffff;
  color: #101a4b;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.6rem;
}

.legal-page {
  max-width: 44rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.45rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero .hero-slide-label {
  font-size: 0.85rem;
}

.hero .hero-slider-credit {
  font-size: 0.75rem;
}

.legal-page a {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bar strong {
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* ——— Reveal on scroll ——— */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .service-grid,
  .product-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
    box-shadow: var(--card-shadow);
  }

  .header-actions .header-cta {
    display: none;
  }

  .header-actions .theme-toggle {
    display: grid;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    display: none;
  }

  .header-cta.mobile-show {
    display: inline-flex;
    margin-top: 0.75rem;
    justify-content: center;
  }

  .nav.open .header-cta.mobile-show {
    display: inline-flex;
  }

  .hero-content {
    padding-bottom: 5.5rem;
    max-width: 100%;
  }

  .hero-slider-credit {
    top: 0.75rem;
    left: 1rem;
    right: 1rem;
    text-align: left;
    max-width: none;
  }

  .hero-slider-controls {
    top: 2.75rem;
    bottom: auto;
    left: 0.75rem;
    right: 0.75rem;
    justify-content: flex-start;
  }

  .hero-slide-label {
    top: 6.5rem;
    bottom: auto;
    left: 1rem;
    right: auto;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .product-grid,
  .project-grid,
  .why-grid,
  .process,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 8.5rem 0 5.5rem;
  }

  .hero-dot {
    width: 8px;
    min-width: 8px;
  }

  .hero-slider-controls {
    max-width: calc(100vw - 1.5rem);
  }

  .hero-tagline,
  .hero-content > p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn:last-child {
    grid-column: auto;
  }

  .split-visual,
  .split-visual img {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slider-viewport {
    scroll-behavior: auto;
  }

  .js .reveal,
  .reveal,
  .hero-brand,
  .hero-tagline,
  .hero-content > p,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
