/* 1) Point theme variables to Segoe (overrides Nunito / Nunito Sans / Caveat) */
:root{
  --title-font: "Segoe UI Variable","Segoe UI","SegoeUI",Tahoma,Geneva,Verdana,sans-serif;
  --body-font:  "Segoe UI Variable","Segoe UI","SegoeUI",Tahoma,Geneva,Verdana,sans-serif;
  --caveat-font:"Segoe UI Variable","Segoe UI","SegoeUI",Tahoma,Geneva,Verdana,sans-serif;

  /* If Bootstrap variables are used anywhere */
  --bs-body-font-family: var(--body-font);
  --bs-font-sans-serif:   var(--body-font);
}

/* 2) Enforce base usage (handles components that hardcode fonts) */
html,body{
  font-family: var(--body-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use the title font; make them slightly lighter than 700 for Segoe */
h1,h2,h3,h4,h5,h6{
  font-family: var(--title-font) !important;
  font-weight: 600;
  line-height: 1.25;
}

/* Common components in this theme */
p,li,a,button,input,select,textarea,
.sec-title,.hero-title,.box-title,.header-notice,
.th-btn,.th-menu-wrapper,.main-menu,
.service-card2 .box-content,.team-card3 .box-title {
  font-family: var(--body-font) !important;
}

/* 3) Variable-font hinting for Windows 11 (Segoe UI Variable) */
@supports (font-variation-settings: normal) {
  :root {
    --title-font: "Segoe UI Variable","Segoe UI","SegoeUI",Tahoma,Geneva,Verdana,sans-serif;
    --body-font:  "Segoe UI Variable","Segoe UI","SegoeUI",Tahoma,Geneva,Verdana,sans-serif;
  }
  .sec-title,.hero-title,.box-title{
    font-variation-settings: "wght" 600;
  }
}

/* Optional tweaks — uncomment if понадобится чуть больше воздуха
h1,h2,h3 { letter-spacing: .005em; }
*/
