/**
 * U-Home Design System — Generic Utility Classes
 * Inspired by PrimeFlex, Bootstrap & Tailwind CSS, tuned with U-Home Design Tokens
 */

/* ── DISPLAY ── */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* ── FLEXBOX DIRECTIONS & WRAPPING ── */
.flex-row { flex-direction: row !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-col,
.flex-column { flex-direction: column !important; }
.flex-col-reverse { flex-direction: column-reverse !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-auto { flex: 1 1 auto !important; }
.flex-none { flex: none !important; }

/* ── FLEXBOX ALIGN & JUSTIFY ── */
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }
.items-baseline { align-items: baseline !important; }

.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.justify-evenly { justify-content: space-evenly !important; }

.self-start { align-self: flex-start !important; }
.self-center { align-self: center !important; }
.self-end { align-self: flex-end !important; }
.self-stretch { align-self: stretch !important; }

/* ── GAP SCALE ── */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: var(--uh-space-1) !important; } /* 4px */
.gap-2 { gap: var(--uh-space-2) !important; } /* 8px */
.gap-3 { gap: var(--uh-space-3) !important; } /* 12px */
.gap-4 { gap: var(--uh-space-4) !important; } /* 16px */
.gap-5 { gap: var(--uh-space-5) !important; } /* 20px */
.gap-6 { gap: var(--uh-space-6) !important; } /* 24px */
.gap-7 { gap: 28px !important; }
.gap-8 { gap: var(--uh-space-8) !important; } /* 32px */

/* ── SPACING: PADDING (ALL SIDES) ── */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--uh-space-1) !important; }
.p-2 { padding: var(--uh-space-2) !important; }
.p-3 { padding: var(--uh-space-3) !important; }
.p-4 { padding: var(--uh-space-4) !important; }
.p-5 { padding: var(--uh-space-5) !important; }
.p-6 { padding: var(--uh-space-6) !important; }

/* Horizontal / Vertical */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: var(--uh-space-1) !important; padding-right: var(--uh-space-1) !important; }
.px-2 { padding-left: var(--uh-space-2) !important; padding-right: var(--uh-space-2) !important; }
.px-3 { padding-left: var(--uh-space-3) !important; padding-right: var(--uh-space-3) !important; }
.px-4 { padding-left: var(--uh-space-4) !important; padding-right: var(--uh-space-4) !important; }
.px-5 { padding-left: var(--uh-space-5) !important; padding-right: var(--uh-space-5) !important; }
.px-6 { padding-left: var(--uh-space-6) !important; padding-right: var(--uh-space-6) !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: var(--uh-space-1) !important; padding-bottom: var(--uh-space-1) !important; }
.py-2 { padding-top: var(--uh-space-2) !important; padding-bottom: var(--uh-space-2) !important; }
.py-3 { padding-top: var(--uh-space-3) !important; padding-bottom: var(--uh-space-3) !important; }
.py-4 { padding-top: var(--uh-space-4) !important; padding-bottom: var(--uh-space-4) !important; }
.py-5 { padding-top: var(--uh-space-5) !important; padding-bottom: var(--uh-space-5) !important; }
.py-6 { padding-top: var(--uh-space-6) !important; padding-bottom: var(--uh-space-6) !important; }

/* Directional Padding */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--uh-space-1) !important; }
.pt-2 { padding-top: var(--uh-space-2) !important; }
.pt-3 { padding-top: var(--uh-space-3) !important; }
.pt-4 { padding-top: var(--uh-space-4) !important; }
.pt-5 { padding-top: var(--uh-space-5) !important; }
.pt-6 { padding-top: var(--uh-space-6) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--uh-space-1) !important; }
.pb-2 { padding-bottom: var(--uh-space-2) !important; }
.pb-3 { padding-bottom: var(--uh-space-3) !important; }
.pb-4 { padding-bottom: var(--uh-space-4) !important; }
.pb-5 { padding-bottom: var(--uh-space-5) !important; }
.pb-6 { padding-bottom: var(--uh-space-6) !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: var(--uh-space-1) !important; }
.pl-2 { padding-left: var(--uh-space-2) !important; }
.pl-3 { padding-left: var(--uh-space-3) !important; }
.pl-4 { padding-left: var(--uh-space-4) !important; }
.pl-5 { padding-left: var(--uh-space-5) !important; }
.pl-6 { padding-left: var(--uh-space-6) !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: var(--uh-space-1) !important; }
.pr-2 { padding-right: var(--uh-space-2) !important; }
.pr-3 { padding-right: var(--uh-space-3) !important; }
.pr-4 { padding-right: var(--uh-space-4) !important; }
.pr-5 { padding-right: var(--uh-space-5) !important; }
.pr-6 { padding-right: var(--uh-space-6) !important; }

