.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

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

.section-gray {
  background-color: var(--gray-soft);
}

.section-blue {
  background-color: var(--blue-deep);
  color: var(--white);
}

.section-blue h2,
.section-blue h3,
.section-blue p {
  color: var(--white);
}

.section-blue p {
  opacity: 0.9;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-light);
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

/* Hero Section - Enhanced */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--gray-soft);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  padding-right: var(--space-lg);
}

.hero-content h1 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-5xl);
  line-height: 1.1;
}

.hero-content .tagline {
  color: var(--blue-light);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.hero-content > p {
  font-size: var(--text-lg);
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(10, 46, 79, 0.15);
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  border: 4px solid var(--blue-light);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* Services Cards - Homepage */
.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(10, 46, 79, 0.06);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 46, 79, 0.12);
  border-color: var(--blue-light);
}

.service-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  color: var(--white);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
}

.service-card-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.service-card:hover .service-card-content h3 {
  color: var(--blue-light);
}

.service-card-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--blue-light);
  transition: all 0.3s ease;
}

.service-card-link:hover {
  color: var(--blue-deep);
  gap: 12px;
}

/* Old Services Grid - kept for other pages */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.service-item {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--gray-border);
  position: relative;
  transition: background-color 0.3s ease;
}

.service-item:hover {
  background-color: rgba(74, 144, 226, 0.03);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--blue-light);
  transition: height 0.3s ease;
}

.service-item:hover::before {
  height: 100%;
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--gray-border);
}

.service-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-item h3 {
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-xl);
  transition: color 0.3s ease;
}

.service-item:hover h3 {
  color: var(--blue-light);
}

.service-item p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-gray);
}

/* Service Item with Icon */
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-light);
  color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

/* Why WindMark - Enhanced Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.value-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}

.value-item:hover {
  background-color: var(--gray-soft);
}

.value-item::before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background-color: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  position: relative;
}

.value-item::after {
  content: '✓';
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.value-item h4 {
  color: var(--text-dark);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.value-item p {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--text-gray);
  line-height: 1.7;
}

/* CTA Section - Enhanced */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-medium) 100%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: var(--text-3xl);
}

.cta-section p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Title / Banner - Enhanced */
.page-title {
  background-color: var(--blue-deep);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-medium) 100%);
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--blue-light);
}

.page-title .container {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  color: var(--white);
  margin: 0 0 var(--space-sm);
  font-size: var(--text-4xl);
}

.page-title p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Grid - Two Column */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--gray-border);
  margin: var(--space-xl) 0;
}

.divider-blue {
  width: 60px;
  height: 4px;
  background-color: var(--blue-light);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin: var(--space-xl) 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile: 768px breakpoint */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 80px;
  }
  
  .container {
    width: 92%;
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  /* Hero: Single column, image BELOW text */
  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }
  
  .hero::before {
    display: none;
  }
  
  .hero .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-content {
    order: 1;
    padding-right: 0;
  }
  
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
  
  .hero-content .tagline {
    font-size: var(--text-xl);
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-image img {
    height: 300px;
  }
  
  .hero-image::after {
    display: none;
  }
  
  /* Services: Single column stack */
  .services-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .service-card {
    padding: var(--space-lg);
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .service-card-icon {
    width: 60px;
    height: 60px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    padding: var(--space-lg);
    border-right: none !important;
    border-bottom: 1px solid var(--gray-border);
  }
  
  .service-item:last-child {
    border-bottom: none;
  }
  
  /* Values: Single column */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  /* Full width buttons */
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Page title */
  .page-title {
    padding: var(--space-xl) 0;
  }
  
  .page-title h1 {
    font-size: var(--text-3xl);
  }
  
  /* Grid responsive */
  .grid-2,
  .grid-3,
  .grid-4,
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* CTA */
  .cta-section {
    padding: var(--space-xl) 0;
  }
}
