/* templates/theme_2/css/utilities.css
   Hand-written utility layer (no build step, no Tailwind CLI).
   Two responsibilities:
   1) The FIXED class vocabulary that services/generation/html_processors.py
      injects into content_section (CSS_CLASSES dict) — every token below
      tagged [content] is mandatory and must not be renamed.
   2) General-purpose utilities reused by theme_2's own markup (header,
      hero, carousel, footer).
   Color rules reference var(--color-*)/var(--btn-*) — those custom
   properties are declared inline in each page's <head>, not here, so a
   single :root source of truth always wins the cascade. */

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }

/* ==== Layout ==== */
.container { width: 100%; max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; } /* [content] */
.max-w-full { max-width: 100%; } /* [content] */
.w-full { width: 100%; }
.h-full { height: 100%; }
/* width:auto pins these against the logo <img>'s real width/height HTML
   attributes (added for CLS reservation): the base `img{height:auto}` rule
   above only fixes height, so without this the attribute-derived width
   stays literally pinned once .h-8/.h-10 override height, stretching the
   logo to the wrong aspect ratio. Only ever used on the logo <img>. */
.h-8 { height: 2rem; width: auto; } /* [content] tbody row height */
.h-10 { height: 2.5rem; width: auto; }
.h-auto { height: auto; } /* [content] */
.min-w-full { min-width: 100%; } /* [content] */
.max-h-12 { max-height: 3rem; }
.max-w-24 { max-width: 6rem; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; } /* [content] */

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

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

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* ==== Spacing ==== */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; } /* [content] */
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } /* [content] */
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } /* [content] */
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } /* [content] */
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; } /* [content] */
.pl-4 { padding-left: 1rem; } /* [content] */
.pl-6 { padding-left: 1.5rem; } /* [content] */

.mb-2 { margin-bottom: 0.5rem; } /* [content] */
.mb-3 { margin-bottom: 0.75rem; } /* [content] */
.mb-4 { margin-bottom: 1rem; } /* [content] */
.mb-6 { margin-bottom: 1.5rem; } /* [content] */
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; } /* [content] */
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } /* [content] */
.my-8 { margin-top: 2rem; margin-bottom: 2rem; } /* [content] */
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; } /* [content] */
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }

/* ==== Typography ==== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; } /* [content] */
.text-xl { font-size: 1.25rem; } /* [content] */
.text-2xl { font-size: 1.5rem; } /* [content] */
.text-3xl { font-size: 1.875rem; } /* [content] */
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; } /* [content] */
.font-bold { font-weight: 700; } /* [content] */
.italic { font-style: italic; } /* [content] */
.underline { text-decoration: underline; } /* [content] */
.no-underline { text-decoration: none; }
.text-left { text-align: left; } /* [content] */
.text-center { text-align: center; }
.text-right { text-align: right; }
.list-disc { list-style-type: disc; } /* [content] */
.list-decimal { list-style-type: decimal; } /* [content] */
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: 0.025em; }

/* ==== Colors: fixed neutrals (mandated by html_processors.py, out of theme's control) ==== */
.bg-gray-100 { background-color: #f3f4f6; } /* [content] */
.bg-white { background-color: #fff; } /* [content] */
.text-gray-700 { color: #374151; } /* [content] */
.text-gray-600 { color: #4b5563; } /* [content] */
.text-white { color: #fff; } /* [content] */
.border-gray-200 { border-color: #e5e7eb; } /* [content] */
.hover\:bg-gray-50:hover { background-color: #f9fafb; } /* [content] */
.hover\:text-white:hover { color: #fff; }

/* Footer link tones on dark background (own markup, not [content]) */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

/* ==== Colors: brand-driven, always via CSS custom properties ==== */
.bg-primary { background-color: var(--color-primary); } /* [content] */
.bg-secondary { background-color: var(--color-secondary); }
.bg-light { background-color: var(--color-light); }
.bg-accent { background-color: var(--color-accent); }
.text-primary { color: var(--color-primary); } /* [content] */
.text-secondary { color: var(--color-secondary); } /* [content] */
.text-accent { color: var(--color-accent); }
.text-verylight { color: #F5F5F7; } /* hardcoded: color_verylight is unreliable brand data, see styles.css note */
.border-primary { border-color: var(--color-primary); } /* [content] */
.border-secondary { border-color: var(--color-secondary); }
.border-accent { border-color: var(--color-accent); }
.hover\:text-secondary:hover { color: var(--color-secondary); } /* [content] */
.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:text-verylight:hover { color: #F5F5F7; }
.transition-colors { transition: color var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed); }

/* ==== Borders / radius / shadow ==== */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; } /* [content] */
.border-l-4 { border-left-width: 4px; border-left-style: solid; } /* [content] */
.border-collapse { border-collapse: collapse; } /* [content] */
.rounded { border-radius: 0.5rem; } /* [content] */
.rounded-lg { border-radius: 0.75rem; } /* [content] */
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); } /* [content] */

/* ==== Responsive helpers ==== */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; }
  .md\:ml-auto { margin-left: auto !important; }
  .md\:justify-end { justify-content: flex-end !important; }
  .md\:py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

@media (max-width: 767px) {
  .max-md\:hidden { display: none !important; }
}
