/* ============================================================
   TRIPINE DEVELOPMENTS — MAIN STYLESHEET
   ============================================================ */

/* ── FONTS ── */
/* Google Fonts loaded via <link> in each HTML <head> for performance */

/* ── CSS VARIABLES ── */
:root {
  --green:        #2E7D32;
  --green-light:  #43A047;
  --green-dark:   #1B5E20;
  --green-pale:   #E8F5E9;
  --black:        #1A1A1A;
  --gray-dark:    #2C2C2C;
  --gray-mid:     #5C5C5C;
  --gray-light:   #9CA3AF;
  --border:       #E5E7EB;
  --warm-white:   #F7F5F2;
  --white:        #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:       4px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.75; color: var(--gray-mid); }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge-progress {
  background: #FFF3E0;
  color: #E65100;
}
.badge-progress::before { background: #FF6D00; }
.badge-complete {
  background: var(--green-pale);
  color: var(--green-dark);
}
.badge-complete::before { background: var(--green); }
.badge-upcoming {
  background: #EDE7F6;
  color: #4527A0;
}
.badge-upcoming::before { background: #7B1FA2; }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}
.nav-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--green-dark); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--black); font-weight: 600; }
.nav-cta { margin-left: 8px; }

/* Mobile menu */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(46, 125, 50, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(46, 125, 50, 0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 0 100px;
}
.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-visual img {
  width: 260px;
  height: auto;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
}
.hero-visual-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.hero h1 {
  color: var(--white);
  max-width: 820px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat {}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-number span { color: var(--green-light); }
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════ */
.services {
  background: var(--black);
  padding: 100px 0;
}
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.services-header h2 { color: var(--white); max-width: 480px; }
.services-header .section-label { color: rgba(255,255,255,0.4); }
.services-header .section-label::before { background: rgba(255,255,255,0.3); }
.services-header-link {
  color: var(--green-light);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  white-space: nowrap;
  margin-bottom: 12px;
}
.services-header-link:hover { gap: 12px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: #202020;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--transition);
  cursor: default;
}
.service-card:hover { background: #272727; }
.service-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(46, 125, 50, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.service-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  flex: 1;
}

/* ════════════════════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════════════════════ */
.process {
  background: var(--warm-white);
  padding: 100px 0;
}
.process-header {
  max-width: 600px;
  margin-bottom: 72px;
}
.process-header h2 { margin-bottom: 16px; }
.process-header p { font-size: 1.05rem; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-step {
  background: var(--white);
  padding: 40px;
  display: flex;
  gap: 24px;
  transition: background var(--transition);
}
.process-step:hover { background: var(--green-pale); }
.process-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}
.process-step-body {}
.process-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.process-step-desc {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════════════════ */
.projects-section { background: var(--warm-white); padding: 100px 0; }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.projects-header h2 { margin-bottom: 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: #E8F5E9;
  position: relative;
  overflow: hidden;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.04); }
.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  color: var(--green-dark);
  gap: 12px;
}
.project-card-placeholder svg { opacity: 0.3; }
.project-card-placeholder span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}
.project-card-body { padding: 28px; }
.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.project-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--font-display);
}
.project-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.project-card-location {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-card-desc {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card-dates {
  font-size: 0.75rem;
  color: var(--gray-light);
}
.project-card-arrow {
  color: var(--green);
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.project-card:hover .project-card-arrow { transform: translateX(4px); }

/* Projects page filters */
.projects-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--border);
  color: var(--gray-mid);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-pale);
}

