/* === MORE LIFE RECOVERY HOMES - Emergence Theme === */
/* Reset & Custom Properties */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --navy: #0a1628;
  --navy-mid: #132240;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --cream: #f5efe6;
  --sage: #7a9e7e;
  --white: #ffffff;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy);
  overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--gold-light),
    var(--sage)
  );
  z-index: 10000;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition:
    background 0.4s,
    padding 0.4s,
    box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 48px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
/* Logo link container — holds img + business name */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar .logo img {
  height: 48px;
  border-radius: 50%;
  padding: 4px;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.25);
  filter: invert(1); /* Make black logo appear white */
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    filter 0.15s linear;
}
.navbar .logo img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.45);
}
/* Business name text next to logo */
.navbar .brand-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  position: relative;
  transition:
    color 0.3s,
    background 0.3s;
}
.nav-links a::before {
  content: attr(data-index);
  font-size: 0.6rem;
  color: var(--gold);
  position: absolute;
  top: -2px;
  left: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
  transform: translateY(0);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 9100;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    transform 0.4s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Full-Screen Sections */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(10, 22, 40, 0.45) 50%,
    rgba(10, 22, 40, 0.75) 100%
  );
}
.section-number {
  position: absolute;
  z-index: 2;
  right: 48px;
  bottom: 48px;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(212, 168, 83, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Section Content */
.section-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 40px 44px;
  background: rgba(10, 22, 40, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 83, 0.18);
  border-radius: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.content-left {
  margin-left: 10%;
}
.content-right {
  margin-left: auto;
  margin-right: 10%;
}
.content-center {
  margin: 0 auto;
  text-align: center;
}

/* Section label tag */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 16px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-content h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease 0.15s,
    transform 0.7s ease 0.15s;
}
.accent-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin-bottom: 20px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s;
}
.content-center .accent-line {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}
.section-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 300;
  color: rgba(245, 239, 230, 0.85);
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease 0.4s,
    transform 0.7s ease 0.4s;
}

/* Visible state (triggered by JS Intersection Observer) */
.section.visible .section-label {
  opacity: 1;
  transform: translateY(0);
}
.section.visible h2 {
  opacity: 1;
  transform: translateY(0);
}
.section.visible .accent-line {
  opacity: 1;
  transform: scaleX(1);
}
.section.visible .fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Address badge */
.address-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.9rem;
}
.address-badge svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* CTA Group (Section 6) */
.cta-group {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.3);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 168, 83, 0.5);
}
.cta-email {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
  padding-bottom: 2px;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.cta-email:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Fixed Email Us FAB button (bottom-right) */
.email-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.35);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.email-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 36px rgba(212, 168, 83, 0.55);
}
.email-fab svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
  .navbar {
    padding: 14px 24px;
  }
  .navbar.scrolled {
    padding: 10px 24px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 24px;
  }
  .section-content {
    max-width: 90%;
    padding: 28px 24px;
  }
  .content-left {
    margin-left: 5%;
  }
  .content-right {
    margin-right: 5%;
    margin-left: auto;
  }
  .section-number {
    font-size: 4rem;
    right: 20px;
    bottom: 20px;
  }
}
@media (max-width: 480px) {
  .section-content h2 {
    font-size: 1.5rem;
  }
  .section-content p {
    font-size: 0.92rem;
  }
  .cta-button {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
  .navbar .logo img {
    height: 38px;
  }
  .navbar .brand-name {
    font-size: 0.8rem;
  }
}
