/* /public/css/custom.css */

/* Define Inter font with multiple weights for flexibility */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2'),
       url('/assets/fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2'),
       url('/assets/fonts/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2'),
       url('/assets/fonts/Inter-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2'),
       url('/assets/fonts/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Global font smoothing */
* {
  -webkit-font-smoothing: antialiased; /* Smooths edges on WebKit browsers (Chrome, Safari) */
  -moz-osx-font-smoothing: grayscale; /* Smooths on Firefox for macOS */
  text-rendering: optimizeLegibility; /* Improves kerning and ligatures */
}

/* Default body font */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Default to Inter, no Roboto */
}

/* Custom font classes for Tailwind integration */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Map existing font classes to Inter for compatibility */
.font-oswald {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700; /* Make headings bold */
}

.font-roboto {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; /* Regular weight for body text */
}

.font-dancing {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: italic; /* Add some character to mimic script font */
}

/* Additional smoothing for specific elements */
.hero-headline,
.heading-no-wrap,
.heading-decorated,
.we-buy-houses .title,
.dwelling-type h4,
.offer-cta .title,
.how-content h3,
.accordion summary,
.faq-question {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.we-buy-houses .subtitle,
.how-content p,
.accordion-content,
.faq-answer p,
.resource-card-enhanced,
.resource-card,
.testimonial-card,
.testimonial-card-standalone {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.btn-gradient,
.offer-cta .btn-orange,
.offer-cta .btn-white-outline,
.input-address button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optional: Adjust for Windows if jagged */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .font-inter {
    text-rendering: geometricPrecision; /* Better for Windows */
  }
}