:root {
  --ink: #10131a;
  --muted: #5d6675;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #dce1ea;
  --brand-red: #ff2836;
  --brand-blue: #043c96;
  --brand-cyan: #00a6c8;
  --charcoal: #202735;
  --shadow: 0 22px 60px rgba(16, 19, 26, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Josefin Sans", Arial, sans-serif;
  line-height: 1.55;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--brand-red);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 19, 26, 0.08);
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 0.6rem 5vw 0.2rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand img {
  width: 70px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  padding: 0.35rem 5vw 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 0.15rem 0;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 5vw;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  padding: clamp(2.6rem, 6vw, 5.4rem) 5vw;
}

.hero {
  position: relative;
  min-height: calc(100vh - 136px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(16, 19, 26, 0.58), rgba(16, 19, 26, 0.76)),
    url("assets/about-us.avif") center/cover;
}

#particle-canvas,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-layer {
  pointer-events: none;
}

.layer-one {
  background: radial-gradient(circle at 18% 32%, rgba(255, 40, 54, 0.34), transparent 28%);
}

.layer-two {
  background:
    linear-gradient(118deg, transparent 0 45%, rgba(0, 166, 200, 0.18) 45% 52%, transparent 52%),
    linear-gradient(62deg, transparent 0 58%, rgba(4, 60, 150, 0.22) 58% 65%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  text-align: center;
  padding: 2rem 0 3.8rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.tagline {
  max-width: 670px;
  margin: 0 auto 1.6rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 40, 54, 0.24);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stat {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.45rem;
}

.stat span,
.feature-card p,
.service-card li,
.project-tile p,
.value span,
.contact-card p,
.faq-list p {
  color: var(--muted);
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: 1.6rem;
}

.masonry-grid,
.portfolio-grid {
  column-count: 3;
  column-gap: 1rem;
}

.feature-card,
.project-tile,
.service-card,
.contact-form,
.contact-card,
.faq-list,
.carousel {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card,
.project-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  break-inside: avoid;
}

.feature-card > div,
.feature-card:not(.tall),
.project-tile {
  padding: 1.2rem;
}

.feature-card.accent {
  background: var(--brand-blue);
  color: #fff;
}

.feature-card.accent p {
  color: rgba(255, 255, 255, 0.82);
}

.service-grid,
.value-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 1.3rem;
  border-top: 4px solid var(--brand-blue);
}

.service-card:nth-child(2) {
  border-color: var(--brand-red);
}

.service-card:nth-child(3) {
  border-color: var(--brand-cyan);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--brand-blue);
  font-size: 1.4rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.portfolio {
  background: #e9edf4;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 1.1 / 0.82;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
}

.testimonials {
  background: var(--charcoal);
}

.carousel {
  width: min(980px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  overflow: hidden;
}

.carousel-control {
  height: 100%;
  min-height: 190px;
  border: 0;
  background: #fff;
  color: var(--brand-blue);
  font-size: 2.2rem;
  cursor: pointer;
}

.slides {
  position: relative;
  min-height: 190px;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  align-content: center;
  padding: 2rem;
  transition: opacity 240ms ease;
}

.slide.active {
  opacity: 1;
}

.slide p {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.18;
}

.value {
  min-height: 130px;
  padding: 1.2rem;
  border-left: 4px solid var(--brand-red);
  background: #fff;
  border-radius: var(--radius);
}

.value strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-blue);
  font-size: 1.25rem;
}

.faq-list {
  overflow: hidden;
}

details {
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
}

details p {
  padding: 0 1.2rem 1.1rem;
}

.contact {
  background: #fff;
}

.contact-layout {
  grid-template-columns: 1.25fr 0.75fr;
}

.contact-form,
.contact-card {
  padding: 1.3rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  font: inherit;
  background: #fbfcff;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(0, 166, 200, 0.2);
  border-color: var(--brand-cyan);
}

.form-status {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--brand-red);
  font-weight: 700;
}

.contact-card {
  background: var(--charcoal);
  color: #fff;
}

.contact-card p,
.contact-card a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0.75rem;
}

.social-links {
  justify-content: flex-start;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.map {
  width: 100%;
  height: 330px;
  margin-top: 1rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .brand-strip {
    justify-content: flex-start;
  }

  .brand span {
    max-width: 210px;
    line-height: 1.1;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem 5vw 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .masonry-grid,
  .portfolio-grid {
    column-count: 2;
  }

  .service-grid,
  .value-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 56px;
  }

  .brand span {
    font-size: 0.95rem;
    max-width: 170px;
  }

  .hero {
    min-height: 78vh;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .masonry-grid,
  .portfolio-grid {
    column-count: 1;
  }

  .carousel {
    grid-template-columns: 42px 1fr 42px;
  }

  .slide {
    padding: 1.2rem;
  }
}
