/* Color Palette for Profrakt Theme */
:root {
  /* Dynamic Theme Colors - Injected by base.hubl.html from HubSpot Theme Settings */
  /* --theme-background-color, --theme-text-color, --theme-accent-color, --theme-cta-color */
  
  /* Static Blog & Post Page Colors - Secondary colors not controlled by theme settings */
  --blog-color-light: #DFD9FF;       /* Light purple - blog secondary elements */
  --blog-color-lightest: #F4F2FF;    /* Very light purple - blog subtle backgrounds */
  --blog-color-secondary: #D1CBFB;   /* Secondary purple - blog borders/dividers */
  --blog-color-tertiary: #D0C2FF;    /* Tertiary purple - blog card backgrounds */
  --blog-color-orange: #FF9220;        /* Accent orange - blog highlights/buttons */
  /* Typography - Based on Figma design */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'MD Nichrome', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes - Based on Figma design */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px - Navigation */
  --font-size-lg: 1.125rem;    /* 18px - Short descriptions */
  --font-size-xl: 1.25rem;     /* 20px - Paragraphs */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 3rem;       /* 48px - H2 */
  --font-size-4xl: 5.75rem;    /* 92px - H1 */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 4rem;       /* 64px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1;        /* 100% - Headers, Navigation, Short descriptions */
  --line-height-normal: 1.5;     /* 150% - Paragraphs */
  --line-height-relaxed: 1.75;
  
  /* Typography Specific Styles from Figma */
  --font-navigation: var(--font-family-primary);
  --font-navigation-weight: 500;
  --font-navigation-size: var(--font-size-base);
  --font-navigation-line-height: var(--line-height-tight);
  
  --font-h1: var(--font-family-heading);
  --font-h1-weight: 700;
  --font-h1-size: var(--font-size-4xl);
  --font-h1-line-height: var(--line-height-tight);
  
  --font-h2: var(--font-family-heading);
  --font-h2-weight: 700;
  --font-h2-size: var(--font-size-3xl);
  --font-h2-line-height: var(--line-height-tight);
  
  --font-paragraph: var(--font-family-primary);
  --font-paragraph-weight: 400;
  --font-paragraph-size: var(--font-size-xl);
  --font-paragraph-line-height: var(--line-height-normal);
  
  --font-description: var(--font-family-primary);
  --font-description-weight: 400;
  --font-description-size: var(--font-size-lg);
  --font-description-line-height: var(--line-height-tight);
  
  --font-main-description: var(--font-family-primary);
  --font-main-description-weight: 500;
  --font-main-description-size: var(--font-size-xl);
  --font-main-description-line-height: 1.6;
  
  /* Spacing System - Consistent with modern design */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 10rem;
  
  /* Shadows - Based on modern card design */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;
}

/* Global Base Styles using Theme Colors */
body {
  background-color: var(--theme-background-color);
  color: var(--theme-text-color);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

/* Typography with Theme Colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--theme-text-color);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-h1-size);
  font-weight: var(--font-h1-weight);
}

h2 {
  font-size: var(--font-h2-size);
  font-weight: var(--font-h2-weight);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5 {
  font-size: var(--font-size-base);
}

h6 {
  font-size: var(--font-size-sm);
}

p {
  font-family: var(--font-paragraph);
  font-size: var(--font-paragraph-size);
  font-weight: var(--font-paragraph-weight);
  line-height: var(--font-paragraph-line-height);
}

/* Links using Theme Accent Color */
a {
  color: var(--theme-accent-color);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* Buttons using Theme Colors */
.btn {
  display: inline-flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-slow);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--theme-cta-color);
  color: var(--theme-text-color);
}

.btn:hover {
  opacity: 0.9;
  border-radius: 0;
}

.btn-secondary {
  background-color: transparent;
  color: var(--theme-text-color);
  border: 2px solid var(--theme-text-color);
}

.btn-secondary:hover {
  background-color: var(--theme-accent-color);
}

/* Layout Styles */
.main-content {
  flex: 1;
  min-height: calc(100vh - 160px);
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Body wrapper for full height layout */
.body-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Logo Styles */
.logo {
  display: flex;
  width: 142px;
  height: auto;
  object-fit: contain;
}

/* Responsive Typography - Mobile First Approach */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--font-size-6xl); /* 64px */
  }

  h2 {
    font-size: var(--font-size-5xl); /* 48px */
  }

  h3 {
    font-size: var(--font-size-3xl); /* 48px -> 36px */
    font-size: 2.25rem;
  }

  p {
    font-size: var(--font-size-lg); /* 18px */
  }

  .main-content {
    padding: var(--space-md);
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  body {
    font-size: var(--font-size-sm);
  }

  h1 {
    font-size: var(--font-size-5xl); /* 48px */
  }

  h2 {
    font-size: var(--font-size-3xl); /* 48px */
  }

  h3 {
    font-size: var(--font-size-xl); /* 20px */
  }

  h4 {
    font-size: var(--font-size-base); /* 16px */
  }

  h5 {
    font-size: var(--font-size-sm); /* 14px */
  }

  p {
    font-size: var(--font-size-base); /* 16px */
  }

  .main-content {
    padding: var(--space-sm);
  }

  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: var(--font-size-3xl); /* 48px */
    line-height: 1.1;
  }

  h2 {
    font-size: var(--font-size-2xl); /* 24px */
    line-height: 1.2;
  }

  h3 {
    font-size: var(--font-size-lg); /* 18px */
  }

  h4 {
    font-size: var(--font-size-base); /* 16px */
  }

  p {
    font-size: var(--font-size-sm); /* 14px */
    line-height: 1.6;
  }

  .main-content {
    padding: var(--space-xs);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-secondary {
    border-width: 1px;
  }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
  h1 {
    font-size: var(--font-size-2xl); /* 24px */
  }

  h2 {
    font-size: var(--font-size-xl); /* 20px */
  }

  h3 {
    font-size: var(--font-size-base); /* 16px */
  }
}