/* Mavuni Sand & Brick Yard - Main CSS */
/* Kenfore Group Design Language with Mavuni Brand Identity */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* ===== MAVUNI BRAND COLORS ===== */
  /* Primary brand colors - unique to Mavuni */
  --mavuni-primary-red: #b54c31;
  --mavuni-secondary-brown: #9a8369;
  --mavuni-accent-nude: #d5b989;
  
  /* Legacy color variables for backward compatibility */
  --primary-red: var(--mavuni-primary-red);
  --secondary-brown: var(--mavuni-secondary-brown);
  --accent-nude: var(--mavuni-accent-nude);
  
  /* ===== KENFORE GROUP NEUTRAL PALETTE ===== */
  /* Shared neutral colors across Kenfore Group */
  --neutral-white: #ffffff;
  --neutral-charcoal: #2c3e50;
  --neutral-light-gray: #f8f9fa;
  --neutral-medium-gray: #6c757d;
  --neutral-dark-gray: #495057;
  
  /* ===== KENFORE GROUP TYPOGRAPHY SYSTEM ===== */
  /* Standardized font families across Kenfore Group */
  --font-primary: 'Montserrat', 'D-DIN', system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);
  --font-ui: var(--font-primary);
  
  /* Font weight scale - Montserrat weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* Typography scale - responsive and scalable */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* Line height scale */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;
  
  /* ===== KENFORE GROUP SPACING SYSTEM ===== */
  /* 8px base unit spacing scale - standardized across group */
  --space-0: 0;
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 1rem;        /* 16px */
  --space-md: 1.5rem;      /* 24px */
  --space-lg: 2rem;        /* 32px */
  --space-xl: 3rem;        /* 48px */
  --space-2xl: 4rem;       /* 64px */
  --space-3xl: 6rem;       /* 96px */
  --space-4xl: 8rem;       /* 128px */
  
  /* ===== MAVUNI SHADOW SYSTEM ===== */
  /* Elevation system with Mavuni brand colors */
  --shadow-color-light: rgba(181, 76, 49, 0.08);  /* Primary red tint */
  --shadow-color-medium: rgba(181, 76, 49, 0.12);
  --shadow-color-dark: rgba(181, 76, 49, 0.16);
  --shadow-color-heavy: rgba(44, 62, 80, 0.25);   /* Charcoal for depth */
  
  --shadow-xs: 0 1px 2px var(--shadow-color-light);
  --shadow-sm: 0 2px 4px var(--shadow-color-light);
  --shadow-md: 0 4px 8px var(--shadow-color-medium);
  --shadow-lg: 0 8px 16px var(--shadow-color-medium);
  --shadow-xl: 0 16px 32px var(--shadow-color-dark);
  --shadow-2xl: 0 24px 48px var(--shadow-color-heavy);
  
  /* Legacy shadow variables for backward compatibility */
  --shadow-light: var(--shadow-color-light);
  --shadow-medium: var(--shadow-color-medium);
  --shadow-dark: var(--shadow-color-dark);
  
  /* ===== KENFORE GROUP BORDER RADIUS SYSTEM ===== */
  /* Consistent border radius across group */
  --radius-none: 0;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;        /* Mavuni signature radius */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 50%;
  
  /* ===== KENFORE GROUP BREAKPOINT SYSTEM ===== */
  /* Standardized responsive breakpoints */
  --breakpoint-xs: 320px;   /* Small mobile */
  --breakpoint-sm: 576px;   /* Large mobile */
  --breakpoint-md: 768px;   /* Tablet */
  --breakpoint-lg: 1024px;  /* Desktop */
  --breakpoint-xl: 1200px;  /* Large desktop */
  --breakpoint-2xl: 1400px; /* Extra large desktop */
  
  /* ===== LAYOUT SYSTEM ===== */
  /* Container and layout variables */
  --container-max-width: 1200px;
  --container-padding: var(--space-md);
  --container-padding-mobile: var(--space-sm);
  
  /* ===== ANIMATION SYSTEM ===== */
  /* Consistent timing and easing across group */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 750ms;
  
  --ease-linear: linear;
  --ease-in: ease-in;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ===== Z-INDEX SYSTEM ===== */
  /* Layering system for consistent stacking */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-toast: 80;
  --z-maximum: 9999;
}

