/* =============================================================================
   MANAGE PAGE STYLES
   Property Management - Brand blue gradient hero
   ============================================================================= */

/* Force brand colors on non-hero sections */
body:has(.manage-hero) section:not(.manage-hero) h1,
body:has(.manage-hero) section:not(.manage-hero) h2,
.split-content-title,
.section-header h2 {
  color: #1e3a5f;
}

/* Hero section with blue to white gradient */
.manage-hero {
  position: relative;
  min-height: 600px;
  overflow: visible;
  background: linear-gradient(
    180deg,
    #1e40af 0%,
    #2563eb 15%,
    #3b82f6 30%,
    #60a5fa 45%,
    #93c5fd 60%,
    #bfdbfe 75%,
    #dbeafe 85%,
    #f0f9ff 93%,
    #ffffff 100%
  );
}

/* ===== OCEAN DRIFT ANIMATION ===== */
/* Slow movement, horizontal drift, gentle depth, predictable rhythm */

.manage-drift-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.drift-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  filter: blur(2px);
}

/* Keyframes - slow horizontal drift with subtle vertical sway */
@keyframes oceanDrift {
  0% {
    transform: translateX(-100%) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 100%)) translateY(20px);
    opacity: 0;
  }
}

@keyframes oceanDriftReverse {
  0% {
    transform: translateX(calc(100vw + 100%)) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100%) translateY(-15px);
    opacity: 0;
  }
}

@keyframes gentleBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Individual drift shapes with varied sizes, positions, and timing */
.drift-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -300px;
  animation: oceanDrift 25s linear infinite;
  animation-delay: 0s;
}

.drift-2 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: -200px;
  animation: oceanDriftReverse 30s linear infinite;
  animation-delay: 5s;
}

.drift-3 {
  width: 400px;
  height: 400px;
  top: 60%;
  left: -400px;
  opacity: 0.7;
  animation: oceanDrift 35s linear infinite;
  animation-delay: 10s;
}

.drift-4 {
  width: 150px;
  height: 150px;
  top: 25%;
  right: -150px;
  animation: oceanDriftReverse 22s linear infinite;
  animation-delay: 3s;
}

.drift-5 {
  width: 250px;
  height: 250px;
  top: 70%;
  left: -250px;
  opacity: 0.5;
  animation: oceanDrift 28s linear infinite;
  animation-delay: 15s;
}

/* Soft fade at bottom */
.manage-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.9) 80%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Ensure navbar is above gradient */
.manage-hero .navbar,
.manage-hero nav,
.manage-hero > nav {
  position: relative;
  z-index: 100;
}

.manage-hero-content {
  position: relative;
  z-index: 10;
  background: transparent;
  padding-top: 4rem;
  padding-bottom: 6rem;
  overflow: visible;
}

/* ===== HERO TEXT REVEAL ANIMATIONS ===== */

@keyframes whimsicalReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(6px);
  }
  30% {
    opacity: 1;
    filter: blur(3px);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes slideUpReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero headline - blur sweep reveal */
.manage-hero-headline {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: blur(6px);
  animation: whimsicalReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.3s;
}

/* Hero subheadline - slides up after headline */
.manage-hero-subheadline {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.1s;
}

/* Hero CTA container - slides up after subheadline */
.manage-hero-cta {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.4s;
}

/* ===== BUILDING ICON ANIMATION ===== */
@keyframes buildingPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 24px rgba(30, 64, 175, 0.4));
  }
}

.manage-building-icon {
  animation: buildingPulse 3s ease-in-out infinite;
}

/* ===== ANIMATED GRADIENT LINE ===== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.manage-gradient-line {
  width: 360px;
  height: 3px;
  margin: 24px auto;
  background: linear-gradient(
    90deg,
    rgba(241, 103, 0, 0.2) 0%,
    rgba(251, 191, 36, 0.6) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(251, 191, 36, 0.6) 75%,
    rgba(241, 103, 0, 0.2) 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
  border-radius: 2px;
}

/* ===== CTA BUTTONS ===== */
.manage-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #f16700;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(241, 103, 0, 0.3);
  text-decoration: none;
}

.manage-cta-button:hover {
  background: #e05e00;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(241, 103, 0, 0.4);
}

