
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Poppins:wght@600;700;800&display=swap");

/* =========================================================
   AQUA FLOW COMPANY LTD
   Main Website Styles
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --p: #005b96;
  --n: #0f172a;
  --a: #ff8c42;
  --s: #f8fafc;
  --m: #64748b;
  --cyan: #0096c7;
  --light-blue: #67e8f9;
  --border: #e2e8f0;
  --text: #334155;
  --white: #ffffff;

  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--p);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--n);
  font-family: Poppins, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-top: 0;
}

ul {
  padding-left: 20px;
}

::selection {
  background: rgba(0, 150, 199, 0.18);
  color: var(--n);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(0, 150, 199, 0.35);
  outline-offset: 3px;
}


/* =========================================================
   GLOBAL CONTAINERS
   ========================================================= */

.container,
.two {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.surface {
  background: var(--s);
}

.centered {
  text-align: center;
}

.centered > p {
  max-width: 740px;
  margin: 15px auto;
}

.two > *,
.cards > *,
.service-list article > *,
.footer-grid > *,
.section-head > *,
.roles article > * {
  min-width: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: absolute;
  z-index: 100;
  width: 100%;
  color: #fff;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.utility {
  background: rgba(15, 23, 42, 0.67);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.74rem;
}

.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
}

.utility a {
  color: #fff;
  text-decoration: none;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 195px;
  height: 62px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.brand:hover img {
  transform: scale(1.025);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 2px;
  background: var(--a);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--light-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--light-blue);
}

.quote-nav,
.btn {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  background: var(--a);
  color: #fff;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.quote-nav:hover,
.btn:hover {
  transform: translateY(-2px);
  background: #f47b2c;
  box-shadow: 0 10px 24px rgba(0, 91, 150, 0.18);
}

.quote-nav {
  background: #fff;
  color: var(--p);
  font-size: 0.82rem;
}

.quote-nav:hover {
  background: #f8fafc;
  color: var(--p);
}

.btn:active,
.quote-nav:active,
.filters button:active,
.project-body button:active {
  transform: translateY(1px) scale(0.99);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.08);
}


/* =========================================================
   SCROLLED HEADER
   ========================================================= */

.site-header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled .utility {
  display: none;
}

.site-header.scrolled .nav-row {
  height: 74px;
}

.site-header.scrolling-down {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}


/* =========================================================
   HERO SECTIONS
   ========================================================= */

.hero,
.page-hero,
.project-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
  padding-top: 100px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.60)
    ),
    url("../images/home.jpg") center / cover no-repeat;
}

.page-hero {
  min-height: 500px;
  background:
    linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.91),
      rgba(15, 23, 42, 0.47)
    ),
    url("../images/about.jpeg") center / cover no-repeat;
}

.page-hero.drilling {
  background:
    linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.91),
      rgba(15, 23, 42, 0.47)
    ),
    url("../images/drilling.jpg") center / cover no-repeat;
}

.project-hero {
  min-height: 620px;
  background: linear-gradient(
    135deg,
    var(--n),
    #07577a
  );
  text-align: center;
}

.hero h1,
.page-hero h1,
.project-hero h1,
.navy h2,
.cta h2 {
  color: #fff;
}

.hero p,
.page-hero p,
.project-hero p {
  max-width: 680px;
  color: #dbe7ef;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: eyebrowPulse 4s ease-in-out infinite;
}

.hero .eyebrow {
  color: #a5f3fc;
}

