:root {
  --asm-green: #1e6f5c;
  --asm-green-dark: #155145;
  --asm-green-light: #e6f1ee;
  --asm-ink: #22302c;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--asm-ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--asm-green);
}
a:hover {
  color: var(--asm-green-dark);
}

.btn-primary {
  --bs-btn-bg: var(--asm-green);
  --bs-btn-border-color: var(--asm-green);
  --bs-btn-hover-bg: var(--asm-green-dark);
  --bs-btn-hover-border-color: var(--asm-green-dark);
  --bs-btn-active-bg: var(--asm-green-dark);
  --bs-btn-active-border-color: var(--asm-green-dark);
  --bs-btn-focus-shadow-rgb: 30, 111, 92;
}

.btn-outline-primary {
  --bs-btn-color: var(--asm-green);
  --bs-btn-border-color: var(--asm-green);
  --bs-btn-hover-bg: var(--asm-green);
  --bs-btn-hover-border-color: var(--asm-green);
  --bs-btn-active-bg: var(--asm-green-dark);
  --bs-btn-active-border-color: var(--asm-green-dark);
  --bs-btn-focus-shadow-rgb: 30, 111, 92;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--bs-border-color);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.site-header .brand img {
  width: 64px;
  height: 64px;
}

.site-header .brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
}

.site-header .brand small {
  color: var(--bs-secondary-color);
}

.site-header .phone {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.navbar-asm {
  background: var(--asm-green);
}

.navbar-asm .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-asm .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-asm .nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 0.9rem;
}

.navbar-asm .nav-link:hover,
.navbar-asm .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-asm .nav-link.active {
  color: #fff;
  background: var(--asm-green-dark);
}

@media (max-width: 991.98px) {
  .site-header .brand img {
    width: 48px;
    height: 48px;
  }
  .site-header .brand strong {
    font-size: 1rem;
  }
  .navbar-asm .nav-link {
    border-radius: 0.25rem;
  }
}

/* Page title */

.page-title {
  background: var(--asm-green-light);
  padding: 1.75rem 0;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.75rem;
  margin: 0;
}

/* Home */

.hero img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}

.quick-links li {
  flex: 1 1 260px;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1rem 0;
}

.quick-links li + li {
  padding-left: 1.25rem;
  border-left: 1px solid var(--bs-border-color);
}

.quick-links .icon {
  font-size: 1.4rem;
  color: var(--asm-green);
  margin-top: 0.15rem;
}

.quick-links a {
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.quick-links a:hover {
  text-decoration: underline;
}

.quick-links span {
  display: block;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .quick-links li {
    flex-basis: 100%;
    padding: 0.85rem 0;
  }
  .quick-links li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
  }
}

.info-notes h3 {
  margin-bottom: 0.35rem;
}

.info-notes p {
  margin: 0;
  color: var(--asm-ink);
}

.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 0.5rem;
}

/* Staff cards */

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

.staff-card .name {
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.staff-card .role {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

/* Schedule table */

.schedule th {
  background: var(--asm-green-light);
  white-space: nowrap;
}

.schedule td,
.schedule th {
  vertical-align: middle;
}

.schedule td:first-child {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .schedule,
  .schedule tbody,
  .schedule tr,
  .schedule td {
    display: block;
    width: 100%;
  }
  .schedule thead {
    display: none;
  }
  .schedule tr {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .schedule td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.5rem 0.75rem;
  }
  .schedule td:last-child {
    border-bottom: 0;
  }
  .schedule td:first-child {
    background: var(--asm-green-light);
    justify-content: center;
  }
  .schedule td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--bs-secondary-color);
    font-weight: 500;
  }
}

/* Services */

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

.service-list li > span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  height: 100%;
}

.service-list li > span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--asm-green);
  flex-shrink: 0;
}

/* Gallery */

.gallery-thumb {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

#galleryModal .modal-content {
  background: #111;
}

#galleryModal .carousel-item img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

#galleryModal .btn-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
}

/* Contact */

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

.contact-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .icon {
  color: var(--asm-green);
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

/* Footer */

.site-footer {
  background: var(--asm-ink);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
