:root {
  --color-primary: #0f4c81;
  --color-primary-dark: #092e50;
  --color-accent: #1e73be;
  --color-accent-light: #eaf4fc;
  --color-whatsapp: #20b765;
  --color-whatsapp-dark: #149653;
  --color-ink: #11283c;
  --color-text: #526272;
  --color-muted: #7e8a95;
  --color-border: #e4eaf0;
  --color-surface: #f5f8fb;
  --color-white: #fff;
  --shadow-sm: 0 10px 32px rgba(15, 48, 73, 0.07);
  --shadow-md: 0 20px 52px rgba(15, 48, 73, 0.13);
  --shadow-button: 0 14px 30px rgba(30, 115, 190, 0.28);
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition: 260ms ease;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

h1,
h2,
h3,
.brand-name,
.btn {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.04em;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(30, 115, 190, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 0.7rem 1rem;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  --bs-gutter-x: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.76rem 1.45rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.btn-primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-hover-bg: #1765aa;
  --bs-btn-hover-border-color: #1765aa;
  --bs-btn-active-bg: #135891;
  --bs-btn-active-border-color: #135891;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover,
.btn-whatsapp:hover {
  transform: translateY(-2px);
}

.btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.52);
  --bs-btn-hover-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-white);
  --bs-btn-hover-border-color: var(--color-white);
  backdrop-filter: blur(4px);
}

.btn-whatsapp {
  color: var(--color-white);
  background: var(--color-whatsapp);
  box-shadow: 0 15px 35px rgba(15, 95, 51, 0.3);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  color: var(--color-white);
  background: var(--color-whatsapp-dark);
}

.navbar {
  min-height: 76px;
  padding: 0.75rem 0;
  transition:
    min-height var(--transition),
    padding var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.brand-name {
  color: var(--color-white);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition: color var(--transition);
}

.brand-name strong {
  font-weight: 800;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  padding: 0.45rem 0.62rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.28);
}

.navbar-collapse {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(7, 32, 55, 0.96);
  box-shadow: var(--shadow-md);
}

.navbar .nav-link {
  margin: 0.05rem 0;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--color-white);
}

.nav-quote {
  width: 100%;
  margin-top: 0.7rem;
}

.navbar-scrolled {
  min-height: 70px;
  padding: 0.45rem 0;
  background: var(--color-white);
  box-shadow: 0 8px 28px rgba(11, 39, 61, 0.08);
}

.navbar-scrolled .brand-mark {
  color: var(--color-primary);
  border-color: rgba(15, 76, 129, 0.17);
  background: var(--color-accent-light);
}

.navbar-scrolled .brand-name {
  color: var(--color-primary);
}

.navbar-scrolled .navbar-toggler {
  border-color: rgba(15, 76, 129, 0.2);
}

.navbar-scrolled .navbar-toggler-icon {
  filter: invert(29%) sepia(28%) saturate(1488%) hue-rotate(169deg) brightness(89%);
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 720px;
  height: 100svh;
  max-height: 920px;
  overflow: hidden;
  color: var(--color-white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  transition: transform 80ms linear;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 28, 47, 0.45) 0%, rgba(7, 28, 47, 0.8) 76%, #092b49 100%),
    linear-gradient(90deg, rgba(5, 26, 45, 0.8), transparent 85%);
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 7.5rem;
  padding-bottom: 2rem;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow::before,
.section-kicker::before {
  width: 31px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  font-size: clamp(2.35rem, 8vw, 4.75rem);
  line-height: 1.08;
}

.hero-content p {
  max-width: 610px;
  margin-bottom: 2.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-actions .btn {
  width: 100%;
}

.hero-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 3.25rem;
  padding: 0.7rem 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

.highlight-item i {
  color: var(--color-white);
  font-size: 1.2rem;
}

.section {
  padding: 4.8rem 0;
}

.section-heading {
  max-width: 710px;
  margin: 0 auto 2.55rem;
  text-align: center;
}

.section-heading .section-kicker::before {
  display: none;
}

.section-heading h2,
.about h2,
.cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 6.5vw, 2.85rem);
  line-height: 1.18;
}

.section-heading p {
  margin: 0 auto;
  color: var(--color-text);
  font-size: 1rem;
}

.services {
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 115, 190, 0.055), transparent 30%),
    var(--color-white);
}

