/**
 * CCS Pro - Base styles, typography, layout reset
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter/Inter-Variable.woff2') format('woff2');
}

/* Fallback if self-hosted font not present */
@supports not (src: url('../fonts/inter/Inter-Variable.woff2') format('woff2')) {
  /* Use system stack; theme can enqueue Google Fonts as fallback in functions.php if needed */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: hsl(var(--primary));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-balance {
  text-wrap: balance;
}

/* Container - matches Lovable max-w-[1200px] + padding */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Page wrapper - prevent horizontal scroll */
#page {
  overflow-x: hidden;
  width: 100%;
}

/* Prevent grid/flex children from overflowing */
.site-main .container { min-width: 0; }
.site-header .container { min-width: 0; }
.grid > * { min-width: 0; }
