/* Modern TimberlandAppraisal.com — Unified Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest-dark:   #1a3a2a;
  --forest-mid:    #2d5a3d;
  --forest-light:  #4a8c5c;
  --forest-pale:   #e8f0ea;
  --forest-accent: #6aab7a;
  --text-dark:     #1c2b22;
  --text-mid:      #3d5248;
  --text-light:    #6b8070;
  --white:         #ffffff;
  --off-white:     #f5f7f5;
  --border:        #d0ddd4;
  --shadow:        0 1px 8px rgba(26,58,42,0.09);
  --shadow-lg:     0 6px 32px rgba(26,58,42,0.13);
  --radius:        10px;
  --radius-lg:     16px;
  --max-width:     1120px;
  --nav-height:    64px;
  --transition:    0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--off-white);
}

/* ===========================  NAV  =========================== */
header {
  background: var(--forest-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.67rem;
  color: var(--forest-accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}
nav { display: flex; gap: 0.15rem; align-items: center; }
nav a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.01em;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
nav a.nav-cta {
  background: var(--forest-light);
  color: var(--white);
  margin-left: 0.4rem;
  font-weight: 600;
}
nav a.nav-cta:hover { background: var(--forest-accent); }

/* ===========================  HERO (index only)  =========================== */
.hero {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-mid) 60%, var(--forest-light) 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('management.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}
.hero h1 span { color: var(--forest-accent); }
.hero p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--forest-light);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--forest-accent); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--forest-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ===========================  PAGE LAYOUT  =========================== */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* PAGE HEADER — matches staff/projects exactly */
.page-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--forest-light);
  border-radius: 2px;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.page-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: none;
}

/* ===========================  CARDS  =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--forest-accent);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--forest-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card p {
  font-size: 0.91rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===========================  STAFF  =========================== */
.staff-grid { display: flex; flex-direction: column; gap: 2rem; }
.staff-section { margin-bottom: 0; }
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 180px 220px 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}
.staff-photo { text-align: center; }
.staff-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--forest-pale);
  display: block;
  margin: 0 auto;
}
.staff-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--forest-pale);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--forest-light);
}
.staff-photo-placeholder svg { width: 56px; height: 56px; }
.staff-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--forest-dark);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.staff-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--forest-light);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.staff-contact { margin-bottom: 0.85rem; }
.staff-contact a {
  color: var(--forest-mid);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  word-break: break-all;
}
.staff-contact a:hover { color: var(--forest-light); text-decoration: underline; }
.staff-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.staff-bio p {
  color: var(--text-mid);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.staff-bio p:last-child { margin-bottom: 0; }
.badge {
  display: inline-block;
  background: var(--forest-pale);
  color: var(--forest-mid);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.badge-highlight {
  background: var(--forest-dark);
  color: var(--white);
  font-weight: 600;
}
.associates-section { margin-top: 2.5rem; }
.associates-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--forest-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.associates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.associate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.associate-card h4 a {
  color: var(--forest-mid);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}
.associate-card h4 a:hover { color: var(--forest-light); text-decoration: underline; }
.associate-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 0.45rem;
  line-height: 1.6;
}

/* ===========================  PROJECTS  =========================== */
.projects-list { display: flex; flex-direction: column; gap: 0.6rem; }
.project-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}
.project-item h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}
.project-item p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }
.project-featured {
  border-left-color: var(--forest-dark);
  background: var(--forest-pale);
}

/* ===========================  CONTACT  =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 1.1rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--forest-pale);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.contact-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
}
.contact-item-value { font-size: 0.96rem; color: var(--text-dark); }
.contact-item-value a {
  color: var(--forest-mid);
  text-decoration: none;
  font-weight: 500;
}
.contact-item-value a:hover { color: var(--forest-light); text-decoration: underline; }

/* ===========================  PROSE  =========================== */
.prose { max-width: none; }
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-mid);
  margin: 1.4rem 0 0.45rem;
}
.prose p {
  color: var(--text-mid);
  margin-bottom: 0.95rem;
  font-size: 0.97rem;
  line-height: 1.75;
  max-width: 820px;
}
.prose ul { margin: 0.4rem 0 0.9rem 1.4rem; }
.prose ul li {
  color: var(--text-mid);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

/* ===========================  FOOTER  =========================== */
footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.50);
  padding: 2rem;
  text-align: center;
  font-size: 0.83rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0;
}
footer a { color: var(--forest-accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===========================  UTILITY  =========================== */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--forest-light);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ===========================  MAPPING PAGE  =========================== */
.mapping-hero-strip {
  display: flex;
  background: var(--forest-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.mapping-stat {
  flex: 1;
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mapping-stat:last-child { border-right: none; }
.mapping-stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--forest-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.mapping-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.35;
}
.mapping-feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  margin-top: 2.5rem;
}
.mapping-feature-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--forest-dark);
  margin: 0.4rem 0 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.mapping-feature-text p {
  color: var(--text-mid);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}
.mapping-cta-link {
  display: inline-block;
  color: var(--forest-mid);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 2px solid var(--forest-mid);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mapping-cta-link:hover { background: var(--forest-mid); color: var(--white); }
.mapping-feature-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.mapping-tag {
  background: var(--forest-pale);
  color: var(--forest-dark);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  border-left: 3px solid var(--forest-light);
  line-height: 1.3;
}

/* ===========================  RESPONSIVE  =========================== */
@media (max-width: 900px) {
  .staff-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mapping-feature-block { grid-template-columns: 1fr; }
  .mapping-hero-strip { flex-wrap: wrap; }
  .mapping-stat { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  nav { display: none; }
  .hero { padding: 3rem 1.25rem; }
  .page-wrap { padding: 2rem 1.25rem 4rem; }
  .hero-stats { gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mapping-stat { flex: 1 1 100%; }
  .mapping-stat-num { font-size: 1.35rem; }
}