.outline {
  margin-left: 9px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

.outline:hover {
  background: #fff;
  color: var(--p);
}


/* =========================================================
   HERO ANIMATION
   ========================================================= */

.hero-content,
.page-hero .container,
.project-hero .container {
  animation: heroEnter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::after,
.page-hero::after,
.project-hero::after,
.final-cta::after {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}

.hero::after {
  right: -15rem;
  bottom: -22rem;
}

.page-hero::after,
.project-hero::after {
  right: -18rem;
  top: -18rem;
}

.final-cta::after {
  left: -18rem;
  bottom: -20rem;
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(-28px, 18px, 0) rotate(12deg);
  }
}

@keyframes eyebrowPulse {
  0%,
  100% {
    opacity: 0.86;
  }

  50% {
    opacity: 1;
  }
}


/* =========================================================
   HERO STATISTICS
   ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 55px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stats > b {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 125px;
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
  line-height: 1;
  font-family: Poppins, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.stats > b + b {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stats > b > small {
  display: block;
  width: 100%;
  margin-top: 14px;
  color: #cbd5e1;
  font-family: Manrope, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   TWO COLUMN SECTIONS
   ========================================================= */

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: center;
}

.two > img {
  width: 100%;
  min-height: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.two p {
  color: var(--m);
}

.two li {
  margin: 8px 0;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}

.section-head > div {
  max-width: 720px;
}

.dark-link {
  display: inline-block;
  border: 1px solid rgba(0, 91, 150, 0.20);
  color: var(--p);
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}


/* =========================================================
   IMAGE STAT
   ========================================================= */

.image-stat {
  position: relative;
  overflow: hidden;
}

.image-stat > img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

.image-stat aside {
  position: absolute;
  right: -16px;
  bottom: -24px;
  width: 195px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13);
}