/* ── SPACING: MARGIN ── */
.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--uh-space-1) !important; }
.mb-2 { margin-bottom: var(--uh-space-2) !important; }
.mb-3 { margin-bottom: var(--uh-space-3) !important; }
.mb-4 { margin-bottom: var(--uh-space-4) !important; }
.mb-5 { margin-bottom: var(--uh-space-5) !important; }
.mb-6 { margin-bottom: var(--uh-space-6) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--uh-space-1) !important; }
.mt-2 { margin-top: var(--uh-space-2) !important; }
.mt-3 { margin-top: var(--uh-space-3) !important; }
.mt-4 { margin-top: var(--uh-space-4) !important; }
.mt-5 { margin-top: var(--uh-space-5) !important; }
.mt-6 { margin-top: var(--uh-space-6) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: var(--uh-space-1) !important; }
.ml-2 { margin-left: var(--uh-space-2) !important; }
.ml-3 { margin-left: var(--uh-space-3) !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: var(--uh-space-1) !important; }
.mr-2 { margin-right: var(--uh-space-2) !important; }
.mr-3 { margin-right: var(--uh-space-3) !important; }

/* ── TYPOGRAPHY: SIZES ── */
.fs-10 { font-size: 10.5px !important; }
.fs-11 { font-size: 11.5px !important; }
.fs-12 { font-size: 12.5px !important; }
.fs-13 { font-size: 13.5px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18.5px !important; }
.fs-20 { font-size: 20px !important; }
.fs-22 { font-size: 22px !important; }
.fs-24 { font-size: 24px !important; }
.fs-28 { font-size: 28px !important; }
.fs-32 { font-size: 32px !important; }
.fs-36 { font-size: 36px !important; }
.fs-40 { font-size: 40px !important; }

/* ── TYPOGRAPHY: WEIGHTS ── */
.fw-normal, .fw-400 { font-weight: 400 !important; }
.fw-medium, .fw-500 { font-weight: 500 !important; }
.fw-semibold, .fw-600 { font-weight: 600 !important; }
.fw-bold, .fw-700 { font-weight: 700 !important; }
.fw-extrabold, .fw-800 { font-weight: 800 !important; }
.fw-black, .fw-900 { font-weight: 900 !important; }

/* ── TYPOGRAPHY: LINE HEIGHTS ── */
.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.3 !important; }
.lh-base { line-height: 1.55 !important; }
.lh-relaxed { line-height: 1.7 !important; }

/* ── TYPOGRAPHY: LETTER SPACING ── */
.tracking-tight { letter-spacing: -0.02em !important; }
.tracking-normal { letter-spacing: 0 !important; }
.tracking-wide { letter-spacing: 0.02em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }

/* ── TYPOGRAPHY: ALIGNMENT & TRANSFORM ── */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── TEXT COLORS ── */
.text-primary { color: var(--uh-color-primary) !important; }
.text-navy { color: var(--uh-color-navy) !important; }
.text-muted { color: var(--uh-color-text-muted) !important; }
.text-subtle { color: var(--uh-color-text-subtle) !important; }
.text-white { color: #ffffff !important; }
.text-amber { color: var(--uh-color-amber-dark) !important; }
.text-green { color: var(--uh-color-green) !important; }
.text-blue { color: #00a6e8 !important; }
.text-ja { color: #0b3b60 !important; }
.text-nexans { color: #d52b1e !important; }
.text-weidmuller { color: #e84e10 !important; }
.text-teal { color: #5eead4 !important; }
.text-amber-light { color: #fcd34d !important; }

/* ── BACKGROUND COLORS ── */
.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: #f8fafc !important; }
.bg-surface-gray { background-color: var(--uh-bg-surface-gray) !important; }
.bg-surface-light { background-color: var(--uh-bg-surface-light) !important; }
.bg-primary { background-color: var(--uh-color-primary) !important; }
.bg-amber-tint { background-color: var(--uh-color-amber-tint) !important; }
.bg-green-tint { background-color: var(--uh-color-green-tint) !important; }
.bg-navy { background-color: var(--uh-color-navy) !important; }
.bg-navy-dark { background-color: var(--uh-color-navy-dark) !important; }
.bg-hero-gradient {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 248, 0.85) 45%, rgba(255, 255, 255, 0.68) 100%),
    url('../images/hero-solar-rooftop.jpg') center 35% / cover no-repeat !important;
}

/* ── BORDERS & STROKES ── */
.border { border: 1px solid var(--uh-color-border-subtle) !important; }
.border-light { border: 1px solid var(--uh-color-border-light) !important; }
.border-primary { border: 2px solid var(--uh-color-primary) !important; }
.border-bottom { border-bottom: 1px solid var(--uh-color-border-light) !important; }
.border-top { border-top: 1px solid var(--uh-color-border-light) !important; }
.border-right { border-right: 1px solid #f0f3f6 !important; }
.border-left { border-left: 1px solid #f0f3f6 !important; }
.border-dashed { border-style: dashed !important; }
.border-top-dashed { border-top: 1px dashed #e8ebef !important; }
.border-none { border: none !important; }

/* ── BORDER RADIUS ── */
.rounded-xs { border-radius: var(--uh-radius-xs) !important; } /* 6px */
.rounded-sm { border-radius: var(--uh-radius-sm) !important; } /* 10px */
.rounded-md { border-radius: var(--uh-radius-md) !important; } /* 14px */
.rounded-lg { border-radius: var(--uh-radius-lg) !important; } /* 18px */
.rounded-card { border-radius: var(--uh-radius-card) !important; } /* 22px */
.rounded-pill { border-radius: var(--uh-radius-pill) !important; } /* 999px */
.rounded-circle { border-radius: 50% !important; }
.overflow-hidden { overflow: hidden !important; }

/* ── SHADOWS ── */
.shadow-xs { box-shadow: var(--uh-shadow-xs) !important; }
.shadow-sm { box-shadow: var(--uh-shadow-sm) !important; }
.shadow-md { box-shadow: var(--uh-shadow-md) !important; }
.shadow-lg { box-shadow: var(--uh-shadow-lg) !important; }
.shadow-primary { box-shadow: var(--uh-shadow-primary) !important; }
.shadow-card { box-shadow: var(--uh-shadow-card) !important; }
.shadow-none { box-shadow: none !important; }

/* ── SIZING ── */
.w-100, .w-full { width: 100% !important; }
.h-100, .h-full { height: 100% !important; }
.w-auto { width: auto !important; }
.h-auto { height: auto !important; }
.min-w-0 { min-width: 0 !important; }
.max-w-1200 { max-width: 1200px !important; }
.max-w-740 { max-width: 740px !important; }

/* ── ASPECT RATIOS ── */
.aspect-1-1 { aspect-ratio: 1 / 1 !important; }
.aspect-16-9 { aspect-ratio: 16 / 9 !important; }
.aspect-16-11 { aspect-ratio: 16 / 11 !important; }

/* ── POSITIONING ── */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { inset: 0 !important; }
.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.pointer-events-none { pointer-events: none !important; }
.cursor-pointer { cursor: pointer !important; }

/* ── HOVER UTILITIES ── */
.uh-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.uh-hover-lift:hover {

  box-shadow: 0 14px 34px rgba(20, 32, 46, 0.10);
  border-color: #ffd4d5 !important;
}

/* ── RESPONSIVE GRID UTILITIES ── */
.grid-cols-auto-210 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; }
.grid-cols-auto-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }
.grid-cols-auto-320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important; }
.grid-cols-auto-340 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important; }
.grid-cols-auto-360 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important; }
.grid-cols-auto-460 { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)) !important; }
.grid-cols-auto-520 { grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)) !important; }
.grid-cols-auto-350 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-faq { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) !important; }
.grid-cols-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important; }
.grid-cols-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important; }
.grid-cols-pkg-detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; }

/* Grid Responsive Overrides for Mobile & Tablet */
@media (max-width: 900px) {
  .grid-cols-faq, 
  .grid-cols-form,
  .grid-cols-hero, 
  .grid-cols-pkg-detail { 
    grid-template-columns: 1fr !important; 
  }
}

@media (max-width: 768px) {
  .grid-cols-auto-520,
  .grid-cols-auto-460,
  .grid-cols-auto-360,
  .grid-cols-auto-350,
  .grid-cols-auto-340,
  .grid-cols-auto-320 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .grid-cols-auto-250,
  .grid-cols-auto-210 {
    grid-template-columns: 1fr !important;
  }
  .grid-cols-sm-1 {
    grid-template-columns: 1fr !important;
  }
}