/* ════════════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
════════════════════════════════════════════════════════════ */
.project-hero {
  background: var(--black);
  padding: calc(var(--nav-height) + 60px) 0 80px;
}
.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.project-hero h1 { color: var(--white); margin-bottom: 20px; }
.project-hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.7;
}
.project-detail { padding: 80px 0; }
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.project-gallery { margin-bottom: 48px; }
.project-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.project-gallery-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.project-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--green-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.project-gallery-arrow:hover { background: #fff; }
.project-gallery-arrow.prev { left: 12px; }
.project-gallery-arrow.next { right: 12px; }

/* ── Cross-project switch arrows (project detail pages) ── */
.project-switch-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--green-dark);
}
.project-switch-arrow.prev { left: 18px; flex-direction: row; }
.project-switch-arrow.next { right: 18px; flex-direction: row-reverse; }
.project-switch-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-switch-arrow:hover .project-switch-btn {
  background: var(--green);
  color: var(--white);
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}
.project-switch-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  line-height: 1.25;
  transition: max-width var(--transition), opacity var(--transition), padding var(--transition);
}
.project-switch-arrow.prev .project-switch-label { margin-left: 10px; text-align: left; }
.project-switch-arrow.next .project-switch-label { margin-right: 10px; text-align: right; }
.project-switch-arrow:hover .project-switch-label {
  max-width: 240px;
  opacity: 1;
  padding: 8px 14px;
}
.project-switch-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
}
.project-switch-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-dark);
}
html.dark .project-switch-btn,
html.dark .project-switch-label { background: #383838; }
@media (max-width: 768px) {
  .project-switch-arrow.prev { left: 6px; }
  .project-switch-arrow.next { right: 6px; }
  .project-switch-btn { width: 40px; height: 40px; }
  .project-switch-label { display: none; }
}

.project-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.project-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--gray-mid);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity var(--transition);
}
.project-gallery-dot.active { opacity: 1; }
.project-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.project-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.project-info-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.project-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-family: var(--font-display);
}
.project-info-value {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--black);
}
.project-highlights {
  margin-top: 24px;
}
.project-highlights h4 { margin-bottom: 16px; }
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-mid);
}
.highlight-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 32px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 12px; }

/* ════════════════════════════════════════════════════════════
   PARTNER / CTA SECTION
════════════════════════════════════════════════════════════ */
.partner-cta {
  background: var(--green-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.partner-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,0,0,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.partner-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-cta-text {}
.partner-cta-text .section-label { color: rgba(255,255,255,0.5); }
.partner-cta-text .section-label::before { background: rgba(255,255,255,0.4); }
.partner-cta-text h2 { color: var(--white); margin-bottom: 16px; max-width: 480px; }
.partner-cta-text p { color: rgba(255,255,255,0.65); max-width: 480px; font-size: 1.05rem; }
.partner-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   WHAT WE DO PAGE
════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--black);
  padding: calc(var(--nav-height) + 60px) 0 80px;
}
.page-hero h1 { color: var(--white); max-width: 700px; margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 540px; }
.page-hero .section-label { color: var(--green-light); }
.page-hero .section-label::before { background: var(--green); }

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: -20px;
}
.service-detail-name { margin-bottom: 16px; }
.service-detail-desc { margin-bottom: 32px; }
.service-steps {}
.service-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.service-step:last-child { border-bottom: none; }
.service-step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 2px;
}
.service-step-body {}
.service-step-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.service-step-desc { font-size: 0.85rem; }
.service-visual {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 60%, #A5D6A7 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.service-visual-icon {
  opacity: 0.2;
  color: var(--green-dark);
  display: flex;
}
.service-visual-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 36px;
  width: 100%;
}
.service-visual-pill {
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════════════
   PARTNER PAGE
════════════════════════════════════════════════════════════ */
.partner-intro {
  padding: 80px 0;
  background: var(--warm-white);
}
.partner-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.partner-intro h2 { margin-bottom: 20px; }
.partner-steps {
  background: var(--white);
  padding: 80px 0;
}
.partner-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 48px auto 0;
}
.partner-step {
  background: var(--white);
  padding: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.partner-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}
.partner-step-body h4 { margin-bottom: 6px; }
.partner-step-body p { font-size: 0.9rem; }

/* ── PARTNER + CONTRACTOR SHOWCASE SECTIONS ── */
.showcase-section { padding: 80px 0 48px; }
.showcase-section + .showcase-section { padding-top: 0; padding-bottom: 80px; }
.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.showcase-header h2 { margin-bottom: 12px; }
.showcase-header > div > p { max-width: 520px; }
.showcase-support-local {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Partner cards grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.showcase-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.showcase-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.showcase-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.showcase-card-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
}
.showcase-card-tag {
  font-size: 0.75rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

/* Contractor cards grid */
.contractors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.contractor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.contractor-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.contractor-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contractor-card-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
}
.contractor-card-trade {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 3px;
}
.contractor-card-location {
  font-size: 0.75rem;
  color: var(--gray-light);
}

/* ════════════════════════════════════════════════════════════
   MARQUEE TICKER
════════════════════════════════════════════════════════════ */
.marquee-track-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  margin-top: 48px;
  cursor: grab;
  user-select: none;
}
.marquee-track-outer:active { cursor: grabbing; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
}
/* Partner logos — image only */
.marquee-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: inherit;
}
.marquee-logo-chip:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}
.marquee-logo-chip img {
  height: 78px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
}

