/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
  color: #111827;
}
h1, h2, h3, .font-manrope { font-family: 'Manrope', sans-serif; }

/* === COLORS === */
:root {
  --navy: #0d2c54;
  --red: #dc2626;
  --red-dark: #b91c1c;
}

/* === LAYOUT CONTAINERS === */
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-md  { max-width: 28rem; }
.max-w-xs  { max-width: 20rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* === DISPLAY === */
.flex  { display: flex; }
.grid  { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* === FLEX === */
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

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

/* === GAP / SPACE === */
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-16 { gap: 4rem; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* === GRID === */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* === PADDING === */
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }

.py-1  { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2  { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.py-24 { padding-top: 6rem;    padding-bottom: 6rem; }

.pt-10 { padding-top: 2.5rem; }
.pb-4  { padding-bottom: 1rem; }
.pl-4  { padding-left: 1rem; }

/* === MARGIN === */
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

/* === SIZING === */
.h-1   { height: 0.25rem; }
.h-12  { height: 3rem; }
.h-20  { height: 5rem; }
.h-24  { height: 6rem; }
.w-5   { width: 1.25rem; }
.w-6   { width: 1.5rem; }
.w-8   { width: 2rem; }
.w-12  { width: 3rem; }
.w-24  { width: 6rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-5   { height: 1.25rem; }
.h-6   { height: 1.5rem; }
.h-8   { height: 2rem; }

/* === POSITION === */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.z-50     { z-index: 50; }

/* === OVERFLOW === */
.overflow-hidden { overflow: hidden; }

/* === OBJECT-FIT === */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* === ASPECT RATIO === */
.aspect-square { aspect-ratio: 1 / 1; }

/* === TYPOGRAPHY === */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }

.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.uppercase { text-transform: uppercase; }
.italic    { font-style: italic; }

.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

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

/* === COLORS — TEXT === */
.text-white      { color: #fff; }
.text-black      { color: #000; }
.text-gray-400   { color: #9ca3af; }
.text-gray-500   { color: #6b7280; }
.text-gray-600   { color: #4b5563; }
.text-blokmart-navy { color: var(--navy); }

/* === COLORS — BACKGROUND === */
.bg-white      { background-color: #fff; }
.bg-black      { background-color: #000; }
.bg-gray-50    { background-color: #f9fafb; }
.bg-gray-100   { background-color: #f3f4f6; }
.bg-gray-200\/50 { background-color: rgba(229,231,235,0.5); }
.bg-blue-100   { background-color: #dbeafe; }
.bg-red-600    { background-color: var(--red); }
.bg-blokmart-navy { background-color: var(--navy); }
.bg-white\/10  { background-color: rgba(255,255,255,0.1); }
.bg-white\/90  { background-color: rgba(255,255,255,0.9); }
.bg-blokmart-navy { background-color: var(--navy); }

/* === BORDER === */
.border    { border-width: 1px; border-style: solid; }
.border-b  { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y  { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-t  { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }

.border-gray-100  { border-color: #f3f4f6; }
.border-gray-200  { border-color: #e5e7eb; }
.border-gray-300  { border-color: #d1d5db; }
.border-red-600   { border-color: var(--red); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-sm { border-radius: 0.125rem; }

/* === SHADOW === */
.shadow-sm   { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md   { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-2xl  { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* === BACKDROP === */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* === POINTER / CURSOR === */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* === OPACITY === */
.opacity-20 { opacity: 0.2; }

/* === GRAYSCALE === */
.grayscale { filter: grayscale(100%); }

/* === TRANSITIONS === */
.transition     { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; }
.transition-all { transition: all 0.15s ease; }
.duration-300   { transition-duration: 300ms; }
.duration-500   { transition-duration: 500ms; }

/* === HOVER === */
.hover\:text-blokmart-navy:hover { color: var(--navy); }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-gray-50:hover  { background-color: #f9fafb; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-red-700:hover  { background-color: var(--red-dark); }
.hover\:bg-white:hover    { background-color: #fff; }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:shadow-xl:hover   { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* === SPECIAL === */
.invert { filter: invert(1); }
.brightness-0 { filter: brightness(0); }
.invert.brightness-0 { filter: invert(1) brightness(0); }

/* === BACKGROUND PATTERN (hero) === */
.bg-\[url\(\'https\:\/\/www\.transparenttextures\.com\/patterns\/carbon-fibre\.png\'\)\] {
  background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

/* === GROUP HOVER === */
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group-hover\:transition-transform { transition: transform 0.15s ease; }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   sm: 640px | md: 768px | lg: 1024px
   ========================================================= */

/* sm */
@media (min-width: 640px) {
  .sm\:inline-block { display: inline-block; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
}

/* md */
@media (min-width: 768px) {
  .md\:flex    { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:items-end { align-items: flex-end; }
  .md\:mt-0    { margin-top: 0; }
  .md\:gap-16  { gap: 4rem; } /* may already be set */
}

/* lg */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:p-20   { padding: 5rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem;    line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem;  line-height: 1; }
  .lg\:cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   COMPONENT-LEVEL OVERRIDES
   (things Tailwind handles implicitly)
   ========================================================= */

/* h-[600px] inline style equivalent — kept as class below */
.h-\[600px\] { height: 600px; }

/* Sticky header transparent background needs both bg-white/95 and backdrop */
.bg-white\/95 { background-color: rgba(255,255,255,0.95); }

/* Block label (badge) */
.block { display: block; }

/* Footer logo filter: invert + brightness-0 = black logo on dark bg */
footer img.invert.brightness-0 { filter: invert(1) brightness(0) invert(1); }
