/* ==========================================================================
   GLOBAL DESIGN SYSTEM & RESPONSIVE LAYOUT BASE
   Website Layout – Mobile / Tablet / Macbook / Desktop
   ========================================================================== */

:root {
  /* Color Palette */
  --color-primary: #DA2828;
  --color-primary-hover: #B40000;
  --color-primary-dark: #72050F;
  --color-primary-gradient: linear-gradient(192.91deg, #E12024 -19.68%, #72050F 90.68%);
  
  --color-dark: #1A1B16;
  --color-dark-muted: #333333;
  --color-footer-bg: #0A0A0A;
  
  --color-gray-100: #F9FAFB;
  --color-gray-200: #F3F4F6;
  --color-gray-300: #E5E7EB;
  --color-gray-400: #9CA3AF;
  --color-gray-600: #606060;
  --color-gray-800: #1F2937;
  
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Typography */
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-public-sans: 'Public Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-floating-header: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0px -10px 32px rgba(0, 0, 0, 0.2);
  
  /* Transition Timing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Dimensions */
  --max-container-desktop: 1440px;
  --gutter-desktop: 80px;
  --gutter-laptop: 40px;
  --gutter-tablet: 24px;
  --gutter-mobile: 18px;
  --container-max-desktop: 1440px;
  --container-max-macbook: 1280px;
  --container-max-tablet: 920px;
  --header-height: 96px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-poppins);
  color: var(--color-dark-muted);
  background-color: #FAFAFA;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container Utilities across Viewports */
.tk-container, .container {
  width: calc(100% - (2 * var(--gutter-desktop)));
  max-width: calc(var(--max-container-desktop) - (2 * var(--gutter-desktop)));
  margin: 0 auto;
  padding: 16px 0;
}

/* Main Content Area */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-montserrat);
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen Breakpoint Responsive Adjustments */

/* Desktop Extra Wide (1441px+) */
@media (min-width: 1441px) {
  .tk-container, .container {
    width: calc(100% - (2 * var(--gutter-desktop)));
    max-width: calc(var(--max-container-desktop) - (2 * var(--gutter-desktop)));
    padding: 16px 0;
  }
}

/* Macbook / Standard Laptop (1025px - 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .tk-container, .container {
    width: calc(100% - (2 * var(--gutter-laptop)));
    max-width: calc(1280px - (2 * var(--gutter-laptop)));
    padding: 16px 0;
  }
}

/* Tablet Screen (641px - 1024px) */
@media (max-width: 1024px) and (min-width: 641px) {
  :root {
    --header-height: 84px;
  }
  .tk-container, .container {
    width: calc(100% - (2 * var(--gutter-tablet)));
    padding: 14px 0;
  }
}

/* Mobile Screen (<= 640px) */
@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }
  .tk-container, .container {
    width: calc(100% - (2 * var(--gutter-mobile)));
    padding: 12px 0;
  }
}
