/* Font Face Declarations */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCs16Hw5aXp-p7K4KLg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-bold.woff2') format('woff2');
}

/* Font Variables */
:root {
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base Typography */
html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
}

/* Main headings styling */
h1, h2 {
  font-family: 'Montserrat', var(--font-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Section headings */
.section h2,
.hero-section h1,
[class*="Page"] h1,
[class*="Page"] h2 {
  font-family: 'Montserrat', var(--font-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgb(17 24 39);
}

/* Font Performance */
* {
  text-rendering: optimizeLegibility;
}

/* Additional styles for main headings */
.container-custom h1,
.container-custom h2 {
  font-family: 'Montserrat', var(--font-primary) !important;
  font-weight: 300 !important;
}

/* Hero section specific styles */
.hero-section h1,
.section h2 {
  font-weight: 300 !important;
  letter-spacing: -0.02em;
  font-family: 'Montserrat', var(--font-primary) !important;
}

/* Text shadow for better readability on hero sections */
.hero-section h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}