/* Azulweb brand layer: the logo in key places and the two blues from the logo
   (#225b8a deep, #35a6e3 sky) across the site. Loaded last. */
:root {
  --aw-deep: #225b8a;
  --aw-sky: #35a6e3;
  --aw-sky-soft: #bfe3f7;
  --aw-mist: #eaf4fb;
}

/* Load curtain now presents the logo */
body::after {
  background:
    url("assets/logo-azulweb.svg") center / 112px no-repeat,
    radial-gradient(circle at 50% 50%, var(--aw-mist), var(--surface) 60%);
  animation-duration: 1700ms;
}

/* Header logo: a slow half-turn of the seal on hover */
.brand img {
  transition: transform 1400ms var(--sm-ease);
}

.brand:hover img {
  transform: rotate(-14deg) scale(1.06);
}

.brand span {
  background: linear-gradient(90deg, var(--aw-deep), var(--aw-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Primary buttons carry the logo's two blues */
.button {
  background: linear-gradient(120deg, var(--aw-deep) 0%, #2a74ad 55%, var(--aw-sky) 130%);
  background-size: 160% 100%;
  background-position: 0 0;
  transition: transform 900ms var(--sm-ease), background-position 1200ms var(--sm-ease), translate 1100ms var(--sm-ease), box-shadow 1100ms var(--sm-ease);
}

.button:hover {
  background: linear-gradient(120deg, var(--aw-deep) 0%, #2a74ad 55%, var(--aw-sky) 130%);
  background-size: 160% 100%;
  background-position: 100% 0;
  box-shadow: 0 18px 36px -14px rgba(53, 166, 227, .65);
}

/* Hero: a richer blue wash and the logo seal floating over the 3D scene */
.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(53, 166, 227, .22), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(34, 91, 138, .12), transparent 60%),
    var(--panel);
}

.aw-seal {
  position: absolute;
  top: -6px;
  left: 4%;
  z-index: 5;
  width: 112px;
  height: 112px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(53, 166, 227, .14),
    0 22px 40px -16px rgba(34, 91, 138, .55);
  transform: translateZ(120px);
  animation: aw-seal-float 9s var(--sm-ease-io) infinite alternate;
}

.aw-seal img {
  width: 100%;
  height: 100%;
  display: block;
}

.aw-seal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(53, 166, 227, .55);
  animation: aw-spin 40s linear infinite;
}

@keyframes aw-seal-float {
  from { transform: translateZ(120px) translateY(0) rotate(-6deg); }
  to { transform: translateZ(120px) translateY(-14px) rotate(5deg); }
}

@keyframes aw-spin { to { rotate: 360deg; } }

/* The check token app.js adds sat where the seal now lives */
.token-trust { left: auto; right: 4%; top: 6px; }

/* Large logo watermarks that turn very slowly */
.service-index,
.infra-chapter,
.connected-chapter {
  position: relative;
  isolation: isolate;
}

.aw-watermark {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  animation: aw-spin 140s linear infinite;
}

.aw-watermark--light {
  top: 50%;
  left: -150px;
  width: 520px;
  height: 520px;
  margin-top: -260px;
  opacity: .07;
}

.aw-watermark--dark {
  top: -120px;
  right: -140px;
  width: 620px;
  height: 620px;
  opacity: .09;
  filter: brightness(0) invert(1);
}

.aw-watermark--center {
  top: 50%;
  right: auto;
  left: 50%;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  opacity: .06;
  animation-direction: reverse;
}

/* Dark sections: deep navy drifting into the logo's blue */
.infra-chapter {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(53, 166, 227, .28), transparent 60%),
    linear-gradient(145deg, #12334e 0%, #194a73 60%, var(--aw-deep) 100%);
}

.commerce-dark {
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(53, 166, 227, .22), transparent 60%),
    linear-gradient(150deg, #12334e 0%, #1a4b74 70%, var(--aw-deep) 100%);
}

/* Eyebrow numbers become small brand-blue pills */
.category-eyebrow span {
  background: var(--aw-sky);
  border-color: var(--aw-sky) !important;
  color: #fff !important;
}

/* Contact: the big disc is now the Azulweb seal with an arrow chip */
.aw-disc {
  position: relative;
  background: #fff;
  border-right-color: var(--aw-sky-soft);
  border-bottom-color: #a9d8f2;
  box-shadow: 10px 20px 34px rgba(34, 91, 138, .18), 0 0 0 10px rgba(53, 166, 227, .1);
}

.aw-disc img {
  width: 82%;
  height: 82%;
  animation: aw-sway 8s var(--sm-ease-io) infinite alternate;
}

.aw-disc-arrow {
  position: absolute;
  right: -4px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aw-sky);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(34, 91, 138, .7);
  transition: translate 900ms var(--sm-ease), background 700ms var(--sm-ease);
}

.aw-disc-arrow svg {
  width: 55% !important;
  height: 55% !important;
  stroke-width: 2.2 !important;
  transform: rotate(-35deg);
}

.contact-sculpture:hover .aw-disc-arrow {
  translate: 6px -6px;
  background: var(--aw-deep);
}

@keyframes aw-sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

/* Contact block on a soft sky tint */
.contact-chapter {
  background:
    radial-gradient(70% 90% at 100% 50%, rgba(53, 166, 227, .2), transparent 60%),
    var(--aw-mist);
}

/* Footer signs off with the logo */
.aw-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aw-footer-brand img {
  width: 56px;
  height: 56px;
  flex: none;
  transition: transform 1400ms var(--sm-ease);
}

.aw-footer-brand:hover img { transform: rotate(-18deg); }

.footer .aw-footer-brand > span {
  display: block;
  color: var(--aw-deep);
  font-size: 18px;
  font-weight: 650;
}

/* WhatsApp button in the logo's blues */
.sm-wa {
  background: linear-gradient(120deg, var(--aw-deep), #2a7fbf);
}

.sm-wa:hover { background: var(--aw-sky); }

@media (max-width: 800px) {
  .aw-seal { width: 78px; height: 78px; padding: 6px; top: 4px; left: 2%; }
  .aw-watermark--light { width: 360px; height: 360px; left: auto; right: -140px; top: 40px; margin-top: 0; }
  .aw-watermark--dark { width: 420px; height: 420px; }
  .aw-watermark--center { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .aw-footer-brand img { width: 44px; height: 44px; }
}

body.motion-off .aw-seal { transform: translateZ(120px); }

@media (prefers-reduced-motion: reduce) {
  .aw-seal,
  .aw-seal::after,
  .aw-watermark,
  .aw-disc img { animation: none !important; }
}
