/* Services Page Specific Styles */

/* Services Hero Section */
.services-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.services-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 61, 58, 0.85) 0%, rgba(74, 155, 142, 0.7) 100%);
  z-index: -1;
}

.services-hero-content {
  color: #ffffff;
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #4a9b8e;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb i {
  font-size: 12px;
}

.services-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 600px;
}

/* Services Overview Section */
.services-overview-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.services-overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.overview-left {
  max-width: 500px;
}

.overview-right {
  padding-left: 20px;
}

.overview-description {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 40px;
  font-weight: 400;
}

.overview-stats {
  display: flex;
  gap: 40px;
}

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

.overview-stats .stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #1a3d3a;
  line-height: 1;
  margin-bottom: 8px;
}

.overview-stats .stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Services Section */
.main-services-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-header-description {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
  margin-top: 20px;
}

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

.service-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 61, 58, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.enquiry-btn {
  background: linear-gradient(135deg, #4a9b8e 0%, #1a3d3a 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
}

.enquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 155, 142, 0.4);
}

.service-content {
  padding: 30px;
}

.service-category {
  font-size: 12px;
  font-weight: 600;
  color: #4a9b8e;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3d3a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-description {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 400;
}

.service-features li:last-child {
  margin-bottom: 0;
}

.service-features i {
  color: #4a9b8e;
  font-size: 12px;
  flex-shrink: 0;
}

/* Enquiry Popup Styles - FIXED */
.enquiry-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.enquiry-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.enquiry-popup {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.enquiry-popup-overlay.active .enquiry-popup {
  transform: scale(1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #1a3d3a 0%, #4a9b8e 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

.popup-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.popup-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #d4af37;
}

.popup-content {
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a3d3a;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a9b8e;
  box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.btn-primary {
  background: linear-gradient(135deg, #1a3d3a 0%, #4a9b8e 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 61, 58, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success/Error Messages */
.popup-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.popup-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.popup-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-hero-title {
    font-size: 42px;
  }

  .services-overview-content {
    gap: 60px;
  }

  .overview-stats {
    gap: 30px;
  }

  .overview-stats .stat-number {
    font-size: 28px;
  }

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

@media (max-width: 768px) {
  .services-hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .services-hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .services-hero-description {
    font-size: 16px;
  }

  .services-overview-section {
    padding: 60px 0;
  }

  .services-overview-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .overview-right {
    padding-left: 0;
  }

  .overview-stats {
    justify-content: center;
    gap: 25px;
  }

  .main-services-section {
    padding: 60px 0;
  }

  .services-header {
    margin-bottom: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-image {
    height: 200px;
  }

  .service-content {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .popup-header {
    padding: 20px 25px;
  }

  .popup-content {
    padding: 25px;
  }

  .popup-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .enquiry-popup-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .services-hero-section {
    height: 40vh;
    min-height: 300px;
  }

  .services-hero-title {
    font-size: 24px;
  }

  .services-hero-description {
    font-size: 14px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .services-overview-section {
    padding: 40px 0;
  }

  .overview-stats {
    flex-direction: column;
    gap: 20px;
  }

  .main-services-section {
    padding: 40px 0;
  }

  .service-content {
    padding: 20px;
  }

  .service-title {
    font-size: 20px;
  }

  .service-description {
    font-size: 14px;
  }

  .popup-header {
    padding: 15px 20px;
  }

  .popup-header h3 {
    font-size: 18px;
  }

  .popup-content {
    padding: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}