.image-stat strong {
  display: block;
  color: var(--p);
  font-family: Poppins, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.image-stat small {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}


/* =========================================================
   ICON LIST
   ========================================================= */

.icon-list {
  padding: 0;
  list-style: none;
}

.icon-list li {
  margin: 12px 0;
}

.icon-list li::first-letter {
  color: var(--cyan);
  font-weight: 800;
}


/* =========================================================
   GENERAL CARDS
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.cards article,
.roles article,
.info,
form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.cards img {
  display: block;
  max-width: 180px;
  max-height: 105px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.two-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.hover-card,
.service-cards article,
.featured article,
.why article,
.certs article,
.timeline article,
.roles article,
.trust-features article,
.trust-stats article {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  will-change: transform;
}

.hover-card:hover,
.service-cards article:hover,
.featured article:hover,
.why article:hover,
.certs article:hover,
.timeline article:hover,
.trust-features article:hover,
.trust-stats article:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
}


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-cards article i {
  color: var(--cyan);
  font-size: 1.6rem;
  font-style: normal;
}

.service-cards article a {
  font-weight: 800;
  text-decoration: none;
}


/* =========================================================
   FEATURED PROJECTS
   ========================================================= */

.featured article {
  padding: 0;
  overflow: hidden;
}

.featured .project-image {
  position: relative;
  width: 100%;
  height: clamp(250px, 21vw, 330px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #f1f5f9;
  isolation: isolate;
}

.featured .project-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  object-fit: cover !important;
  object-position: center center;
  background: transparent;
  border: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    transform 0.5s ease,
    filter 0.4s ease;
}

.featured article:hover .project-image img {
  transform: scale(1.045);
}

.featured article > div {
  padding: 22px;
}

.featured em {
  color: #15803d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.featured small {
  color: var(--m);
}


/* =========================================================
   WHY AQUA-FLOW
   ========================================================= */

.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.why article {
  padding: 24px;
}


/* =========================================================
   NAVY SECTIONS
   ========================================================= */

.navy {
  background: var(--n);
  color: #cbd5e1;
}

.navy h3 {
  color: #fff;
}


/* =========================================================
   BLUE STATISTICS BAND
   ========================================================= */

.stats-band {
  padding: 22px 0;
  background: var(--p);
}

.stats-band .stats {
  margin: 0;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials blockquote {
  max-width: 850px;
  margin: 35px auto 20px;
  color: var(--n);
  font-family: Poppins, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
}

.testimonials button {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}


/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certs article {
  padding: 40px;
}


/* =========================================================
   SERVICES PAGE
   ========================================================= */

.service-list {
  display: grid;
  gap: 100px;
}

.service-list article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-list article:nth-child(even) img {
  order: 2;
}

.service-list img {
  width: 100%;
  height: 400px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   PROJECT FILTERS
   ========================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.filters button,
.navy button {
  position: relative;
  overflow: hidden;
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.filters button::before {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  transform: translateX(-105%);
  transition: transform 0.3s ease;
}

.filters button:hover::before {
  transform: translateX(0);
}

.filters button:hover {
  border-color: var(--p);
}

.filters button.active {
  background: var(--p);
  color: #fff;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects article {
  cursor: pointer;
}

.projects article.hidden {
  display: none;
}

.projects h3 {
  font-size: 1rem;
}

.projects p {
  font-size: 0.84rem;
}

.project-cards {
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
}


/* =========================================================
   PROJECT IMAGES
   Normal project photography = COVER
   ========================================================= */

.project-image {
  position: relative;
  width: 100%;
  height: clamp(240px, 20vw, 340px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #e8eef3;
  isolation: isolate;
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;

  object-fit: cover !important;
  object-position: center center;

  background: transparent;
  border: 0;

  backface-visibility: hidden;
  transform: translateZ(0);

  transition:
    transform 0.5s ease,
    filter 0.4s ease;
}

/* Documents or images that need the complete image visible */
.project-image.contain img {
  object-fit: contain !important;
  background: #f8fafc;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}


/* =========================================================
   PROJECT BODY
   ========================================================= */

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}

.project-body span {
  color: #0077c2;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.project-body dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 3px 8px;
  font-size: 0.77rem;
}

.project-body dt {
  color: var(--m);
  font-weight: 800;
}

.project-body dd {
  margin: 0;
}

.project-body p {
  font-size: 0.82rem;
}

.project-body button {
  width: 100%;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--p);
  background: #fff;
  color: var(--p);
  font-weight: 800;
  cursor: pointer;
}

.project-body button:hover {
  background: var(--p);
  color: #fff;
}

.project-body .docs {
  margin-top: 8px;
  background: var(--p);
  color: #fff;
}

.project-body .docs:hover {
  background: #004b7c;
}

.project-count {
  color: var(--m);
  font-weight: 800;
}


/* =========================================================
   AWARDS
   ========================================================= */

.awards-section {
  background: #fff;
}

.award-card {
  border-left: 4px solid var(--a) !important;
}

.award-card .award-status {
  color: var(--a);
}

.award-card .view-award {
  border-color: var(--a);
  color: var(--a);
}

.award-card .view-award:hover {
  background: var(--a);
  color: #fff;
}


/* =========================================================
   TRUST SECTION
   ========================================================= */

.trust-section,
.projects-final {
  padding: 90px 0;
  background: var(--n);
  color: #cbd5e1;
}

.trust-section h2,
.projects-final h2 {
  color: #fff;
}


/* =========================================================
   TRUST STATISTICS
   Desktop:
   Four statistics stay in one horizontal row.
   Number + label remain aligned.
   Contract value gets extra space.
   ========================================================= */

.trust-stats {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 0.9fr)
    minmax(0, 1.55fr)
    minmax(0, 0.9fr);

  align-items: center;

  width: 100%;
  max-width: 1120px;
  margin: 45px auto;

  gap: 0;
}

.trust-stats article {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  padding: 20px 14px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #cbd5e1;
  text-align: center;

  white-space: nowrap;
}

.trust-stats article + article {
  border-left: 0;
}

.trust-stats article b {
  display: inline-block;
  flex: 0 0 auto;

  margin: 0;

  color: var(--light-blue);

  font-family: Poppins, sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;

  white-space: nowrap;
}

.trust-stats article p {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;

  margin: 0;

  color: #cbd5e1;

  font-size: clamp(0.72rem, 0.85vw, 0.88rem);
  line-height: 1.3;
  font-weight: 700;

  text-align: left;
  white-space: nowrap;
}

/* Long contract value */
.trust-stats article:nth-child(3) {
  gap: 8px;
}

.trust-stats article:nth-child(3) b {
  font-size: clamp(0.9rem, 1.25vw, 1.42rem);
  letter-spacing: -0.03em;
}


/* =========================================================
   TRUST FEATURES
   ========================================================= */

.trust-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.trust-feature {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 250px;
  padding: 34px 30px;

  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px;

  box-shadow: none;
  color: #cbd5e1;

  text-align: left;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.trust-feature:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
  border-color: var(--cyan) !important;
}

.trust-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  margin-bottom: 22px;

  border-radius: 50%;

  background: rgba(103, 232, 249, 0.12);
  color: var(--light-blue);

  font-size: 22px;
  font-weight: 800;
}

.trust-feature h3 {
  display: block;

  margin: 0 0 14px;

  color: #fff;

  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;

  visibility: visible;
  opacity: 1;
}

.trust-feature p {
  display: block;

  margin: 0;

  color: #cbd5e1;

  font-size: 0.98rem;
  line-height: 1.7;

  visibility: visible;
  opacity: 1;
}


/* =========================================================
   PROJECT FINAL CTA
   ========================================================= */

.projects-final {
  background: linear-gradient(
    135deg,
    var(--n),
    var(--p)
  );
}

.projects-final .cards {
  margin-bottom: 35px;
}

.projects-final .cards article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.projects-final .cards h3 {
  color: #fff;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 35px;
  text-align: left;
}

.timeline article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
}

.timeline b {
  color: var(--a);
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}


/* =========================================================
   CAREERS
   ========================================================= */

.roles {
  display: grid;
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--border);
}

