/* =========================================
   Modern Industry Standard Design System
   ========================================= */

:root {
  /* Modern Color Palette */
  --primary: #0b524d;
  --primary-dark: #083f3a;
  --primary-light: #0d6b63;
  --accent: #c6a667;
  --accent-light: #d4b87a;
  --text-primary: #0b2430;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f6f1e9;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* =========================================
   Modern Typography
   ========================================= */

h1, .h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2, .h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

/* =========================================
   Modern Hero Sections
   ========================================= */

.modern-hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, #ffffff 100%);
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(11, 82, 77, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.modern-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.modern-hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(11, 82, 77, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 2rem;
  text-align: center;
  margin: 0 auto;
}

.modern-hero-cta {
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  text-align: center;
}

/* =========================================
   Modern Cards
   ========================================= */

.modern-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  height: 100%;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.modern-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.modern-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.modern-card-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  text-align: left;
}

/* =========================================
   Modern Buttons
   ========================================= */

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(11, 82, 77, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(11, 82, 77, 0.4);
  color: white;
}

.btn-modern-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-modern-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* =========================================
   Modern Stats Section
   ========================================= */

.modern-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.modern-stat-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.modern-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.modern-stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.modern-stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* =========================================
   Modern Form Styling
   ========================================= */

.modern-form-group {
  margin-bottom: 1.5rem;
}

.modern-form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.modern-form-input,
.modern-form-select,
.modern-form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-primary);
}

.modern-form-input:focus,
.modern-form-select:focus,
.modern-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 82, 77, 0.1);
}

.modern-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================================
   Modern Section Spacing
   ========================================= */

.modern-section {
  padding: 5rem 0;
}

.modern-section-alt {
  background: var(--bg-secondary);
}

.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   Modern Grid Layouts
   ========================================= */

.modern-grid {
  display: grid;
  gap: 2rem;
}

.modern-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modern-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* =========================================
   Modern Service Cards
   ========================================= */

.modern-service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.modern-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.modern-service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.modern-service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modern-service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.modern-service-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.modern-service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.modern-service-link:hover {
  gap: 0.75rem;
}

/* =========================================
   Modern Contact Section
   ========================================= */

.modern-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.modern-contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modern-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.modern-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modern-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* =========================================
   Modern Responsive
   ========================================= */

@media (max-width: 768px) {
  .modern-hero {
    padding: 4rem 0 3rem;
  }

  .modern-hero-cta {
    flex-direction: column;
  }

  .modern-hero-cta .btn-modern {
    width: 100%;
    justify-content: center;
  }

  .modern-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modern-section {
    padding: 3rem 0;
  }

  .modern-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About page hero responsive */
  .about-hero-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .about-hero-grid-responsive .about-hero-visual {
    order: -1;
  }

  /* Service cards responsive */
  .service-card-responsive {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .service-card-responsive > div:first-child {
    padding: 1.5rem !important;
  }

  .service-card-responsive > div:last-child {
    min-height: 250px !important;
    padding: 1.5rem !important;
  }

  /* Text alignment fixes */
  .modern-hero-title {
    text-align: center;
  }

  .modern-hero-subtitle {
    text-align: center;
  }

  .section-title {
    text-align: center;
  }

  .section-subtitle {
    text-align: center;
  }

  /* Services hero responsive */
  .services-hero-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .services-hero-visual-modern {
    order: -1;
  }

  .services-hero-content-modern {
    order: 2;
  }

  .hero-image-container {
    height: 240px;
  }

  .service-quick-links {
    grid-template-columns: 1fr !important;
    padding: 1.25rem;
  }

  .services-hero-cta-modern {
    flex-direction: column;
    width: 100%;
  }

  .services-hero-cta-modern .btn-modern {
    width: 100%;
    justify-content: center;
  }

  /* Services hero benefits */
  .services-hero-benefits {
    gap: 0.75rem;
  }

  .benefit-item {
    padding: 0.75rem;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  /* Service cards - ensure they stack */
  .service-card-responsive {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .service-card-responsive > div:first-child {
    padding: 1.5rem !important;
    order: 2;
  }

  .service-card-responsive > div:last-child {
    min-height: 200px !important;
    padding: 1.5rem !important;
    order: 1;
  }

  /* Modern container responsive */
  .modern-container {
    padding: 0 1rem;
  }

  /* Modern section spacing */
  .modern-section {
    padding: 2.5rem 0;
  }

  /* CTA section responsive */
  .modern-section-alt .modern-card {
    padding: 2rem 1.5rem !important;
  }

  .modern-section-alt h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .modern-section-alt p {
    font-size: 1rem !important;
  }

  /* Service area spacing */
  .service-area {
    margin-bottom: 3rem !important;
  }
}

/* Additional responsive fixes for tablets */
@media (max-width: 991.98px) and (min-width: 769px) {
  .services-hero-grid-modern {
    gap: 3rem;
  }

  .service-card-responsive {
    gap: 2rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .services-hero-modern {
    padding: 2.5rem 0 1.5rem;
  }

  .services-hero-title-modern {
    font-size: 1.5rem;
  }

  .services-hero-description {
    font-size: 0.9375rem;
  }

  .benefit-item {
    padding: 0.625rem;
    gap: 0.75rem;
  }

  .service-card-responsive > div:first-child,
  .service-card-responsive > div:last-child {
    padding: 1.25rem !important;
  }

  .modern-container {
    padding: 0 0.75rem;
  }
}

/* =========================================
   Modern Animations
   ========================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* =========================================
   Services Hero - Industry Standard
   ========================================= */

.services-hero-modern {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-tertiary) 100%);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .services-hero-modern {
    padding: 4rem 0 3rem;
  }
}

@media (max-width: 768px) {
  .services-hero-modern {
    padding: 3rem 0 2rem;
  }
}

.services-hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(11, 82, 77, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.services-hero-grid-modern {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .services-hero-grid-modern {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.services-hero-content-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services-hero-title-modern {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 580px;
}

.services-hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: white;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.benefit-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.benefit-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.services-hero-cta-modern {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.services-hero-visual-modern {
  position: relative;
}

.services-hero-card-modern {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.services-hero-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11, 82, 77, 0.15);
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.hero-img-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.services-hero-card-modern:hover .hero-img-modern {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(11, 82, 77, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.service-quick-links {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.service-link-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-link-modern:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-link-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-link-modern div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.service-link-modern strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-link-modern small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* =========================================
   Modern Utilities
   ========================================= */

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title h2 {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  line-height: 1.6;
}


main#content {
  margin-top: 25px;
}