.service-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  border-color: rgba(30, 115, 190, 0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.service-image {
  display: block;
  height: 194px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-body {
  position: relative;
  padding: 2.25rem 1.3rem 1.35rem;
}

.service-icon {
  position: absolute;
  top: -24px;
  left: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  background: var(--color-white);
  border: 1px solid #ecf0f3;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.09);
  font-size: 1.25rem;
}

.service-body h3 {
  margin-bottom: 0.65rem;
  font-size: 1.16rem;
  letter-spacing: -0.035em;
}

.service-body p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.65;
}

.projects {
  background: var(--color-surface);
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: zoom-in;
}

.gallery-item::before {
  position: absolute;
  top: -70%;
  left: -45%;
  z-index: 2;
  width: 40%;
  height: 220%;
  content: "";
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(28deg) translateX(-180%);
  transition: transform 580ms ease;
}

.gallery-item:hover::before {
  transform: rotate(28deg) translateX(510%);
}

.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.project-label {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 3.7rem 1.25rem 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(transparent, rgba(6, 29, 48, 0.8));
  font-size: 0.8rem;
}

.project-label strong {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.about {
  background: var(--color-white);
}

.about-media {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1.15rem 1.2rem 0;
}

.about-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 64%;
  height: 52%;
  content: "";
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
}

.about-media picture {
  position: relative;
  z-index: 1;
  display: block;
  height: 530px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.about-badge {
  position: absolute;
  right: 0;
  bottom: 2.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 190px;
  padding: 0.95rem 1rem;
  color: var(--color-primary);
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-badge i {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.about h2 {
  max-width: 530px;
}

.about-copy {
  margin: 0 0 2rem;
}

.differentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.differentials li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.differentials i {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 11px;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5.2rem 0;
  color: var(--color-white);
  text-align: center;
}

.cta-media,
.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  background: linear-gradient(105deg, rgba(9, 46, 80, 0.96), rgba(30, 115, 190, 0.9));
}

.cta-content {
  max-width: 820px;
}

.section-kicker-light {
  color: rgba(255, 255, 255, 0.82);
}

.cta h2 {
  color: var(--color-white);
}

.cta p {
  max-width: 580px;
  margin: 0 auto 2.2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3vw, 1.12rem);
}

.site-footer {
  padding: 4.4rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.64);
  background: #081f33;
}

.footer-brand {
  margin-bottom: 1.2rem;
}

.footer-brand .brand-mark {
  background: rgba(255, 255, 255, 0.04);
}

.site-footer p {
  max-width: 360px;
  margin: 0;
  font-size: 0.91rem;
}

.footer-title {
  margin: 0 0 1.1rem;
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-contact i {
  color: #45d885;
}

.footer-contact:hover {
  color: #45d885;
}

.footer-note {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 3.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--color-white);
  background: var(--color-whatsapp);
  border-radius: 50%;
  box-shadow: 0 13px 30px rgba(18, 119, 63, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background-color var(--transition);
}

.floating-whatsapp i {
  font-size: 1.65rem;
}

.floating-whatsapp span {
  display: none;
}

.floating-whatsapp.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-whatsapp.is-visible:hover {
  color: var(--color-white);
  background: var(--color-whatsapp-dark);
  transform: translateY(-3px);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 5.45rem;
  z-index: 980;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 17, 29, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  width: min(1080px, 100%);
}

.lightbox figure {
  max-width: 100%;
  margin: 0;
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 8.5rem);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.38);
}

.lightbox figcaption {
  padding-top: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.23);
}

.lightbox-close {
  top: -0.4rem;
  right: 0;
  width: 43px;
  height: 43px;
  transform: translateY(-100%);
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.6rem;
}

.lightbox-next {
  right: 0.6rem;
}

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

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

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
  }

  .highlight-item {
    flex-direction: row;
    justify-content: center;
    font-size: 0.78rem;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .floating-whatsapp {
    width: auto;
    padding: 0 1.25rem;
    border-radius: 999px;
    gap: 0.6rem;
  }

  .floating-whatsapp span {
    display: inline;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 6.2rem 0;
  }

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

  .gallery-item {
    height: 330px;
  }

  .project-feature {
    grid-column: span 2;
    height: 390px;
  }

  .project-wide {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .navbar {
    min-height: 88px;
  }

  .navbar-collapse {
    margin-top: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .navbar .nav-link {
    position: relative;
    margin: 0 0.2rem;
    padding: 0.65rem 0.75rem;
  }

  .navbar .nav-link::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0.45rem;
    left: 0.75rem;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }

  .navbar .nav-link:hover::after {
    transform: scaleX(1);
  }

  .navbar-scrolled .nav-link {
    color: var(--color-text);
  }

  .navbar-scrolled .nav-link:hover,
  .navbar-scrolled .nav-link:focus-visible {
    color: var(--color-primary);
  }

  .nav-quote {
    width: auto;
    margin: 0 0 0 1.15rem;
    min-height: 48px;
  }

  .hero {
    align-items: center;
  }

  .hero-media {
    transform: scale(1.04);
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-container {
    padding-top: 8rem;
    padding-bottom: 0;
  }

  .hero-highlight {
    max-width: 790px;
    gap: 1rem;
    margin-top: 4.8rem;
    padding-top: 1.15rem;
  }

  .highlight-item {
    justify-content: flex-start;
    font-size: 0.86rem;
  }

  .project-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 235px;
    gap: 1.15rem;
  }

  .gallery-item {
    height: auto;
  }

  .project-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .project-tall {
    grid-row: span 2;
  }

  .project-wide {
    grid-column: span 2;
  }

  .cta {
    padding: 6.4rem 0;
  }
}

@media (min-width: 1200px) {
  .services .row {
    --bs-gutter-y: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

  .hero-media {
    transform: none !important;
  }
}