.roles article {
  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: none;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.roles article:last-child {
  border-bottom: 0;
}

.roles p {
  margin: 0;
}

.roles .btn {
  font-size: 0.8rem;
}


/* =========================================================
   FORMS
   ========================================================= */

form {
  display: grid;
  gap: 15px;
}

label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 5px;
  padding: 11px;

  border: 1px solid #cbd5e1;
  background: #fff;

  font: inherit;
  text-transform: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(0, 91, 150, 0.18);
  border-color: var(--p);
}

textarea {
  min-height: 150px;
  resize: vertical;
}


/* =========================================================
   CONTACT
   ========================================================= */

.info h4 {
  margin-bottom: 0;
}

.whatsapp-card {
  margin-top: 25px;
  padding: 24px;
  background: var(--p);
  color: #fff;
}

.whatsapp-card h3 {
  color: #fff;
}


/* =========================================================
   MAP
   ========================================================= */

.map {
  width: min(1160px, calc(100% - 40px));
  height: 420px;
  margin: 0 auto 90px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
  padding: 80px 20px;
  background: var(--p);
  color: #dbeafe;
  text-align: center;
}

.cta p {
  max-width: 800px;
  margin: 16px auto;
}

.final-cta {
  position: relative;

  padding: 95px 0;

  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.91),
      rgba(15, 23, 42, 0.53)
    ),
    url("../images/project1.jpeg") center / cover no-repeat;

  color: #fff;

  isolation: isolate;
  overflow: hidden;
}

.final-cta h2 {
  max-width: 700px;
  color: #fff;
}

.final-cta p:not(.eyebrow) {
  max-width: 700px;
  color: #e2e8f0;
}

.final-cta .outline {
  margin-left: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 65px 0 20px;
  background: var(--n);
  color: #94a3b8;
}

footer a {
  display: block;
  margin: 7px 0;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;

  width: min(1160px, calc(100% - 40px));
  margin: auto;

  gap: 30px;
}

.footer-grid img {
  width: 180px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-grid p {
  font-size: 0.85rem;
}

.copyright {
  display: flex;
  justify-content: space-between;

  margin-top: 35px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.10);

  font-size: 0.75rem;
}


/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */

