/* ==========================================================================
   FLORENT TECH LIMITED (FTL) - MAIN DESIGN SYSTEM
   Kampala, Uganda | Corporate & Technology Solutions
   ========================================================================== */

:root {
  /* Brand Palette - Modern Light & Crisp Corporate */
  --color-primary: #0f2b5c;         /* Deep Corporate Navy */
  --color-primary-light: #1e3a8a;   /* Rich Royal Navy */
  --color-primary-dark: #0a192f;    /* Midnight Slate */
  
  /* Primary Action Buttons */
  --btn-blue: #1d4ed8;              /* Blue: Request a Free Consultation */
  --btn-blue-hover: #1e40af;
  --btn-green: #059669;             /* Green: Get a Quote */
  --btn-green-hover: #047857;
  --btn-gold: #d97706;              /* Gold: Explore Our Solutions */
  --btn-gold-hover: #b45309;
  
  /* Light Theme Surfaces & Backgrounds */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-dark-accent: #0f172a;

  /* Typography & Neutral Colors */
  --text-main: #1e293b;             /* Crisp Dark Slate */
  --text-muted: #64748b;            /* Soft Gray */
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --border-light: #e2e8f0;
  --border-card: #cbd5e1;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-main); }
p.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.75; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-bg-alt {
  background-color: var(--bg-subtle);
}

.section-bg-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-primary {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-green {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-gold {
  background-color: #fef3c7;
  color: #92400e;
}

/* Buttons System */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Blue: Request a Free Consultation */
.btn-blue {
  background-color: var(--btn-blue);
  color: #ffffff !important;
  border-color: var(--btn-blue);
}
.btn-blue:hover {
  background-color: var(--btn-blue-hover);
  border-color: var(--btn-blue-hover);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

/* Green: Get a Quote */
.btn-green {
  background-color: var(--btn-green);
  color: #ffffff !important;
  border-color: var(--btn-green);
}
.btn-green:hover {
  background-color: var(--btn-green-hover);
  border-color: var(--btn-green-hover);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

/* Gold: Explore Our Solutions */
.btn-gold {
  background-color: var(--btn-gold);
  color: #ffffff !important;
  border-color: var(--btn-gold);
}
.btn-gold:hover {
  background-color: var(--btn-gold-hover);
  border-color: var(--btn-gold-hover);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.3);
}

/* White Button */
.btn-white {
  background-color: #ffffff;
  color: var(--color-primary-dark) !important;
  border-color: var(--border-light);
}
.btn-white:hover {
  background-color: #f8fafc;
  border-color: var(--border-card);
  box-shadow: var(--shadow-md);
}

/* Outline Buttons */
.btn-outline-blue {
  background-color: transparent;
  color: var(--btn-blue);
  border-color: var(--btn-blue);
}
.btn-outline-blue:hover {
  background-color: var(--btn-blue);
  color: #ffffff !important;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary-dark) !important;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.5rem 0;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.card-icon-blue { background: #eff6ff; color: var(--btn-blue); }
.card-icon-green { background: #ecfdf5; color: var(--btn-green); }
.card-icon-gold { background: #fffbeb; color: var(--btn-gold); }
.card-icon-purple { background: #f5f3ff; color: #7c3aed; }
.card-icon-teal { background: #f0fdfa; color: #0d9488; }
.card-icon-rose { background: #fff1f2; color: #e11d48; }

/* Image Media Wrappers */
.img-cover-wrapper {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.img-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .img-cover-wrapper img {
  transform: scale(1.05);
}

/* Highlights & Lists */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  margin-top: 2px;
}

/* Uganda Accent Badge */
.uganda-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.flag-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #000 33.3%, #fcd116 33.3%, #fcd116 66.6%, #d90000 66.6%);
}

/* ==========================================================================
   LARGE & ULTRA-WIDE SCREEN RESPONSIVENESS (1440px, 1600px, 1920px, 2560px+)
   Guarantees optimal readability, balanced spacing, and proportion on big screens
   ========================================================================== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }
  .grid-2 {
    gap: 3.5rem;
  }
  .grid-3, .grid-6 {
    gap: 2.25rem;
  }
  .section {
    padding: 5.5rem 0;
  }
}

/* Extra-Large Desktop & 1080p Full-Screen (1600px and up) */
@media (min-width: 1600px) {
  :root {
    --container-max: 1480px;
  }
  html {
    font-size: 16.5px;
  }
  .section {
    padding: 6rem 0;
  }
  .grid-2 {
    gap: 4rem;
  }
  .grid-3, .grid-6 {
    gap: 2.5rem;
  }
  .grid-4 {
    gap: 2rem;
  }
}

/* 2K, QHD & Wide Monitors (1920px and up) */
@media (min-width: 1920px) {
  :root {
    --container-max: 1640px;
  }
  html {
    font-size: 17.5px;
  }
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .section {
    padding: 7rem 0;
  }
  .section-sm {
    padding: 4.5rem 0;
  }
  .grid-2 {
    gap: 5rem;
  }
  .grid-3, .grid-6 {
    gap: 3rem;
  }
  .grid-4 {
    gap: 2.25rem;
  }
}

/* 4K & Ultra-Wide Displays (2560px and up) */
@media (min-width: 2560px) {
  :root {
    --container-max: 1920px;
  }
  html {
    font-size: 19px;
  }
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .section {
    padding: 8rem 0;
  }
  .section-sm {
    padding: 5.5rem 0;
  }
  .grid-2 {
    gap: 6rem;
  }
  .grid-3, .grid-6 {
    gap: 3.5rem;
  }
  .grid-4 {
    gap: 2.5rem;
  }
}
