/* Custom UI layer (keeps original theme, improves UX/SEO) */

:root {
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-soft-hover: 0 16px 40px rgba(17, 24, 39, 0.12);
  --brand: #FF9900;
  --brand-hover: #FF7700;
  --ink: #232F3E;
  --muted: #666666;
  --surface: #F8F8F8;
}

/* Prevent accidental horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
}

/* Improve tap targets on iOS and similar */
.touch-highlight-transparent {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for anchor navigation */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

/* Better text wrapping for headings */
.text-balance {
  text-wrap: balance;
}

/* Subtle elevate effect for cards */
.card-elevate {
  box-shadow: var(--shadow-soft);
}
.card-elevate:hover {
  box-shadow: var(--shadow-soft-hover);
}

/* ------------------------------------------------------------ */
/* Layout + contrast fixes (works without Tailwind rebuild) */
/* ------------------------------------------------------------ */

/* Sticky nav background + readable links */
.site-nav {
  background: rgba(35, 47, 62, 0.98);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav a {
  color: inherit;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.18);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
}
.btn-whatsapp:hover { background: #20BA5A; border-color: #20BA5A; }

/* Section backgrounds (your Tailwind build lacks bg-[#…] utilities) */
#services,
#results {
  background: var(--surface);
}

/* How it works: ensure step numbers are visible on white background */
.step-badge {
  background: #F3F4F6; /* light gray */
  color: var(--ink); /* dark number */
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
  border: 1px solid rgba(35, 47, 62, 0.10);
}
.how-line {
  background: rgba(255, 153, 0, 0.28);
}

/* FAQ section: ensure background + accordion contrast */
#faq {
  background: #fff;
}
#faq .faq-item {
  border-radius: 0.9rem;
  overflow: hidden;
}
#faq .faq-trigger {
  background: #fff;
  color: var(--ink);
}
#faq .faq-trigger:hover {
  background: #FFF5E6;
}
#faq .faq-content {
  background: #FFF5E6;
  color: var(--ink);
}
.faq-cta {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
  border-color: var(--brand);
}

/* Form section: ensure dark background and readable header */
#form-section {
  background: linear-gradient(180deg, #232F3E 0%, #1A252F 100%);
}

/* Inputs: consistent UI even without Tailwind utilities */
.input-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid #E8E8E8;
  padding: 0.75rem 1rem;
  background: transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.18);
  outline: none;
}

/* Footer: guarantee dark surface + readable links */
.site-footer {
  background: #232F3E;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a {
  color: inherit;
}
.site-footer a:hover {
  color: var(--brand);
}

/* Breadcrumb readability */
.breadcrumb {
  color: var(--muted);
}
.breadcrumb .crumb-current {
  color: var(--ink);
  font-weight: 600;
}
.breadcrumb .crumb-sep {
  color: rgba(35, 47, 62, 0.35);
}

/* Hero image: ensure overlay for contrast if any text ever sits on it */
.hero-media {
  position: relative;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 47, 62, 0.28), rgba(35, 47, 62, 0));
  pointer-events: none;
}

/* Focus ring consistency for keyboard users */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(255, 153, 0, 0.55);
  outline-offset: 2px;
}

