/* ================================================
   TOMASO CONTACT PAGE
   Warm deep navy vibe - NOT pure black
   ================================================ */

.tomaso-contact-page {
  background: linear-gradient(180deg, #0a0a2e 0%, #060620 40%, #050518 100%);
  min-height: 100vh;
  padding-top: 100px;
}

/* ================================================
   HERO HEADER
   ================================================ */
.tomaso-contact-hero {
  position: relative;
  padding: 60px 24px 40px;
  text-align: center;
  overflow: hidden;
}

.tomaso-contact-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(56,196,218,0.15), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(231,67,122,0.10), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08), transparent 60%);
  pointer-events: none;
}

.tomaso-contact-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.tomaso-contact-hero-label {
  color: var(--color-primary, #38C4DA);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  font-weight: 700;
}

.tomaso-contact-hero-title {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 60%, var(--color-primary, #38C4DA));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tomaso-contact-hero-desc {
  font-size: 1.25rem;
  color: #a0aec0;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.tomaso-contact-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.tomaso-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tomaso-hero-stat-number {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary, #38C4DA);
  line-height: 1;
}

.tomaso-hero-stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.tomaso-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ================================================
   FORM + MAP WRAPPER
   ================================================ */
.tomaso-contact-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 60vh;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* Form Side */
.tomaso-contact-form-side {
  width: 55%;
  padding: 48px 60px;
  overflow-y: auto;
}

/* Form */
.tomaso-form {
  margin-bottom: 48px;
}

.tomaso-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tomaso-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 24px;
  color: #fff !important;
  font-size: 1.1rem;
  font-family: var(--font-primary, 'Assistant', sans-serif);
  transition: all 0.35s ease;
  outline: none;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tomaso-input::placeholder {
  color: #8b95a5 !important;
}

.tomaso-input:focus {
  border-color: var(--color-primary, #38C4DA);
  background: rgba(56, 196, 218, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(56, 196, 218, 0.12), 0 4px 16px rgba(56, 196, 218, 0.08);
}

.tomaso-textarea {
  margin-bottom: 16px;
  resize: none;
  min-height: 120px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

textarea.tomaso-input,
textarea.tomaso-textarea {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  -webkit-text-fill-color: #fff;
}

.tomaso-btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.25rem;
  padding: 18px 32px;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-primary, #38C4DA), #2a9bb0);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  font-family: var(--font-primary, 'Assistant', sans-serif);
}

.tomaso-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 196, 218, 0.3);
}

.tomaso-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success message */
.tomaso-form-message {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 48px;
}

/* Contact Info Grid */
.tomaso-contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
}

.tomaso-contact-info h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.tomaso-contact-info p {
  color: #9ca3af;
  font-size: 1.05rem;
}

/* Social Links */
.tomaso-social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tomaso-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tomaso-social-btn:hover {
  transform: scale(1.15);
  background: var(--color-primary, #38C4DA);
  color: #000 !important;
  border-color: var(--color-primary, #38C4DA);
}

/* ================================================
   MAP SIDE
   ================================================ */
.tomaso-contact-map-side {
  width: 45%;
  min-height: 50vh;
  background: #0d0d30;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.tomaso-map-container {
  position: absolute;
  inset: 0;
  background: #1a1a4e;
}

.tomaso-map-iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

.tomaso-contact-map-side:hover .tomaso-map-iframe {
  opacity: 0.9;
}

.tomaso-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(6,6,32,0.6), transparent, transparent);
  pointer-events: none;
}

/* Map Pin */
.tomaso-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tomaso-map-pin-ping {
  width: 24px;
  height: 24px;
  background: var(--color-primary, #38C4DA);
  border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  inset: 0;
}

.tomaso-map-pin-dot {
  width: 24px;
  height: 24px;
  background: var(--color-primary, #38C4DA);
  border-radius: 50%;
  border: 4px solid #0a0a2e;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 20px rgba(56, 196, 218, 1);
}

.tomaso-map-pin-label {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tomaso-contact-map-side:hover .tomaso-map-pin-label {
  background: var(--color-primary, #38C4DA);
  border-color: var(--color-primary, #38C4DA);
  color: #000;
}

.tomaso-map-cta {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.tomaso-contact-map-side:hover .tomaso-map-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */
.tomaso-contact-testimonials {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tomaso-contact-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.tomaso-contact-section-label {
  color: var(--color-primary, #38C4DA);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  font-weight: 700;
}

.tomaso-contact-section-title {
  font-family: var(--font-display, 'Bebas Neue', cursive);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
}

.tomaso-contact-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tomaso-testimonial-card {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.03);
}

.tomaso-testimonial-card:hover {
  border-color: var(--color-primary, #38C4DA);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 196, 218, 0.15);
}

.tomaso-testimonial-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.tomaso-testimonial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tomaso-testimonial-card:hover .tomaso-testimonial-thumb img {
  transform: scale(1.05);
}

.tomaso-testimonial-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.tomaso-testimonial-card:hover .tomaso-testimonial-play {
  background: rgba(56, 196, 218, 0.2);
}

.tomaso-testimonial-play svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.tomaso-testimonial-card:hover .tomaso-testimonial-play svg {
  transform: scale(1.15);
}

/* ================================================
   CLIENTS CAROUSEL
   ================================================ */
.tomaso-contact-clients {
  padding: 0 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.tomaso-contact-clients-track-wrap {
  overflow: hidden;
}

.tomaso-contact-clients-track {
  display: flex;
  gap: 32px;
  animation: contact-marquee 60s linear infinite;
  width: max-content;
}

.tomaso-contact-client-box {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  transition: all 0.3s;
}

.tomaso-contact-client-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 196, 218, 0.3);
}

.tomaso-contact-client-box img {
  max-width: 100px;
  max-height: 55px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.3s;
}

.tomaso-contact-client-box:hover img {
  opacity: 1;
  filter: none;
}

@keyframes contact-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ================================================
   VIDEO MODAL
   ================================================ */
.tomaso-video-modal {
  backdrop-filter: blur(8px);
}

/* ================================================
   WORDPRESS OVERRIDES
   ================================================ */
.page-template-template-contact .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-template-template-contact .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.page-template-template-contact .site-main > article {
  margin: 0 !important;
  padding: 0 !important;
}

.page-template-template-contact .entry-content {
  margin: 0 !important;
}

.page-template-template-contact .entry-header,
.page-template-template-contact .entry-title {
  display: none !important;
}

.page-template-template-contact .entry-content > .elementor,
.page-template-template-contact .entry-content > [data-elementor-type="wp-page"] {
  display: none !important;
}

.page-template-template-contact .elementor-element-2347a2b0 {
  display: none !important;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .tomaso-contact-wrapper {
    flex-direction: column;
    border-radius: 16px;
    margin: 0 16px;
  }

  .tomaso-contact-form-side {
    width: 100%;
    padding: 32px 24px;
  }

  .tomaso-contact-map-side {
    width: 100%;
    min-height: 350px;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tomaso-contact-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .tomaso-contact-page {
    padding-top: 80px;
  }

  .tomaso-contact-hero {
    padding: 40px 20px 30px;
  }

  .tomaso-contact-hero-title {
    font-size: 3.5rem;
  }

  .tomaso-contact-hero-stats {
    gap: 20px;
  }

  .tomaso-hero-stat-number {
    font-size: 2rem;
  }

  .tomaso-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .tomaso-contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tomaso-contact-section-title {
    font-size: 2rem;
  }

  .tomaso-contact-client-box {
    width: 110px;
    height: 60px;
  }
}