/* ── RESPONSIVE DISPLAY TYPOGRAPHY ── */
.fs-display-sm { font-size: clamp(22px, 3.2vw, 34px) !important; }
.fs-display-md { font-size: clamp(24px, 3.6vw, 38px) !important; }
.fs-display-lg { font-size: clamp(26px, 4vw, 42px) !important; }
.fs-display-xl { font-size: clamp(28px, 4.8vw, 52px) !important; }

/* ── RESPONSIVE FONT SIZE OVERRIDES FOR MOBILE & TABLET ── */
@media (max-width: 768px) {
  .fs-40 { font-size: 26px !important; }
  .fs-36 { font-size: 24px !important; }
  .fs-32 { font-size: 22px !important; }
  .fs-28 { font-size: 20px !important; }
  .fs-display-lg { font-size: clamp(20px, 4.5vw, 28px) !important; }
  .fs-display-xl { font-size: clamp(24px, 5vw, 36px) !important; }
}

@media (max-width: 480px) {
  .fs-40 { font-size: 24px !important; }
  .fs-36 { font-size: 21px !important; letter-spacing: 0 !important; }
  .fs-32 { font-size: 20px !important; }
  .fs-28 { font-size: 19px !important; }
  .fs-display-lg { font-size: 20px !important; }
  .fs-display-xl { font-size: 22px !important; }
}

/* ── SECTION SPACING UTILITIES ── */
.section-py { padding-top: 80px !important; padding-bottom: 80px !important; }
.section-py-sm { padding-top: 60px !important; padding-bottom: 60px !important; }

@media (max-width: 768px) {
  .section-py { padding-top: 48px !important; padding-bottom: 48px !important; }
  .section-py-sm { padding-top: 36px !important; padding-bottom: 36px !important; }
}

@media (max-width: 480px) {
  .section-py { padding-top: 36px !important; padding-bottom: 36px !important; }
  .section-py-sm { padding-top: 26px !important; padding-bottom: 26px !important; }
}

.container-1200 { 
  max-width: 1200px !important; 
  margin-left: auto !important; 
  margin-right: auto !important; 
  padding-left: var(--uh-container-padding) !important;
  padding-right: var(--uh-container-padding) !important;
}

.max-w-720 { max-width: 720px !important; }
.max-w-740 { max-width: 740px !important; }
.max-w-820 { max-width: 820px !important; }
.max-w-840 { max-width: 840px !important; }
.max-w-880 { max-width: 880px !important; }
.max-w-1120 { max-width: 1120px !important; }
.max-w-58ch { max-width: 58ch !important; }
.max-w-52ch { max-width: 52ch !important; }
.max-w-44ch { max-width: 44ch !important; }
.max-w-76ch { max-width: 76ch !important; }

/* ── ADDITIONAL DIMENSION & SIZING UTILITIES ── */
.min-w-180 { min-width: 180px !important; }
.min-w-320 { min-width: 320px !important; }
.w-300 { width: 300px !important; }
.h-20 { height: 20px !important; }
.h-22 { height: 22px !important; }
.size-46 { width: 46px !important; height: 46px !important; }

.col-span-full { grid-column: 1 / -1 !important; }
.overflow-x-auto { 
  overflow-x: auto !important; 
  -webkit-overflow-scrolling: touch !important;
}

/* ── OBJECT & BACKGROUND UTILITIES ── */
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }
.object-pos-c25 { object-position: center 25% !important; }
.object-pos-c35 { object-position: center 35% !important; }
.object-pos-top { object-position: top center !important; }
.bg-surface { background-color: #f6f8fa !important; }

.opacity-75 { opacity: 0.75 !important; }
.border-navy-line { border-color: #24344a !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #a9b6c4 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }

/* ── RESPONSIVE VISIBILITY UTILITIES ── */
@media (max-width: 768px) {
  .d-mobile-none { display: none !important; }
}

@media (min-width: 769px) {
  .d-desktop-none { display: none !important; }
}

@media (max-width: 992px) {
  .d-tablet-none { display: none !important; }
}

@media (min-width: 993px) {
  .d-desktop-only { display: block !important; }
  .d-flex-desktop-only { display: flex !important; }
}


