:root {
  --bg: #ffffff;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --soft: #f5f7fa;
  --primary: #ff6a2a;
  --primary-dark: #df4f12;
  --blue: #1457a8;
  --blue-dark: #0e3770;
  --whatsapp: #25d366;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: min(280px, 42vw);
  font-weight: 800;
  font-size: 1.35rem;
}

.brand img {
  width: 100%;
  height: 58px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: #344054;
}

.menu a:hover,
.menu a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-size: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

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

.btn-outline {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 48px 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.compact-hero {
  min-height: auto;
  padding: 54px 0 38px;
}

.portfolio-keywords {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.compact-hero + section {
  padding-top: 34px;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.95) contrast(1.05);
  pointer-events: none;
}

.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.84) 48%, rgba(255,255,255,0.72) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.map-hero::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: min(760px, 58vw);
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.58)), url("https://horizons-cdn.hostinger.com/412eb70c-1082-42da-a9a9-6c9e26b4a4c8/0f0295850b0e95a01ac0e7e602b3092a.png") center / cover no-repeat;
  border-radius: 999px;
  opacity: 0.24;
  filter: blur(10px);
  animation: soft-bg-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes soft-bg-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-26px, 18px, 0) scale(1.04);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.step {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.step strong {
  display: block;
  color: var(--primary);
  font-size: 1.4rem;
}

.step span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.hero-photo {
  position: relative;
}

.motion-frame {
  border-radius: var(--radius);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-slider {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-slider img {
  aspect-ratio: 4 / 3;
}

.hero-slider .slider-btn {
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.hero-slider:hover .slider-btn,
.hero-slider:focus-within .slider-btn {
  opacity: 1;
}

.motion-frame img {
  animation: slow-pan 18s ease-in-out infinite alternate;
  clip-path: inset(0 round 8px);
  transform-origin: center;
}

@keyframes slow-pan {
  0% {
    transform: scale(1.02) translate3d(-6px, 0, 0);
  }

  100% {
    transform: scale(1.08) translate3d(8px, -6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-frame img,
  .map-hero::before {
    animation: none;
  }

  .hero-bg-video {
    display: none;
  }
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.proof div {
  padding: 16px;
  background: var(--blue-dark);
  color: white;
  border-radius: var(--radius);
}

.proof strong {
  display: block;
  font-size: 1.35rem;
}

section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card,
.project-card,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.service-card {
  padding: 22px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.service-card li + li {
  margin-top: 5px;
}

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

.portfolio-grid-grouped {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.project-group {
  display: flex;
  flex-direction: column;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-slider {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.project-slider img {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-slider img.active {
  display: block;
}

.project-featured .project-slider img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
}

.slider-btn {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(11, 18, 32, 0.72);
  transform: translateY(-50%);
  font-size: 0;
  line-height: 1;
}

.slider-btn::before {
  font-size: 1.7rem;
  line-height: 1;
}

.slider-prev::before {
  content: "\2039";
}

.slider-next::before {
  content: "\203A";
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slide-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(11, 18, 32, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-body {
  padding: 16px;
}

.project-meta {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.86rem;
}

.project-body h3 {
  margin-top: 6px;
  font-size: 1.12rem;
}

.project-body p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.project-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.reviews-section {
  background: var(--soft);
}

.reviews-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.reviews-intro p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.review-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.review-head {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  gap: 12px;
  align-items: center;
}

.review-avatar,
.google-mark {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.review-avatar {
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: #fff0ea;
}

.google-mark {
  width: 28px;
  height: 28px;
  color: #4285f4;
  background: white;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.14);
  font-family: Arial, sans-serif;
}

.review-card h3 {
  font-size: 1rem;
}

.review-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stars {
  margin-top: 18px;
  color: #f6b300;
  letter-spacing: 1px;
  font-size: 1rem;
}

.review-card > p {
  margin: 14px 0 0;
  color: #344054;
  line-height: 1.58;
}

.reviews-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.cta-band {
  background: var(--blue-dark);
  color: white;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta-content p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-band {
  background: var(--soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions .btn {
  min-width: 148px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.quote-panel {
  padding: 24px;
}

.quote-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.quote-list div {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

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

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-alert {
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #ffd1bf;
  border-radius: var(--radius);
  color: #92310c;
  background: #fff3ee;
  font-weight: 700;
  line-height: 1.4;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.field-error {
  border-color: #df4f12;
  box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.16);
}

.form-submit {
  gap: 10px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.submit-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: white;
  border-radius: 999px;
  animation: submit-spin 0.75s linear infinite;
}

.is-submitting .submit-spinner {
  display: inline-block;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.thank-you {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.thank-you-panel {
  max-width: 720px;
}

.footer {
  padding: 40px 0;
  background: #0b1220;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.74);
}

.footer-brand {
  margin: 0 0 12px;
  color: white;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--whatsapp);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  font-size: 1.65rem;
  font-weight: 900;
}

.mobile-cta {
  display: none;
}

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

  .menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 14px;
  }

  .hero-grid,
  .quote-layout,
  .cta-content {
    grid-template-columns: 1fr;
  }

  .steps,
  .proof,
  .services,
  .reviews-grid,
  .portfolio-grid,
  .portfolio-grid-grouped,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .nav {
    height: 72px;
  }

  .brand {
    width: 178px;
  }

  .brand img {
    height: 46px;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 44px;
  }

  .hero-bg-video {
    opacity: 0.12;
  }

  section {
    padding: 52px 0;
  }

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

  .float-whatsapp {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: white;
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    min-height: 52px;
    padding: 0 10px;
  }
}