/* ===== KENFORE GROUP CSS RESET ===== */
/* Standardized reset across all Kenfore Group websites */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Kenfore Group standard: Enable smooth scrolling */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-charcoal);
  background-color: var(--neutral-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Kenfore Group standard: Fixed header spacing */
  padding-top: 80px;
}

/* Kenfore Group responsive header spacing */
@media (min-width: 768px) {
  body {
    padding-top: 88px;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 96px;
  }
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
  /* Kenfore Group standard: Smooth transitions on links */
  transition: color var(--duration-normal) var(--ease-smooth);
}

/* Remove default button styles */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  /* Kenfore Group standard: Smooth transitions on buttons */
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Remove default form element styles */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  /* Kenfore Group standard: Form element transitions */
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

/* Kenfore Group standard: Optimized image defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent layout shift during image loading */
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* ===== KENFORE GROUP TYPOGRAPHY SYSTEM ===== */
/* Standardized typography hierarchy across all Kenfore Group websites */

/* Heading styles - Montserrat Bold for impact */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-sm);
  color: var(--neutral-charcoal);
  /* Kenfore Group standard: Smooth text rendering */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Responsive heading sizes - mobile-first approach */
h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Kenfore Group responsive heading scaling */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }
  
  h2 {
    font-size: var(--text-4xl);
  }
  
  h3 {
    font-size: var(--text-3xl);
  }
}

/* Body text styles */
p {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
  color: var(--neutral-charcoal);
}

/* Lead paragraph style - Kenfore Group pattern */
.lead {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--neutral-dark-gray);
}

/* Small text style */
small, .text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* Blockquote styles - Kenfore Group pattern */
blockquote {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  padding: var(--space-md);
  border-left: 4px solid var(--mavuni-primary-red);
  background-color: var(--neutral-light-gray);
  margin: var(--space-lg) 0;
}

blockquote cite {
  font-style: normal;
  font-weight: var(--font-weight-medium);
  color: var(--mavuni-secondary-brown);
}

/* ===== KENFORE GROUP LAYOUT SYSTEM ===== */
/* Standardized container and grid system across all Kenfore Group websites */

/* Container component - responsive and consistent */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-mobile);
}

/* Kenfore Group responsive container padding */
@media (min-width: 576px) {
  .container {
    padding: 0 var(--container-padding);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* CSS Grid System - Kenfore Group standard */
.grid {
  display: grid;
  gap: var(--space-md);
}

/* Mobile-first grid columns */
.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid modifiers */
@media (min-width: 576px) {
  .grid-sm-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-sm-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-sm-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-md-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-lg-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flexbox System - Kenfore Group standard */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

/* Alignment utilities */
.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* Gap utilities - consistent spacing */
.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* ===== KENFORE GROUP COMPONENT SYSTEM ===== */

/* ===== HEADER COMPONENT ===== */
/* Kenfore Group standard header with Mavuni branding */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xl);
  color: var(--mavuni-primary-red);
  text-decoration: none;
}

.header__nav {
  display: none;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    gap: var(--space-lg);
  }
}

.header__nav-link {
  font-family: var(--font-ui);
  font-weight: var(--font-weight-medium);
  color: var(--neutral-charcoal);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--mavuni-primary-red);
  background-color: rgba(181, 76, 49, 0.05);
}

/* ===== FOOTER COMPONENT ===== */
/* Kenfore Group standard footer with Mavuni branding */
.footer {
  background-color: var(--neutral-charcoal);
  color: var(--neutral-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xl);
  color: var(--mavuni-primary-red);
  margin-bottom: var(--space-sm);
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.footer__link:hover {
  color: var(--mavuni-accent-nude);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--mavuni-secondary-brown);
  color: var(--neutral-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.footer__social-link:hover {
  background-color: var(--mavuni-primary-red);
  transform: translateY(-2px);
}

/* ===== BRICK CARD COMPONENT ===== */
/* Mavuni signature component with Kenfore Group interactions */
.brick-card {
  background: var(--neutral-white);
  border-radius: var(--radius-md); /* Mavuni signature 12px radius */
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-smooth);
  border-left: 4px solid transparent;
}

.brick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brick-card--primary {
  border-left-color: var(--mavuni-primary-red);
}

.brick-card--secondary {
  border-left-color: var(--mavuni-secondary-brown);
}

.brick-card--accent {
  border-left-color: var(--mavuni-accent-nude);
}

.brick-card__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--neutral-charcoal);
  margin-bottom: var(--space-sm);
}

