/* ============================================================
   MODERN THEME - Emerald & Forest Green Design System
   ============================================================ */

:root {
  /* Color Palette */
  --color-forest: #064E3B;
  --color-forest-light: #065F46;
  --color-emerald: #10B981;
  --color-emerald-hover: #059669;
  --color-emerald-light: #34D399;
  --color-mint: #ECFDF5;
  --color-mint-dark: #D1FAE5;
  --color-dark: #111827;
  --color-gray: #4B5563;
  --color-gray-light: #9CA3AF;
  --color-gray-lighter: #E5E7EB;
  --color-light: #F9FAFB;
  --color-white: #FFFFFF;
  --color-gold: #FBBF24;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* UI Shapes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-green: 0 4px 14px rgba(16, 185, 129, 0.25);
  --shadow-hover: 0 20px 40px -5px rgba(6, 78, 59, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL BASE
   ======================================== */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-gray);
  line-height: 1.7;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  color: var(--color-forest);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1, .h1 { font-weight: 800; line-height: 1.15; }
h2, .h2 { font-weight: 700; line-height: 1.2; }
h3, .h3 { font-weight: 700; }

p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-gray);
}

a {
  color: var(--color-emerald);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-emerald-hover);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.25rem; }
  h4, .h4 { font-size: 1.1rem; }
  .lead { font-size: 1rem; }
}

@media (max-width: 576px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.3rem; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.6rem;
  transition: all var(--transition-normal);
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 0.95rem;
  border: none;
  position: relative;
}

.btn-success, .btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: none !important;
  color: var(--color-white) !important;
  box-shadow: var(--shadow-green);
}

.btn-success:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-success:active, .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-outline-success {
  color: var(--color-emerald) !important;
  border: 2px solid var(--color-emerald) !important;
  background: transparent !important;
}

.btn-outline-success:hover {
  background: var(--color-emerald) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-outline-primary {
  color: var(--color-forest) !important;
  border: 2px solid var(--color-forest) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--color-forest) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  transition: all var(--transition-smooth) !important;
  background-color: var(--color-white);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-4px);
}

.card-body {
  padding: 1.75rem 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-forest);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Icons within cards */
.card .fas, .card .fab, .card .far, .card .flaticon-car-service {
  color: var(--color-emerald) !important;
}

/* Icon Wrappers */
.icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all var(--transition-smooth);
}

.card:hover .icon-wrapper {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.card:hover .icon-wrapper i {
  color: var(--color-white) !important;
}

/* ========================================
   SECTIONS
   ======================================== */

section, .ftco-section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section, .ftco-section {
    padding: 2.5rem 0;
  }
}

/* Section backgrounds */
.bg-mint {
  background-color: var(--color-mint) !important;
}

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

.bg-forest {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%) !important;
  color: var(--color-white);
}

.bg-forest h1, .bg-forest h2, .bg-forest h3,
.bg-forest h4, .bg-forest h5, .bg-forest h6 {
  color: var(--color-white);
}

/* Section heading underline */
.heading-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.heading-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 2px;
}

/* Subheading labels */
.subheading {
  color: var(--color-emerald);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero-wrap .overlay {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-wrap .slider-text h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-wrap .slider-text p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Inner page hero banners */
.hero-wrap-2 {
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.hero-wrap-2 .bread {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-wrap-2 .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.hero-wrap-2 .breadcrumbs a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero-wrap-2 {
    min-height: 200px;
  }
  .hero-wrap-2 .bread {
    font-size: 1.5rem !important;
  }
}

/* ========================================
   NAVIGATION OVERRIDES
   ======================================== */

.navbar:not(#ftco-navbar):not(.admin-subnav) {
  box-shadow: var(--shadow-sm);
}

.navbar-brand span {
  color: var(--color-emerald) !important;
}

/* ========================================
   DROPDOWNS (non-navbar)
   ======================================== */

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--color-gray);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-mint);
  color: var(--color-forest);
}

/* ========================================
   STEP NUMBERS & COUNTERS
   ======================================== */

.display-6.text-success {
  color: var(--color-emerald) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  opacity: 0.75;
  font-size: 2.5rem;
}

.badge {
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 0.35em 0.75em;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimony-wrap {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  border-left: 4px solid var(--color-emerald) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  transition: all var(--transition-smooth);
  background-color: var(--color-white) !important;
  padding: 1.5rem !important;
}

.testimony-wrap:hover {
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-4px);
}

.testimony-wrap .name {
  color: var(--color-forest) !important;
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimony-wrap .bg-success {
  background: linear-gradient(135deg, #10B981, #059669) !important;
}

.text-warning i {
  color: var(--color-gold);
}

/* Owl Carousel dots */
.owl-theme .owl-dots .owl-dot span {
  background: var(--color-gray-lighter);
  transition: all var(--transition-normal);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--color-emerald);
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-lighter);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: none;
  background: var(--color-white);
  color: var(--color-dark);
}

.form-control:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-lighter);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.form-select:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* ========================================
   TABLES
   ======================================== */

.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 0.85rem 1rem;
}

.table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-color: #F3F4F6;
  color: var(--color-gray);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #FAFAFA;
}

.table-hover tbody tr:hover {
  background-color: var(--color-mint);
}

.table-light {
  background: var(--color-light) !important;
}

.table-light th {
  color: var(--color-forest) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-xs);
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border-left: 4px solid #3B82F6;
}

.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border-left: 4px solid #10B981;
}

.alert-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border-left: 4px solid #F59E0B;
}

.alert-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #F3F4F6;
  padding: 1rem 1.5rem;
}

/* ========================================
   PAGINATION
   ======================================== */

.page-link {
  color: var(--color-forest);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-lighter);
  margin: 0 2px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--color-mint);
  color: var(--color-forest);
  border-color: var(--color-emerald);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: var(--color-emerald);
  color: #fff;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--color-emerald);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--color-gray);
}

/* ========================================
   TEXT & COLOR UTILITIES
   ======================================== */

.text-success {
  color: var(--color-emerald) !important;
}

.text-gray {
  color: var(--color-gray) !important;
}

h2[style*="color:#0c591c"], h1[style*="color: #0c591c"], h2[style*="color: #0c591c"] {
  color: var(--color-forest) !important;
}

.green-text {
  color: var(--color-emerald) !important;
  font-weight: 700;
}

.dark-text {
  color: var(--color-dark) !important;
  font-weight: 700;
}

/* ========================================
   CARD HEADER COLORS
   ======================================== */

.card-header.bg-primary {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%) !important;
  border: none;
}

.card-header.bg-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: none;
}

.card-header.bg-info {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
  border: none;
}

/* ========================================
   LOADER
   ======================================== */

.circular .path {
  stroke: var(--color-emerald) !important;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* ========================================
   SELECTION & ACCESSIBILITY
   ======================================== */

::selection {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--color-forest);
}

*:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   IMAGES
   ======================================== */

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

.img-rounded {
  border-radius: var(--radius-md);
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ========================================
   CONTACT CARDS & WRAPS
   ======================================== */

.contact-wrap {
  border-radius: var(--radius-lg) !important;
  transition: all var(--transition-smooth);
}

.contact-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 576px) {
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 768px) {
  .card-body {
    padding: 1.25rem 1rem;
  }

  .btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Stack columns nicely */
  .ftco-section .row {
    row-gap: 0;
  }
}

.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Smooth loading for images */
img[loading="lazy"] {
  transition: opacity 0.3s ease;
}
