/*
Theme Name: Al-Tiqaniyat Teal
Theme URI: https://www.al-tiqaniyat.com/
Author: Al-Tiqaniyat
Description: Custom redesign theme for Al-Tiqaniyat â€” IT solutions & systems integration. Teal on dark grey, animated network hero, scroll reveals. Covers Home, About, Services, Industries and Contact templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: altiqaniyat
*/

/* ============ Tokens ============ */
:root {
  --ink: #16191d; /* dark grey base */
  --ink-2: #1d2127; /* raised surface */
  --ink-3: #242931;
  --line: #2c323b;
  --teal: #14b8a6;
  --teal-hi: #2dd4bf;
  --teal-deep: #0e7c70;
  --teal-dim: rgba(20, 184, 166, 0.14);
  --accent2: #a78bfa; /* violet contrast accent */
  --accent2-deep: #8b5cf6;
  --accent2-dim: rgba(167, 139, 250, 0.16);
  --paper: #edf1f1; /* light sections */
  --white: #ffffff;
  --txt: #c9d0d6; /* body on dark */
  --txt-dim: #8c96a0;
  --txt-ink: #262b31; /* body on light */
  --txt-ink-dim: #5a6470;
  --ff-display: "Sora", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1680px;
  --r: 18px;
  --ease: cubic-bezier(0.22, 0.84, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--txt);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--teal-hi);
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px);
}

::selection {
  background: var(--accent2);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* mono eyebrow with teal tick â€” recurring structural device */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-hi);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
  flex: none;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    padding 0.35s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(22, 25, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--white);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(
    135deg,
    var(--teal-hi) 10%,
    var(--teal) 45%,
    var(--accent2-deep)
  );
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  font-family: var(--ff-mono);
}
.brand small {
  display: block;
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--txt-dim);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  color: var(--txt);
  font-size: 15px;
  padding: 9px 15px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover {
  color: var(--white);
}
.main-nav a:hover::after,
.main-nav li.current a::after {
  transform: scaleX(1);
}
.main-nav li.current a {
  color: var(--white);
}
.nav-cta {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
  background: var(--teal);
  border-radius: 9px;
  padding: 10px 18px !important;
  transition:
    background 0.25s,
    transform 0.25s;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--teal-hi);
  transform: translateY(-1px);
}
.lang-link {
  font-family: var(--ff-mono);
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--white);
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.btn .arr {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn-solid {
  background: var(--teal);
  color: var(--ink);
}
.btn-solid:hover {
  background: var(--teal-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(20, 184, 166, 0.5);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--accent2);
  color: #c9b8ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.45);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(
      900px 480px at 80% 10%,
      rgba(20, 184, 166, 0.1),
      transparent 60%
    ),
    var(--ink);
}
#net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 1;
}
.hero .anim-bg {
  z-index: 1;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.16) translate(-1.6%, -1.2%);
  }
}
.hero-img::after {
  /* readability + teal tint */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(22, 25, 29, 0.97) 10%,
      rgba(22, 25, 29, 0.86) 46%,
      rgba(14, 70, 64, 0.45) 100%
    ),
    linear-gradient(rgba(20, 184, 166, 0.1), rgba(22, 25, 29, 0.35));
}
.hero::after {
  /* bottom fade */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
  z-index: 2;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 137px;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-hi);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(20, 184, 166, 0.08);
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-hi);
  animation: blink 1.8s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0);
  }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  margin: 0 0 24px;
}
.hero h1 .tl {
  background: linear-gradient(92deg, var(--teal-hi), #7befe0 55%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hl-alt {
  background: linear-gradient(
    92deg,
    #d7c9ff,
    var(--accent2) 58%,
    var(--accent2-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 19px;
  max-width: 560px;
  color: var(--txt);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Animated hero object: IT Solutions hub ===== */
.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 420px;
}
#services {
  padding-top: 0;
}
.solutions-hub {
  position: relative;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  animation: bob 7s ease-in-out infinite;
  will-change: transform;
}
.solutions-hub svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(10px);
  }
}
.orb-tag {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt);
  background: rgba(29, 33, 39, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8);
}
.orb-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-hi);
}
/* Security â€” top */
.orb-tag.t1 {
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  animation: bob 5s ease-in-out infinite;
}
/* Cloud â€” top-right */
.orb-tag.t2 {
  top: 14%;
  right: -7%;
  animation: bob 6s ease-in-out infinite reverse;
}
.orb-tag.t2::before {
  background: var(--accent2);
}
/* Automation â€” right */
.orb-tag.t3 {
  top: 47%;
  right: -6%;
  animation: bob 5.5s ease-in-out 0.4s infinite;
}
/* Infrastructure â€” bottom-right */
.orb-tag.t4 {
  bottom: -1%;
  right: 0%;
  animation: bob 7s ease-in-out 0.6s infinite reverse;
}
.orb-tag.t4::before {
  background: var(--accent2);
}
/* Computing â€” bottom-left */
.orb-tag.t5 {
  bottom: -1%;
  left: 10%;
  animation: bob 6s ease-in-out 0.8s infinite;
}
/* Big Data â€” left */
.orb-tag.t6 {
  top: 65%;
  left: -14%;
  animation: bob 5.5s ease-in-out 0.2s infinite reverse;
}
.orb-tag.t6::before {
  background: var(--accent2);
}
/* Gaming â€” top-left */
.orb-tag.t7 {
  top: 16%;
  left: -7%;
  animation: bob 6.5s ease-in-out 1s infinite;
}
.hero-meta {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.hero-meta b {
  display: block;
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 2px;
}
.hero-meta b .plus {
  color: var(--accent2);
}

/* load-in sequence */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s var(--ease) forwards;
}
.rise.d1 {
  animation-delay: 0.08s;
}
.rise.d2 {
  animation-delay: 0.22s;
}
.rise.d3 {
  animation-delay: 0.36s;
}
.rise.d4 {
  animation-delay: 0.5s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ Sections ============ */
section {
  padding: clamp(76px, 8vw, 128px) 0;
}
.sec-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 16px;
}
.on-light h1,
.on-light h2,
.on-light h3,
.on-light h4 {
  color: #13171b;
}
.on-light {
  background: var(--paper);
  color: var(--txt-ink);
}
.on-light p {
  color: var(--txt-ink-dim);
}
.on-light .eyebrow {
  color: var(--teal-deep);
}

/* scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.rv-l {
  transform: translateX(-40px);
}
.rv-r {
  transform: translateX(40px);
}
.rv-l.in,
.rv-r.in {
  transform: none;
}

/* ============ Animated section backgrounds ============ */
.has-bg {
  position: relative;
  overflow: hidden;
}
.has-bg > .wrap {
  position: relative;
  z-index: 3;
}
.anim-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.anim-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  will-change: transform;
  animation: drift 20s ease-in-out infinite alternate;
}
.anim-bg .b1 {
  width: 560px;
  height: 560px;
  background: var(--teal);
  top: -18%;
  left: -10%;
}
.anim-bg .b2 {
  width: 460px;
  height: 460px;
  background: var(--teal-deep);
  bottom: -26%;
  right: -8%;
  animation:
    drift-b2 30s ease-in-out infinite,
    pulse-b2 12s ease-in-out infinite;
}
@keyframes drift-b2 {
  /* smooth looping figure-8 path */
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-90px, -60px, 0);
  }
  50% {
    transform: translate3d(-150px, 30px, 0);
  }
  75% {
    transform: translate3d(-60px, 80px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes pulse-b2 {
  0%,
  100% {
    filter: blur(85px);
  }
  50% {
    filter: blur(115px);
  }
}
.anim-bg .b3 {
  width: 320px;
  height: 320px;
  background: var(--accent2);
  top: 30%;
  right: 22%;
  opacity: 0.12;
  animation-duration: 18s;
  animation-delay: -3s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(90px, 70px, 0) scale(1.18);
  }
}
.anim-bg .grid-dots {
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(
    rgba(45, 212, 191, 0.16) 1.2px,
    transparent 1.2px
  );
  background-size: 36px 36px;
  animation: gridpan 48s linear infinite;
  -webkit-mask-image: radial-gradient(
    75% 80% at 50% 38%,
    #000 30%,
    transparent 78%
  );
  mask-image: radial-gradient(75% 80% at 50% 38%, #000 30%, transparent 78%);
}
@keyframes gridpan {
  to {
    background-position: 360px 180px;
  }
}

/* ============ Service cards (home) ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: rgba(29, 33, 39, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}
.svc-card::before {
  /* teal sweep on hover */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--teal-hi), var(--accent2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.svc-card:hover::before {
  transform: scaleY(1);
}
.svc-ico {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--teal-dim);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--teal-hi);
  transition: transform 0.35s var(--ease);
}
.svc-card:hover .svc-ico {
  transform: scale(1.08) rotate(-4deg);
}
.svc-ico svg {
  width: 24px;
  height: 24px;
}
.svc-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.svc-card p {
  font-size: 15.5px;
  color: var(--txt-dim);
}
.svc-link {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent2);
}
.svc-link:hover {
  color: #c9b8ff;
}

