/* ===========================
   Mount Forest Homes - Global Styles
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f5f7fa;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #115e36, #0b3f25);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #167746, #0e5330);
  box-shadow: 0 12px 25px rgba(10, 60, 35, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #cbd2d9;
  background-color: #ffffff;
  color: #115e36;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #e4f1ea;
  border-color: #115e36;
  transform: translateY(-1px);
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #102a43;
}

.section-subtitle {
  margin: 0 0 2rem;
  color: #62758a;
  max-width: 640px;
}

/* ===========================
   Header & Navigation
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo svg {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #115e36;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #115e36, #1f8a4f);
  transition: width 0.2s ease-out;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #111827;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
}

/* ===========================
   Hero Section (Home)
   =========================== */

.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top left, #e4f1ea 0, #f5f7fa 55%, #e0ecff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(17, 94, 54, 0.08);
  color: #115e36;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3.2vw + 1rem, 3.1rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #102a43;
}

.hero-highlight {
  color: #115e36;
}

.hero-text {
  margin: 0 0 1.6rem;
  color: #4b5563;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.hero-image-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-image-main {
  border-radius: 14px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background-color: #0f766e;
  color: #e0fdf6;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: -1.6rem;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.6);
}

.hero-badge span {
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  gap: 1rem;
  font-size: 0.9rem;
}

.hero-stat-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: #111827;
}

.hero-stat-label {
  color: #6b7280;
  font-size: 0.8rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-rating-stars {
  color: #f59e0b;
}

/* ===========================
   Feature Cards / Why Choose
   =========================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border-color: rgba(17, 94, 54, 0.6);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e4f1ea, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #115e36;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #102a43;
}

.feature-text {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===========================
   Services Overview (Home)
   =========================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.9);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  border-color: rgba(17, 94, 54, 0.7);
}

.card-image {
  height: 180px;
  overflow: hidden;
}

.card-body {
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #102a43;
}

.card-text {
  font-size: 0.9rem;
  color: #4b5563;
}

.card-link {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #115e36;
  font-weight: 500;
}

.card-link span {
  margin-left: 0.2rem;
}

/* ===========================
   Trust / CTA Banner
   =========================== */

.trust-section {
  background: linear-gradient(120deg, #0b3f25, #115e36);
  color: #e5f8ed;
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.trust-heading {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.trust-text {
  margin: 0;
  color: #c7ffe0;
  font-size: 0.95rem;
}

.trust-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===========================
   About Page
   =========================== */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: #e4f1ea;
  color: #115e36;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.list-check span {
  color: #115e36;
  font-weight: 700;
  margin-top: 0.05rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.stat-block {
  min-width: 140px;
}

.stat-block-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #115e36;
}

.stat-block-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.about-panel {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.about-panel h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.about-panel p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===========================
   Services Page
   =========================== */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.service-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.1rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: radial-gradient(circle at 10% 10%, #e4f1ea, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #115e36;
}

.service-content h3 {
  margin: 0 0 0.4rem;
}

.service-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.service-taglist {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: #eef2ff;
  color: #3730a3;
}

.service-aside {
  background-color: #052e16;
  color: #e5f8ed;
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: 0 18px 40px rgba(5, 46, 22, 0.6);
}

.service-aside h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.service-aside p {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: #c7ffe0;
}

.service-aside ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.service-aside li {
  margin-bottom: 0.4rem;
}

/* ===========================
   Forms (Contact / Subscribe)
   =========================== */

.form-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(209, 213, 219, 0.9);
  max-width: 640px;
  margin: 0 auto;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #374151;
}

.form-required {
  color: #b91c1c;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #115e36;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  background-color: #ffffff;
}

.form-control.error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.3);
  background-color: #fef2f2;
}

.form-error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

.form-help {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: 0.9rem;
}

.form-success.visible {
  display: block;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ===========================
   Legal / Text Pages
   =========================== */

.text-page {
  max-width: 760px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 2rem 2.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(209, 213, 219, 0.85);
}

.text-page h2 {
  margin-top: 0;
  color: #102a43;
}

.text-page h3 {
  margin-top: 1.5rem;
  color: #111827;
}

.text-page p {
  font-size: 0.95rem;
  color: #4b5563;
}

.text-page ul {
  font-size: 0.95rem;
  color: #4b5563;
}

.text-muted {
  color: #6b7280;
  font-size: 0.85rem;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  margin-top: 4rem;
  background-color: #020617;
  color: #e5e7eb;
  padding: 2.5rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #e5e7eb;
}

.footer-links a:hover {
  color: #bbf7d0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #1f2937;
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   Utility Classes
   =========================== */

.page-header {
  padding: 3rem 0 1.5rem;
}

.page-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.page-title {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  color: #102a43;
}

.page-subtitle {
  margin: 0;
  color: #6b7280;
  max-width: 560px;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-soft span {
  font-size: 0.95rem;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-image-card {
    max-width: 420px;
    margin: 1.5rem auto 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav-mobile {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0 0.9rem;
  }

  .nav-mobile.open {
    display: block;
  }

  .nav-mobile a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #374151;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .text-page {
    padding: 1.4rem 1.4rem 1.7rem;
  }

  .site-footer {
    padding: 2rem 0 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

