/* Base typography and theming */
:root {
  --bs-primary: #577E14;
  --bs-primary-rgb: 87, 126, 20;
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: color-mix(in srgb, var(--bs-link-color) 85%, black);
}

html, body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", "Liberation Sans", Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  scroll-behavior: smooth;
  letter-spacing: 0.15px; /* slight openness for friendliness */
  line-height: 1.6;
  font-size: 1rem;
}

/* Cap container width at all breakpoints (overrides Bootstrap's xxl 1320px) */
.container {
  max-width: 960px;
}

/* Headings: a touch bolder and tighter */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: 700;
  letter-spacing: -0.25px; /* tighten large text */
}

/* Navbar brand weight */
.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Buttons: ensure outline variant reads well with custom primary */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
}

/* Navbar toggler icon visibility on light bg */
.navbar-toggler {
  border: 1px solid rgba(0,0,0,.125);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25);
}

/* Force Bootstrap primary variants to use #577E14 */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 85%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 85%, black);
  --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary) 80%, black);
  --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary) 80%, black);
}

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

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

.border-primary {
  border-color: var(--bs-primary) !important;
}

.link-primary {
  color: var(--bs-primary) !important;
}
.link-primary:hover, .link-primary:focus {
  color: color-mix(in srgb, var(--bs-primary) 85%, black) !important;
}

/* Accordion brand color overrides */
.accordion-button {
  --bs-accordion-active-bg: color-mix(in srgb, var(--bs-primary) 15%, white);
  --bs-accordion-active-color: var(--bs-primary);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  --bs-accordion-btn-color: var(--bs-primary);
}

/* Optional: make the chevron icon also match your green */
.accordion-button::after {
  filter: hue-rotate(60deg) saturate(2);
}


/* XXL hero with background image + soft overlay */
.hero-xxl {
  position: relative;
  min-height: clamp(715px, 75vh, 960px); /* extra large */
  display: flex;
  overflow: visible; 
}

/* Keep text above the overlay and improve readability */
.hero-xxl .container {
  z-index: 1;
}

/* Optional: boost heading weight for Nunito */
.fw-extrabold { font-weight: 900; }

/* Optional: tweak button contrast on dark hero */
.hero-xxl .btn-outline-light {
  --bs-btn-hover-bg: rgba(255,255,255,.15);
  --bs-btn-hover-border-color: rgba(255,255,255,.9);
}

/* If your navbar overlaps, push content down a bit on small screens */
@media (max-width: 991.98px) {
  .hero-xxl { padding-top: 4.5rem; }
}

.hero-logo {
  width: 75%;
}

.navbar-brand img {
  height: 50px;
}

.card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.social-icon {
  font-size: 48px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.social-icon:hover {
  color: #577E14;
}

.service-times-box {
  background-color: #577E14;
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.service-times-box h5 {
  font-weight: bold;
}
@media (max-width: 767px) {
  .service-times-box {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  
}

.hero-xxl { position: relative; }

.service-bar {
  background: var(--bs-primary);
  color: #FFF;
  border-radius: .75rem;
  padding: .75rem 1rem;
}

.service-bar-wrapper{
  background: var(--bs-primary);
}

/* Desktop: float inside hero */
@media (min-width: 768px) {
  .service-bar-wrapper {
    margin-top: -3.25rem;
    position: relative;
    background:inherit;
  }
}

/* ProcessWire CKEditor alignment classes */
.align_left {
  text-align: left !important;
}

.align_center {
  text-align: center !important;
}

.align_right {
  text-align: right !important;
}

.align_justify {
  text-align: justify !important;
}
