/* SavilTech — Contacto (#FFD60A) */

.page-contacto {
  --ct-gold: #ffd60a;
}

.page-contacto .text-gold {
  color: #ffd60a !important;
  text-shadow: 0 0 28px rgba(255, 214, 10, 0.35);
}

.ct-text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Banner fullwidth: ondas de sinal + foco (≠ equipa / blog / clientes) */
.page-contacto .ct-banner--fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(300px, 48vh, 520px) !important;
  display: block !important;
  align-items: stretch;
  overflow: hidden;
  background: #000;
}

.page-contacto .ct-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-contacto .ct-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform, filter;
  animation:
    ctBannerIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ctBannerSignal 18s ease-in-out 1.2s infinite alternate;
}

@keyframes ctBannerIn {
  0% {
    opacity: 0;
    filter: brightness(0.35) blur(4px);
    transform: scale(1.26);
  }
  100% {
    opacity: 1;
    filter: brightness(1) blur(0);
    transform: scale(1.12);
  }
}

@keyframes ctBannerSignal {
  0% {
    transform: scale(1.12);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.02);
  }
}

.page-contacto .ct-banner__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(0deg, rgba(255, 214, 10, 0.12), transparent);
  pointer-events: none;
  animation: ctWavesPulse 4s ease-in-out infinite;
}

@keyframes ctWavesPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.08); }
}

.page-contacto .ct-banner__pulse {
  position: absolute;
  top: 30%;
  right: 15%;
  width: 80px;
  height: 80px;
  z-index: 1;
  border: 2px solid rgba(255, 214, 10, 0.4);
  border-radius: 50%;
  animation: ctPulseRing 3s ease-out infinite;
  pointer-events: none;
}

.page-contacto .ct-banner__pulse::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255, 214, 10, 0.2);
  border-radius: 50%;
  animation: ctPulseRing 3s ease-out 1s infinite;
}

@keyframes ctPulseRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

.page-contacto .ct-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 85% 70% at 50% 100%, rgba(0, 0, 0, 0.92), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 45%, rgba(0, 0, 0, 0.65));
}

.page-contacto .ct-banner__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-contacto .ct-banner .section-tag {
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
}

.page-contacto .ct-banner__title {
  background: linear-gradient(135deg, #fff 40%, #ffd60a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-contacto .ct-banner__desc {
  color: rgba(255, 255, 255, 0.75);
}

/* Main */
.page-contacto .ct-main {
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 5vw, 64px);
  background: #000;
  position: relative;
}

.page-contacto .ct-main__glow {
  background: rgba(255, 214, 10, 0.05) !important;
}

/* Cards visuais */
.ct-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 52px);
}

.ct-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 214, 10, 0.18);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.ct-visual-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 36px rgba(255, 214, 10, 0.1);
}

.ct-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-visual-card:hover img {
  transform: scale(1.14);
}

.ct-visual-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  transition: background 0.45s ease;
}

.ct-visual-card:hover .ct-visual-card__overlay {
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.15) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.ct-visual-card__overlay i {
  font-size: 1.6rem;
  color: #ffd60a;
  margin-bottom: 8px;
  transform: translateY(8px);
  opacity: 0.8;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.ct-visual-card:hover .ct-visual-card__overlay i {
  transform: translateY(0) scale(1.15);
  opacity: 1;
}

.ct-visual-card__overlay span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
}

.ct-visual-card__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
  transition: left 0.7s ease;
}

.ct-visual-card:hover .ct-visual-card__shine {
  left: 130%;
}

/* Info + form */
.page-contacto .ct-layout {
  gap: 32px;
  margin-bottom: 0;
}

.page-contacto .ct-info__title {
  color: #fff;
  font-weight: 800;
}

.page-contacto .ct-info__desc {
  color: rgba(255, 255, 255, 0.7);
}

