/* ==========================================================================
   RESPONSIVE
   Mobile-first breakpoints i utility classes
   ========================================================================== */

/* ------------------------------------------------------------------
   BREAKPOINTS REFERENCE

   sm:  640px   - Small devices (landscape phones)
   md:  768px   - Medium devices (tablets)
   lg:  1024px  - Large devices (desktops)
   xl:  1200px  - Extra large devices (large desktops)
   2xl: 1400px  - 2X Extra large devices
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   DISPLAY UTILITIES
   ------------------------------------------------------------------ */

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* Responsive Display */
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
}

/* ------------------------------------------------------------------
   TEXT UTILITIES
   ------------------------------------------------------------------ */

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

@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:text-right { text-align: right; }
}

@media (min-width: 1024px) {
  .lg\:text-left { text-align: left; }
  .lg\:text-center { text-align: center; }
  .lg\:text-right { text-align: right; }
}

/* ------------------------------------------------------------------
   SPACING UTILITIES
   ------------------------------------------------------------------ */

/* Margin Top */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* Margin X (Left & Right) */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* ------------------------------------------------------------------
   FLEX UTILITIES
   ------------------------------------------------------------------ */

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

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:gap-8 { gap: var(--space-8); }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:gap-12 { gap: var(--space-12); }
}

/* ------------------------------------------------------------------
   WIDTH & MAX-WIDTH UTILITIES
   ------------------------------------------------------------------ */

.w-full { width: 100%; }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }
.max-w-xl { max-width: var(--container-xl); }

/* ------------------------------------------------------------------
   FONT SIZE UTILITIES
   ------------------------------------------------------------------ */

.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

/* ------------------------------------------------------------------
   COLOR UTILITIES
   ------------------------------------------------------------------ */

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-warm { color: var(--color-warm); }
.text-muted { color: var(--color-text-muted); }

.bg-white { background-color: var(--color-bg-white); }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-accent { background-color: var(--color-accent); }

/* ------------------------------------------------------------------
   BORDER UTILITIES
   ------------------------------------------------------------------ */

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ------------------------------------------------------------------
   SHADOW UTILITIES
   ------------------------------------------------------------------ */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ------------------------------------------------------------------
   PRINT STYLES
   ------------------------------------------------------------------ */

@media print {
  .no-print {
    display: none !important;
  }

  .header,
  .footer,
  .floating-phone {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
