/* ==========================================================
   FIVE LAND HOMES — Ecosystem Homepage
   Typography inspired by our-revolution.com:
   PP Migra → Cormorant Garamond | TT Commons → Inter | Sharp Grotesk → Space Grotesk
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;1,14..32,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* our-revolution.com equivalents (free Google Fonts) */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;      /* ~ PP Migra */
  --font-body: 'Inter', system-ui, sans-serif;                                    /* ~ TT Commons */
  --font-label: 'Space Grotesk', system-ui, sans-serif;                             /* ~ Sharp Grotesk */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.25;
  color: #1c1919;
  background: #faf7f2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1;
}

/* ---- Page shell: exactly one screen ---- */
.eco-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #faf7f2;
  overflow: hidden;
}

/* ---- Header ---- */
.eco-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.eco-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: #1c1919;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.eco-logo:hover { opacity: 0.6; }

.eco-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #1c1919;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

.eco-menu-btn:hover { opacity: 0.6; }

.eco-menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.eco-menu-lines span {
  display: block;
  height: 1px;
  background: #1c1919;
}

.eco-menu-lines span:nth-child(2) {
  width: 70%;
  margin-left: auto;
}

/* ---- Fullscreen menu ---- */
.eco-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f2efe9;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.eco-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.eco-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: #1c1919;
  padding: 8px 0;
  margin-bottom: 40px;
}

.eco-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.eco-menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: #1c1919;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.eco-menu-nav a:hover { color: #8c6d3f; }

.eco-menu-footer {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  color: #7a736c;
  letter-spacing: 0.06em;
}

/* ---- Centered statement — 30% empty margin on all four sides ---- */
.eco-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 30% breathing room top · right · bottom · left */
  padding: 30vh 30vw;
  z-index: 3;
  transition: opacity 0.35s ease;
}

.eco-stage.dimmed .eco-statement {
  opacity: 0.2;
}

.eco-statement {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  transition: opacity 0.35s ease;
}

.eco-statement h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 24px;
  color: #1c1919;
}

.eco-statement .eco-body-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.eco-statement .eco-body-lines p {
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.65;
  font-weight: 400;
  color: #7a736c;
  max-width: 100%;
  margin: 0;
}

