/* A calm finish in the site's blue, mint, rose and lilac palette. */
:root {
  --sombra: 0 22px 60px rgba(8, 92, 150, .13);
}

body {
  background:
    radial-gradient(ellipse at 0 12%, rgba(255, 225, 105, .12), transparent 38%),
    radial-gradient(ellipse at 100% 40%, rgba(169, 142, 230, .08), transparent 42%),
    linear-gradient(180deg, #fffefa, #f5fcff 40%, #fff9fc 75%, #f6fcfa);
}

::selection {
  color: #074775;
  background: #c7f2ed;
}

.site-header {
  background:
    linear-gradient(100deg, rgba(25, 185, 230, .055), rgba(242, 90, 166, .04), rgba(80, 216, 199, .07)),
    rgba(255, 255, 255, .92);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(8, 92, 150, .08);
}

.motion-orb-drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section .eyebrow,
.split-section .eyebrow,
.page-hero .eyebrow,
.quick-contact-section .eyebrow,
.location-section .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(169, 142, 230, .17);
  border-radius: 999px;
  color: #815274;
  background: linear-gradient(120deg, rgba(255, 240, 248, .9), rgba(234, 253, 249, .8));
  font-weight: 700;
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .055em;
}

.section .eyebrow::before,
.split-section .eyebrow::before,
.page-hero .eyebrow::before,
.quick-contact-section .eyebrow::before,
.location-section .eyebrow::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bd6ca0;
  box-shadow: 0 0 0 4px rgba(242, 90, 166, .07);
}

.section-heading h2 {
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul), var(--menta) 52%, var(--lila));
  transform: scaleX(var(--heading-accent, 1));
  transform-origin: left center;
}

.section::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 185, 230, .15), rgba(169, 142, 230, .13), transparent);
  pointer-events: none;
}

