/* HM Sports Enterprises - Handcrafted Premium Sports Infrastructure Stylesheet
   Designed with human-centered craftsmanship, rich visual depth, and luxury aesthetic across all pages.
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-brown: #7A320B;
  --primary-brown-hover: #5F2607;
  --primary-brown-dark: #3D1604;
  --accent-orange: #C25E1A;
  --accent-orange-light: #E07A3B;
  --accent-light-bg: #FCFAF7;
  --beige-bg: #F8F3ED;
  --beige-card-bg: #FFFDF9;
  --border-light: #EAE4DC;
  --text-dark: #1C1917;
  --text-muted: #57534E;
  --text-light: #8C857B;

  /* Backward Compatibility & Fallbacks */
  --slate-50: #FCFAF7;
  --slate-100: #F8F3ED;
  --slate-200: #EAE4DC;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #8C857B;
  --slate-600: #57534E;
  --slate-700: #3C3530;
  --slate-800: #292524;
  --slate-900: #1C1917;
  --primary-red: #7A320B;
  --primary-red-hover: #5F2607;
  --primary-red-light: rgba(194, 94, 26, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Spacing & Layout Utilities */
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.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-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Flex & Grid Core */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.w-full { width: 100%; }

/* Gap Utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }

/* Grid Columns */
.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)); }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:block { display: block !important; }
}

@media (min-width: 768px) {
  .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\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Premium Sticky Navigation Bar */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 228, 220, 0.85);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

.nav-link-item {
  color: #3C3530;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}
.nav-link-item:hover {
  color: var(--primary-brown);
  background-color: rgba(122, 50, 11, 0.04);
}
.nav-link-item.active {
  color: var(--primary-brown);
  font-weight: 700;
  background-color: #FDF8F3;
}
.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background-color: var(--primary-brown);
  border-radius: 3px;
}

/* Hero Slanted Dark Overlay (Clean Warm Brown Overlay) */
.hero-slanted-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 56%;
  background: linear-gradient(135deg, rgba(28, 17, 11, 0.96) 0%, rgba(16, 9, 5, 0.94) 100%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 10;
}
.hero-slanted-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 1024px) {
  .hero-slanted-overlay {
    width: 100%;
    clip-path: none;
    background: linear-gradient(to right, rgba(28, 17, 11, 0.97) 0%, rgba(18, 10, 6, 0.92) 100%);
  }
}

/* Feature Row Dividers */
.hero-feature-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.22);
}

/* Hero Banner Buttons (Clean Terracotta Orange & Dark Outline) */
.btn-banner-primary {
  background: #C85B28;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
  border: none;
  box-shadow: 0 4px 14px rgba(200, 91, 40, 0.35);
}
.btn-banner-primary:hover {
  background: #B44E1F;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 91, 40, 0.45);
}

.btn-banner-secondary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
}
.btn-banner-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Handcrafted Pill Badges & Eyebrows */
.eyebrow-pill, .badge-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  background: rgba(194, 94, 26, 0.08);
  border: 1px solid rgba(194, 94, 26, 0.2);
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.eyebrow-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--accent-orange);
}

/* Unified Page Hero Banner */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0A0F1D 0%, #1A130F 100%);
  padding: 4.5rem 0;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 122, 59, 0.15) 0%, rgba(10, 15, 29, 0) 70%);
  pointer-events: none;
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-top: 0.5rem;
}
.page-hero-sub {
  font-size: 0.95rem;
  color: #CBD5E1;
  max-width: 40rem;
  margin-top: 0.5rem;
  line-height: 1.65;
}

/* Cards (Standardized Handcrafted Card Component) */
.card {
  background-color: #ffffff;
  border: 1px solid #EAE4DC;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  border-color: rgba(194, 94, 26, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Buttons with Tactile Depth */
.btn, .btn-brown, .btn-red {
  background: linear-gradient(135deg, #8B3A0F 0%, #682606 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(122, 50, 11, 0.35), 0 4px 6px -2px rgba(122, 50, 11, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover, .btn-brown:hover, .btn-red:hover {
  background: linear-gradient(135deg, #9C4212 0%, #762B07 100%);
  box-shadow: 0 14px 30px -5px rgba(122, 50, 11, 0.45), 0 6px 10px -2px rgba(122, 50, 11, 0.2);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-brown-dark);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
.btn-white:hover {
  background-color: #FFFDF9;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Service Grid Cards (Clean Terracotta Icon Style - Mockup Match) */
.service-icon-card {
  background-color: #ffffff;
  border: 1px solid rgba(238, 232, 224, 0.85);
  border-radius: 0.9rem;
  padding: 1.85rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025), 0 1px 4px rgba(0, 0, 0, 0.015);
  position: relative;
  overflow: hidden;
}
.service-icon-card:hover {
  border-color: rgba(122, 46, 20, 0.25);
  box-shadow: 0 14px 30px -4px rgba(122, 46, 20, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-4px);
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A2E14;
  transition: transform 0.3s ease;
}
.service-icon-card:hover .service-icon-wrapper {
  transform: scale(1.12);
  color: #9C3818;
}

.service-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1C1917;
  line-height: 1.3;
}

/* Service Section CTA Button */
.btn-services-cta {
  background: #7A2E14;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.25s ease;
  border: none;
  box-shadow: 0 4px 14px rgba(122, 46, 20, 0.3);
}
.btn-services-cta:hover {
  background: #64230D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(122, 46, 20, 0.4);
}

/* Flooring / Product Cards */
.flooring-card {
  background-color: #ffffff;
  border: 1px solid #EAE4DC;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.flooring-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
  border-color: rgba(194, 94, 26, 0.3);
}
.flooring-img-container {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background-color: #F3ECE2;
}
.flooring-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.flooring-card:hover .flooring-img-container img {
  transform: scale(1.06);
}

/* Form Input Controls */
.admin-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #EAE4DC;
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(194, 94, 26, 0.12);
}

/* Floating Action Buttons */
.floating-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, background-color 0.25s;
  text-decoration: none;
}
.floating-btn:hover {
  transform: scale(1.1);
}
.floating-whatsapp { background-color: #059669; }
.floating-call { background-color: var(--primary-brown); }