.brick-card__description {
  font-family: var(--font-body);
  color: var(--neutral-dark-gray);
  line-height: var(--leading-relaxed);
}

/* ===== BUTTON COMPONENT ===== */
/* Kenfore Group standard buttons with Mavuni colors */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px; /* Accessibility: minimum touch target */
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--mavuni-primary-red);
  color: var(--neutral-white);
}

.btn--primary:hover {
  background-color: #a04329;
  box-shadow: 0 6px 20px rgba(181, 76, 49, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: var(--mavuni-secondary-brown);
  border-color: var(--mavuni-secondary-brown);
}

.btn--secondary:hover {
  background-color: var(--mavuni-secondary-brown);
  color: var(--neutral-white);
}

.btn--accent {
  background-color: var(--mavuni-accent-nude);
  color: var(--neutral-charcoal);
}

.btn--accent:hover {
  background-color: #c9a876;
}

/* ===== HERO COMPONENT ===== */
/* Kenfore Group standard hero with Mavuni styling */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.5) 0%,
    rgba(181, 76, 49, 0.4) 100%
  );
  z-index: 1;
}

.hero__content {
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: var(--leading-tight);
  color: var(--neutral-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-md);
}

.hero__title-accent {
  color: var(--mavuni-accent-nude);
}

.hero__description {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

/* ===== SECTION COMPONENT ===== */
/* Kenfore Group standard sections */
.section {
  padding: var(--space-3xl) 0;
}

.section--alternate {
  background-color: var(--neutral-light-gray);
}

.section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--neutral-charcoal);
  margin-bottom: var(--space-md);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--mavuni-primary-red);
  margin: var(--space-sm) auto 0;
}

.section__description {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  color: var(--mavuni-secondary-brown);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* ===== MOBILE-FIRST RESPONSIVE BREAKPOINTS ===== */
/* Kenfore Group standard breakpoint system */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .flex-md-row {
    flex-direction: row;
  }
  
  .text-md-left {
    text-align: left;
  }
  
  .text-md-center {
    text-align: center;
  }
  
  .text-md-right {
    text-align: right;
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .flex-lg-row {
    flex-direction: row;
  }
  
  .text-lg-left {
    text-align: left;
  }
  
  .text-lg-center {
    text-align: center;
  }
  
  .text-lg-right {
    text-align: right;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .flex-xl-row {
    flex-direction: row;
  }
}

/* ===== UTILITY CLASSES ===== */

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-red); }
.text-secondary { color: var(--secondary-brown); }
.text-accent { color: var(--accent-nude); }
.text-white { color: var(--neutral-white); }