.whatsapp {
  position: fixed;

  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 9999;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;
  color: #fff;

  text-decoration: none;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp svg {
  width: 31px;
  height: 31px;

  fill: currentColor;

  display: block;
}

.whatsapp:hover {
  transform: translateY(-5px) scale(1.06);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28);
}

.whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}


/* =========================================
   FOOTER COPYRIGHT
========================================= */

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .whatsapp {
    left: 16px;
    right: auto;
    bottom: 16px;

    width: 54px;
    height: 54px;
  }

  .whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .copyright {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

}


/* =========================================================
   PROJECT DIALOG / MODAL
   ========================================================= */

#project-dialog {
  width: min(900px, 92vw);
  max-width: 900px;
  max-height: 92vh;

  padding: 30px;

  border: 0;
  border-radius: 8px;

  background: #fff;

  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);

  animation: modalIn 0.25s ease both;
}

#project-dialog::backdrop {
  background: rgba(15, 23, 42, 0.60);
}

.close {
  float: right;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;

  background: #f1f5f9;
  color: var(--n);

  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.close:hover {
  background: #e2e8f0;
  transform: rotate(4deg);
}

#project-dialog #dialog-content {
  clear: both;
  padding-top: 10px;
}

#project-dialog #dialog-content img {
  display: block;

  width: auto;
  max-width: 100%;
  max-height: 75vh;

  margin: 0 auto;

  object-fit: contain;
}

#project-dialog #dialog-content iframe {
  width: 100%;
  height: 75vh;
  border: 0;
}

.modal-image {
  display: grid;

  min-height: 180px;
  place-items: center;

  margin-bottom: 22px;

  overflow: hidden;

  background: #f8fafc;
}

.modal-image img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* =========================================================
   CERTIFICATION / DOCUMENT IMAGES
   ========================================================= */

.cert-image {
  width: 100%;
  height: 220px;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f8fafc;
}

.cert-image img,
.certs article > img {
  width: 100%;
  height: 220px;

  max-width: 100%;
  max-height: 220px;

  object-fit: contain;
  object-position: center;

  display: block;
}

.certs article > img {
  margin: 0 auto 20px;
}


/* =========================================================
   PURPOSE-SPECIFIC IMAGE SYSTEM
   ========================================================= */

/* Photography */
.image-cover img,
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Documents, certificates and logos */
.image-contain img,
.cert-image img,
.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* =========================================================
   IMAGE ERROR STATE
   ========================================================= */

.image-error {
  min-height: 180px;

  background: linear-gradient(
    135deg,
    #e2e8f0,
    #f8fafc
  );

  object-fit: contain !important;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 0.7s ease var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1)
      var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   CONTACT FORM FEEDBACK
   ========================================================= */

#form-message {
  opacity: 0;
  min-height: 0;

  transform: translateY(8px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#form-message.show {
  opacity: 1;
  min-height: 24px;

  transform: translateY(0);
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

#back-to-top {
  position: fixed;

  right: 20px;
  bottom: 80px;

  z-index: 190;

  display: grid;

  width: 44px;
  height: 44px;
  padding: 0;

  border: 1px solid rgba(0, 91, 150, 0.15);
  border-radius: 50%;

  place-items: center;

  background: #fff;
  color: var(--p);

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);

  opacity: 0;
  pointer-events: none;

  transform: translateY(12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

#back-to-top:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.20);
  transform: translateY(-3px);
}


/* =========================================================
   TABLET - 800px
   ========================================================= */

