/* Tailored Electrical Solutions — TES Group
   Layout quality aligned to nchups patterns; TES brand colours retained. */

:root {
  --navy: #071a3a;
  --blue: #0c3d8c;
  --blue-mid: #1557b0;
  --orange: #e85d04;
  --orange-hot: #ff7a1a;
  --cream: #f7f4ef;
  --cream-deep: #ebe6dc;
  --orange-soft: rgba(232, 93, 4, 0.14);
  --ink: #071a3a;
  --muted: #5c677a;
  --line: rgba(7, 26, 58, 0.12);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(7, 26, 58, 0.12);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-solid,
.site-header.page-header {
  background: rgba(7, 26, 58, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 0.45rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
  line-height: 0;
  z-index: 2;
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(240px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
  margin-left: auto;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover,
.nav a:not(.nav-cta)[aria-current="page"] {
  color: #fff;
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem !important;
  background: var(--orange);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--orange-hot);
  color: #fff !important;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: 0.25s var(--ease);
}

/* Buttons */
.btn,
button.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover,
button.btn:hover {
  transform: translateY(-2px);
}

.btn:active,
button.btn:active {
  transform: translateY(0);
}

.btn-primary,
button.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-dark:hover {
  background: #0a244d;
  border-color: #0a244d;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row.center {
  justify-content: center;
  margin-top: 2rem;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: visible;
  isolation: isolate;
  background: var(--navy);
  text-align: left;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: heroDrift 22s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1%, -0.6%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 15, 34, 0.55) 0%, rgba(5, 15, 34, 0.32) 38%, rgba(5, 15, 34, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 15, 34, 0.78) 0%, rgba(5, 15, 34, 0.35) 52%, rgba(5, 15, 34, 0.45) 100%);
}

.page-hero .hero-scrim {
  background:
    linear-gradient(
      100deg,
      rgba(5, 15, 34, 0.9) 0%,
      rgba(7, 26, 58, 0.7) 42%,
      rgba(7, 26, 58, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(5, 15, 34, 0.4) 0%, transparent 40%, rgba(5, 15, 34, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: calc(var(--header-h) + 3.5rem) 0 5.75rem;
}

.hero .hero-content > * {
  opacity: 0;
  animation: riseIn 0.9s var(--ease) forwards;
}

.hero .hero-eyebrow {
  animation-delay: 0.12s;
}

.hero .hero-brand {
  animation-delay: 0.24s;
}

.hero .hero-lead {
  animation-delay: 0.38s;
}

.hero .btn-row {
  animation-delay: 0.5s;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-hot);
}

.hero-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--orange-hot);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 12ch;
}

.hero-brand span {
  display: block;
}

.hero-brand span:last-child {
  font-size: 0.78em;
  letter-spacing: 0.06em;
  opacity: 0.96;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0.035em;
  line-height: 0.92;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 1.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}

.hero .btn-row {
  justify-content: flex-start;
  gap: 0.85rem;
}

.hero .btn {
  min-height: 52px;
  padding: 0.9rem 1.4rem;
}

.hero .btn-ghost {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
}

.hero-trust {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(100% - 2.5rem, var(--max));
  transform: translate(-50%, 50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 1.1rem;
  padding: 1.15rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(7, 26, 58, 0.06);
  border-radius: 20px;
  box-shadow:
    0 18px 48px rgba(7, 26, 58, 0.14),
    0 4px 12px rgba(7, 26, 58, 0.05);
  color: var(--ink);
  opacity: 0;
  animation: riseInTrust 0.9s var(--ease) 0.62s forwards;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.hero-trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
}

.hero-trust-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero-trust-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-trust-item span:not(.hero-trust-icon) {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}

.hero + .section {
  padding-top: clamp(5.25rem, 9vw, 7.25rem);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseInTrust {
  from {
    opacity: 0;
    transform: translate(-50%, calc(50% + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, 50%);
  }
}

/* Inner page hero */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
  text-align: left;
  isolation: isolate;
}

.page-hero .hero-media img {
  object-position: center center;
}

.page-hero .hero-content {
  padding: calc(var(--header-h) + 2.75rem) 0 3rem;
  max-width: 42rem;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
  color: #fff;
}

.page-hero .hero-lead {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-dark .eyebrow {
  color: var(--orange-hot);
}

.section-dark .eyebrow::before {
  background: var(--orange-hot);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head.wide {
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 46rem;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-dark .prose p {
  color: rgba(255, 255, 255, 0.86);
}

.check-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: var(--orange);
}

.section-dark .check-list li {
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-step {
  border-top: 2px solid var(--orange);
  padding-top: 1rem;
}

.process-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-dark .process-step strong {
  color: #fff;
}

.section-dark .process-step p {
  color: rgba(255, 255, 255, 0.82);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a1f42;
}

.mini-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.84);
}

.section-dark .section-head h2,
.section-dark .section-head p {
  color: #fff;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.section-alt,
.section-muted {
  background: var(--cream-deep);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--navy);
}

.split-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-copy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.split-copy li {
  margin-bottom: 0.35rem;
}

.split-media {
  position: relative;
}

.split-media picture {
  display: block;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 42%;
  height: 42%;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

/* Service bands */
.service-bands {
  display: grid;
  gap: 1.25rem;
}

.service-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 320px;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}

.service-band:hover {
  transform: translateY(-4px);
}

.service-band:nth-child(even) .service-band-media {
  order: -1;
}

.service-band-copy {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-band-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.service-band-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.service-band-media {
  position: relative;
  min-height: 240px;
}

.service-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Service link grid (dark interactive tiles) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #fff;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.service-link:hover {
  border-color: var(--orange);
  background: rgba(232, 93, 4, 0.1);
  transform: translateY(-3px);
}

.service-link h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.service-link p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

.service-link span {
  margin-top: 1rem;
  color: var(--orange-hot);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.trust strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.trust span {
  opacity: 0.8;
  font-size: 0.92rem;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Feature list — top rule, not cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding-top: 1rem;
  border-top: 3px solid var(--orange);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-dark .feature {
  border-top-color: var(--orange-hot);
}

.section-dark .feature h3 {
  color: #fff;
}

.section-dark .feature p {
  color: rgba(255, 255, 255, 0.75);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: #122;
  border-radius: var(--radius);
}

.gallery figure:nth-child(1) {
  grid-column: span 7;
  min-height: 360px;
}

.gallery figure:nth-child(2) {
  grid-column: span 5;
  min-height: 360px;
}

.gallery figure:nth-child(3),
.gallery figure:nth-child(4),
.gallery figure:nth-child(5) {
  grid-column: span 4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(7, 26, 58, 0.85));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Projects page grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-item {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease);
}

.project-item:hover img {
  transform: scale(1.04);
}

.project-item .meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(7, 26, 58, 0.9));
  color: #fff;
}

.project-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.project-item p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.92rem;
}

.feature-grid + .service-grid {
  margin-top: 2.75rem;
}

.section:has(> .container > .stat-row) {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* CTA band — navy with soft orange radials */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  background-color: #071a3a;
  background-image:
    radial-gradient(circle at 12% 50%, rgba(232, 93, 4, 0.22), transparent 42%),
    radial-gradient(circle at 88% 50%, rgba(232, 93, 4, 0.1), transparent 38%);
  color: #fff;
  border-radius: var(--radius);
  text-align: left;
}

section.cta-band {
  display: flex;
  border-radius: 0;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.cta-band > div {
  flex: 1;
  min-width: min(100%, 28rem);
}

.cta-band .eyebrow {
  margin-bottom: 0.45rem;
  color: var(--orange-hot);
}

.cta-band .eyebrow::before {
  background: var(--orange-hot);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
  max-width: 22ch;
}

.cta-band p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.cta-band a.btn,
.cta-band .btn {
  flex-shrink: 0;
}

.cta-band a.btn-dark,
.cta-band .btn-dark {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.cta-band a.btn-dark:hover,
.cta-band .btn-dark:hover {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  color: #fff;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details a {
  color: var(--blue);
  font-weight: 700;
}

.contact-details h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-form .btn,
.contact-form button.btn {
  margin-top: 1.15rem;
  width: 100%;
  max-width: 20rem;
  appearance: none;
  -webkit-appearance: none;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form .btn:hover,
.contact-form button.btn:hover {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.form-status {
  margin-top: 0.85rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.ok {
  color: #0f7a3a;
}

.form-status.err {
  color: #b42318;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* About stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-dark .stat span {
  color: rgba(255, 255, 255, 0.75);
}

.team-list {
  display: grid;
  gap: 1rem;
}

.team-list article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.team-list h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
}

.team-list p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #050f22;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin: 0 0 1rem;
  padding: 0 0 0.7rem;
  border-bottom: 2px solid var(--orange);
  font-weight: 700;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1.05;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
}

/* Explore divider spans both link columns */
.site-footer h3:has(+ .footer-explore) {
  max-width: 26rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-explore {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.35rem;
  row-gap: 0.45rem;
  max-width: 26rem;
}

.footer-explore a {
  display: inline-block;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--orange-hot);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.45rem;
  color: #fff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--orange-hot);
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-hot);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-newsletter {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: none;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: none;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form button {
  appearance: none;
  border: 0;
  border-radius: 0.4rem;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s var(--ease);
}

.newsletter-form button:hover {
  background: var(--orange-hot);
}

.newsletter-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.newsletter-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.newsletter-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.newsletter-status.ok {
  color: #8fd4a0;
}

.newsletter-status.err {
  color: #ffb4a2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--orange-hot);
  font-weight: 700;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .brand-logo {
    height: 40px;
    max-width: min(190px, 52vw);
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(7, 26, 58, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
    border-radius: 0;
    border: 0;
    margin-left: 0;
    order: 3;
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .split,
  .service-band,
  .contact-layout,
  .footer-grid,
  .feature-grid,
  .project-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-explore {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .service-band:nth-child(even) .service-band-media {
    order: 0;
  }

  .gallery figure,
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(3),
  .gallery figure:nth-child(4),
  .gallery figure:nth-child(5) {
    grid-column: span 12;
    min-height: 240px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .mini-gallery img {
    height: 200px;
  }

  .hero .hero-content,
  .page-hero .hero-content {
    width: min(100% - 1.5rem, var(--max));
    margin-inline: auto;
  }

  .hero-content {
    padding-bottom: 7.5rem;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
    letter-spacing: 0.045em;
    max-width: none;
  }

  .hero .btn-row {
    width: 100%;
  }

  .hero .btn {
    flex: 1 1 auto;
  }

  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    transform: translate(-50%, 28%);
    animation: none;
    opacity: 1;
  }

  .hero-trust-item strong {
    font-size: 1.02rem;
  }

  .hero-trust-item span:not(.hero-trust-icon) {
    font-size: 0.76rem;
  }

  .hero + .section {
    padding-top: clamp(6.5rem, 28vw, 10rem);
  }

  .page-hero {
    min-height: 48vh;
    align-items: end;
  }

  .page-hero .hero-content {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2.5rem;
  }

  .split-media::after {
    inset: auto -0.5rem -0.5rem auto;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-trust {
    width: min(100% - 1.5rem, var(--max));
    gap: 0.85rem 0.65rem;
    padding: 0.9rem;
  }

  .hero-trust-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
  }

  .hero-trust-item {
    gap: 0.65rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero .hero-content > *,
  .hero-trust,
  .reveal,
  .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .hero-trust {
    transform: translate(-50%, 50%) !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Error pages */
.error-body .site-header {
  position: relative;
}

.error-page {
  min-height: min(70vh, 640px);
  display: grid;
  place-items: center;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 93, 4, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f3ec 0%, #ebe4d8 100%);
}

.error-panel {
  max-width: 36rem;
  text-align: center;
}

.error-panel .eyebrow {
  margin-bottom: 0.75rem;
}

.error-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--navy);
  margin: 0 0 1rem;
}

.error-panel > p {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32ch;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.error-help {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.error-help a {
  color: var(--orange);
  font-weight: 700;
}

.error-body .site-footer {
  padding: 1.5rem 0;
}

.error-body .footer-bottom {
  border-top: 0;
  padding-top: 0;
  justify-content: center;
  gap: 1rem;
}
