/* 
 * Main CSS for Wardiah Contracting Company
 * Contains general styles, variables, and layout
 */

 :root {
  --primary-color: #2e2e2e;
  --secondary-color: #f8a100;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --light-text: #777;
  --border-color: #e0e0e0;
  --card-bg: #fff;
  --header-bg: #fff;
  --gradient-primary: linear-gradient(45deg, #ff8a00, #e52e71);
  --gradient-secondary: linear-gradient(45deg, #f8a100, #f46b45);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 15px;
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background-color: var(--card-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

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

img {
  max-width: 100%;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 800px;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-title {
  margin-bottom: 1rem;
}

.section-header .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header .section-description {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.btn-primary {
  background: var(--gradient-primary);
}

.btn-secondary {
  background: var(--gradient-secondary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-text {
  color: var(--light-text);
  margin-bottom: 15px;
}

/* Utility Classes */
.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media screen and (max-width: 768px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 10px 25px;
  }
} 