/* ============ Split section ============ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split .media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--ink-2);
}
.split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.split .media:hover img {
  transform: scale(1.045);
}
.split .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 184, 166, 0.16),
    transparent 45%
  );
}
.check-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 13px;
}
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 16px;
}
.check-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--teal-dim);
  display: grid;
  place-items: center;
  color: var(--teal-hi);
  font-size: 12px;
  margin-top: 3px;
  font-family: var(--ff-mono);
}
.check-list li:nth-child(even) .tick {
  background: var(--accent2-dim);
  color: var(--accent2);
}
.on-light .check-list .tick {
  background: rgba(14, 124, 112, 0.12);
  color: var(--teal-deep);
}
.on-light .check-list li:nth-child(even) .tick {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent2-deep);
}

/* ============ Partners marquee ============ */
.partners {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.marquee {
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee.in {
  opacity: 1;
  transform: none;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  will-change: transform;
  animation: scrollx 50s linear infinite;
  backface-visibility: hidden;
  perspective: 1000px;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes scrollx {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.p-logo {
  flex: none;
  height: 116px;
  width: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e3e8e8;
  border-radius: 20px;
  padding: 22px 34px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.p-logo img {
  max-height: 64px;
  max-width: 186px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter 0.4s var(--ease),
    opacity 0.4s var(--ease);
}
.p-logo:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
  border-color: rgba(20, 184, 166, 0.35);
}
.p-logo:hover img {
  filter: none;
  opacity: 1;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}
.stat {
  border-left: 2px solid var(--teal);
  padding-left: 20px;
}
.stat:nth-child(even) {
  border-color: var(--accent2);
}
.stat b {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat span {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

/* ============ Page hero (inner pages) ============ */
.page-hero {
  padding: 190px 0 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      700px 360px at 85% 0%,
      rgba(20, 184, 166, 0.12),
      transparent 60%
    ),
    radial-gradient(
      560px 300px at 15% 100%,
      rgba(139, 92, 246, 0.1),
      transparent 65%
    ),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
}
.page-hero p {
  max-width: 640px;
  margin-top: 18px;
  font-size: 18px;
}
.crumbs {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 22px;
}
.crumbs a {
  color: var(--txt-dim);
}
.crumbs a:hover {
  color: var(--teal-hi);
}
.crumbs .sep {
  color: var(--accent2);
  margin: 0 8px;
}

/* ============ Feature rows (services / industries) ============ */
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.f-row:last-child {
  border-bottom: 0;
}
.f-row.flip .f-media {
  order: 2;
}
.f-row.flip .f-media .tag {
  color: #c9b8ff;
  border-color: rgba(167, 139, 250, 0.4);
}
.f-row.flip .f-body .eyebrow {
  color: #c9b8ff;
}
.f-row.flip .f-body .eyebrow::before {
  background: var(--accent2);
}
.f-media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  position: relative;
}
.f-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.f-row:hover .f-media img {
  transform: scale(1.04);
}
.f-media .tag {
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(22, 25, 29, 0.82);
  backdrop-filter: blur(6px);
  color: var(--teal-hi);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
}
.f-body h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 16px;
}
.f-body p {
  margin-bottom: 14px;
}
.on-light .f-row {
  border-color: #d8dede;
}

/* ============ CTA band ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      640px 320px at 88% 12%,
      rgba(167, 139, 250, 0.24),
      transparent 65%
    ),
    linear-gradient(135deg, #0c5f56, var(--teal-deep) 42%, #3a2e73 130%);
  padding: clamp(80px, 8vw, 116px) 0;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}
.cta-band::before {
  width: 520px;
  height: 520px;
  right: -160px;
  top: -260px;
  border-color: rgba(199, 180, 255, 0.22);
}
.cta-band::after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -200px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 820px;
  margin: 0;
  color: #fff;
}
.cta-band .btn-solid {
  background: #fff;
  color: var(--teal-deep);
  flex: none;
}
.cta-band .btn-solid:hover {
  background: #e9fbf8;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.4);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.c-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.c-item .svc-ico {
  margin: 0;
  width: 46px;
  height: 46px;
}
.c-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.c-item p {
  font-size: 15px;
  color: var(--txt-dim);
}
.form-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
  display: block;
  margin-bottom: 8px;
}
input,
textarea,
select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 15.5px;
  padding: 13px 15px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px var(--accent2-dim);
}
textarea {
  min-height: 130px;
  resize: vertical;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 72px 0 34px;
}
.f-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 54px;
}
.f-cols h4 {
  font-size: 14px;
  font-family: var(--ff-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 18px;
}
.f-cols ul {
  list-style: none;
  display: grid;
  gap: 11px;
}
.f-cols ul a {
  color: var(--txt);
  font-size: 15px;
  transition:
    color 0.25s,
    padding-left 0.25s;
}
.f-cols ul a:hover {
  color: var(--teal-hi);
  padding-left: 5px;
}
.f-about p {
  font-size: 15px;
  color: var(--txt-dim);
  margin-top: 14px;
  max-width: 300px;
}
.f-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--txt-dim);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--txt-dim);
  transition: all 0.25s;
}
.socials a:hover {
  color: #fff;
  background: var(--accent2-deep);
  border-color: var(--accent2-deep);
  transform: translateY(-3px);
}
.socials svg {
  width: 16px;
  height: 16px;
}

/* ============ Misc ============ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  z-index: 90;
  background: var(--teal);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.35s var(--ease);
  font-size: 18px;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: var(--teal-hi);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-visual {
    min-height: 0;
    margin-top: 14px;
  }
  .orb-tag.t2,
  .orb-tag.t3 {
    right: 0;
  }
  .orb-tag.t6,
  .orb-tag.t7 {
    left: 0;
  }
  .solutions-hub {
    width: min(420px, 88vw);
  }
}
@media (max-width: 980px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .f-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .f-row.flip .f-media {
    order: 0;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .f-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(22, 25, 29, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    font-size: 22px;
    font-family: var(--ff-display);
  }
  .main-nav a::after {
    display: none;
  }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 100;
  }
}
@media (max-width: 760px) {
  .svc-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 140px 0 64px;
    min-height: 0;
  }
  /* ISSUE 2: nowrap on "smart technology" overflows narrow phones */
  .hero h1 .tl {
    white-space: normal;
  }
  /* ISSUE 3: stat row too spaced on phones */
  .hero-meta {
    margin-top: 44px;
    gap: 22px 30px;
  }
  .hero-meta b {
    font-size: 22px;
  }
  /* ISSUE 4: inner page heroes had desktop-sized top padding */
  .page-hero {
    padding: 144px 0 60px;
  }
  /* ISSUE 5: logo cards too large relative to small viewports */
  .p-logo {
    height: 94px;
    width: 204px;
    padding: 16px 24px;
    border-radius: 16px;
  }
  .p-logo img {
    max-height: 50px;
    max-width: 148px;
  }
  /* ISSUE 6: form card padding ate usable width */
  .form-card {
    padding: 26px 20px;
  }
  .orb-tag {
    font-size: 10.5px;
    padding: 8px 13px;
  }
  .f-cols {
    gap: 32px;
  }
  .cta-inner {
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  /* ISSUE 7: 2-col footer too cramped under 520px */
  .f-cols {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .check-list li {
    font-size: 15px;
  }
  .btn {
    padding: 14px 22px;
    font-size: 15px;
  }
  .hero-badge {
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 8px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv,
  .rise,
  .marquee {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