@media (max-width: 800px) {

  /* Header */

  .main-nav,
  .quote-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav.open {
    position: absolute;

    top: 90px;
    left: 0;
    right: 0;

    z-index: 20;

    display: flex;
    flex-direction: column;

    max-height: calc(100vh - 90px);

    padding: 15px;

    overflow-y: auto;

    background: #fff;
    color: var(--n);

    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  }

  .main-nav.open a {
    width: 100%;
  }

  .site-header.scrolled .nav-row {
    height: 68px;
  }

  .site-header.scrolled .main-nav.open {
    top: 68px;
  }


  /* Hero */

  .hero {
    min-height: 680px;
  }

  .hero-content,
  .page-hero .container,
  .project-hero .container {
    animation-duration: 0.7s;
  }


  /* Hero statistics */

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

  .stats > b {
    min-height: 115px;
    padding: 25px 14px;
    font-size: 1.7rem;
  }

  .stats > b + b {
    border-left: 0;
  }

  .stats > b:nth-child(2),
  .stats > b:nth-child(4) {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }


  /* Columns */

  .two,
  .service-list article {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-list article:nth-child(even) img {
    order: 0;
  }


  /* Cards */

  .cards,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* Why */

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


  /* Timeline */

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


  /* Roles */

  .roles article {
    display: block;
  }

  .roles .btn {
    margin-top: 12px;
  }


  /* Section heading */

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }


  /* Image stat */

  .image-stat aside {
    right: 12px;
  }


  /* Services */

  .service-list img {
    height: 360px;
  }


  /* Featured projects */

  .featured .project-image {
    height: 300px;
  }


  /* Projects */

  .project-image {
    height: 300px;
  }


  /* Trust statistics */

  .trust-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;

    background: rgba(255, 255, 255, 0.10);
  }

  .trust-stats article {
    min-height: 90px;

    background: rgba(255, 255, 255, 0.04);

    border: 0;

    white-space: normal;
  }

  .trust-stats article b {
    font-size: 1.45rem;
  }

  .trust-stats article p {
    font-size: 0.82rem;
  }

  .trust-stats article:nth-child(3) b {
    font-size: 1.2rem;
  }


  /* Trust features */

  .trust-features {
    grid-template-columns: 1fr;
  }

  .trust-feature {
    min-height: auto;
  }


  /* Footer */

  .footer-grid {
    gap: 25px;
  }
}


/* =========================================================
   MOBILE - 500px
   ========================================================= */

@media (max-width: 500px) {

  .container,
  .two,
  .map,
  .footer-grid {
    width: min(100% - 30px, 1160px);
  }


  /* Header */

  .utility .container {
    padding: 6px 0;
  }

  .nav-row {
    height: 75px;
  }

  .brand img {
    width: 150px;
    height: 55px;
  }

  .main-nav.open {
    top: 75px;
  }


  /* Hero */

  .hero {
    min-height: 650px;
    padding-top: 90px;
  }

  .page-hero {
    min-height: 450px;
  }

  .project-hero {
    min-height: 540px;
  }


  /* Hero statistics */

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 35px;
  }

  .stats > b {
    min-height: 105px;
    padding: 22px 10px;
    font-size: 1.45rem;
  }

  .stats > b > small {
    margin-top: 10px;
    font-size: 0.6rem;
  }


  /* Sections */

  .section {
    padding: 65px 0;
  }


  /* Cards */

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


  /* Why */

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


  /* Images */

  .two > img {
    min-height: 0;
    height: 300px;
    aspect-ratio: 4 / 3;
  }

  .image-stat > img {
    height: 370px;
  }

  .service-list img {
    height: 300px;
    aspect-ratio: 4 / 3;
  }


  /* Featured projects */

  .featured .project-image {
    height: 240px;
    aspect-ratio: 4 / 3;
  }


  /* Project images */

  .project-image {
    height: 230px;
    aspect-ratio: 16 / 9;
  }


  /* Project information */

  .project-body {
    padding: 20px;
  }

  .project-body dl {
    grid-template-columns: 80px 1fr;
  }


  /* Trust statistics */

  .trust-stats {
    grid-template-columns: 1fr;

    gap: 10px;

    margin: 35px 0;

    background: transparent;
  }

  .trust-stats article {
    justify-content: flex-start;

    padding: 20px 18px;

    background: rgba(255, 255, 255, 0.04);

    text-align: left;

    white-space: normal;
  }

  .trust-stats article b {
    font-size: 1.35rem;
  }

  .trust-stats article p {
    font-size: 0.78rem;
    white-space: normal;
  }

  .trust-stats article:nth-child(3) b {
    font-size: 1rem;
  }


  /* Trust features */

  .trust-features {
    gap: 20px;
    margin-top: 35px;
  }

  .trust-feature {
    padding: 28px 24px;
  }

  .trust-feature h3 {
    font-size: 1.15rem;
  }


  /* CTA */

  .final-cta {
    padding: 75px 0;
  }

  .final-cta .outline {
    margin: 10px 0 0;
  }


  /* Copyright */

  .copyright {
    display: block;
  }

  .copyright span {
    display: block;
    margin: 5px 0;
  }


  /* Back to top */

  #back-to-top {
    right: 15px;
    bottom: 75px;
  }


  /* WhatsApp */

  .whatsapp {
    right: 15px;
    bottom: 18px;
  }


  /* Modal */

  #project-dialog {
    width: 96vw;
    max-width: 96vw;
    max-height: 95vh;
    padding: 15px;
  }

  #project-dialog #dialog-content iframe {
    height: 70vh;
  }

  #project-dialog #dialog-content img {
    max-height: 75vh;
  }


  /* Ambient decoration */

  .hero::after,
  .page-hero::after,
  .project-hero::after,
  .final-cta::after {
    width: 22rem;
    height: 22rem;
  }


  /* Certifications */

  .cert-image,
  .cert-image img,
  .certs article > img {
    height: 200px;
    max-height: 200px;
  }
}


