:root {
  --brand-dark: #16733a;
  --brand-dark-2: #0f5f2f;
  --brand-green: #7dbb27;
  --brand-green-2: #8bc531;
  --brand-light: #eef5eb;
  --brand-soft: #f7faf5;
  --text-dark: #203128;
  --text-muted: #5f6f65;
  --border-soft: #e6ece4;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(20, 70, 35, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  margin: 0;
}

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

a {
  text-decoration: none;
  transition: var(--transition);
}

.section-space {
  padding: 90px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 115, 58, 0.05);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.navbar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.site-logo {
  width: 165px;
  max-height: none;
  height: auto;
}

.navbar-nav .nav-link {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-green);
}

.dropdown-menu {
  border-radius: 14px;
  padding: 10px;
}

.dropdown-item {
  border-radius: 10px;
  font-size: 14px;
  padding: 10px 12px;
}

.dropdown-item:hover {
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

.btn-brand {
  background-color: var(--brand-green);
  color: var(--white);
  border: 1px solid var(--brand-green);
  border-radius: 12px;
  font-weight: 700;
  padding: 13px 24px;
  box-shadow: none;
}

.btn-brand:hover {
  background-color: #74ad22;
  border-color: #74ad22;
  color: var(--white);
}

.btn-outline-brand {
  background-color: transparent;
  color: var(--brand-dark);
  border: 1.5px solid #95c96a;
  border-radius: 12px;
  font-weight: 700;
  padding: 13px 24px;
}

.btn-outline-brand:hover {
  background-color: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand-green);
}

.btn-lg-custom {
  min-width: 170px;
}

/* Hero */
.hero-section {
  background: #ffffff;
}

.hero-banner {
  min-height: 640px;
  display: flex;
  align-items: center;
  background: url("../images/banner.png") no-repeat center center;
  background-size: cover;
}

.hero-content {
  max-width: 520px;
  padding: 90px 0;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
  margin-bottom: 28px;
  max-width: 640px;
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.45rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
}

.hero-content p {
  font-size: 1.15rem;
  color: #4f6057;
  max-width: 470px;
  margin-bottom: 34px;
}

/* Section header */
.section-header {
  max-width: 760px;
  margin: 0 auto 20px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--brand-green);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* Services */
.services-section {
  background-color: var(--white);
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  text-align: center;
  padding: 34px 22px 28px;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 8px 22px rgba(20, 70, 35, 0.03);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(20, 70, 35, 0.08);
}

.service-icon {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.btn-services {
  min-width: 210px;
}

/* Why section */
.why-section {
  background-color: #f2f7ef;
}

.why-card {
  padding: 10px 14px;
}

.why-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background-color: var(--brand-green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.why-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.why-card p {
  max-width: 240px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* How it works */
.how-section {
  background-color: var(--white);
}

.step-card {
  padding: 10px 20px;
  position: relative;
}

.step-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background-color: #f2f7ef;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background-color: var(--brand-green);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.step-card p {
  max-width: 270px;
  margin: 0 auto;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .step-card-middle::before,
  .step-card-middle::after {
    content: "";
    position: absolute;
    top: 44px;
    width: 33%;
    height: 2px;
    border-top: 2px dotted #cddcbf;
  }

  .step-card-middle::before {
    left: -14%;
  }

  .step-card-middle::after {
    right: -14%;
  }
}

/* CTA */
.cta-box {
  border-radius: 22px;
  background: linear-gradient(135deg, #155d30 0%, #0f4d26 100%);
  box-shadow: var(--shadow-soft);
}

.cta-image-placeholder {
  min-height: 320px;
  height: 100%;
  position: relative;
  background: url("../images/comfort-at-home.png") no-repeat center center;
  background-size: cover;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  overflow: hidden;
}

.cta-image-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: end;
  padding: 26px;
}

.mini-photo-card {
  background-color: rgba(255,255,255,0.92);
  color: var(--brand-dark);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.mini-photo-card i {
  font-size: 1.2rem;
  color: var(--brand-green);
}

.cta-content {
  height: 100%;
  padding: 58px 54px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cta-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 35%, rgba(255,255,255,0.04) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.04) 0 2px, transparent 2px);
  pointer-events: none;
}

.cta-content > * {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.08rem;
  max-width: 500px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 26px;
}

.btn-light-custom {
  display: inline-block;
  background-color: var(--white);
  color: var(--brand-dark);
  border: 1px solid var(--white);
  border-radius: 12px;
  font-weight: 700;
  padding: 14px 26px;
  align-self: flex-start;
}

.btn-light-custom:hover {
  background-color: #f3f7ef;
  color: var(--brand-dark);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #156432 0%, #0f582a 100%);
  color: rgba(255,255,255,0.9);
}

.footer-top {
  padding: 54px 0 28px;
  align-items: flex-start;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 28px 0;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  margin: 0;
}

.site-footer h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.84);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #dff1cf;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.84);
}

.footer-contact i {
  margin-top: 3px;
  color: #dff1cf;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 24px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.96rem;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3.7rem;
  }
}

@media (max-width: 991.98px) {
  .site-logo {
    width: 135px;
    height: auto;
  }

  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .hero-banner {
    min-height: 520px;
    background-position: center center;
  }

  .hero-content {
    max-width: 430px;
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-space {
    padding: 75px 0;
  }

  .cta-content {
    padding: 42px 30px;
  }

  .footer-logo {
    width: 220px;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 480px;
    display: flex;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 56px 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%;
  }

  .btn-lg-custom,
  .btn-brand,
  .btn-outline-brand {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .service-card,
  .why-card,
  .step-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .footer-top {
    padding: 44px 0 28px;
  }

  .footer-logo {
    width: 210px;
    margin-bottom: 24px;
  }

  .footer-brand p {
    max-width: 300px;
  }
}

/* Inner page heading mobile fix */
main h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 767.98px) {
  main h1 {
    font-size: 2.55rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  main h2 {
    font-size: 2.05rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }
}

/* Inner page heading mobile fix */
main h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 767.98px) {
  main h1 {
    font-size: 2.55rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  main h2 {
    font-size: 2.05rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }
}

/* ==========================================
   MOBILE HEADER IMPROVEMENTS
   Add this at the VERY BOTTOM of style.css
========================================== */

@media (max-width: 991.98px) {

  /* Slightly smaller logo on phones */
  .site-logo {
    width: 140px;
    height: auto;
  }

  /* Reduce top/bottom navbar padding */
  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Push the menu farther away from the logo */
  .navbar-brand {
    margin-bottom: 20px;
  }

  /* Add a separator and spacing above menu links */
  .navbar-collapse {
    border-top: 1px solid rgba(22,115,58,0.08);
    margin-top: 10px;
    padding-top: 18px;
  }

  /* More breathing room between links */
  .navbar-nav .nav-item {
    margin-bottom: 8px;
  }

  /* Make Request Care button full width */
  .navbar-collapse .btn-brand {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

}