.pastel-band {
  background:
    radial-gradient(ellipse at 4% 15%, rgba(80, 216, 199, .17), transparent 45%),
    radial-gradient(ellipse at 96% 85%, rgba(255, 225, 105, .22), transparent 42%),
    linear-gradient(145deg, #f0fbff, #fafffc 55%, #fffdf0);
}

.rose-band {
  background:
    radial-gradient(ellipse at 0 30%, rgba(242, 90, 166, .09), transparent 48%),
    radial-gradient(ellipse at 100% 90%, rgba(169, 142, 230, .13), transparent 45%),
    linear-gradient(135deg, #fff6fa, #f6fcff);
}

.card,
.service-card,
.step-card,
.team-card {
  box-shadow: 0 10px 32px rgba(8, 92, 150, .065), inset 0 1px 0 rgba(255, 255, 255, .9);
}

:is(.card, .service-card, .step-card, .team-card):nth-child(n) {
  border-top-width: 3px;
}

.sense-card,
.quick-action,
.contact-card,
.location-card {
  box-shadow: 0 10px 32px rgba(8, 92, 150, .065);
}

.sense-grid--photos .sense-photo {
  box-shadow: 0 12px 24px rgba(8, 92, 150, .13);
}

.button,
.form-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}

.button-primary,
.form-button {
  background: linear-gradient(120deg, #085c96, #087fa8);
  box-shadow: 0 8px 22px rgba(8, 92, 150, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.button-whatsapp {
  background: linear-gradient(120deg, #077757, #098567);
  box-shadow: 0 8px 22px rgba(7, 119, 87, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.button-soft {
  border: 1px solid rgba(25, 185, 230, .17);
  background: linear-gradient(120deg, #edfbff, #f6f1fc);
}

.button::after,
.form-button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(0) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.button:focus-visible,
.form-button:focus-visible {
  outline: 3px solid var(--azul-profundo);
  outline-offset: 4px;
}

.cta-band .button:focus-visible,
.cta-band .form-button:focus-visible {
  outline-color: #fff;
}

.button:active,
.form-button:active {
  transform: translateY(1px);
}

.faq-item {
  border-color: rgba(25, 185, 230, .18);
  box-shadow: 0 8px 24px rgba(8, 92, 150, .045);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq-item.is-open {
  border-color: rgba(25, 185, 230, .42);
  box-shadow: 0 14px 30px rgba(8, 92, 150, .09);
}

.faq-trigger {
  background: linear-gradient(120deg, #fff, #f3fcff 70%, #fff7fb);
}

.faq-trigger::after {
  background: linear-gradient(135deg, #0874ab, #8b6ebf);
}

.cta-band {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 92% 20%, rgba(80, 216, 199, .28), transparent 45%),
    radial-gradient(ellipse at 8% 100%, rgba(169, 142, 230, .25), transparent 50%),
    linear-gradient(120deg, #064c7e, #096f99 70%, #087f91);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(200px, 30vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  top: -65%;
  right: 10%;
}

.cta-band::after {
  bottom: -80%;
  right: -4%;
}

.site-footer {
  background:
    radial-gradient(ellipse at 0 0, rgba(169, 142, 230, .12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(80, 216, 199, .06), transparent 45%),
    #073e68;
}

.footer-grid a {
  transition: color .25s ease, translate .25s ease, background .25s ease;
}

@media (min-width: 861px) {
  .nav-links > a:not(.button) {
    position: relative;
  }

  .nav-links > a:not(.button)::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--azul), var(--menta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
  }

  .nav-links > a[aria-current="page"]:not(.button)::after,
  .nav-links > a:not(.button):hover::after,
  .nav-links > a:not(.button):focus-visible::after {
    transform: scaleX(1);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover,
  .form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(8, 92, 150, .2);
  }

  .button:hover::after,
  .form-button:hover::after {
    opacity: 1;
    transform: translateX(420%) skewX(-20deg);
    transition: transform .8s ease, opacity .2s ease;
  }

  .button:hover:active,
  .form-button:hover:active {
    transform: translateY(1px);
  }

  .sense-grid--photos .sense-photo {
    transition: scale .8s cubic-bezier(.22, 1, .36, 1);
  }

  .sense-grid--photos .sense-card:hover .sense-photo {
    scale: 1.025;
  }

  .footer-grid a:hover {
    color: #a8f2e8;
    translate: 3px 0;
  }

  .footer-credit {
    transition: translate .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  }

  .footer-credit:hover {
    translate: 0 -3px;
    border-color: rgba(255, 241, 169, .55);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 5px rgba(255, 241, 169, .08), 0 12px 26px rgba(2, 30, 52, .3);
  }

  .footer-credit:hover .footer-credit-icon {
    transform-origin: 50% 50%;
  }

  .footer-credit:hover .footer-credit-icon--sunflower {
    animation: sunflower-twirl .9s cubic-bezier(.22, 1, .36, 1);
  }

  .footer-credit:hover .footer-credit-icon--clover {
    animation: clover-twirl .9s cubic-bezier(.22, 1, .36, 1);
  }

  .footer-credit:hover .footer-credit-icons::before {
    animation: sparkle-glow .9s ease-out;
  }

  .footer-credit:hover .footer-credit-icons::after {
    animation: sparkle-star .9s ease-out;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .faq-item.is-open .faq-panel {
    animation: answer-reveal .45s ease both;
  }

  .footer-credit-icon {
    transform-origin: 50% 85%;
  }

  .footer-credit-icon--sunflower {
    animation: sunflower-meet 3.6s ease-in-out infinite;
  }

  .footer-credit-icon--clover {
    animation: clover-meet 3.6s ease-in-out infinite;
  }

  .footer-credit-icons::before {
    animation: sparkle-glow 3.6s ease-in-out infinite;
  }

  .footer-credit-icons::after {
    animation: sparkle-star 3.6s ease-in-out infinite;
  }
}

/* The sunflower and clover lean toward each other until they touch, then part. */
@keyframes sunflower-meet {
  0%, 100% { translate: 0 0; rotate: -10deg; }
  45%, 55% { translate: 2px 0; rotate: 12deg; }
}

@keyframes clover-meet {
  0%, 100% { translate: 0 0; rotate: 10deg; }
  45%, 55% { translate: -2px 0; rotate: -12deg; }
}

@keyframes sparkle-glow {
  0%, 38%, 66%, 100% { opacity: 0; scale: .3; }
  48% { opacity: 1; scale: 1; }
}

@keyframes sparkle-star {
  0%, 40%, 100% { opacity: 0; scale: .2; rotate: -45deg; }
  48% { opacity: 1; scale: 1; rotate: 0deg; }
  54% { opacity: .8; scale: .85; rotate: 15deg; }
  62% { opacity: 0; scale: .3; rotate: 40deg; }
}

@keyframes sunflower-twirl {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: 4px -4px; rotate: 200deg; }
  100% { translate: 0 0; rotate: 360deg; }
}

@keyframes clover-twirl {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: -4px -4px; rotate: -200deg; }
  100% { translate: 0 0; rotate: -360deg; }
}

@keyframes answer-reveal {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 640px) {
  .section-heading h2::after {
    width: 58px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button::after,
  .form-button::after {
    display: none;
  }

  .section-heading h2::after {
    transform: none;
  }

  .button:active,
  .form-button:active {
    transform: none;
  }
}
