/* QuickHomeBuy custom styles */

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Enable DM Sans optical sizing */
  font-optical-sizing: auto;
}

/* Fraunces display font — used for italic accents and large display headings.
   SOFT variant with slight slant and more character than Playfair. */
.font-display,
h1 .font-display,
.font-display * {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
}

/* Headings keep the sans by default (DM Sans is bold and distinctive enough),
   but allow .font-display override wherever we want the serif accent. */

/* Hero gradient background */
.hero-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(255, 199, 44, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255, 199, 44, 0.08), transparent 50%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* Yellow accent gradient */
.yellow-gradient {
  background: linear-gradient(135deg, #FFC72C 0%, #FFD75F 100%);
}

/* Button hover lift */
.btn-primary {
  background: #FFC72C;
  color: #0F172A;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(255, 199, 44, 0.4);
}
.btn-primary:hover {
  background: #FFD75F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(255, 199, 44, 0.5);
}

.btn-dark {
  background: #0F172A;
  color: #FFC72C;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-dark:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #0F172A;
  border: 2px solid #0F172A;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: #0F172A;
  color: #FFC72C;
}

/* Card hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
}

/* Form inputs — explicit light theme so iOS / Chrome dark mode
   can't auto-invert the text to white on white. */
.form-input,
input.form-input,
select.form-input,
textarea.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
  color: #0F172A;                /* brand dark — what the user types */
  color-scheme: light;           /* kills browser dark-mode auto-styling */
  -webkit-text-fill-color: #0F172A;  /* iOS Safari respects this one */
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: #94A3B8;
  opacity: 1;
}
.form-input:focus {
  outline: none;
  border-color: #FFC72C;
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.2);
  background-color: #ffffff;
  color: #0F172A;
  -webkit-text-fill-color: #0F172A;
}

/* Chrome / Edge autofill — browser default is a yellow background with
   white text which looks awful. Pin it to brand colours. */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0F172A !important;
  -webkit-box-shadow: 0 0 0 1000px #FFFBEF inset !important;
  box-shadow: 0 0 0 1000px #FFFBEF inset !important;
  caret-color: #0F172A;
}

/* Select dropdown arrows restored (we killed appearance above) */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230F172A'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.25rem;
}

/* Section */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
@media (max-width: 640px) { .section-pad { padding-top: 3rem; padding-bottom: 3rem; } }

/* Marquee / trust-bar scroll */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

/* Checkmark badge */
.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background: #FFC72C;
  color: #0F172A;
  flex-shrink: 0;
}

/* Fade in on load */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out both; }

/* Hide scrollbar for horizontal scroll areas */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* FAQ accordion */
details.faq-item summary {
  cursor: pointer;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .faq-icon { transition: transform 0.2s ease; }
details.faq-item[open] summary .faq-icon { transform: rotate(45deg); }

/* Step number circle */
.step-circle {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: #FFC72C;
  color: #0F172A;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
}

/* Phone CTA pulse */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(255, 199, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0); }
}
.phone-pulse { animation: pulse-ring 2s infinite; }

/* Noise texture overlay for hero */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Print friendly */
@media print {
  .no-print { display: none !important; }
}
