/* Custom utility classes for Onliest website */

/* Prevent horizontal scroll */
html, body {
  width: 100%; /* ensure body spans full viewport */
  margin: 0;    /* remove default body margin that can cause side gaps */
  overflow-x: hidden;
}


/* Font families */
.font-marcellus {
  font-family: 'Marcellus', serif;
}

.font-jost {
  font-family: 'Jost', sans-serif;
}

/* Enhanced line spacing for better readability */
.enhanced-leading {
  line-height: 2.5 !important; /* Equivalent to leading-10 in Tailwind */
}

/* Specific styling for about section text */
.about-text {
  line-height: 1.5 !important;
  letter-spacing: 0.01em;
}

/* Brand color helpers */
.bg-primary {
  background-color: #460b2f;
}

.text-primary {
  color: #460b2f;
}

.border-primary {
  border-color: #460b2f;
}

/* Navigation link active state with bottom border */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link.active {
  border-bottom: 2px solid #460b2f;
}

.nav-link:hover {
  border-bottom: 2px solid #460b2f;
}

/* Desktop navigation link styles */
@media (min-width: 768px) {
  .nav-link {
    padding-bottom: 8px;
  }
}

.bg-secondary {
  background-color: #FFF7ED;
}

.bg-tertiary {
  background-color: #FFFCF9;
}

/* Custom Widths */
.max-w-9xl {
  max-width: 1600px; /* 100rem */
}

/* Fade-in utility */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }
.fade-in-delay-6 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover lift */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Gradient border helpers */
.gradient-border {
  border: 2px solid transparent;
  border-radius: 1rem;
  background:
    linear-gradient(#ffffff 0 0) padding-box,
    linear-gradient(45deg, #460b2f, #FFF7ED, #460b2f) border-box;
}

/* optional hover lift styling remains unchanged */

.gradient-border-inner {
  background: #ffffff;
  border-radius: calc(1rem - 2px);
}

/* Commercial Launch hero (deprecated) */
.launch-hero {
  background-image: linear-gradient(180deg, rgba(154, 0, 110, 0.85), rgba(206, 0, 122, 0.85)), url('https://images.unsplash.com/photo-1521335629791-ce4aec67dd41?auto=format&fit=crop&w=800&q=50&fm=webp');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: #ffffff;
}

/* New Coming Soon section background */
.coming-soon-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(111deg, #460B2F 20%, rgba(160, 28, 125, 0.99) 100%);
  color: #ffffff;
}
.coming-soon-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=800&q=50&fm=webp') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.coming-soon-content {
  position: relative;
  z-index: 1;
}


.badge-launch {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Coming soon styles and animations */
.floating {
  animation: floating 6s ease-in-out infinite;
}

.floating-delay {
  animation: floating 6s ease-in-out infinite 2s;
}

@keyframes floating {
  0% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(0, 15px);
  }
  100% {
    transform: translate(0, -0px);
  }
}

/* ===== CONTACT FORM STYLES ===== */

/* =============================================
   Global Button Pill Radius
   Ensures every button or link styled as a button
   has fully rounded pill corners across the site.
   ============================================= */
/* Global pill radius strictly for actual buttons and button-styled links */
button,
[type="button"],
[type="submit"],
input[type="button"],
input[type="submit"],
a.inline-flex,
a.ods-btn,
a.ods-btn-clear {
  border-radius: 9999px !important;
}

/* Custom styles for intl-tel-input */
.iti {
  width: 100%;
  display: flex;
  position: relative;
  align-items: stretch;
}

.iti__flag-container {
  position: relative;
  z-index: 1;
  border: 2px solid #e5e7eb;
  border-radius: 12px 0 0 12px;
  border-right: 1px solid #e5e7eb;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.iti__selected-flag {
  background-color: transparent;
  border: none;
  padding: 0 8px 0 12px;
  height: 100%;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.iti__selected-flag:hover {
  background-color: #f8f9fa;
}

.iti__selected-flag:focus {
  border-color: #460b2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
}

.iti__country-list {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  max-height: 300px;
  overflow-y: auto;
}

.iti__country {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.iti__country:hover {
  background-color: #f8f9fa;
}

.iti__country.iti__highlight {
  background-color: #460b2f !important;
  color: white !important;
}

.iti__country.iti__active {
  background-color: #460b2f;
  color: white;
}

.iti__dropdown-content {
  max-height: 300px;
}

.iti__dial-code {
  color: #6b7280;
  font-weight: 500;
}

.iti__country-name {
  color: #374151;
  font-weight: 500;
}

.iti__highlight .iti__dial-code,
.iti__highlight .iti__country-name,
.iti__active .iti__dial-code,
.iti__active .iti__country-name {
  color: white !important;
}

.iti__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #6b7280;
  margin-left: 8px;
}

/* Popup Modal Styles */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-header-gradient {
  background: linear-gradient(135deg, #460b2f 0%, #5d1140 50%, #741454 100%);
}

.modal-iframe-container {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Enhanced hover effects for modal buttons */
.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Smooth modal animations */
.modal-enter {
  animation: modalFadeIn 0.3s ease-out;
}

.modal-exit {
  animation: modalFadeOut 0.3s ease-in;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

.iti__arrow--up {
  border-bottom: 4px solid #6b7280;
  border-top: none;
}

/* Custom input styling to match the design */
.iti input[type="tel"] {
  flex: 1;
  padding: 16px 24px 16px 16px !important;
  font-size: 18px;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0 12px 12px 0;
  border-left: 1px solid #e5e7eb;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  height: 58px;
  box-sizing: border-box;
  margin-left: -1px;
}

.iti input[type="tel"]:focus {
  color: #374151;
  background-color: #fff;
  border-color: #460b2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
  z-index: 2;
  position: relative;
}

.iti:focus-within .iti__flag-container {
  border-color: #460b2f;
}

.iti:focus-within {
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
  border-radius: 12px;
}

.iti input[type="tel"]::placeholder {
  color: #9ca3af;
}

.iti--separate-dial-code .iti__selected-dial-code {
  color: #460b2f;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.iti--separate-dial-code .iti__flag {
  margin-right: 6px;
}

/* Override inline styles */
.iti input[type="tel"][style*="padding-left"] {
  padding-left: 16px !important;
}

/* Consistent focus states for all form fields */
.form-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  color: #374151;
  background-color: #fff;
  border-color: #460b2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Textarea specific styling */
.form-textarea {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  resize: vertical;
  min-height: 120px;
}

.form-textarea:focus {
  color: #374151;
  background-color: #fff;
  border-color: #460b2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
}

.form-textarea::placeholder {
  color: #9ca3af;
}

/* Select dropdown styling */
.form-select {
  width: 100%;
  padding: 16px 48px 16px 24px;
  font-size: 18px;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22none%22 viewBox=%220 0 24 24%22 stroke=%22%23460B2F%22%3E%3Cpath stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22M19 9l-7 7-7-7%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

.form-select:focus {
  color: #374151;
  background-color: #fff;
  border-color: #460b2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(70, 11, 47, 0.1);
}

