/**
 * /public_html/assets/css/marketing-subpage-fixes.css
 *
 * Loaded at end of marketing pages (after Tailwind / Bootstrap) so CTA buttons,
 * hero layout, nav, and dropdowns stay visible.
 */

/* Header — restore after Bootstrap on form pages (owner inquiry) */
.htown-marketing-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.htown-marketing-header .htown-marketing-nav-link {
  color: #475569 !important;
  text-decoration: none !important;
}

.htown-marketing-header .htown-marketing-nav-login {
  color: #334155 !important;
  text-decoration: none !important;
}

.htown-marketing-header .htown-marketing-nav-cta {
  background-color: #f78e31 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.htown-marketing-header .htown-nav-dropdown-trigger {
  color: #475569 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Footer — override Bootstrap link colors on form pages */
.htown-footer-main a.htown-footer-link,
.htown-footer-main a.htown-footer-contact-link,
.htown-footer-main a.htown-footer-email-offers {
  color: inherit;
}

.htown-footer-main a.htown-footer-link {
  color: #475569 !important;
}

.htown-footer-main a.htown-footer-contact-link {
  color: #2c3e50 !important;
}

.htown-footer-bar a.htown-footer-legal-link {
  color: #e2e8f0 !important;
}

/* Nav dropdowns — work with or without marketing-landing.js */
@media (min-width: 1024px) {
  .htown-nav-dropdown:hover .htown-nav-dropdown-panel,
  .htown-nav-dropdown:focus-within .htown-nav-dropdown-panel {
    display: block;
  }
}

/* Subpage hero — no decorative wave (it was clipping CTAs) */
.htown-subpage-hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .htown-subpage-hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

.htown-subpage-hero-grid {
  position: relative;
  z-index: 1;
}

.htown-subpage-hero-copy,
.htown-subpage-hero-actions {
  position: relative;
  z-index: 2;
}

.htown-subpage-hero-media {
  min-height: 12rem;
}

/* CTAs — explicit colors beat Tailwind preflight */
.htown-subpage-hero-actions .htown-features-cta-primary,
.htown-subpage-hero-actions .htown-subpage-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.375rem;
  border: 0;
  background-color: #f78e31;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(247, 142, 49, 0.32);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.htown-subpage-hero-actions .htown-features-cta-primary:hover,
.htown-subpage-hero-actions .htown-subpage-cta-primary:hover {
  background-color: #e67e22;
  color: #ffffff;
  transform: translateY(-1px);
}

.htown-subpage-hero-actions .htown-features-cta-secondary,
.htown-subpage-hero-actions .htown-subpage-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #2c3e50;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.htown-subpage-hero-actions .htown-features-cta-secondary:hover,
.htown-subpage-hero-actions .htown-subpage-cta-secondary:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

.htown-subpage-hero-image {
  min-height: 12rem;
  background-color: #e2e8f0;
}

.htown-pricing-band .htown-subpage-hero-actions--center {
  justify-content: center;
}

.owner-inquiry-submit-wrap .htown-owner-inquiry-submit-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.95rem 1.75rem;
  border: 0 !important;
  border-radius: 0.375rem;
  background-color: #f78e31 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(247, 142, 49, 0.32);
  transition: background-color 0.15s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.owner-inquiry-submit-wrap .htown-owner-inquiry-submit-btn:hover:not(:disabled) {
  background-color: #e67e22 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.owner-inquiry-submit-wrap .htown-owner-inquiry-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Owner inquiry hero CTAs — same as subpages */
.htown-owner-inquiry-hero .htown-subpage-hero-actions .htown-subpage-cta-primary,
.htown-owner-inquiry-hero .htown-subpage-hero-actions .htown-subpage-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.htown-owner-inquiry-hero .htown-subpage-hero-actions .htown-subpage-cta-primary {
  border: 0;
  background-color: #f78e31 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(247, 142, 49, 0.32);
}

.htown-owner-inquiry-hero .htown-subpage-hero-actions .htown-subpage-cta-secondary {
  border: 2px solid #cbd5e1;
  background-color: #ffffff !important;
  color: #2c3e50 !important;
}

.htown-owner-inquiry-flash-modal .htown-owner-inquiry-modal-close {
  border: 0;
  background-color: #f78e31;
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
}

.htown-owner-inquiry-flash-modal .htown-owner-inquiry-modal-close:hover {
  background-color: #e67e22;
  color: #ffffff;
}
