/* ==========================================================================
   NAWAB CONTRACTORS - MAIN STYLESHEET
   Author: Nawab Contractors
   Version: 2.0
   ========================================================================== */

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #FFB800;
  --primary-dark: #ff9500;
  --secondary-color: #0d6efd;
  --text-dark: #333;
  --text-muted: #666;
  --text-light: #999;
  --background-light: #f8f9fa;
  --border-light: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --white: #ffffff;
  --success: #28a745;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  
  /* Borders */
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 15px;
  --border-radius-xl: 25px;
  --border-radius-full: 50px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.main-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--text-dark);
  line-height: 1.2;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  display: block;
  margin: var(--spacing-lg) auto 0;
}

.section-title.text-start::after {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE TYPOGRAPHY
   ========================================================================== */
@media (max-width: 768px) {
  .main-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .subtitle {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Hero Sections */
.hero-banner {
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  z-index: 2;
  position: relative;
}

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

.hero-image img {
  max-height: 500px;
  width: auto;
}

/* Sections */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-sm {
  padding: var(--spacing-3xl) 0;
}

.section-lg {
  padding: var(--spacing-4xl) 0 var(--spacing-4xl);
}

/* Background Variants */
.bg-light-section {
  background-color: var(--background-light);
}

.bg-pattern {
  background-image: url('../images/construction-pattern.png');
  background-size: 250px;
  background-position: center;
  background-color: #ffffffe0;
  background-blend-mode: color;
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */
.service-card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  box-shadow: 0 5px 20px var(--shadow-light);
  background: var(--white);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.service-card img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-normal);
}

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

.service-card .card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.service-card .card-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */
.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3);
  color: var(--white);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
  padding: 10px 28px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background-color: var(--text-muted);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */
.form-control-custom {
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-normal);
  background: var(--white);
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 184, 0, 0.25);
}

/* ==========================================================================
   LIST COMPONENTS
   ========================================================================== */
.service-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--spacing-lg);
}

.service-features li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--background-light);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-normal);
}

.feature-list li:hover {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow-light);
}

.feature-icon {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  margin-right: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ==========================================================================
   NAVIGATION COMPONENTS
   ========================================================================== */
.navbar-custom {
  box-shadow: 0 2px 20px var(--shadow-light);
  background: var(--white);
  padding: var(--spacing-md) 0;
}

.navbar-brand-custom {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--text-dark);
  text-decoration: none;
}

.nav-link-custom {
  font-weight: 600;
  color: var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: color var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-color);
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 80%;
}

/* ==========================================================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================================================== */
.search-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: var(--spacing-4xl) 0;
  color: var(--white);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-box {
  background: var(--white);
  border-radius: var(--border-radius-full);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

.search-input {
  border: none;
  outline: none;
  padding: 15px 25px;
  font-size: var(--font-size-base);
  border-radius: var(--border-radius-full);
  flex: 1;
  min-width: 200px;
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-light);
}

.category-filter {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-full);
  padding: 12px 20px;
  font-size: var(--font-size-base);
  color: var(--text-muted);
  min-width: 180px;
  cursor: pointer;
}

.search-btn {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 15px 25px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-normal);
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Category Tabs */
.category-tabs {
  border-bottom: 2px solid var(--border-light);
  margin-bottom: var(--spacing-2xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
}

.category-tab {
  padding: var(--spacing-lg) var(--spacing-xl);
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  font-size: var(--font-size-base);
}

.category-tab.active,
.category-tab:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.filter-count {
  background: var(--primary-color);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-xs);
  margin-left: var(--spacing-xs);
  display: inline-block;
}

/* Service Items */
.service-item {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 5px 20px var(--shadow-light);
  margin-bottom: var(--spacing-2xl);
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.service-item img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-normal);
}

.service-item:hover img {
  transform: scale(1.05);
}

.service-item .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-badge {
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: var(--border-radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.price-tag {
  background: var(--success);
  color: var(--white);
  padding: 8px 15px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.no-results {
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-xl);
  color: var(--text-muted);
}

.no-results i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: 0 10px 30px var(--shadow-light) !important;
}

.rounded-custom {
  border-radius: var(--border-radius-lg) !important;
}

.transition-all {
  transition: all var(--transition-normal);
}

.hover-primary {
  transition: color var(--transition-normal);
}

.hover-primary:hover {
  color: var(--primary-color) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Devices (Desktops) */
@media (min-width: 1200px) {
  .container-custom {
    max-width: 1200px;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 991.98px) {
  .hero-banner {
    min-height: 400px;
    text-align: center;
  }
  
  .hero-image {
    margin-top: var(--spacing-2xl);
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
  
  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }
  
  .category-tab {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}

/* Small Devices (Phones) */
@media (max-width: 767.98px) {
  .search-section {
    padding: var(--spacing-3xl) 0;
  }
  
  .search-box {
    flex-direction: column;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
  }
  
  .search-input {
    width: 100%;
    text-align: center;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
  }
  
  .category-filter {
    width: 100%;
    margin: 0;
    border-radius: var(--border-radius-md);
    text-align: center;
  }
  
  .search-btn {
    width: 100%;
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-sm);
  }
  
  .category-tabs {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }
  
  .category-tab {
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  .category-tab.active,
  .category-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  .service-item {
    margin-bottom: var(--spacing-xl);
  }
  
  .service-item img {
    height: 180px;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    margin-bottom: var(--spacing-sm);
    text-align: center;
  }
  
  .hero-banner {
    min-height: 300px;
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-image img {
    max-height: 250px;
  }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .service-item .card-body {
    padding: var(--spacing-lg);
  }
  
  .category-tab {
    font-size: var(--font-size-sm);
    padding: var(--spacing-md);
  }
  
  .search-section h1 {
    font-size: var(--font-size-2xl);
  }
  
  .search-section .lead {
    font-size: var(--font-size-base);
  }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .search-section,
  .category-tabs,
  .btn-primary-custom,
  .btn-outline-custom {
    display: none !important;
  }
  
  .service-item {
    break-inside: avoid;
    margin-bottom: var(--spacing-lg);
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}