/* ---- Preview panel — bottom-left, ~35% × ~65% (not full-height OR copy) ---- */
.eco-panel {
  position: fixed;
  bottom: 28px;
  left: 28px;
  top: auto;
  width: clamp(280px, 36vw, 440px);
  height: clamp(400px, 68vh, 720px);
  max-height: calc(100dvh - 120px);
  z-index: 50;
  background: #f2efe9;
  border: 1px solid #e2ddd7;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 24px 64px rgba(28, 25, 25, 0.12);
  transform: translateY(18px) scale(0.94);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.eco-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.eco-panel.eco-panel--homelens {
  background: linear-gradient(165deg, #f8f5ee 0%, #eef6f4 100%);
  border-color: rgba(11, 94, 82, 0.18);
}

.eco-panel.eco-panel--homelens .eco-panel-num,
.eco-panel.eco-panel--homelens .eco-panel-hint {
  color: #0b5e52;
}

.eco-panel.eco-panel--homelens .eco-panel-tags span {
  border-color: rgba(11, 94, 82, 0.2);
  color: #0b5e52;
  background: rgba(11, 94, 82, 0.06);
}

.eco-panel.eco-panel--homelens .eco-btn-primary {
  background: #0b5e52;
  color: #fff;
}

.eco-panel.eco-panel--homelens .eco-btn-primary:hover {
  background: #094a41;
}

.eco-panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px 20px;
  display: flex;
  align-items: flex-start;
}

.eco-panel-inner {
  max-width: 100%;
  width: 100%;
}

.eco-panel-footer {
  flex-shrink: 0;
  padding: 14px 28px 22px;
  border-top: 1px solid #e2ddd7;
  background: rgba(250, 247, 242, 0.85);
}

.eco-panel.eco-panel--homelens .eco-panel-footer {
  border-top-color: rgba(11, 94, 82, 0.12);
  background: rgba(248, 245, 238, 0.9);
}

.eco-panel.eco-panel--propconstruct {
  background: linear-gradient(165deg, #f8f5ee 0%, #f3ece6 100%);
  border-color: rgba(212, 98, 42, 0.2);
}

.eco-panel.eco-panel--propconstruct .eco-panel-num,
.eco-panel.eco-panel--propconstruct .eco-panel-hint {
  color: #d4622a;
}

.eco-panel.eco-panel--propconstruct .eco-panel-tags span {
  border-color: rgba(212, 98, 42, 0.22);
  color: #b85424;
  background: rgba(212, 98, 42, 0.07);
}

.eco-panel.eco-panel--propconstruct .eco-btn-primary {
  background: #d4622a;
  color: #fff;
}

.eco-panel.eco-panel--propconstruct .eco-btn-primary:hover {
  background: #c05624;
}

.eco-panel.eco-panel--propconstruct .eco-panel-footer {
  border-top-color: rgba(212, 98, 42, 0.14);
  background: rgba(248, 245, 238, 0.92);
}

.eco-panel.eco-panel--propmanage {
  background: linear-gradient(165deg, #f8f5ee 0%, #eef4f0 100%);
  border-color: rgba(58, 125, 92, 0.2);
}

.eco-panel.eco-panel--propmanage .eco-panel-num,
.eco-panel.eco-panel--propmanage .eco-panel-hint {
  color: #3a7d5c;
}

.eco-panel.eco-panel--propmanage .eco-panel-tags span {
  border-color: rgba(58, 125, 92, 0.22);
  color: #2d5a45;
  background: rgba(58, 125, 92, 0.07);
}

.eco-panel.eco-panel--propmanage .eco-btn-primary {
  background: #3a7d5c;
  color: #fff;
}

.eco-panel.eco-panel--propmanage .eco-btn-primary:hover {
  background: #2d5a45;
}

.eco-panel.eco-panel--propmanage .eco-panel-footer {
  border-top-color: rgba(58, 125, 92, 0.14);
  background: rgba(248, 245, 238, 0.92);
}

.eco-panel.eco-panel--propdesign {
  background: linear-gradient(165deg, #f7f3eb 0%, #efe8de 100%);
  border-color: rgba(92, 64, 51, 0.18);
}

.eco-panel.eco-panel--propdesign .eco-panel-num,
.eco-panel.eco-panel--propdesign .eco-panel-hint {
  color: #5c4033;
}

.eco-panel.eco-panel--propdesign .eco-panel-tags span {
  border-color: rgba(92, 64, 51, 0.2);
  color: #6b4f3a;
  background: rgba(92, 64, 51, 0.06);
}

.eco-panel.eco-panel--propdesign .eco-btn-primary {
  background: #5c4033;
  color: #fff;
}

.eco-panel.eco-panel--propdesign .eco-btn-primary:hover {
  background: #6b4f3a;
}

.eco-panel.eco-panel--propdesign .eco-panel-footer {
  border-top-color: rgba(92, 64, 51, 0.12);
  background: rgba(247, 243, 235, 0.92);
}

.eco-panel.eco-panel--finance {
  background: linear-gradient(165deg, #f8f5ee 0%, #f3efe6 100%);
  border-color: rgba(201, 168, 76, 0.22);
}

.eco-panel.eco-panel--finance .eco-panel-num,
.eco-panel.eco-panel--finance .eco-panel-hint {
  color: #9a7b32;
}

.eco-panel.eco-panel--finance .eco-panel-tags span {
  border-color: rgba(201, 168, 76, 0.25);
  color: #8a6e3a;
  background: rgba(201, 168, 76, 0.08);
}

.eco-panel.eco-panel--finance .eco-btn-primary {
  background: #c9a84c;
  color: #1a1a1a;
}

.eco-panel.eco-panel--finance .eco-btn-primary:hover {
  background: #b8924e;
}

.eco-panel.eco-panel--finance .eco-panel-footer {
  border-top-color: rgba(201, 168, 76, 0.16);
  background: rgba(248, 245, 238, 0.92);
}

.eco-panel-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c6d3f;
  margin: 0;
}

.eco-panel-hint svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.eco-panel-num {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c6d3f;
  margin-bottom: 10px;
}

.eco-panel-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 6px;
  line-height: 1.1;
}

.eco-panel-tag {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #7a736c;
  margin-bottom: 18px;
}

.eco-panel-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3d3835;
  margin-bottom: 20px;
}

.eco-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.eco-panel-tags span {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid #e2ddd7;
  border-radius: 999px;
  color: #7a736c;
  background: #faf7f2;
}

.eco-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eco-btn-primary {
  display: inline-flex;
  padding: 11px 22px;
  background: #1c1919;
  color: #faf7f2;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.eco-btn-primary:hover { transform: translateY(-2px); }

.eco-btn-ghost {
  display: inline-flex;
  padding: 11px 22px;
  background: transparent;
  color: #1c1919;
  border: 1px solid #e2ddd7;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.eco-btn-ghost:hover { border-color: #1c1919; }

/* ---- Bottom-right cards ---- */
.eco-cards {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  display: flex;
  gap: 8px;
}

.eco-card {
  position: relative;
  width: 68px;
  height: 84px;
  background: #ede8e0;
  border: 1px solid #e2ddd7;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(28, 25, 25, 0.05);
  transition: all 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.eco-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.eco-card-img.is-missing {
  display: none;
}

.eco-card:hover .eco-card-img,
.eco-card.active .eco-card-img {
  transform: scale(1.04);
}

.eco-card:hover,
.eco-card.active {
  width: 88px;
  height: 100px;
  border-color: #8c6d3f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(28, 25, 25, 0.08);
}

.eco-card-num {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 7px 0 0 7px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #faf7f2;
  background: rgba(28, 25, 25, 0.72);
  padding: 3px 5px;
  border-radius: 4px;
}

.eco-card-label {
  position: relative;
  z-index: 1;
  display: none;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c1919;
  text-align: center;
  padding: 0 6px 10px;
}

.eco-card:has(.eco-card-img.is-missing) {
  background: #faf7f2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
}

.eco-card-img.is-missing + .eco-card-num {
  position: static;
  margin: 0;
  align-self: center;
  color: #8c6d3f;
  background: transparent;
  padding: 0;
}

.eco-card:has(.eco-card-img.is-missing) .eco-card-label {
  display: block;
  flex: 1;
}

/* ---- Cursor mini-cards (text only) ---- */
.eco-cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.eco-mini {
  position: absolute;
  width: 150px;
  padding: 12px 14px;
  background: #faf7f2;
  border: 1px solid #e2ddd7;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(28, 25, 25, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.eco-mini.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.eco-mini-badge {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c6d3f;
  margin-bottom: 4px;
}

.eco-mini-title {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.eco-mini-sub {
  font-size: 10px;
  color: #7a736c;
  line-height: 1.4;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .eco-header { padding: 20px; }
  .eco-stage { padding: 26vh 10vw; }
  .eco-panel {
    left: 16px;
    right: 16px;
    bottom: 100px;
    width: auto;
    height: auto;
    max-height: min(70vh, 520px);
    border-radius: 14px;
    transform: translateY(24px) scale(0.96);
  }
  .eco-panel.open { transform: translateY(0) scale(1); }
  .eco-panel-scroll { padding: 24px 20px 16px; }
  .eco-panel-footer { padding: 12px 20px 18px; }
  .eco-cards {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
  }
  .eco-card { flex: 1; max-width: 60px; width: 56px; height: 72px; }
  .eco-card:hover, .eco-card.active { width: 60px; height: 76px; }
  .eco-cursor-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eco-panel, .eco-card, .eco-mini { transition: none; }
  .eco-cursor-layer { display: none; }
}
