/* ==========================================================================
   Futuron Web Solutions — Design System
   Palette derived from the Futuron Digital Strategy logo
   ========================================================================== */

:root {
  --teal: #00b4cc;
  --teal-dark: #008ea3;
  --teal-deep: #007187;
  --teal-light: #3ec8dc;
  --teal-soft: #e7f7fa;
  --teal-glow: rgba(0, 180, 204, 0.16);
  --navy: #163a5c;
  --navy-deep: #0c2740;
  --navy-mid: #1e4d78;
  --ink: #1a2c38;
  --muted: #5c6d7a;
  --line: #d7e3e8;
  --bg: #f5fafb;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #1e8a5a;
  --shadow-sm: 0 4px 14px rgba(22, 58, 92, 0.06);
  --shadow-md: 0 16px 40px rgba(22, 58, 92, 0.1);
  --shadow-lg: 0 28px 60px rgba(22, 58, 92, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --header-h: 72px;
  --container: 1140px;
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wa: #25d366;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* 16px minimum across the site */
html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  /* 16px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Enforce the 16px floor on every readable element */
p,
li,
a,
label,
input,
select,
textarea,
button,
blockquote,
address,
figcaption,
th,
td {
  font-size: 1rem;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */


:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(calc(100% - 1.5rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(2.4rem, 4.2vw, 3.75rem) 0;
}

.section--alt {
  background: var(--bg);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #14506e 100%);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy .lead,
.section--navy p {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.92fr 1.08fr;
    /* more room for the media side */
    gap: 3.5rem;
  }

  .split.reverse {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .split.reverse .split-media {
    order: -1;
  }
}

/* Split media image — wider, capped, and fluid on every screen */
.split-media {
  width: 100%;
  min-width: 0;
}

.split-media .media-frame {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

/* Narrower variant — Why Choose Us intro image */
.split-media--sm .media-frame {
  max-width: 450px;
}

.split-media .media-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* @media (min-width: 900px) {
  .split-media .media-frame img {
    aspect-ratio: 5 / 4;
  }
} */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 180, 204, 0.28);
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-mid);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--wa {
  background: var(--wa);
  color: var(--white);
}

.btn--wa:hover {
  filter: brightness(0.95);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* backdrop-filter creates a containing block for fixed children, which breaks
   the mobile drawer. Disable it below the desktop breakpoint. */
@media (max-width: 1023px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0;
  /* compact header — alignment handled by flex centring */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.86;
}

/* Primary logo lockup */
.brand-logo {
  display: block;
  width: auto;
  height: 60px;
}

.site-footer .brand-logo {
  height: 65px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 50px;
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  display: flex;
  align-items: center;
}

.brand-o {
  width: 0.92em;
  height: 0.92em;
  margin: 0 0.04em 0.02em;
}

.brand-tag {
  margin-top: 0.28rem;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--teal);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--teal-dark);
}

.nav-link.is-active {
  color: var(--teal-dark);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Header controls sit comfortably inside the shorter bar */
.header-cta {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
}

.header-cta {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 39, 64, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s var(--ease), visibility 0s linear 0.34s;
  z-index: 1100;
}

/* Mobile nav close button (injected by JS) */
.nav-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-close:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: rotate(90deg);
}

@media (min-width: 1024px) {
  .nav-close {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(86vw, 360px);
    background: var(--white);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--ease), visibility 0s linear 0.42s;
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  /* Staggered link entrance */
  .nav.is-open .nav-list li {
    animation: navIn 0.42s var(--ease) both;
  }

  .nav.is-open .nav-list li:nth-child(1) {
    animation-delay: 0.06s;
  }

  .nav.is-open .nav-list li:nth-child(2) {
    animation-delay: 0.11s;
  }

  .nav.is-open .nav-list li:nth-child(3) {
    animation-delay: 0.16s;
  }

  .nav.is-open .nav-list li:nth-child(4) {
    animation-delay: 0.21s;
  }

  .nav.is-open .nav-list li:nth-child(5) {
    animation-delay: 0.26s;
  }

  .nav.is-open .nav-list li:nth-child(6) {
    animation-delay: 0.31s;
  }

  @keyframes navIn {
    from {
      opacity: 0;
      transform: translateX(18px);
    }
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-link {
    padding: 0.85rem 0.4rem;
    font-size: 1.05rem;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-mobile-cta {
    margin-top: auto;
    padding-top: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {

  .menu-toggle,
  .nav-overlay,
  .nav-mobile-cta {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    height: auto;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(2.4rem, 4.5vw, 3.75rem) 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 180, 204, 0.22), transparent 28%),
    linear-gradient(145deg, var(--navy-deep), var(--navy) 58%, #134b68);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.9rem;
}

.page-hero .eyebrow {
  color: var(--teal-light);
}

.page-hero .eyebrow::before {
  background: var(--teal-light);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 180, 204, 0.2), transparent 32%),
    linear-gradient(160deg, #0b2238 0%, var(--navy) 52%, #0f3d55 100%);
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

.rotator-line {
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  min-height: 2em;
}

.rotator-wrap {
  display: inline-block;
  position: relative;
  color: var(--teal-light);
  min-width: 16ch;
}

.rotator {
  display: inline-block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.rotator.is-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

@media (min-width: 960px) {
  .hero-frame img {
    height: 420px;
  }
}

.hero-badge {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-badge strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.hero-badge span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-float {
  position: absolute;
  top: -12px;
  right: -8px;
  background: var(--white);
  color: var(--navy);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-1 {
  width: 180px;
  height: 180px;
  background: rgba(0, 180, 204, 0.18);
  top: -40px;
  right: 8%;
}

.orb-2 {
  width: 120px;
  height: 120px;
  background: rgba(62, 200, 220, 0.12);
  bottom: 10%;
  left: -20px;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(-3.5rem, -5vw, -2.2rem);
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 204, 0.35);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.benefits {
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.benefits li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   Media blocks
   -------------------------------------------------------------------------- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  max-height: 440px;
}

/* --------------------------------------------------------------------------
   Why / values
   -------------------------------------------------------------------------- */
.feature-num {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

/* Why Futuron — redesigned numbered panels */
.why-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.why-card:hover,
.why-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 204, 0.4);
}

.why-card:hover::before,
.why-card:focus-within::before {
  transform: scaleX(1);
}

.why-index {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(0, 180, 204, 0.12);
  pointer-events: none;
  transition: color 0.35s var(--ease);
}

.why-card:hover .why-index {
  color: rgba(0, 180, 204, 0.22);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(140deg, var(--teal-light), var(--teal-deep));
  box-shadow: 0 10px 22px rgba(0, 180, 204, 0.28);
  margin-bottom: 1.1rem;
  transition: transform 0.35s var(--ease);
}

.why-card:hover .why-icon {
  transform: translateY(-3px) rotate(-4deg);
}

.why-card h3 {
  margin-bottom: 0.45rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.why-card .why-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Our Clients Projects
   -------------------------------------------------------------------------- */
.client-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
}

.client-thumb {
  position: relative;
  overflow: hidden;
}

.client-thumb img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.client-card:hover .client-thumb img {
  transform: scale(1.06);
}

.client-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 39, 64, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.client-card:hover .client-thumb::after {
  opacity: 1;
}

.client-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.client-body h3 {
  margin-bottom: 0.4rem;
}

.client-body p {
  color: var(--muted);
  font-size: 0.94rem;
}

.client-body .btn {
  margin-top: 1.1rem;
  align-self: flex-start;
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Testimonials marquee (continuous right-to-left auto scroll)
   -------------------------------------------------------------------------- */
/* .slider-* aliases keep the original markup working as a marquee */
.testimonial-slider {
  max-width: none;
}

.marquee,
.slider-viewport {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track,
.slider-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  transform: none;
  transition: none;
  animation: marqueeScroll 46s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track,
.testimonial-slider:hover .slider-track,
.testimonial-slider:focus-within .slider-track,
.testimonial-slider.is-paused .slider-track {
  animation-play-state: paused;
}

/* Slide wrappers shrink to the testimonial card width */
.slide {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  padding: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    /* Track holds two identical sets; shift exactly one set + one gap */
    transform: translateX(calc(-50% - 0.625rem));
  }
}

.testimonial {
  flex: 0 0 auto;
  width: min(88vw, 380px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 204, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }

  .marquee-track {
    animation: none;
  }
}

.testimonial .quote-mark {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 0.7;
  color: var(--teal);
  display: block;
  margin-bottom: 0.7rem;
}

.testimonial blockquote {
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.7;
}

.stars {
  display: flex;
  gap: 0.15rem;
  margin: 1rem 0 0.8rem;
  color: #f5a623;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-author strong {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.88rem;
}

.slider-controls {
  display: none;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.slider-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.slider-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   Process / timeline
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.process-step h3 {
  margin-bottom: 0.4rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.project-card {
  overflow: hidden;
  padding: 0;
}

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-family: var(--font-head);
  margin-bottom: 0.35rem;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0 1rem;
}

.chip {
  font-size: 0.75rem;
  background: var(--teal-soft);
  color: var(--navy);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.project-card.is-hidden {
  display: none;
}



/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

@media (min-width: 800px) {
  .cta-inner {
    grid-template-columns: 1.4fr auto;
  }
}

.cta-band h2 {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
  }
}

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.info-card h2,
.info-card h3 {
  color: var(--white);
}

.info-card p,
.info-card a {
  color: rgba(255, 255, 255, 0.82);
}

.info-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.4rem 0 1.6rem;
}

.info-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.2rem;
}

.socials {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.socials a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Contact page form matches the hero form exactly */
.form-card .js-contact-form .field {
  position: relative;
  padding-bottom: 14px;
}

.form-card .js-contact-form .field-error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  min-height: 0;
  display: block;
  font-size: 13px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.form-card .js-contact-form .field.is-invalid .field-error {
  opacity: 1;
}

.form-card .js-contact-form .form-grid {
  gap: 0.5rem;
}

.form-card .js-contact-form .btn {
  border-radius: 4px;
  min-height: 46px;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
  background: var(--white);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: #fff6f5;
}

/* Validation messages render at exactly 13px site-wide */
.field-error {
  min-height: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--danger);
  display: none;
}

.field.is-invalid .field-error {
  display: block;
  margin-top: 0.15rem;
}

.form-success {
  display: block;
  overflow: hidden;
  color: var(--success);
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.form-success.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Values list
   -------------------------------------------------------------------------- */
.value-card {
  padding: 1.4rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 912px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 473px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.site-footer .brand-name {
  color: var(--white);
}

.site-footer .brand-tag {
  color: var(--teal-light);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  max-width: 28ch;
}

.site-footer h3 {
  color: var(--white);
  font-size: 22px !important;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: grid;
  gap: 5px;
}

.footer-links a {
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--teal-light);
}

/* Full-width divider with a centred copyright line */
.footer-bottom {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.2rem clamp(1rem, 4vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  text-align: center;
}

.footer-bottom p {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 850;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 420px) {
  .brand-tag {
    letter-spacing: 0.18em;
    font-size: 0.52rem;
  }

  .brand-name {
    font-size: 1.02rem;
    letter-spacing: 0.1em;
  }

  .hero-float {
    right: 10px;
    top: -6px;
    font-size: 0.75rem;
    padding: 0.65rem 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.reveal.is-visible {
  animation: fadeUp 0.7s var(--ease) forwards;
}

.reveal.is-visible.delay-1 {
  animation-delay: 0.08s;
}

.reveal.is-visible.delay-2 {
  animation-delay: 0.16s;
}

.reveal.is-visible.delay-3 {
  animation-delay: 0.24s;
}

.reveal.is-visible.delay-4 {
  animation-delay: 0.32s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.mission-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h3 {
  margin-bottom: 0.5rem;
}

.panel p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Typography floor — nothing readable drops below 16px
   ========================================================================== */
.eyebrow,
.btn,
.nav-link,
.hero-badge span,
.hero-float,
.stat-card span,
.card p,
.card .card-link,
.benefits li,
.feature-num,
.why-card p,
.why-tag,
.client-body p,
.client-body .btn,
.testimonial blockquote,
.testimonial-author span,
.process-step p,
.project-cat,
.chip,
.filter-btn,
.info-item strong,
.field label,
.footer-copy,
.site-footer h3,
.footer-bottom,
.footer-bottom p,
.tech-name,
.tech-desc {
  font-size: 1rem;
}

/* Micro-labels keep their uppercase styling but gain readable size */
.eyebrow,
.project-cat,
.why-tag,
.info-item strong {
  letter-spacing: 0.1em;
}

.chip {
  padding: 0.3rem 0.7rem;
}

/* ==========================================================================
   Call to Action — redesigned
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: clamp(2.2rem, 4vw, 3.25rem) clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 180, 204, 0.28), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(53, 168, 200, 0.22), transparent 46%),
    linear-gradient(135deg, #0b2238 0%, var(--navy) 52%, #0f3d55 100%);
}

/* Full viewport width — spacing comes only from the band's internal padding */
.cta-band>.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Soft grid texture */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 78%);
}

/* Slow drifting glow */
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  right: -8%;
  top: -30%;
  background: radial-gradient(circle, rgba(0, 180, 204, 0.3), transparent 68%);
  filter: blur(10px);
  animation: ctaDrift 14s ease-in-out infinite alternate;
}

@keyframes ctaDrift {
  to {
    transform: translate3d(-4%, 10%, 0) scale(1.12);
  }
}

/* Centered stack: heading → paragraph → buttons */
.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cta-content {
  max-width: 46rem;
  margin-inline: auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 180, 204, 0.16);
  border: 1px solid rgba(74, 211, 230, 0.4);
  color: var(--teal-light);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cta-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 0 rgba(74, 211, 230, 0.7);
  animation: ctaPulse 2.4s ease-out infinite;
}

@keyframes ctaPulse {
  70% {
    box-shadow: 0 0 0 12px rgba(74, 211, 230, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 211, 230, 0);
  }
}

.cta-card h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  margin-bottom: 0.75rem;
}

.cta-card h2 .accent {
  background: linear-gradient(100deg, var(--teal-light), #8ef0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 40rem;
  margin-inline: auto;
}

/* Buttons sit side by side, centred as a group, and wrap when space runs out */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

/* Content-based width with a sensible floor — never full width */
.cta-actions .btn {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 200px;
  min-height: 50px;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .cta-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  margin-top: 0.9rem;
  flex-basis: 100%;
}

.cta-points {
  justify-content: center;
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.cta-points svg {
  color: var(--teal-light);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .cta-points {
    flex-direction: column;
    gap: 0.55rem;
  }
}

/* ==========================================================================
   Hero enquiry form
   ========================================================================== */
.hero-form-card {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 26px 60px rgba(4, 20, 35, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-form {
  width: 100%;
  max-width: 500px;
}

/* Every control stays inside the card */
.hero-form input,
.hero-form select,
.hero-form textarea,
.hero-form .btn {
  max-width: 100%;
  box-sizing: border-box;
}

/* Labels are visually hidden — placeholders carry the meaning,
   but screen readers still announce each field. */
.hero-form .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-form-head {
  margin-bottom: 10px;
}

.hero-form-head h2 {
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}

.hero-form-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-form .form-grid {
  gap: 0.85rem;
}

.hero-form .field {
  gap: 0.25rem;
}

.hero-form .field label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Compact fields — text must stay clearly visible while typing */
.hero-form input,
.hero-form select,
.hero-form textarea,
.form-card .js-contact-form input,
.form-card .js-contact-form select,
.form-card .js-contact-form textarea {
  padding: 0.6rem 0.7rem;
  min-height: 46px;
  /* taller, easier-to-tap fields */
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--white);
  opacity: 1;
}

.hero-form textarea,
.form-card .js-contact-form textarea {
  min-height: 84px;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
  color: #97a7b1;
  -webkit-text-fill-color: #97a7b1;
  opacity: 1;
}

/* The unselected "Select a service" option reads as a placeholder */
.hero-form select:has(option[value=""]:checked) {
  color: #97a7b1;
  -webkit-text-fill-color: #97a7b1;
}

.hero-form select option {
  color: var(--ink);
}

/* Browser autofill keeps the same readable colours */
.hero-form input:-webkit-autofill,
.hero-form input:-webkit-autofill:hover,
.hero-form input:-webkit-autofill:focus,
.hero-form select:-webkit-autofill,
.hero-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--white) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset;
}

.hero-form input:hover,
.hero-form select:hover,
.hero-form textarea:hover {
  border-color: #b9d3dc;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}



/* Zero-shift errors: the row is always reserved, only visibility changes.
   The message is absolutely positioned so long text can never grow the form. */
.hero-form .field {
  position: relative;
  padding-bottom: 16px;
  /* reserved lane for one line of 13px error text */
}

.hero-form .field-error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  min-height: 0;
  height: 14px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

.hero-form .field.is-invalid .field-error {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0;
}

.hero-form .field.is-invalid input,
.hero-form .field.is-invalid select,
.hero-form .field.is-invalid textarea {
  border-color: var(--danger);
  background: #fff8f7;
}

.hero-form .btn {
  width: 100%;
  margin-top: 1rem;
  min-height: 48px;
  border-radius: 4px;
}

.hero-form .form-success {
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.6rem;
  border-radius: 4px;
}

.hero-form-note {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 560px) {
  .hero-form .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 559px) {
  .hero-form-card {
    padding: 1.15rem;
  }
}

/* ==========================================================================
   Back to Top (left side)
   ========================================================================== */
.to-top {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 840;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(12, 39, 64, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
    visibility 0s linear 0.32s, background 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.to-top:hover {
  background: var(--teal);
  transform: translateY(-3px) scale(1.05);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .to-top {
    width: 44px;
    height: 44px;
    left: 0.8rem;
    bottom: 0.8rem;
  }

  .wa-float {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

/* ==========================================================================
   Technologies We Work With
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 620px) {
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tech-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.5rem 1rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal-deep));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 204, 0.38);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease);
}

.tech-card:hover .tech-logo {
  transform: translateY(-2px) scale(1.05);
  background: var(--teal-soft);
}

.tech-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tech-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.tech-desc {
  color: var(--muted);
  line-height: 1.5;
}

/* Horizontal scroll strip on small screens */
@media (max-width: 479px) {
  .tech-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.9rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scrollbar-width: thin;
  }

  .tech-card {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }

  .tech-grid::-webkit-scrollbar {
    height: 6px;
  }

  .tech-grid::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
  }
}