/* ============================================
   BJ Property Services — bjpropserv.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* === Variables === */
:root {
  --green:       #2E7D32;
  --green-dark:  #1B5E20;
  --green-mid:   #43A047;
  --green-light: #E8F5E9;
  --blue:        #1565C0;
  --blue-mid:    #1976D2;
  --blue-light:  #E3F2FD;
  --text:        #1a2332;
  --text-light:  #637085;
  --white:       #ffffff;
  --off-white:   #f8faf8;
  --border:      #e5e7eb;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* === Header & Nav === */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.nav-logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
nav ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
nav ul li.nav-cta a {
  background: var(--green-mid);
  color: #fff;
  margin-left: 0.5rem;
}
nav ul li.nav-cta a:hover { background: #2E7D32; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: #fff; }
.btn-white { background: #fff; color: var(--green); border-color: #fff; }
.btn-white:hover { background: var(--green-light); color: var(--green-dark); }

/* === Hero (Homepage) === */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative;
  color: #fff;
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5d6a7;
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(165,214,167,0.4);
}
.hero-content h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 2.25rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-trust-item .icon { font-size: 1.1rem; }

/* === Page Hero (sub-pages) === */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 30%, rgba(0,0,0,0.25) 100%);
}
.page-hero-content {
  position: relative;
  color: #fff;
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 { color: #fff; margin-bottom: 0.35rem; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }
.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-top: 0.4rem;
}

/* === Section Utilities === */
.section-alt { background: var(--off-white); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: rgba(255,255,255,0.82); }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section-dark .section-label { color: #a5d6a7; }
.section-blue .section-label { color: #90caf9; }
.section-title { margin-bottom: 1rem; }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* === Service Cards (2-up) === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.card-icon-green { background: var(--green-light); }
.card-icon-blue  { background: var(--blue-light); }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }
.card-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}
.card-link:hover { color: var(--green-dark); }

/* === Value Props === */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.value-item { text-align: center; }
.value-icon {
  font-size: 2.75rem;
  display: block;
  margin-bottom: 0.85rem;
}
.value-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.value-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.section-dark .value-item h3 { color: #fff; }
.section-dark .value-item p { color: rgba(255,255,255,0.72); }

/* === Service List === */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--green-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.service-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-list.blue-list li { background: var(--blue-light); }
.service-list.blue-list li::before { color: var(--blue); }

/* === CTA Strip === */
.cta-strip {
  background: var(--green);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-strip p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.cta-strip .btn-outline-white { border-color: rgba(255,255,255,0.65); }

/* === Two-Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e0e0e0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-card {
  background: var(--green-dark);
  color: #fff;
  border-radius: 14px;
  padding: 2.5rem;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.3rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}
.contact-detail-value { font-size: 1rem; font-weight: 600; color: #fff; }
.contact-detail-value a { color: #a5d6a7; }
.contact-detail-value a:hover { color: #fff; }
.contact-info-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* === Form === */
.contact-form-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { margin-bottom: 1.75rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.span-2 { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.85rem; color: var(--text); }
input, select, textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
textarea { resize: vertical; min-height: 130px; }
.form-submit { grid-column: 1 / -1; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* === Team Cards === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green);
}
.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--green);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.15), var(--shadow);
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: brightness(1.03) contrast(1.05) saturate(0.88);
}
.team-card h3 { margin-bottom: 0.2rem; }
.team-role { color: var(--green); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem; display: block; }
.team-card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* === Badge === */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-orange { background: #fff3e0; color: #e65100; }

/* === Stats Strip === */
.stats-strip {
  background: var(--green-dark);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #a5d6a7;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

/* === Alert / Notice === */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}
.notice-blue { background: var(--blue-light); border-left: 4px solid var(--blue); color: var(--blue); }
.notice-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.notice-text { font-size: 0.95rem; line-height: 1.6; }
.notice-text strong { display: block; margin-bottom: 0.2rem; }

/* === Footer === */
footer {
  background: #111820;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo img { height: 42px; border-radius: 5px; }
.footer-logo-name { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 0.95rem; line-height: 1.2; }
.footer-logo-tag { font-size: 0.65rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 0; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-col ul li a:hover { color: #a5d6a7; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.footer-contact-row a { color: rgba(255,255,255,0.65); }
.footer-contact-row a:hover { color: #a5d6a7; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* === Before/After Slider === */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  height: 420px;
  background: #111;
}
.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
}
.ba-after img,
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  draggable: false;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pct, 50%)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pct, 50%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.ba-line {
  position: absolute;
  inset: 0 auto;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.ba-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: col-resize;
  color: var(--green);
  flex-shrink: 0;
}
.ba-btn:active { transform: scale(0.95); }
.ba-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.48);
  pointer-events: none;
  z-index: 5;
}
.ba-label-before { left: 1rem; }
.ba-label-after  { right: 1rem; }

/* === Responsive === */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: 520px; }
  .hero-content { padding: 3.5rem 1.5rem; }
  .nav-toggle { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: none;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0.2rem; }
  nav ul li a { padding: 0.7rem 1rem; font-size: 1rem; }
  nav ul li.nav-cta a { margin-left: 0; margin-top: 0.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .hero-trust { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
