
/* Improved UI (spacing + readability) */
:root {
  --section-pad-y: 4rem;
  --hero-h: 34rem;
  --accent: #2d6a4f;
  --accent-hover: #1b4332;
  --accent-soft: rgba(45, 106, 79, 0.12);
}

body { padding-top: 0; padding-bottom: 2rem; color: #4a4a4a; }

.section-pad { padding: var(--section-pad-y) 0; }
.section-title { letter-spacing: -.02em; }

.carousel { margin-bottom: 0; }
.carousel-item { height: var(--hero-h); }
.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: var(--hero-h);
  object-fit: cover;
}

/* Linear-gradient overlay on hero images */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%);
  z-index: 1;
}
.carousel-caption {
  bottom: 3.25rem;
  z-index: 2;
  text-shadow: 0 1px 24px rgba(0,0,0,.65);
}
.hero-box {
  display: inline-block;
  padding: 1.25rem 1.25rem;
  border-radius: 18px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.carousel-caption h1 { font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.05; }
.carousel-caption p { max-width: 54ch; color: rgba(255,255,255,.92); }

/* Mobile call-to-action (fixed bottom button) */
.mobile-call-button {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1050;
  background: var(--accent);
  color: #fff;
  padding: 18px 0;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}
.mobile-call-button:hover { color: #fff; background: var(--accent-hover); }

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}

/* Mobile: push hero box slightly lower */
@media (max-width: 575.98px) {
  .carousel-caption { bottom: -2.25rem; }
  .hero-box { padding: .95rem 1rem; border-radius: 16px; }
  .carousel-caption h1 { font-size: 1.75rem; line-height: 1.1; }
  .carousel-caption p { font-size: 1rem; }
  .hero-box .btn.btn-lg { padding: .55rem .9rem; font-size: 1rem; }
}

@media (max-width: 768px) {
  body { padding-bottom: 5.5rem; }
  .mobile-call-button { display: block; }
}

/* Navbar overlays hero (full background behind menu) */
.navbar.navbar-dark.fixed-top {
  background: rgba(11, 18, 32, 0.55) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.marketing { background: #fff; }
.marketing .section-title { margin-bottom: 1rem; }
.featurette-divider { margin: 0; }
.featurette-heading { font-weight: 600; line-height: 1.1; letter-spacing: -.03rem; color: #1f2937; }

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}
.service-card .service-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}
.service-card .card-title { margin-bottom: .25rem; }
.service-card .card-text { color: #5b5b5b; }

.contact-card .list-group-item { padding-left: 0; padding-right: 0; }
.info-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
}
.review-media {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
}
.navbar-brand .brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Center nav links in the bar (md+); stacked layout on small screens */
@media (min-width: 768px) {
  .navbar .navbar-main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    z-index: 1;
  }
}
@media (max-width: 767.98px) {
  .navbar .navbar-main-nav {
    position: static;
    transform: none;
    left: auto;
  }
}

@media (min-width: 40em) {
  .carousel-caption p { margin-bottom: 1.25rem; font-size: 1.15rem; line-height: 1.55; }
  .hero-box { padding: 1.5rem 1.75rem; }
}
/* Optional: slightly better anchor offset under fixed navbar */
section { scroll-margin-top: 5rem; }
@media (min-width: 992px) {
  :root { --section-pad-y: 5.25rem; }
}