/* =========================================================
   VERY SMALL PHONES - 360px
   ========================================================= */

@media (max-width: 360px) {

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

  .stats > b:nth-child(2),
  .stats > b:nth-child(4) {
    border-left: 0;
  }

  .stats > b + b {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stats > b {
    min-height: 100px;
  }

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

  .hero p {
    font-size: 0.95rem;
  }


  /* Trust statistics */

  .trust-stats article {
    gap: 7px;
  }

  .trust-stats article b {
    font-size: 1.15rem;
  }

  .trust-stats article p {
    font-size: 0.72rem;
  }

  .trust-stats article:nth-child(3) {
    flex-wrap: wrap;
  }

  .trust-stats article:nth-child(3) b {
    font-size: 0.82rem;
  }
}


/* =========================================================
   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;
  }

  .hero-content,
  .page-hero .container,
  .project-hero .container,
  .hero::after,
  .page-hero::after,
  .project-hero::after,
  .final-cta::after {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hover-card:hover,
  .service-cards article:hover,
  .featured article:hover,
  .why article:hover,
  .certs article:hover,
  .timeline article:hover,
  .roles article:hover,
  .trust-features article:hover,
  .trust-stats article:hover {
    transform: none;
  }

  .project-card:hover .project-image img,
  .featured article:hover .project-image img,
  .service-list article:hover img,
  .image-stat:hover > img,
  .cert-card:hover .cert-image img,
  .certs article:hover > img {
    transform: none;
  }

  .eyebrow,
  .filters button::before {
    animation: none !important;
    transition: none !important;
  }
}



.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  bottom: 10px;
  width: 260px;
  background: #fff;
  color: #222;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  font-size: 14px;
  line-height: 1.4;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 18px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}



@media (max-width: 768px) {
  .whatsapp-tooltip {
    width: 220px;
    font-size: 13px;
  }
}


.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 10px;
  opacity: 0.5;
}

/* COPYRIGHT AREA */
.copyright {
  margin-top: 50px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* Swisscom Credit */
.copyright a {
  position: relative;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  margin-left: 6px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.15)
  );

  transition: all 0.3s ease;
}

/* Hover Effect */
.copyright a:hover {
  color: #ffffff;
  transform: translateY(-2px);

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Footer Text */
.copyright span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .copyright {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .copyright span {
    justify-content: center;
  }
}