.page-contacto .ct-info__list li {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.page-contacto .ct-info__list li:hover {
  background: rgba(255, 214, 10, 0.06);
  border-color: rgba(255, 214, 10, 0.25);
  transform: translateX(8px);
}

.page-contacto .ct-info__icon {
  background: rgba(255, 214, 10, 0.12) !important;
  border-color: rgba(255, 214, 10, 0.35) !important;
  color: #ffd60a !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.page-contacto .ct-info__list li:hover .ct-info__icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 20px rgba(255, 214, 10, 0.2);
}

.page-contacto .ct-info__list a:hover {
  color: #ffd60a !important;
}

.page-contacto .ct-info__hours {
  border-color: rgba(255, 214, 10, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.page-contacto .ct-info__hours:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 10, 0.45);
}

.page-contacto .ct-info__hours i {
  color: #ffd60a !important;
}

.page-contacto .ct-form-wrap {
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid rgba(255, 214, 10, 0.2);
  transition: border-color 0.35s ease, box-shadow 0.45s ease;
}

.page-contacto .ct-form-wrap:hover {
  border-color: rgba(255, 214, 10, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.page-contacto .ct-form__title i {
  color: #ffd60a !important;
}

.page-contacto .ct-field label span {
  color: #ffd60a !important;
}

.page-contacto .ct-field__input {
  border-color: rgba(255, 214, 10, 0.15) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contacto .ct-field__input:focus-within {
  border-color: rgba(255, 214, 10, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.12);
}

.page-contacto .ct-field__input i {
  color: #ffd60a !important;
}

.page-contacto .ct-form__submit {
  background: linear-gradient(135deg, #ffd60a, #e6b800) !important;
  color: #0a0a0a !important;
  border: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-contacto .ct-form__submit:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(255, 214, 10, 0.35);
}

.page-contacto .ct-checkbox__box {
  border-color: rgba(255, 214, 10, 0.4) !important;
}

.page-contacto .ct-checkbox input:checked + .ct-checkbox__box {
  background: #ffd60a !important;
  border-color: #ffd60a !important;
}

.page-contacto .ct-form__success {
  color: #ffd60a;
  border-color: rgba(255, 214, 10, 0.3);
}

/* Link política de privacidade — sem sublinhado, hover animado */
.page-contacto .ct-checkbox__text a,
.ct-checkbox__text a.ct-privacy-link {
  text-decoration: none !important;
  color: #ffd60a;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.page-contacto .ct-checkbox__text a::after,
.ct-checkbox__text a.ct-privacy-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #ffd60a, #e6b800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-contacto .ct-checkbox__text a:hover,
.ct-checkbox__text a.ct-privacy-link:hover {
  color: #fff;
}

.page-contacto .ct-checkbox__text a:hover::after,
.ct-checkbox__text a.ct-privacy-link:hover::after {
  transform: scaleX(1);
}

/* Mapa fullwidth */
.ct-map-section--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 0 clamp(80px, 10vw, 110px);
  background: #000;
  position: relative;
}

.ct-map-section--full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.4), transparent);
}

.ct-map__header-bar {
  padding: clamp(28px, 4vw, 40px) 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-map__header-bar h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-map__header-bar h2 i {
  color: #ffd60a;
}

.ct-map__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffd60a, #e6b800);
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ct-map__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 214, 10, 0.35);
  color: #0a0a0a;
}

.ct-map__frame--full {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 520px);
  overflow: hidden;
  border-top: 2px solid rgba(255, 214, 10, 0.25);
  border-bottom: 2px solid rgba(255, 214, 10, 0.25);
  box-shadow: 0 -20px 60px rgba(255, 214, 10, 0.06);
  transition: box-shadow 0.45s ease;
}

.ct-map__frame--full:hover {
  box-shadow: 0 0 60px rgba(255, 214, 10, 0.12);
}

.ct-map__frame--full iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ct-map__corner {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 214, 10, 0.5);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.6;
}

.ct-map__frame--full:hover .ct-map__corner {
  opacity: 1;
}

.ct-map__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.ct-map__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.ct-map__pin {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a0a0a;
  background: #ffd60a;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: ctPinBounce 2.5s ease-in-out infinite;
}

@keyframes ctPinBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.page-contacto .ct-page,
.page-contacto .ct-banner--fullwidth,
.page-contacto .ct-main,
.page-contacto .ct-map-section--full {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 992px) {
  .ct-visual-grid {
    grid-template-columns: 1fr;
  }
  .page-contacto .ct-layout {
    grid-template-columns: 1fr;
  }
  .page-contacto .ct-form__row--2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contacto .ct-banner__img,
  .page-contacto .ct-banner__pulse,
  .page-contacto .ct-banner__waves,
  .ct-map__pin {
    animation: none;
  }
}