.manage-cta-button i {
  transition: transform 0.3s ease;
}

.manage-cta-button:hover i {
  transform: translateX(4px);
}

/* ===== TRUST METRICS ===== */
.manage-trust-section {
  background: #ffffff;
  padding: 48px 0;
}

.manage-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.manage-trust-item {
  text-align: center;
}

.manage-trust-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: -0.02em;
  line-height: 1;
}

.manage-trust-label {
  font-size: 0.9375rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.manage-services-section {
  background: #ffffff;
  padding: 64px 0 80px;
}

/* Ecosystem bridge sentence */
.manage-ecosystem-bridge {
  text-align: center;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 32px;
  font-style: italic;
}

.manage-services-header {
  text-align: center;
  margin-bottom: 48px;
}

.manage-services-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.manage-services-header p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Two-column grid */
.manage-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

/* Left visual anchor */
.manage-services-visual {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manage-visual-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.manage-visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.manage-visual-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #f16700;
}

.manage-visual-item i {
  font-size: 1.5rem;
  color: #1e40af;
  transition: color 0.3s ease;
}

.manage-visual-item:hover i {
  color: #f16700;
}

.manage-visual-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.manage-visual-caption {
  font-size: 1.125rem;
  color: #334155;
  font-weight: 500;
}

.manage-visual-logo {
  margin-top: auto;
  padding-top: 24px;
}

.manage-master-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Right service list */
.manage-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.manage-service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
}

.manage-service-item:hover {
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.manage-service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.manage-service-item:hover .manage-service-icon {
  background: linear-gradient(135deg, #f16700 0%, #ea580c 100%);
  color: white;
}

.manage-service-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.manage-service-content p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .manage-services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manage-services-visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .manage-visual-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .manage-visual-item {
    padding: 16px 12px;
  }

  .manage-service-item {
    padding: 16px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .manage-hero {
    min-height: 500px;
  }

  .manage-hero-content {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .manage-hero {
    min-height: 450px;
  }

  .manage-gradient-line {
    width: 240px;
  }

  .manage-cta-button {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

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

  .manage-trust-number {
    font-size: 1.75rem;
  }

  .manage-trust-label {
    font-size: 0.8125rem;
  }

  .manage-services-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .manage-hero-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .manage-gradient-line {
    width: 180px;
  }

  .manage-trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== WHO THIS IS FOR SECTION ===== */
.manage-audience-section {
  background: #f8fafc;
  padding: 64px 0;
}

.manage-audience-header {
  text-align: center;
  margin-bottom: 48px;
}

.manage-audience-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.manage-audience-header p {
  font-size: 1.0625rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

.manage-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.manage-audience-item {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.manage-audience-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.manage-audience-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #475569;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.manage-audience-item:hover .manage-audience-icon {
  background: linear-gradient(135deg, #f16700 0%, #ea580c 100%);
  color: white;
}

.manage-audience-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.manage-audience-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Responsive for audience grid */
@media (max-width: 900px) {
  .manage-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .manage-audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .manage-audience-item {
    padding: 24px 20px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .manage-hero-headline,
  .manage-hero-subheadline,
  .manage-hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
  }

  .manage-gradient-line {
    animation: none;
  }

  .manage-building-icon {
    animation: none;
  }

  .drift-shape {
    animation: none;
    opacity: 0.1;
  }

  .drift-1 { left: 5%; top: 15%; }
  .drift-2 { right: 10%; top: 35%; }
  .drift-3 { left: 15%; top: 55%; }
  .drift-4 { right: 20%; top: 20%; }
  .drift-5 { left: 25%; top: 65%; }
}

/* ===== ADDRESS SUGGESTIONS DROPDOWN FIX ===== */

.manage-hero-cta {
  overflow: visible !important;
}

/* Ensure suggestions dropdown is absolutely positioned and visible */
.manage-hero-cta [data-address-autocomplete-target="suggestions"] {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin-top: 8px !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
}

/* Ensure all parent containers allow dropdown overflow */
.manage-hero,
.manage-hero .manage-hero-content,
.manage-hero .manage-hero-cta,
.manage-hero .manage-hero-cta > div,
.manage-hero form,
.manage-hero form > div,
.manage-hero form .relative {
  overflow: visible !important;
}
