/* ============================================
   GLOBAL.CSS — Foundation Styles
   The HealthCare Solution Static Site
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Custom Properties (Design Tokens) --- */
:root {
  --color-primary: #34BBDB;
  --color-primary-dark: #2a9ab5;
  --color-accent: #C9EA41;
  --color-accent-alt: #C2E749;
  --color-dark: #1F1F1F;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-bg-light: #f9f9f9;
  --color-bg-gray: #f5f5f5;
  --color-border: #e0e0e0;

  --font-family: 'Eurostile Next LT', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --gap: 2rem;
  --gap-sm: 1rem;
  --gap-lg: 3rem;

  --radius: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-card: 0px 0px 12px #dfdfdf;

  --transition: 0.3s ease;
  --nav-height: 80px;
}

/* --- @font-face Declarations --- */
@font-face {
  font-family: 'Eurostile Next LT';
  src: url('../fonts/eurostile-next-lt-com-extended-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eurostile Next LT';
  src: url('../fonts/eurostile-next-lt-com-extended.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eurostile Next LT';
  src: url('../fonts/eurostile-next-lt-com-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eurostile Next LT';
  src: url('../fonts/eurostile-next-lt-com-extended-bold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-family);
  margin-bottom: 1rem;
  color: var(--color-text);
}

strong, b {
  font-weight: var(--font-weight-bold);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section-padding {
  padding: 5rem 0;
}

.section-padding--sm {
  padding: 3rem 0;
}

.text-center {
  text-align: center;
}

.text-upper {
  text-transform: uppercase;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* --- Flexbox Utilities --- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-accent:hover {
  background-color: var(--color-accent-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --- Visibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Section Headings --- */
.section-heading {
  margin-bottom: 1rem;
}

.section-heading span {
  color: var(--color-primary);
}

.section-subheading {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  :root {
    --nav-height: 65px;
  }
}