/* Contractor logos — image + scope text below */
.marquee-contractor-logo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 12px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  min-width: 120px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: inherit;
}
.marquee-contractor-logo-chip:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}
.marquee-contractor-logo-chip img {
  height: 96px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}
.marquee-contractor-logo-chip span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.marquee-divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.chip-external-link {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  z-index: 1;
  text-decoration: none;
}
.marquee-logo-chip:hover .chip-external-link,
.marquee-contractor-logo-chip:hover .chip-external-link {
  opacity: 1;
}

html.dark .marquee-logo-chip,
html.dark .marquee-contractor-logo-chip {
  background: var(--card-bg, #1e1e1e);
  border-color: var(--border);
}

/* ════════════════════════════════════════════════════════════
   SCROLL TO TOP
════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.2s, filter 0.2s;
  z-index: 999;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-to-top:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.26);
  filter: brightness(1.1);
}

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 80px 0;
  background: var(--warm-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { margin-bottom: 40px; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
}
.contact-method-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.contact-method-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
}
.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--black);
  background: var(--warm-white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  background: var(--white);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.form-success h3 { margin-bottom: 8px; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}
.footer-logo img { height: 40px; width: auto; background: var(--white); padding: 4px; border-radius: 4px; }
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}
.footer-social {
  display: flex;
  gap: 16px;
  padding-right: 72px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social-link:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  background: rgba(67, 160, 71, 0.1);
}

/* ════════════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.page-wrap { padding-top: var(--nav-height); }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0 !important; }

/* ── HERO WHY CARD ── */
.hero-why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  width: 320px;
}
.hero-why-card-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 24px;
}
.hero-why-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hero-why-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  margin-top: 7px;
}
.hero-why-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.hero-why-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ── PROJECT MAP ── */
.projects-map-section {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.projects-map-header {
  margin-bottom: 36px;
}
.projects-map-header h2 {
  margin-bottom: 8px;
}
.projects-map-header p {
  color: var(--gray-mid);
  font-size: 1rem;
}
.projects-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 520px;
  position: relative;
  display: flex;
}
.map-project-list {
  width: 210px;
  min-width: 210px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.map-list-header {
  padding: 12px 14px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.map-list-item {
  padding: 10px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.map-list-item:hover {
  background: var(--warm-white);
}
.map-list-item.active {
  border-left-color: var(--green);
  background: var(--green-pale);
}
.map-list-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
}
.map-list-status {
  font-size: 0.68rem;
  font-weight: 500;
}
.map-list-status[data-status="completed"]  { color: #2E7D32; }
.map-list-status[data-status="upcoming"]   { color: #1565C0; }
.map-list-status[data-status="in-progress"]{ color: #C05000; }
html.dark .map-list-status[data-status="completed"]  { color: #66BB6A; }
html.dark .map-list-status[data-status="upcoming"]   { color: #42A5F5; }
html.dark .map-list-status[data-status="in-progress"]{ color: #FFA040; }
.map-area {
  flex: 1;
  position: relative;
  min-width: 0;
}
#projects-map,
#home-map {
  height: 100%;
  width: 100%;
}
#map-recenter-btn {
  position: absolute;
  top: 76px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
#map-recenter-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
html.dark #map-recenter-btn {
  background: #383838;
  color: #E8E8E8;
  border-color: #3A3A3A;
}
html.dark #map-recenter-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
html.dark .leaflet-control-zoom a {
  background: #383838;
  color: #E8E8E8;
  border-color: #3A3A3A;
}
html.dark .leaflet-control-zoom a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
html.dark .leaflet-control-zoom {
  border-color: #3A3A3A;
}
.map-pin {
  width: 20px !important;
  height: 20px !important;
}
.map-pin-inner {
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(46,125,50,0.5);
  transition: transform 0.15s ease;
}
.map-pin:hover .map-pin-inner {
  transform: scale(1.25);
}
.map-popup-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 6px;
  line-height: 1.2;
  text-decoration: none;
  display: block;
}
.map-popup-title:hover { color: var(--green); }
.map-popup-photo {
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--green-pale);
}
.map-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-grid.reverse { direction: ltr; }
  .partner-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .contractors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .footer-social { padding-left: 52px; }
  .footer-copy { padding-left: 52px; }
  .section { padding: 72px 0; }
  .hero-inner { flex-direction: column; padding: 60px 0 80px; gap: 40px; }
  .hero-visual img { width: 160px; }
  .hero-why-card { width: 100%; }
  .projects-map-wrap { height: auto; flex-direction: column; }
  .map-area { height: 320px; flex: none; order: 1; }
  .map-project-list { width: 100%; min-width: 0; max-height: 200px; border-right: none; border-top: 1px solid var(--border); order: 2; }
  .hero-stats { flex-wrap: wrap; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .partner-cta-inner { flex-direction: column; align-items: flex-start; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .contractors-grid { grid-template-columns: 1fr; }
  .showcase-header { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 28px; }
  .process-step { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE TOGGLE
════════════════════════════════════════════════════════════ */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--gray-mid);
  transition: all var(--transition);
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: var(--green-pale);
  color: var(--green);
  border-color: var(--green);
}
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }
html.dark .dark-toggle .icon-sun { display: block; }
html.dark .dark-toggle .icon-moon { display: none; }

/* Nav bar dark toggle — hidden on desktop, shown left of hamburger on mobile */
.nav-dark-mobile { display: none; }
@media (max-width: 768px) {
  .nav-dark-mobile { display: flex; margin-left: auto; margin-right: 8px; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE
════════════════════════════════════════════════════════════ */
html.dark {
  color-scheme: dark;
  --black:       #E8E8E8;
  --gray-dark:   #D1D5DB;
  --gray-mid:    #9CA3AF;
  --gray-light:  #8B949E;
  --border:      #3A3A3A;
  --warm-white:  #2A2A2A;
  --green-dark:  #81C784;
  /* --white stays #FFFFFF — used as text colour inside dark hero/footer/services sections */
  --green-pale:  #1A2E1A;
  --shadow:      0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
}

/* Sections that use --black as bg — keep purposefully dark */
html.dark .hero,
html.dark .services,
html.dark .project-hero,
html.dark .page-hero,
html.dark .footer { background: #0F0F0F; }

/* Nav hardcoded rgba */
html.dark .nav { background: rgba(20, 20, 20, 0.92); }

/* btn-outline:hover uses --black as bg — remap to green */
html.dark .btn-outline:hover { background: var(--green-dark); color: #FFFFFF; }

/* Card and surface backgrounds that used --white — flip to dark */
html.dark .hero-visual img,
html.dark .process-step,
html.dark .project-card,
html.dark .filter-btn,
html.dark .project-info-card,
html.dark .partner-steps,
html.dark .partner-step,
html.dark .contractor-card,
html.dark .contact-form,
html.dark .projects-map-section { background: #383838; }
html.dark .map-project-list { background: #383838; border-right-color: #3A3A3A; }
html.dark .map-list-header  { color: #777; border-bottom-color: #3A3A3A; }
html.dark .map-list-item:hover { background: #404040; }
html.dark .map-list-item.active { background: #1A2E1A; border-left-color: var(--green); }
html.dark .map-list-name { color: #E8E8E8; }
/* Leaflet popup dark mode */
html.dark .leaflet-popup-content-wrapper { background: #383838 !important; border: 1px solid #4A4A4A; }
html.dark .leaflet-popup-tip { background: #383838 !important; }
html.dark .leaflet-popup-close-button { color: #E8E8E8 !important; }

/* Form focus state also used --white */
html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .form-textarea:focus { background: #424242; }

/* Hardcoded light green placeholder backgrounds */
html.dark .project-card-image { background: #1A2E1A; }
html.dark .showcase-item { background: linear-gradient(135deg, #1A2E1A 0%, #1F3A1F 100%); }
html.dark .service-visual { background: linear-gradient(135deg, #1A2E1A 0%, #1F3A1F 60%, #243F24 100%); }

/* Map popup hardcoded text colours */
html.dark .map-popup-title { color: #E8E8E8; }
html.dark .map-popup-title:hover { color: #66BB6A; }

/* Project status badges */
html.dark .badge-active   { background: rgba(255,152,0,0.12);  color: #FFAB40; }
html.dark .badge-upcoming { background: rgba(156,39,176,0.12); color: #CE93D8; }
html.dark .badge-progress { background: rgba(255,109,0,0.12);  color: #FF9800; }

/* Logo — white square background so dark triangle/text stays visible */
html.dark .nav-logo img {
  background: #FFFFFF;
  padding: 5px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════
   TRI-AI CHATBOT WIDGET
   ═══════════════════════════════════════════ */

.trai-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.trai-tag {
  background: var(--green-dark);
  color: #fff;
  border-radius: 40px;
  padding: 7px 16px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(27,94,32,.3);
  white-space: nowrap;
  animation: traiTagIn .4s ease both;
}

@keyframes traiTagIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.trai-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-dark);
  border: 3px solid #fff;
  box-shadow: 0 6px 24px rgba(27,94,32,.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .25s, box-shadow .25s;
  padding: 0;
}

.trai-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(27,94,32,.5);
}

.trai-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}

.trai-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: var(--green-light);
  border-radius: 50%;
  border: 2px solid var(--green-dark);
  animation: traiPulse 2s ease-in-out infinite;
}

@keyframes traiPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

.trai-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  border: 1.5px solid var(--border);
  z-index: 9000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 120px);
}

.trai-panel.open {
  display: flex;
  animation: traiPopUp .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes traiPopUp {
  from { transform: scale(.88) translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.trai-head {
  background: var(--green-dark);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.trai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
  box-sizing: border-box;
}

.trai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trai-info h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1px;
}

.trai-info p {
  font-size: .68rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.trai-back {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 4px 8px 4px 0;
  display: flex;
  align-items: center;
  transition: color .2s;
  flex-shrink: 0;
}

.trai-back:hover { color: #fff; }

.trai-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  transition: color .2s;
  line-height: 1;
}

.trai-close:hover { color: #fff; }

.trai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: 320px;
}

.trai-msg {
  max-width: 88%;
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 10px;
}

.trai-msg.bot {
  background: var(--green-pale);
  color: var(--black);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.trai-msg.user {
  background: var(--green-dark);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.trai-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 12px 14px !important;
}

.trai-typing span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: traiDot 1.2s ease-in-out infinite;
}

.trai-typing span:nth-child(2) { animation-delay: .2s; }
.trai-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes traiDot {
  0%, 80%, 100% { transform: scale(1); opacity: .5; }
  40%           { transform: scale(1.4); opacity: 1; }
}

.trai-link-btn {
  background: none;
  border: none;
  color: var(--green);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.trai-chips {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trai-route-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.trai-route {
  width: 100%;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: .74rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}

.trai-route:hover { background: var(--green); }

.trai-chip {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: .78rem;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
  font-family: var(--font-body);
}

.trai-chip:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

.trai-input-row {
  padding: 10px 14px;
  border-top: 1.5px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.trai-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .82rem;
  outline: none;
  transition: border-color .2s;
  background: var(--warm-white);
  color: var(--black);
}

.trai-input:focus { border-color: var(--green); }

.trai-send {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trai-send:hover { background: var(--green); }

.trai-form {
  background: var(--green-pale);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  align-self: stretch;
  max-width: 100%;
}

.trai-form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.trai-field {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .78rem;
  outline: none;
  background: #fff;
  color: var(--black);
  transition: border-color .2s;
  box-sizing: border-box;
}

.trai-field:focus { border-color: var(--green); }
.trai-field::placeholder { color: var(--gray-light); }

.trai-textarea {
  resize: vertical;
  min-height: 72px;
}

.trai-submit {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: 2px;
}

.trai-submit:hover { background: var(--green); }

/* Dark mode overrides */
html.dark .trai-panel  { background: #1e1e1e; border-color: #333; }
html.dark .trai-msg.bot { background: #1a3320; color: #e8f5e9; }
html.dark .trai-chip   { background: #2c2c2c; border-color: #444; color: #e8f5e9; }
html.dark .trai-chip:hover { background: #1a3320; border-color: var(--green); }
html.dark .trai-input  { background: #2c2c2c; border-color: #444; color: #e8f5e9; }
html.dark .trai-input-row { border-color: #333; }
html.dark .trai-form   { background: #1a3320; }
html.dark .trai-field  { background: #2c2c2c; border-color: #444; color: #e8f5e9; }
html.dark .trai-form-title { color: #a5d6a7; }

.trai-form-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 4px;
}

.trai-check-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trai-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--black);
  cursor: pointer;
}

.trai-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--green-dark);
  flex-shrink: 0;
  cursor: pointer;
}

select.trai-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.trai-form-note {
  font-size: .7rem;
  color: var(--gray-mid);
  line-height: 1.5;
  margin: 2px 0 0;
}

.trai-soil-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0;
  align-self: stretch;
}

html.dark .trai-check       { color: #e8f5e9; }
html.dark .trai-form-note   { color: #a5d6a7; }
html.dark select.trai-field { background-color: #2c2c2c; }

@media (max-width: 400px) {
  .trai-panel { width: calc(100vw - 32px); right: 16px; }
  .trai-bubble { right: 16px; }
}

/* ── Accessibility: respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