/* Background utilities */
.bg-primary { background-color: var(--primary-red); }
.bg-secondary { background-color: var(--secondary-brown); }
.bg-accent { background-color: var(--accent-nude); }
.bg-white { background-color: var(--neutral-white); }
.bg-charcoal { background-color: var(--neutral-charcoal); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Height utilities */
.h-full { height: 100%; }
.h-auto { height: auto; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== IMAGE OPTIMIZATION AND LAZY LOADING ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  /* opacity removed for immediate display */
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Image placeholder while loading */
.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== ENHANCED TYPOGRAPHY UTILITIES ===== */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-light {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-capitalize {
  text-transform: capitalize;
}

.font-weight-light {
  font-weight: 300;
}

.font-weight-normal {
  font-weight: 400;
}

.font-weight-medium {
  font-weight: 500;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-bold {
  font-weight: 700;
}

.line-height-tight {
  line-height: 1.2;
}

.line-height-normal {
  line-height: 1.5;
}

.line-height-relaxed {
  line-height: 1.6;
}

.line-height-loose {
  line-height: 1.8;
}

/* ===== ENHANCED SPACING UTILITIES ===== */
.space-y-xs > * + * {
  margin-top: var(--space-xs);
}

.space-y-sm > * + * {
  margin-top: var(--space-sm);
}

.space-y-md > * + * {
  margin-top: var(--space-md);
}

.space-y-lg > * + * {
  margin-top: var(--space-lg);
}

.space-y-xl > * + * {
  margin-top: var(--space-xl);
}

.space-x-xs > * + * {
  margin-left: var(--space-xs);
}

.space-x-sm > * + * {
  margin-left: var(--space-sm);
}

.space-x-md > * + * {
  margin-left: var(--space-md);
}

.space-x-lg > * + * {
  margin-left: var(--space-lg);
}

.space-x-xl > * + * {
  margin-left: var(--space-xl);
}

/* ===== ENHANCED LAYOUT UTILITIES ===== */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.object-center {
  object-position: center;
}

/* ===== ENHANCED BORDER UTILITIES ===== */
.border {
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.border-primary {
  border: 1px solid var(--primary-red);
}

.border-secondary {
  border: 1px solid var(--secondary-brown);
}

.border-accent {
  border: 1px solid var(--accent-nude);
}

.border-t {
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.border-b {
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.border-l {
  border-left: 1px solid rgba(44, 62, 80, 0.1);
}

.border-r {
  border-right: 1px solid rgba(44, 62, 80, 0.1);
}

.rounded {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: 50%;
}

/* ===== ENHANCED SHADOW UTILITIES ===== */
.shadow-sm {
  box-shadow: 0 1px 2px var(--shadow-light);
}

.shadow {
  box-shadow: 0 4px 6px var(--shadow-light);
}

.shadow-md {
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.shadow-lg {
  box-shadow: 0 16px 40px var(--shadow-dark);
}

.shadow-none {
  box-shadow: none;
}

/* ===== ENHANCED TRANSITION UTILITIES ===== */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

.duration-150 {
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-in {
  transition-timing-function: ease-in;
}

.ease-out {
  transition-timing-function: ease-out;
}

.ease-in-out {
  transition-timing-function: ease-in-out;
}

/* ===== ENHANCED TRANSFORM UTILITIES ===== */
.transform {
  transform: translateZ(0); /* Enable hardware acceleration */
}

.scale-95 {
  transform: scale(0.95);
}

.scale-100 {
  transform: scale(1);
}

.scale-105 {
  transform: scale(1.05);
}

.scale-110 {
  transform: scale(1.1);
}

.rotate-45 {
  transform: rotate(45deg);
}

.rotate-90 {
  transform: rotate(90deg);
}

.rotate-180 {
  transform: rotate(180deg);
}

.-rotate-45 {
  transform: rotate(-45deg);
}

.-rotate-90 {
  transform: rotate(-90deg);
}

.-rotate-180 {
  transform: rotate(-180deg);
}

.translate-x-1 {
  transform: translateX(0.25rem);
}

.translate-x-2 {
  transform: translateX(0.5rem);
}

.translate-y-1 {
  transform: translateY(0.25rem);
}

.translate-y-2 {
  transform: translateY(0.5rem);
}

.-translate-x-1 {
  transform: translateX(-0.25rem);
}

.-translate-x-2 {
  transform: translateX(-0.5rem);
}

.-translate-y-1 {
  transform: translateY(-0.25rem);
}

.-translate-y-2 {
  transform: translateY(-0.5rem);
}

/* ===== ENHANCED OPACITY UTILITIES ===== */
.opacity-0 {
  opacity: 0;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* ===== ENHANCED Z-INDEX UTILITIES ===== */
.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-auto {
  z-index: auto;
}

/* ===== ENHANCED OVERFLOW UTILITIES ===== */
.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-hidden {
  overflow-y: hidden;
}

.overflow-x-scroll {
  overflow-x: scroll;
}

.overflow-y-scroll {
  overflow-y: scroll;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* ===== ENHANCED CURSOR UTILITIES ===== */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-default {
  cursor: default;
}

.cursor-text {
  cursor: text;
}

.cursor-move {
  cursor: move;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* ===== ENHANCED SELECTION UTILITIES ===== */
.select-none {
  user-select: none;
}

.select-text {
  user-select: text;
}

.select-all {
  user-select: all;
}

.select-auto {
  user-select: auto;
}

/* ===== ENHANCED POINTER EVENTS UTILITIES ===== */
.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* ===== ENHANCED RESIZE UTILITIES ===== */
.resize-none {
  resize: none;
}

.resize {
  resize: both;
}

.resize-x {
  resize: horizontal;
}

.resize-y {
  resize: vertical;
}