:root {
  --ink: #102433;
  --muted: #61717b;
  --paper: #f3f7f9;
  --surface: #ffffff;
  --line: rgba(16, 36, 51, 0.14);
  --green: #2ea6e5;
  --brick: #176f9f;
  --ochre: #f0b45b;
  --steel: #556977;
  --shadow: 0 22px 60px rgba(16, 36, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 184px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 89px;
  object-fit: contain;
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  width: min(520px, 100vw);
  min-height: 100vh;
  padding: 120px clamp(34px, 7vw, 78px) 56px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(46, 166, 229, 0.94), rgba(16, 36, 51, 0.97) 58%),
    rgba(16, 36, 51, 0.96);
  box-shadow: -38px 0 80px rgba(10, 16, 13, 0.38);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms ease;
  visibility: hidden;
}

.main-nav a {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 850;
  line-height: 1;
  opacity: 0.84;
  transform: translateX(34px);
  transition: opacity 180ms ease, transform 360ms ease;
  transition-delay: calc(var(--item) * 55ms);
}

.main-nav a:hover {
  opacity: 1;
  transform: translateX(10px);
}

.main-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.main-nav.is-open a {
  transform: translateX(0);
}

.nav-toggle {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 7px;
  width: 48px;
  height: 38px;
  place-content: center;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 38px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(12px);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1d241f;
}

.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  z-index: 0;
}

.hero-video {
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 36, 51, 0.91) 0%, rgba(16, 36, 51, 0.68) 40%, rgba(16, 36, 51, 0.2) 75%),
    linear-gradient(0deg, rgba(16, 36, 51, 0.28), rgba(16, 36, 51, 0.05));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 80px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--ochre);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 3.85rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 58vh;
  align-items: end;
  overflow: hidden;
  background: #1d241f;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 36, 51, 0.91) 0%, rgba(16, 36, 51, 0.68) 40%, rgba(16, 36, 51, 0.2) 75%),
    linear-gradient(0deg, rgba(16, 36, 51, 0.28), rgba(16, 36, 51, 0.05));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 180px clamp(18px, 7vw, 96px) clamp(64px, 8vw, 104px);
  color: #fff;
  max-width: 920px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.page-hero-portfolio {
  background: linear-gradient(135deg, #2ea6e5 0%, #176f9f 50%, #102433 100%);
  padding: 180px clamp(18px, 7vw, 96px) clamp(64px, 8vw, 104px);
  color: #fff;
}

.page-hero-portfolio > div:not(.page-hero-overlay) {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.page-section {
  padding-top: clamp(48px, 7vw, 84px);
}

.page-contact {
  min-height: 56vh;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brick);
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green);
  color: #fff;
}

.trust-strip div {
  min-height: 128px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-strip strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.intro-content {
  max-width: 920px;
  margin: 0 auto;
}

.intro-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
  font-size: 1.08rem;
}

.intro-content p:last-of-type {
  margin-bottom: 28px;
}

.intro-content .button {
  display: inline-block;
}

.split,
.section-heading,
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.intro p,
.cta-section p {
  margin: 0;
  font-size: 1.08rem;
}

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

.text-link {
  justify-self: end;
  color: var(--brick);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.service-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e4f2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brick);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card span {
  color: var(--brick);
  font-weight: 900;
  font-size: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brick);
  display: inline-block;
  width: 32px;
}

