:root {
  --primary: #0b7a45;
  --primary-dark: #065f2e;
  --primary-light: #eaf5ef;
  --accent: #e8a33d;
  --ink: #14211b;
  --muted: #5f6f67;
  --bg: #f6f9f7;
  --surface: #ffffff;
  --border: #e3ebe6;
  --shadow-sm: 0 1px 2px rgba(17, 34, 26, 0.05), 0 6px 18px rgba(17, 34, 26, 0.05);
  --shadow-md: 0 10px 34px rgba(17, 34, 26, 0.1);
  --shadow-lg: 0 24px 60px rgba(17, 34, 26, 0.14);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ===== Page hero ===== */
.card.title-header {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 6.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 380px at 85% -20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(160deg, #0a4d2d 0%, #0b7a45 60%, #0f9460 100%);
}

.card.title-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .card.title-header {
    padding: 4.5rem 1.25rem;
  }

  .card.title-header h1 {
    font-size: 1.85rem;
  }
}

/* ===== Contact section ===== */
.contact {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4.5rem 1.25rem;
}

body .contact .contact-form-card,
body .contact .contact-info-card {
  padding: 2.25rem;
  background: var(--surface);
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.contact .contact-info-card {
  padding-right: 2rem;
}

.contact .contact-title {
  margin-bottom: 1.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

.contact .contact-title::after {
  content: '';
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  display: block;
  margin-top: 0.6rem;
}

.contact .form-control {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 122, 69, 0.12);
}

.contact .btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 2.25rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(11, 122, 69, 0.28);
  transition: all 0.25s ease;
}

.contact .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.contact .row.mb-2 h6 {
  color: var(--ink);
  font-weight: 700;
}

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

/* ===== Social icons ===== */
.social-icons {
  margin-right: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 1.5rem;
  list-style: none;
  padding-left: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(11, 122, 69, 0.35);
}

/* ===== Branches + map ===== */
.company-location {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.25rem;
}

.branch-title {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.location-item {
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 0.9rem;
}

.location-item:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
}

.location-item strong.text-primary {
  color: var(--primary) !important;
}

.location-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 0.5rem;
}

.map-container {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--primary-light);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
  .location-list {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .map-container {
    min-height: 350px;
  }
}

@media (max-width: 767.98px) {
  .company-location .row {
    flex-direction: column-reverse;
  }

  .map-container {
    min-height: 300px;
    margin-bottom: 20px;
  }

  .location-list {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 575.98px) {
  .map-container {
    min-height: 250px;
  }
}