.service-card h3,
.project-grid h3 {
  margin: 14px 0 10px;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.service-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process {
  background: #dcecf4;
}

.process h2 {
  max-width: 920px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.timeline div {
  position: relative;
  padding-top: 28px;
  border-top: 3px solid var(--brick);
}

.timeline strong {
  font-size: 1.08rem;
}

.projects {
  background: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 68px) clamp(24px, 4vw, 46px);
  margin-top: 48px;
}

.project-grid article {
  min-height: 0;
}

.portfolio-card {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.38 / 1;
  border-top-right-radius: 34px;
  background: var(--steel);
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-title {
  display: inline-block;
  margin-top: 26px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 850;
  line-height: 1.1;
}

.project-grid article p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.project-swatch {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    var(--steel);
}

.compact-link {
  display: inline-flex;
  justify-self: start;
  margin-top: 8px;
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 34px;
  background: rgba(7, 16, 23, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  grid-column: 2;
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  top: 21px;
  left: 9px;
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-nav {
  position: relative;
  width: 64px;
  height: 64px;
  opacity: 0.82;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.lightbox-nav::before {
  position: absolute;
  top: 21px;
  width: 22px;
  height: 22px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
}

.lightbox-prev::before {
  left: 24px;
  transform: rotate(-45deg);
}

.lightbox-next::before {
  right: 24px;
  transform: rotate(135deg);
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.swatch-a {
  background-color: var(--brick);
}

.swatch-b {
  background-color: var(--green);
}

.swatch-c {
  background-color: var(--ochre);
}

/* Content sections with text and image */
.content-section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-image {
  overflow: hidden;
}

.vertical-image {
  min-height: 600px;
}

.vertical-image img {
  height: 100%;
}

.rounded-image-left {
  display: block;
  width: 100%;
  height: auto;
  border-top-right-radius: 34px;
  border-bottom-left-radius: 34px;
  object-fit: cover;
}

.rounded-image-right {
  display: block;
  width: 100%;
  height: 100%;
  border-top-right-radius: 34px;
  border-bottom-right-radius: 34px;
  object-fit: cover;
}

.content-text h2 {
  margin-top: 0;
}

.content-text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0;
}

.services-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 34px;
  border-bottom-left-radius: 34px;
}

.section.services .content-split {
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.section.services .section-heading {
  display: block;
}

/* Parallax section */
.parallax-section {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: clamp(48px, 6vw, 86px) 0;
}

.parallax-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 36, 51, 0.88) 0%,
    rgba(16, 36, 51, 0.7) 50%,
    rgba(16, 36, 51, 0.88) 100%
  );
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.parallax-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 24px;
}

.parallax-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cta-section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fbfaf7;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  margin-top: 6px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brick);
  cursor: pointer;
}

.privacy-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.privacy-note a,
.privacy-label a {
  color: var(--brick);
  text-decoration: underline;
}

.whatsapp-badge {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9999;
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #35d06f 0%, #12a852 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(18, 168, 82, 0.35), 0 8px 18px rgba(12, 34, 27, 0.24);
  transform: translateY(18px) scale(0.86);
  opacity: 0;
  animation: whatsapp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards,
             whatsapp-float 3.2s ease-in-out 1.4s infinite;
}

.whatsapp-badge svg {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.whatsapp-badge__pulse {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(53, 208, 111, 0.55);
  border-radius: 50%;
  animation: whatsapp-pulse 2.1s ease-out 1.2s infinite;
}

.whatsapp-badge:active {
  transform: scale(0.96);
}

@keyframes whatsapp-rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsapp-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.82);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: #101612;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .main-nav {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }

  .whatsapp-badge {
    display: inline-flex;
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(40px);
  }

  .trust-strip,
  .service-grid,
  .timeline,
  .project-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .section-heading,
  .cta-section,
  .content-split,
  .section.services .content-split {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .vertical-image {
    min-height: 320px;
  }

  .vertical-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }

  .page-hero-content {
    padding-top: 130px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 36, 51, 0.9) 0%, rgba(16, 36, 51, 0.66) 70%, rgba(16, 36, 51, 0.42)),
      linear-gradient(0deg, rgba(16, 36, 51, 0.38), rgba(16, 36, 51, 0.02));
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .footer-details {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .timeline,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
    padding: 18px;
  }

  .lightbox-nav {
    width: 42px;
  }

  .trust-strip div {
    min-height: 104px;
  }

  .vertical-image {
    min-height: 240px;
  }

  .vertical-image img {
    height: 240px;
  }

  .page-hero-content {
    padding-top: 110px;
  }

  .rounded-image-left,
  .rounded-image-right {
    border-radius: 16px;
  }

}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .whatsapp-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .whatsapp-badge,
  .whatsapp-badge__pulse {
    animation: none;
  }

  .whatsapp-badge {
    opacity: 1;
    transform: none;
  }
}

/* ── Scroll reveal ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
